You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christophe Lallement (JIRA)" <ji...@codehaus.org> on 2009/10/13 12:24:26 UTC

[jira] Created: (MJAR-129) Already build test-jar for project which packaging is not jar

Already build test-jar for project which packaging is not jar
-------------------------------------------------------------

                 Key: MJAR-129
                 URL: http://jira.codehaus.org/browse/MJAR-129
             Project: Maven 2.x Jar Plugin
          Issue Type: Bug
    Affects Versions: 2.2
         Environment: java 1.6
mvn 2.2.1, mvn 2.0.9, mvn 2.1.0
            Reporter: Christophe Lallement
         Attachments: test.zip

The classic use case is when you use multi-module project.
pomA  (packaging pom)
  -> pomB (packaging jar)
  -> pomC (packaging jar)
  -> pomD (packaging pom)


pomB,C,D inherit from pomA
We define common plugin configuration into pomA, for example say to jar plugin to build test jar.
but in some case it make not sense (for example when pom is type of 'pom') and in this case an empty jar is construct (then uploaded when we deploy)

Maybe a check to detect zip file is empty could be sufficient or attache this plugin only on specific pom packaging (jar/war/ear ...)

I have attached a sample, just unzip and run mvn package inside "test" directory.

Regards
Christophe

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira