Hi Steffen,
one save and easy way is using maven-antrun-plugin. Here, you can think
ant. Look at http://maven.apache.org/plugins/maven-antrun-plugin to
find out more on how to access maven's classpaths and more. One
particular problem I came across in this context with Java5:
JDK-5.0 comes bundled with its own XML tools which are still buggy. I
couldn't find out how to turn off the bundled tools and use, for
example, the XALAN archive in maven's repository. Therefore, when using
XML tools , I run maven with JDK-1.4.
HTH
Armin
Steffen Mazanek wrote:
Hello,
our project consists of multiple subprojects. One subproject
implements a code generator, that takes an xml and generates
java.
Another subproject is called examples and consists of several
subprojects (basically just the xml-files for the generator).
How should I invoke the generator? How should the example
poms look like? In which subdirectories should they sit?
The code has to be generated and compiled.
I tried the maven exec plugin but I failed.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>
foo.Generator
</mainClass>
<keepAlive>true</keepAlive>
<arguments>
<argument>-c</argument>
<argument>pathto\spec.xml</argument>
</arguments>
</configuration>
</plugin>
I guess it failed because of a classpath problem. How can I track this?
Best regards,
Steffen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]