diff options
author | gjoranv <gv@verizonmedia.com> | 2019-03-06 12:22:21 +0100 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2019-03-06 12:25:43 +0100 |
commit | dd64d974b4808ca7b0096749ccd71b1fcd794c13 (patch) | |
tree | be95fe30ba18e0262aac6a934469e89bd69a2f30 /jdisc_core_test/test_bundles/cert-p-jar/pom.xml | |
parent | 6342e9119f5f75b8277ec92fff7c337ec01be005 (diff) |
Upgrade maven-dependency-plugin to 3.1.1
- Build jdisc_core_test test bundles right after compile
phase to still allow running 'mvn test'.
- Note that 'mvn compile' still fails because the
integration_test module tries to copy test jars in that phase.
Diffstat (limited to 'jdisc_core_test/test_bundles/cert-p-jar/pom.xml')
-rw-r--r-- | jdisc_core_test/test_bundles/cert-p-jar/pom.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/jdisc_core_test/test_bundles/cert-p-jar/pom.xml b/jdisc_core_test/test_bundles/cert-p-jar/pom.xml index 94a3f5c2322..ad82c53b76b 100644 --- a/jdisc_core_test/test_bundles/cert-p-jar/pom.xml +++ b/jdisc_core_test/test_bundles/cert-p-jar/pom.xml @@ -14,4 +14,38 @@ <version>7-SNAPSHOT</version> <packaging>jar</packaging> <name>${project.artifactId}</name> + <build> + <plugins> + <plugin> + <!-- Trick to package bundle before test phase, see test_bundles pom --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <executions> + <execution> + <id>package-cert-p</id> + <phase>process-classes</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + <execution> + <!-- Trick to avoid replacing the jar created above in the package phase, which is not allowed. --> + <id>default-jar</id> + <phase>none</phase> + </execution> + </executions> + </plugin> + <plugin> + <!-- Packaged as jar, not bundle, so must skip maven-bundle-plugin --> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <executions> + <execution> + <id>package-test-bundles</id> + <phase>none</phase> + </execution> + </executions> + </plugin> + </plugins> + </build> </project> |