diff options
author | gjoranv <gv@verizonmedia.com> | 2019-10-21 16:31:58 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2019-10-23 12:26:58 +0200 |
commit | 485676c026b54664c0715562d79085c924fe9d30 (patch) | |
tree | 62e3fb1131c900e2e34073f2b478934aa32d8a3c /bundle-plugin-test/test-bundles | |
parent | dd59b17378d9a5c380f305fd0865becf0fab9caf (diff) |
Use surefire instead of failsafe plugin.
- No need to use integration tests after test bundles have been
moved to separate modules.
Diffstat (limited to 'bundle-plugin-test/test-bundles')
-rw-r--r-- | bundle-plugin-test/test-bundles/main/pom.xml | 5 | ||||
-rw-r--r-- | bundle-plugin-test/test-bundles/pom.xml | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/bundle-plugin-test/test-bundles/main/pom.xml b/bundle-plugin-test/test-bundles/main/pom.xml index 90d575c2a0b..c9c9ea270eb 100644 --- a/bundle-plugin-test/test-bundles/main/pom.xml +++ b/bundle-plugin-test/test-bundles/main/pom.xml @@ -52,8 +52,9 @@ <artifactId>maven-resources-plugin</artifactId> <executions> <execution> - <id>copy-resources</id> - <phase>prepare-package</phase> + <id>copy-bundle-classpath-mappings-from-test-to-main</id> + <!-- NOTE: Must be done after generating classpath-mappings and before assembling the bundle (see the test-bundles pom) --> + <phase>process-test-sources</phase> <goals> <goal>copy-resources</goal> </goals> diff --git a/bundle-plugin-test/test-bundles/pom.xml b/bundle-plugin-test/test-bundles/pom.xml index b18c0b9ba3f..285efd6183e 100644 --- a/bundle-plugin-test/test-bundles/pom.xml +++ b/bundle-plugin-test/test-bundles/pom.xml @@ -27,8 +27,16 @@ <version>${project.version}</version> <executions> <execution> + <id>generate-classpath-mappings</id> + <phase>generate-test-sources</phase> + <goals> + <goal>generate-bundle-classpath-mappings</goal> + </goals> + </execution> + <execution> <id>package-test-bundles</id> - <phase>process-classes</phase> + <!-- Must be done after generating classpath-mappings and copying it in the 'main' bundle. --> + <phase>test-compile</phase> <goals> <goal>generate-osgi-manifest</goal> <goal>assemble-container-plugin</goal> |