[
https://issues.jboss.org/browse/RF-12385?page=com.atlassian.jira.plugin.s...
]
Juraj Húska commented on RF-12385:
----------------------------------
IMHO the problem is in the different war plugin settings for release profile and the one
which is in build section of the entire app (invoked when not profiles is set).
{code:xml|title=War plugin in top build of showcase, for Tomcat}
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<classifier>${container.classifier}</classifier>
<outputFileNameMapping>${war.outputFileNameMapping}</outputFileNameMapping>
<webResources>
<resource>
<directory>${container.webapp}</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<targetPath>WEB-INF/src</targetPath>
</resource>
</webResources>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
{code}
{code:xml|title=War plugin in release profile for Tomcat}
<plugin>
<artifactId>maven-war-plugin</artifactId>
<executions>
<execution>
<id>default-war</id>
<configuration>
<classifier>tomcat6</classifier>
<webappDirectory>${project.build.directory}/${project.build.finalName}-tomcat6</webappDirectory>
<webResources>
<resource>
<directory>src/main/webapp-tomcat</directory>
<targetPath>/</targetPath>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources-tomcat</directory>
<targetPath>WEB-INF/classes</targetPath>
</resource>
<resource>
<directory>src/main/java</directory>
<targetPath>WEB-INF/src</targetPath>
</resource>
</webResources>
</configuration>
</execution>
{code}
Notice please missing
{code:xml}
<resource>
<directory>src/main/resources-tomcat</directory>
<targetPath>WEB-INF/classes</targetPath>
</resource>
{code}
in the first example
Packaging showcase from source adds empty persistence.xml to tomcat6
war
------------------------------------------------------------------------
Key: RF-12385
URL:
https://issues.jboss.org/browse/RF-12385
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: build/distribution, showcase
Affects Versions: 4.3.0.Milestone1
Environment: sources of showcase from distribution zip
Reporter: Juraj Húska
Fix For: 4.3.0.Milestone2
Packaging showcase from sources which are in the distribution zip causes to add to the
final packaged .war a persistence.xml which contains just opening and closing tags.
The persistence.xml in src/main/resources-jbas71/META-INF is correct.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira