You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2008/04/16 21:18:56 UTC

[jira] Updated: (MJAR-105) Regression: Build fails for an empty main jar with 2.2

     [ http://jira.codehaus.org/browse/MJAR-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MJAR-105:
---------------------------------

    Attachment: MJAR-105.zip

I was unable to reproduce this using Maven 2.0.8 or 2.0.9.
Here's a sample project that works-for-me ^tm^

> Regression: Build fails for an empty main jar with 2.2
> ------------------------------------------------------
>
>                 Key: MJAR-105
>                 URL: http://jira.codehaus.org/browse/MJAR-105
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Joerg Schaible
>         Attachments: MJAR-105.zip
>
>
> We have quite some projects with integration tests that have only test code, but no sources (neither Java nor other resources) that are included into the main artifact. With jar-plugin version 2.2 these kind of projects suddenly fail:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [INFO] Building eIP TempAccess Integration Tests
> [INFO]    task-segment: [clean, deploy]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory D:\work\standard\eIP\TempAccess\EnterpriseArchive\integration-test-jar\target
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Compiling 1 source file to D:\work\standard\eIP\TempAccess\EnterpriseArchive\integration-test-jar\target\test-classes
> [INFO] [surefire:test]
> [INFO] Tests are skipped.
> [INFO] [jar:jar]
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error assembling JAR
> Embedded error: You must set at least one file.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 14 minutes 44 seconds
> [INFO] Finished at: Wed Apr 16 08:18:43 CEST 2008
> [INFO] Final Memory: 111M/200M
> [INFO] ------------------------------------------------------------------------
> {noformat}
> With 2.1 an empty main jar has been created and this behaviour was explicitly acknowledged in MJAR-8.
> We stumbled about this upgrading from M205 to M209 that allowed us to use also the newer jar-plugin version. Currently we're stuck with jar-plugin version 2.1 because of this.

-- 
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