2

NPanday と Jenkins を使用して .Net プロジェクトをリリースしようとすると、いくつかの問題が発生します。

私のプロジェクト構造は次のとおりです。

net_test (parent, with 2 modules)
  net_test_1
  net_test_2 (dependent of net_test_1)

最初に通常のmavenコマンドラインを使用してこれらをリリースしようとすると

mvn release:prepare

その後

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、jenkins の M2 リリース プラグイン、またはその他の問題であるかどうかはわかりません。

4

1 に答える 1

1

IIRC、準備の目標は、少なくとも「インストール」するように設定する必要があります。ただし、これは1.5で修正される予定です(まだリリースされていません)。

于 2012-08-07T13:47:20.007 に答える