[
https://issues.apache.org/jira/browse/MJAR-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957219#comment-17957219
]
Matthias Bünger commented on MJAR-120:
--------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-jar-plugin#157|https://github.com/apache/maven-jar-plugin/issues/157].
> mvn deploy inserts target directory during jar build when using a resources
> section
> -----------------------------------------------------------------------------------
>
> Key: MJAR-120
> URL: https://issues.apache.org/jira/browse/MJAR-120
> Project: Maven JAR Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: MVN 2.1.0, WindowsXP
> Reporter: Ronald van de Kuil
> Assignee: Benjamin Bentmann
> Priority: Major
> 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 was sent by Atlassian Jira
(v8.20.10#820010)