You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Heuer <he...@gmail.com> on 2012/04/18 18:40:41 UTC

questions about Apache parent pom (and Commons parent pom)

Hello,

We have adapted the Commons parent pom (and by extension the Apache
parent pom) with some changes for our internal parent pom.  We are
running into an issue with a combination of maven release plugin +
maven bundle plugin + maven jar plugin for pom packaging projects.  Is
this the right mailing list for this question?

E.g.

$ mvn -Prelease install
[INFO] ------------------------------------------------------------------------
[INFO] Building parent 1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:manifest (bundle-manifest) @ parent ---
[WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:jar (create-source-jar) @ parent >>>
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:jar (create-source-jar) @ parent <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar (create-source-jar) @ parent ---
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:test-jar (create-source-jar) @ parent >>>
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:test-jar (create-source-jar) @ parent <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:test-jar (create-source-jar) @ parent ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ parent ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-jar-plugin:2.4:test-jar (default) on
project parent: Error assembling JAR: Manifest file:
/xxx/parent/target/osgi/MANIFEST.MF does not exist. -> [Help 1]

First, source and test jars shouldn't be created for a pom packaging
project, and second, the jar plugin shouldn't fail if the manifest
generated by the bundle plugin isn't present.

   michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org