[ http://jira.codehaus.org/browse/MDEPLOY-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182394#action_182394 ]
Ronald van de Kuil edited comment on MDEPLOY-105 at 7/3/09 4:48 AM: -------------------------------------------------------------------- I ran the debugger on the maven-jar-plugin. The JarMojo updates the jar with the target folder during the deploy phase. Where it calls File jarFile = createArchive(); When I step into this method I can see that the following class updates the jar. org.apache.maven.archiver.MavenArchiver This occurs in the JarMojo at line 218: archiver.createArchive( project, archive ); was (Author: rollantz): I ran the debugger on the maven-jar-plugin. The JarMojo updates the jar with the target folder during the deploy phase. Where it calls File jarFile = createArchive(); > mvn deploy inserts target directory during jar build when using a resources > section > ----------------------------------------------------------------------------------- > > Key: MDEPLOY-105 > URL: http://jira.codehaus.org/browse/MDEPLOY-105 > Project: Maven 2.x Deploy Plugin > Issue Type: Bug > Affects Versions: 2.4 > Environment: MVN 2.1.0, WindowsXP > Reporter: Ronald van de Kuil > 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