You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/07/03 17:41:23 UTC

[jira] Closed: (MJAR-120) mvn deploy inserts target directory during jar build when using a resources section

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

Benjamin Bentmann closed MJAR-120.
----------------------------------

      Assignee: Benjamin Bentmann
    Resolution: Not A Bug

The project is misconfigured, the resource exclusion {{<exclude>target/*.*</exclude>}} only excludes immediate children of the {{target}} directory but not say {{target/classes/SomeClass.class}}. Run "mvn package package ... package" and see the output JAR continuously grow.

I strongly suggest to adopt the [Maven Standard Directory Layout|http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html]. As a minimun, refactor to project such that the base directory is not the base of the source/resource files.

> mvn deploy inserts target directory during jar build when using a resources section
> -----------------------------------------------------------------------------------
>
>                 Key: MJAR-120
>                 URL: http://jira.codehaus.org/browse/MJAR-120
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: MVN 2.1.0, WindowsXP
>            Reporter: Ronald van de Kuil
>            Assignee: Benjamin Bentmann
>         Attachments: pom.xml
>
>
> When I run mvn install on the attached pom I get a jar without a target directory inside. This is exactly what I need.
> When I run mvn deploy then the jar is updated with the target directory. This is a problem for me as I need to pass the jar to the websphere service deploy task. The service deploy task cannot handle the files in the target directory. The service deploy task aborts with errors.
> The JAR is special as it contains a resources section. 
> I have another jar project without resources to include and for this project the target folder is not inserted during the deploy phase.

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