diff options
-rw-r--r-- | jdisc_core_test/integration_test/pom.xml | 2 | ||||
-rw-r--r-- | jdisc_core_test/test_bundles/cert-b/pom.xml | 11 | ||||
-rw-r--r-- | jdisc_core_test/test_bundles/cert-p-jar/pom.xml | 34 | ||||
-rw-r--r-- | jdisc_core_test/test_bundles/pom.xml | 14 | ||||
-rw-r--r-- | parent/pom.xml | 2 |
5 files changed, 61 insertions, 2 deletions
diff --git a/jdisc_core_test/integration_test/pom.xml b/jdisc_core_test/integration_test/pom.xml index b1cebcdfcc6..c876df3273c 100644 --- a/jdisc_core_test/integration_test/pom.xml +++ b/jdisc_core_test/integration_test/pom.xml @@ -22,7 +22,7 @@ </dependency> <dependency> <groupId>org.mockito</groupId> - <artifactId>mockito-all</artifactId> + <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> <dependency> diff --git a/jdisc_core_test/test_bundles/cert-b/pom.xml b/jdisc_core_test/test_bundles/cert-b/pom.xml index dc9f06a33f0..53b28cc5923 100644 --- a/jdisc_core_test/test_bundles/cert-b/pom.xml +++ b/jdisc_core_test/test_bundles/cert-b/pom.xml @@ -20,6 +20,17 @@ <groupId>com.yahoo.vespa</groupId> <artifactId>bundle-plugin</artifactId> <extensions>true</extensions> + <executions> + <!-- Trick to package bundle before test phase, see test_bundles pom --> + <execution> + <id>package-cert-b</id> + <phase>process-classes</phase> + <goals> + <goal>generate-osgi-manifest</goal> + <goal>assemble-container-plugin</goal> + </goals> + </execution> + </executions> <configuration> <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName> </configuration> 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> diff --git a/jdisc_core_test/test_bundles/pom.xml b/jdisc_core_test/test_bundles/pom.xml index a8713fb4e41..c11a94eacc5 100644 --- a/jdisc_core_test/test_bundles/pom.xml +++ b/jdisc_core_test/test_bundles/pom.xml @@ -28,6 +28,20 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> </plugin> + <plugin> + <!-- Trick to package bundles before test phase to allow running 'mvn test' --> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <executions> + <execution> + <id>package-test-bundles</id> + <phase>process-classes</phase> + <goals> + <goal>bundle</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> <modules> diff --git a/parent/pom.xml b/parent/pom.xml index 8591bf40661..2e0bbf1b3ad 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -121,7 +121,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> - <version>2.10</version> + <version>3.1.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> |