2017-05-10 21 views
1

をインストールすることはできませんversions.Allは同じエラーで失敗します。jettyを手動で設定できますか?または、他のサーバーを使用できますか?Mvnをマイポンポンファイルが桟橋

Exception

[INFO] Error stacktraces are turned on. 
[INFO] Scanning for projects... 
[WARNING] The POM for org.eclipse.jetty:jetty­maven­plugin:jar:9.2.11.v20150529 is missing, no dependency information available 
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.jetty:jetty­maven­plugin:9.2.11.v20150529: Plugin org.eclipse.jetty:jetty­maven­plugin:9.2.11.v20150529 or one of its dependencies could not be resolved: Failure to find org.eclipse.jetty:jetty­maven­plugin:jar:9.2.11.v20150529 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced 
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml 
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml 
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 kB at 6.2 kB/s) 
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 8.1 kB/s) 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 3.233 s 
[INFO] Finished at: 2017-05-10T23:46:57+05:30 
[INFO] Final Memory: 13M/310M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/vks/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1] 
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/vks/.m2/repository), central (https://repo.maven.apache.org/maven2)] 
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:93) 
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:266) 
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220) 
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103) 
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83) 
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89) 
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) 
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) 
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) 
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) 
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) 
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException 
+0

をあなたが&& MVNインストール/tmp/jetty.jar 'タッチ実行したときに何が起こるか:インストールファイル-DgroupId = org.eclipse.jetty -DartifactId =桟橋-Mavenを-plugin -Dversion = 9.2.11.v20150529 -Dfile =/tmp/jetty.jar -Dpackaging = jar' – Raphael

+0

@Raphael 'org.eclipse.jettyのPOM:jettymavenplugin:jar:9.2.11.v20150529がありません。依存関係情報がありません org.eclipse.jettyのプラグイン記述子の取得に失敗しました:jettymavenplugin:9.2.11.v20150529:プラグインorg.eclipse.jetty:jettymavenplugin:9.2.11.v20150529、またはその依存関係の1つを解決できませんでした。 org.eclipse.jettyを見つける:jettymavenplugin:jar :https://repo.maven.apache.org/maven2の9.2.11.v20150529がローカルリポジトリにキャッシュされました。中央の更新間隔が経過するか更新が強制されるまで解決されません。 – vks

+0

'wget https :// repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.11.v20150529/jetty-maven-plugin-9.2.11.v20150529.pom' – Raphael

答えて

2

あなたのプラグインの定義が間違っ<artifactId>を持っています。

ではなく、適切なものを使用します。

<plugin> 
    <groupId>org.eclipse.jetty</groupId> 
    <artifactId>jetty­-maven-­plugin</artifactId> 
    <version>9.4.5.v20170502</version> 
    </plugin> 
+0

愚かな間違い。私はpdfからviに内容をコピーして、何とか' -'はそこになかった.Thanx – vks

関連する問題