Florian Brunner wrote:
I'm [...] try to migrate a project, which uses JavaCC to Maven with the JavaCC
Maven plugin. Unfortunatly this plugin uses an old version of jtb. Is it
possible to configure it to use jtb v1.4.0? How?
Assuming the newer JTB versions are compatible regarding their command
line interface, the following could work:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>2.6</version>
...
<dependencies>
<dependency>
<!-- Override dependency on 1.3.2 used natively by plugin -->
<groupId>edu.ucla.cs.compilers</groupId>
<artifactId>jtb</artifactId>
<version>1.4.3</version>
<dependency>
</dependencies>
</plugin>
This further assumes that you have installed [0] the new jtb to your
local repository or deployed [1] to your corporate remote repository
(the artifact doesn't appear to be on central).
Benjamin
[0] http://maven.apache.org/plugins/maven-install-plugin/usage.html
[1] http://maven.apache.org/plugins/maven-deploy-plugin/usage.html
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email