2
尝试使用NPanday和Jenkins发布.Net项目时遇到了一些问题。使用NPanday和Jenkins发布多模块.Net项目时的依赖项错误
我的项目结构如下:
net_test (parent, with 2 modules)
net_test_1
net_test_2 (dependent of net_test_1)
当我尝试使用这些与第一
mvn release:prepare
定期Maven的命令行,然后
mvn release:perform
一切正常释放精细。但是,当我尝试使用jenkins重新演示项目时,net_test_2模块表示它无法解析我尝试发布的版本中的net_test_1。这当然是这样的,因为它还没有建成,但是因为它在反应堆中,所以它将被构建并且依赖性不应该被解决。
该错误消息如下
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building net_test_2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] [compile:initialize {execution: default-initialize}]
[INFO] 2012-maj-18 10:48:44 npanday.PathUtil getDotNetArtifact
[INFO] VARNING:
[INFO] NPANDAY-1005-0001: Error copying dependency com.apptus.dag:net_test_1:dotnet-library:1.0.1:compile File C:\.m2\repository\com\apptus\dag\net_test_1\1.0.1\net_test_1-1.0.1.dll does not exist
[INFO] Downloading: http://repo.apptus.local/content/repositories/releases//com/apptus/dag/net_test_1/1.0.1/net_test_1-1.0.1.dll
[INFO] [INFO] Unable to find resource 'com.apptus.dag:net_test_1:dotnet-library:1.0.1' in repository releases (http://repo.apptus.local/content/repositories/releases/)
[INFO] 2012-maj-18 10:48:48 npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
[INFO] VARNING: NPANDAY-181-121: Problem in resolving assembly: com.apptus.dag:net_test_1:dotnet-library:1.0.1:compile, Message = Unable to download the artifact from any repository
[INFO]
[INFO] Try downloading the file manually from the project website.
[INFO]
[INFO] Then, install it using the command:
[INFO] mvn install:install-file -DgroupId=com.apptus.dag -DartifactId=net_test_1 -Dversion=1.0.1 -Dpackaging=dotnet-library -Dfile=/path/to/file
[INFO]
[INFO] Alternatively, if you host your own repository you can deploy the file there:
[INFO] mvn deploy:deploy-file -DgroupId=com.apptus.dag -DartifactId=net_test_1 -Dversion=1.0.1 -Dpackaging=dotnet-library -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[INFO]
[INFO]
[INFO] com.apptus.dag:net_test_1:dotnet-library:1.0.1
我不知道这是不是与NPanday,詹金斯或别的东西了M2版本的插件有问题。
对此有何更新? –