hi i m unsing hyperjaxb3 with maven2. Unfortunately it is overwrighting a
file : persistence.xml.
I tried to use ant plugin in order to first copy the persistence.xml to
persistence_old.xml and the copy that one back to persistence.xml.
[code]
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy-persistence</id>
<phase>process-sources</phase>
<configuration>
<tasks>
<echo message="Copying file"/>
<copy
file="src/main/resources/persistence.xml"
tofile="src/main/java/META-INF/persistence_old.xml"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
[/code]
same for the copy back. Unfortunately the 2 copies are done first. Is there
any way to define an order of execution of the plugins.
thnks for yr help
--
View this message in context:
http://www.nabble.com/Maven-prebuild-postbuild-hyperjaxb3-tp18623905p18623905.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]