Hi,
i need to use the sun-jaxb-compiler (xjc) which only seems to work
correctly with the antrun plugin.
The problem now is to put the generated .java files in a directory which
is a pom-source-folder or
one which is later added to the pom-source-folders.
Since i dont know a way to do this fromt he ant snipshet, my current -
bad - solution is to generate
them into ${basedir}/src/main/java.
Any ideas?
Thanks
jens
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<configuration>
<tasks>
<taskdef name="xjc"
classname="com.sun.tools.xjc.XJCTask"/>
<xjc
schema="src/main/xsd/de/dailab/util/jaxb/agentrole/AgentRole.xsd"
package="de.dailab.util.jaxb.agentrole"
target="${basedir}/src/main/java"
extension="false"/>
<copy
todir="${project.build.directory}/classes">
<fileset
dir="${basedir}/src/main/java" excludes="**/*.java"/>
</copy>
</tasks>
</configuration>
</executions>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]