[更新和解决方案正在我的回应之下]
我正在使用npanday,一个使用maven构建.net项目的项目 在加载步骤后,我已经找到了如何使用maven编译/安装一些项目。
这项工作就在我的命令控制台或visual studio上,但是一旦jenkins尝试编译它,maven就无法构建它...
以下是Jenkins的失败输出:
-------------------------------------------------- ----------------------------------
mavenExecutionResult异常不为空
消息:失败 执行目标 org.apache.npanday.plugins:NPanday.Plugin.Settings.JavaBinding:1.5.0 - 孵化 - 快照:生成的设置 项目ConsoleApplication400上的(default-generate-settings): NPANDAY-115-010:解决插件工件时出错原因: NPANDAY-115-010:解决插件工件时出错 - 堆栈跟踪 :
org.apache.maven.lifecycle.LifecycleExecutionException:失败 执行目标 org.apache.npanday.plugins:NPanday.Plugin.Settings.JavaBinding:1.5.0 - 孵化 - 快照:生成的设置 项目ConsoleApplication400上的(default-generate-settings): NPANDAY-115-010:解决插件工件的错误 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
在 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
在 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
在 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
在 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
在 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
在 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
在 org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(maven3Launcher.java:79)
在 sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)
在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
在 java.lang.reflect.Method.invoke(Method.java:597)
在 org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
在 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
在 org.jvnet.hudson.maven3.agent.Maven3Main.launch(maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
在 hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
在 hudson.remoting.UserRequest.perform(UserRequest.java:118)
在 hudson.remoting.UserRequest.perform(UserRequest.java:48)
在 hudson.remoting.Request $ 2.run(Request.java:326)
在 hudson.remoting.InterceptingExecutorService $ 1.call(InterceptingExecutorService.java:72)
在 java.util.concurrent.FutureTask $ Sync.innerRun(FutureTask.java:303)
在 java.util.concurrent.FutureTask.run(FutureTask.java:138)
在 java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
造成: org.apache.maven.plugin.MojoFailureException:NPANDAY-115-010:错误 关于解决插件工件的问题 npanday.plugin.AbstractMojo.execute(AbstractMojo.java:189)
在 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
在 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 27更多
由于: org.apache.maven.artifact.resolver.ArtifactNotFoundException:可以 找不到神器 org.apache.npanday.plugins:NPanday.Plugin.Settings:DLL:1.5.0 - 孵化 - 快照
尝试 从项目网站手动下载文件。
然后, 使用以下命令安装它:
mvn install:install-file -DgroupId = org.apache.npanday.plugins -DartifactId = NPanday.Plugin.Settings -Dversion = 1.5.0-incubating-SNAPSHOT -Dpackaging = dotnet-maven-plugin -Dfile = / path / to / file
<或者,如果您拥有自己的存储库,则可以在那里部署文件:
mvn deploy:deploy-file -DgroupId = org.apache.npanday.plugins -DartifactId = NPanday.Plugin.Settings -Dversion = 1.5.0-incubating-SNAPSHOT -Dpackaging = dotnet-maven-plugin -Dfile = / path / to / file -Durl = [url] -DrepositoryId = [id]
org.apache.npanday.plugins:NPanday.Plugin.Settings:dotnet-maven-plugin:1.5.0-incubating-SNAPSHOT
来自 指定的远程存储库:
中央 (http://repo.maven.apache.org/maven2,releases = true, snapshots = false)
在 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
at npanday.resolver.DefaultNPandayArtifactResolver.resolve(DefaultNPandayArtifactResolver.java:77)
在 npanday.executable.impl.NetExecutableFactoryImpl.getPluginExecutable(NetExecutableFactoryImpl.java:396)
在 npanday.plugin.AbstractMojo.execute(AbstractMojo.java:173)
... 29 更多
由于: org.sonatype.aether.resolution.ArtifactResolutionException:不能 找到神器 org.apache.npanday.plugins:NPanday.Plugin.Settings:dll:1.5.0-incubating-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:213)
... 34更多
由于: org.sonatype.aether.transfer.ArtifactNotFoundException:找不到 神器 org.apache.npanday.plugins:NPanday.Plugin.Settings:dll:1.5.0-incubating-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)
... 38更多信道停止
已完成:失败
答案 0 :(得分:0)