This is my pom file. My application should depend on the output jar,
configuration.jar. How can I let my application depends on this jar file?
How can I add the generated classes file on the <dependency> node?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xmlbeans-maven-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<goals>
<goal>xmlbeans</goal>
</goals>
</execution>
</executions>
<inherited>false</inherited>
<configuration>
<schemaDirectory>src/main/xsd</schemaDirectory>
<outputJar>target/configure.jar</outputJar>
</configuration>
</plugin>
Anders Hammar wrote:
>
> If we're talking about the Codehaus mojo, it should generate source/class
> files as well. I suggest you first bind the plugin to the build process by
> adding it to the build part of your pom. Most likely it will make things
> work, but if not have a look at the configuration details:
> http://mojo.codehaus.org/xmlbeans-maven-plugin/xmlbeans-mojo.html
>
> /Anders
>
> On Wed, Aug 26, 2009 at 11:43, youhaodeyi <[email protected]> wrote:
>
>>
>> I use xmlbeans plugin in my maven project. When running "mvn
>> xmlbeans:xmlbeans", it will generate a jar file in target directory. How
>> can I let my application depend on the xmlbeans generated jar file?
>> --
>> View this message in context:
>> http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25149630.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]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25150461.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]