[BUILD-47] Investigate why maven-remote-resources-plugin is not used for pom artifacts Created: 01/Nov/10  Updated: 20/Nov/10  Resolved: 20/Nov/10

Status: Closed
Project: Build
Component/s: Poms
Affects Version/s: None
Fix Version/s: POMs 18

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
is duplicated by BUILD-51 Fix "simple" bundles so they don't ne... Closed
Template:
Acceptance criteria:
Empty

 Description   

We have a couple of modules where a simple bundle is used (stk, newsletter, ldap), and where we have to set the packaging to jar, which is inherently wrong: it creates an "empty" jar artifacts (which is attached to the build and thus uploaded to repositories). If we set those modules to packaging:pom, the assembly still works but is missing the .TXT files from our remote resources.

Additionally, we might want to use runOnlyAtExecutionRoot, to investigate.

Also check why our parent pom also uses the "bundle" goal.

http://maven.apache.org/plugins/maven-remote-resources-plugin/usage.html



 Comments   
Comment by Magnolia International [ 20/Nov/10 ]
  1. our parent-pom does not use the remote-resources:bundle goal. Our build-tool module does. What this does is simply create a small META-INF/maven/remote-resources.xml file, which is in turn used by the :process goal to determine which files to copy over. In BUILD-24, we had to configure the :bundle goal to be sure to exclude .inc files to be copied over in our jars.
  2. with BUILD-51, we fixed the "simple" bundles so that no empty jar is needed anymore
  3. the m-remote-res-plugin IS used for packaging:pom artifacts, the real problem lied in the fact that our assembly descriptors did not include the target/maven-shared-archive-resource (or now {{ target/magnolia-build-tools-resources}} since BUILD-50), but only target/classes, which does not exist for artifacts of packaging:pom.
Generated at Sun Feb 11 23:38:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.