前提・実現したいこと
webdav上に作成したmaven repositoryに複数のメタデータをデプロイしたいです。
ブランチAとブランチBで、同一のライブラリに異なる改修を加えたしたため、
webdav上のmaven repositoryにデプロイするメタデータが複数になってしまいました。
ブランチA用リポジトリ、ブランチB用リポジトリというように
webdav上に複数のリポジトリを作成すれば問題は解決するのですが、
jenkinsの設定を変更したり、developに各ブランチをマージするときに
手間がかかったりと、なるべくならば避けたい。
そこで、複数のメタデータをデプロイできるようにすればいいのではないか、
と思ったのですが、そんなことは可能なのでしょうか。
初めての質問になりますので、不足事項などがありましたら、
ご指摘いただけると幸いです。
よろしくお願いいたします。
試したこと
実験1
①ブランチ1のmaven-metadata.xml(ad5、sha1)をデプロイ
②ブランチ1の資産をデプロイ
③ブランチ2の資産をデプロイ
④ブランチ1のMdmManageをビルド
⑤ブランチ2をMdmManageをビルド
結果1:ビルド失敗
18:44:58 > Task :app:compileDebugJavaWithJavac FAILED
18:44:58
18:44:58 FAILURE: Build failed with an exception.
18:44:58
18:44:58 * What went wrong:
18:44:58 Execution failed for task ':app:compileDebugJavaWithJavac'.
18:44:58 > Compilation failed; see the compiler error output for details.
18:44:58
18:44:58 * Try:
18:44:58 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
実験2
①ブランチ1のmaven-metadata.xml(ad5、sha1)をデプロイ
②ブランチ2のmaven-metadata.xml(ad5、sha1)のファイル名を変更
②ブランチ2のmaven-metadata.xml(ad5、sha1)をデプロイ
→なぜかアップロードできない……。
→ファイル名に「-」が入っているファイルはアップロード不可の模様。
③ブランチ1の資産をデプロイ
④ブランチ2の資産をデプロイ
⑤ブランチ1MdmManageをビルド
⑥ブランチ2MdmManageをビルド
結果2:ビルド失敗
19:08:31 > Task :app:compileDebugJavaWithJavac FAILED
19:08:31
19:08:31 FAILURE: Build failed with an exception.
19:08:31
19:08:31 * What went wrong:
19:08:31 Execution failed for task ':app:compileDebugJavaWithJavac'.
19:08:31 > Compilation failed; see the compiler error output for details.
19:08:31
19:08:31 * Try:
19:08:31 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
あなたの回答
tips
プレビュー