Red Hat Bugzilla – Bug 1019379
Remove top-level pom from dtgov-demos zip
Last modified: 2015-08-02 19:45:14 EDT
The top-level pom.xml should be removed from the dtgov-demos zip. Something like (untested):
diff --git a/dtgov-demos/src/main/assembly/dist.xml b/dtgov-demos/src/main/assembly/dist.xml
index 93814d8..d521aec 100644
@@ -12,6 +12,7 @@
@@ -23,4 +24,4 @@
\ No newline at end of file
I don't believe you can remove it. You still need it for common dependencies, and repository info etc.
The DTGov project demos work just fine - and the only difference is that the vmon script runs over it. Assigning this back to Nick. Please let me know how I can help.
Julian is correct.
We utilise the dtgov-distro zip. Looking inside that, it has the demo directory with
i.e. no src. I can reproduce the same error in community code (i.e. no vman) by attempting to build the dtgov-demos from the distribution zip.
After further investigation, the real problem is that the dtgov-demos pom.xml is
used at build time to create dtgov-demos.zip distribution and is also contained
in that distribution. This pom is also referenced in the demos as their parent POM (so must be included in the distribution). The result is that anyone attempting to run maven against this POM after unpacking the dtgov-demos.zip sees the maven build failure (when trying to create the distribution).
Solutions to this are:
1) remove the assembly of the dtgov-demos.zip from the dtgov-demos pom.xml and create a conditionally included assembly module to do this (see the SwitchYard quickstarts POM for an example)
2) move the dtgov-demos.zip creation into a separate module outside the dtgov-demos module heirarchy
1) above is probably simpler
3. How about if we simply add the assembly.xml? Seems to make the most sense to me.
Resolved by modifying the top level BOM.
Verified in FSW 6.0.0.ER6 (Beta).