diff --git a/build.sh b/build.sh index c9e7846436..01f370f98e 100755 --- a/build.sh +++ b/build.sh @@ -53,7 +53,7 @@ log_step() { BATCH_MODE="-Djansi.force=true -Djansi.passthrough=true -B" log_step "Cleanup Projects" -mvn clean -P!p2-build $PARALLELIZED $BATCH_MODE $DEBUG +mvn clean $PARALLELIZED $BATCH_MODE $DEBUG log_step "Build & Test Core" mvn install -f cobigen --projects !cobigen-core-systemtest $ENABLED_TEST $DEBUG $PARALLELIZED $BATCH_MODE @@ -62,13 +62,13 @@ log_step "Build & Test Core Plugins" mvn install -f cobigen-plugins $ENABLED_TEST $DEBUG $PARALLELIZED $BATCH_MODE log_step "Build Core Plugins - P2 Update Sites" -mvn package bundle:bundle -Pp2-bundle -DskipTests -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=test -mvn install bundle:bundle -Pp2-bundle -DskipTests p2:site -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=test +mvn package bundle:bundle -Pp2-build,p2-bundle -DskipTests -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=test +mvn install bundle:bundle -Pp2-build,p2-bundle -DskipTests p2:site -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=test log_step "Package & Run E2E Tests" mvn test -f cobigen/cobigen-core-systemtest $ENABLED_TEST $DEBUG $BATCH_MODE mvn install -f cobigen-cli $ENABLED_TEST $DEBUG $BATCH_MODE mvn install -f cobigen-maven $ENABLED_TEST $DEBUG $BATCH_MODE mvn install -f cobigen-templates $ENABLED_TEST $DEBUG $BATCH_MODE -mvn install -f cobigen-eclipse $ENABLED_TEST $DEBUG $BATCH_MODE +mvn install -f cobigen-eclipse -Pp2-build $ENABLED_TEST $DEBUG $BATCH_MODE diff --git a/cobigen-eclipse/cobigen-eclipse-test/pom.xml b/cobigen-eclipse/cobigen-eclipse-test/pom.xml index 08223fe822..b2692a7cf7 100644 --- a/cobigen-eclipse/cobigen-eclipse-test/pom.xml +++ b/cobigen-eclipse/cobigen-eclipse-test/pom.xml @@ -84,13 +84,6 @@ p2-build - - - - - pom.xml - - diff --git a/cobigen-eclipse/cobigen-eclipse-updatesite/pom.xml b/cobigen-eclipse/cobigen-eclipse-updatesite/pom.xml index 5d6162cf86..9bb09d3252 100644 --- a/cobigen-eclipse/cobigen-eclipse-updatesite/pom.xml +++ b/cobigen-eclipse/cobigen-eclipse-updatesite/pom.xml @@ -39,4 +39,47 @@ + + + + p2-deploy + + + updatesite.repository + + + + + + + + org.eclipse.tycho.extras + tycho-p2-extras-plugin + ${tycho.version} + + + mirror-files-build-to-upload-dir + deploy + + mirror + + + ${skip.deployment} + + + file:///${p2.repository.build.dir.url} + p2 + + + ${p2.repository.upload.dir.plugin} + false + true + + + + + + + + diff --git a/cobigen-eclipse/pom.xml b/cobigen-eclipse/pom.xml index ed6b32ac7d..56a5799c7c 100644 --- a/cobigen-eclipse/pom.xml +++ b/cobigen-eclipse/pom.xml @@ -236,13 +236,6 @@ p2-build - - - - - pom.xml - - htmlplugin diff --git a/cobigen-plugins/pom.xml b/cobigen-plugins/pom.xml index 696459571a..4fe21eb1c5 100644 --- a/cobigen-plugins/pom.xml +++ b/cobigen-plugins/pom.xml @@ -66,7 +66,8 @@ ${project.name} https://github.com/devonfw/cobigen/blob/v${project.version}/LICENSE-BUNDLE.txt - {maven-resources}, {maven-dependencies}, {META-INF/LICENSE.txt=src/main/resources/META-INF/LICENSEP2BUNDLE.txt} + {maven-resources}, {maven-dependencies}, + {META-INF/LICENSE.txt=src/main/resources/META-INF/LICENSEP2BUNDLE.txt} true @@ -98,6 +99,46 @@ + + p2-deploy + + + updatesite.repository + + + + + + + + org.eclipse.tycho.extras + tycho-p2-extras-plugin + ${tycho.version} + + + mirror-files-build-to-upload-dir + deploy + + mirror + + + ${skip.deployment} + + + file:///${p2.repository.build.dir.url} + p2 + + + ${p2.repository.upload.dir.plugin} + false + true + + + + + + + diff --git a/deploy.sh b/deploy.sh index d98b8eaa59..7cabd8778d 100644 --- a/deploy.sh +++ b/deploy.sh @@ -150,25 +150,25 @@ BATCH_MODE="-Djansi.force=true -Djansi.passthrough=true -B" DEPLOY_SIGN="-Poss -Dgpg.keyname=$GPG_KEYNAME -Dgpg.executable=gpg" log_step "Cleanup Projects" -doRunCommand "mvn clean -P!p2-build $PARALLELIZED $BATCH_MODE" +doRunCommand "mvn clean $PARALLELIZED $BATCH_MODE" log_step "Build & Test Core" # need to exclude cobigen-core-systemtest as of https://issues.sonatype.org/browse/NEXUS-19853 for deployment only! -doRunCommand "mvn deploy -f cobigen --projects !cobigen-core-systemtest -P!p2-build $ENABLED_TEST $DEBUG $PARALLELIZED $BATCH_MODE $DEPLOY_SIGN" +doRunCommand "mvn deploy -f cobigen --projects !cobigen-core-systemtest $ENABLED_TEST $DEBUG $PARALLELIZED $BATCH_MODE $DEPLOY_SIGN" log_step "Build & Test Core Plugins" -doRunCommand "mvn deploy -f cobigen-plugins -P!p2-build $ENABLED_TEST $DEBUG $PARALLELIZED $BATCH_MODE $DEPLOY_SIGN" +doRunCommand "mvn deploy -f cobigen-plugins $ENABLED_TEST $DEBUG $PARALLELIZED $BATCH_MODE $DEPLOY_SIGN" log_step "Build Core Plugins - P2 Update Sites" -doRunCommand "mvn package bundle:bundle -Pp2-bundle -DskipTests -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=$DEPLOY_UPDATESITE " -doRunCommand "mvn install bundle:bundle -Pp2-bundle -DskipTests p2:site -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=$DEPLOY_UPDATESITE " -doRunCommand "mvn deploy -Pp2-bundle -DskipTests -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=$DEPLOY_UPDATESITE" +doRunCommand "mvn package bundle:bundle -Pp2-build,p2-bundle -DskipTests -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=$DEPLOY_UPDATESITE " +doRunCommand "mvn install bundle:bundle -Pp2-build,p2-bundle -DskipTests p2:site -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=$DEPLOY_UPDATESITE " +doRunCommand "mvn deploy -Pp2-build,p2-bundle -DskipTests -f cobigen-plugins --projects !cobigen-javaplugin-parent/cobigen-javaplugin-model,!cobigen-openapiplugin-parent/cobigen-openapiplugin-model,!:plugins-parent,!cobigen-javaplugin-parent,!cobigen-openapiplugin-parent,!cobigen-templateengines $DEBUG $PARALLELIZED $BATCH_MODE -Dupdatesite.repository=$DEPLOY_UPDATESITE" log_step "Package & Run E2E Tests" -doRunCommand "mvn test -f cobigen/cobigen-core-systemtest -P!p2-build $ENABLED_TEST $DEBUG $BATCH_MODE" +doRunCommand "mvn test -f cobigen/cobigen-core-systemtest $ENABLED_TEST $DEBUG $BATCH_MODE" # need to exclude cli-systemtest as of https://issues.sonatype.org/browse/NEXUS-19853 for deployment only! -doRunCommand "mvn deploy -f cobigen-cli --projects !cli-systemtest -P!p2-build $ENABLED_TEST $DEBUG $BATCH_MODE $DEPLOY_SIGN" +doRunCommand "mvn deploy -f cobigen-cli --projects !cli-systemtest $ENABLED_TEST $DEBUG $BATCH_MODE $DEPLOY_SIGN" # need to exclude cobigen-maven-systemtest as of https://issues.sonatype.org/browse/NEXUS-19853 for deployment only! -doRunCommand "mvn deploy -f cobigen-maven --projects !cobigen-maven-systemtest -P!p2-build $ENABLED_TEST $DEBUG $BATCH_MODE $DEPLOY_SIGN" -doRunCommand "mvn deploy -f cobigen-templates -P!p2-build $ENABLED_TEST $DEBUG $BATCH_MODE $DEPLOY_SIGN" -doRunCommand "mvn deploy -f cobigen-eclipse -DskipTests $ENABLED_TEST $DEBUG $BATCH_MODE -Dupdatesite.repository=$DEPLOY_UPDATESITE --projects cobigen-eclipse-updatesite" +doRunCommand "mvn deploy -f cobigen-maven --projects !cobigen-maven-systemtest $ENABLED_TEST $DEBUG $BATCH_MODE $DEPLOY_SIGN" +doRunCommand "mvn deploy -f cobigen-templates $ENABLED_TEST $DEBUG $BATCH_MODE $DEPLOY_SIGN" +doRunCommand "mvn deploy -f cobigen-eclipse -Pp2-build -DskipTests $ENABLED_TEST $DEBUG $BATCH_MODE -Dupdatesite.repository=$DEPLOY_UPDATESITE" diff --git a/pom.xml b/pom.xml index a2db602e08..b3ba3290e7 100644 --- a/pom.xml +++ b/pom.xml @@ -494,13 +494,6 @@ p2-build - - - - - pom.xml - - @@ -539,34 +532,6 @@ - - - - org.eclipse.tycho.extras - tycho-p2-extras-plugin - ${tycho.version} - - - mirror-files-build-to-upload-dir - deploy - - mirror - - - ${skip.deployment} - - - file:///${p2.repository.build.dir.url} - p2 - - - ${p2.repository.upload.dir.plugin} - false - true - - - -