Author: vmassol
Date: 2008-01-03 11:32:33 +0100 (Thu, 03 Jan 2008)
New Revision: 6607
Modified:
xwiki-products/xwiki-enterprise/branches/xwiki-enterprise-1.1/installers/generic/pom.xml
Log:
Real fix for excluding the hibernate.cfg.xml file while waiting for the Maven
Dependency plugin version 2.0 alpha 5 which fixes the exclude issue.
Merged from 1.2 branch (rev 6605).
Modified:
xwiki-products/xwiki-enterprise/branches/xwiki-enterprise-1.1/installers/generic/pom.xml
===================================================================
---
xwiki-products/xwiki-enterprise/branches/xwiki-enterprise-1.1/installers/generic/pom.xml
2008-01-03 10:29:09 UTC (rev 6606)
+++
xwiki-products/xwiki-enterprise/branches/xwiki-enterprise-1.1/installers/generic/pom.xml
2008-01-03 10:32:33 UTC (rev 6607)
@@ -69,6 +69,12 @@
<version>${platform.web.version}</version>
<type>war</type>
<outputDirectory>${project.build.directory}/container/webapps/xwiki</outputDirectory>
+ <!-- Exclude default Hibernate config file since we're
instead using one with the
+ selected database configuration defined.
+ NOTE: This is only supported by version 2.0-alpha-5 and
above of the Dependency plugin which is
+ why we are using the AntRun plugin below to remove the
Hibernate config file. Uncomment when
+ the 2.0-alpha-5 release is out. -->
+ <!--excludes>**/hibernate.cfg.xml</excludes-->
</artifactItem>
<artifactItem>
<groupId>com.xpn.xwiki.products</groupId>
@@ -100,6 +106,27 @@
</executions>
</plugin>
<plugin>
+ <!-- The Dependency plugin only supports excluding files in version
2.0-alpha-5 and above and at this time the
+ latest released version is 2.0-alpha-4. Thus we need to perform
this hack to remove the Hibernate
+ config file. We want to remove it since we want to use one we
provide that has the HSQLDB database set
+ up by default. Remove this when version 2.0-alpha-5 is released.
-->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <delete
file="${project.build.directory}/container/webapps/xwiki/WEB-INF/hibernate.cfg.xml"/>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>izpack-maven-plugin</artifactId>
<version>1.0-20070710-dev</version>
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications