You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bernard Perchman (JIRA)" <ji...@codehaus.org> on 2008/07/17 06:22:26 UTC
[jira] Commented: (MJAR-79) META-INF/persistence.xml excluded from
artifact when index=true
[ http://jira.codehaus.org/browse/MJAR-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142129#action_142129 ]
Bernard Perchman commented on MJAR-79:
--------------------------------------
Careful - the inclusion of persistence.xml is not specified in the maven-jar-plugin. Simply add a resources tag element to your build.
<resources>
<resource>
<filtering>false</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>META-INF/persistence.xml</include>
</includes>
</resource>
</resources>
> META-INF/persistence.xml excluded from artifact when index=true
> ---------------------------------------------------------------
>
> Key: MJAR-79
> URL: http://jira.codehaus.org/browse/MJAR-79
> Project: Maven 2.x Jar Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: Linux / JDK 1.6.0 / Maven 2.0.7
> Reporter: Zarick Lau
> Assignee: Olivier Lamy
> Priority: Minor
> Fix For: 2.2
>
>
> When I set 'index=true' in plugin configuration,
> files in src/main/resources/META-INF are excluded from the artifactId.
> This may be due to this issue (as pointed by Max Bowsher):
> http://jira.codehaus.org/browse/PLXCOMP-10
> Update to newer version of plexus-arvhiver may solve it
> Ref: http://www.mail-archive.com/users@maven.apache.org/msg70861.html
--
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