for goal javacc:javacc you have to specify explicitly ${basedir} if you change
<sourceDirectory>
------------------------------------------------------------------------------------------------
Key: MJAVACC-23
URL: http://jira.codehaus.org/browse/MJAVACC-23
Project: Maven 2.x Javacc Plugin
Issue Type: Bug
Affects Versions: 2.1
Environment: winxp, cygwin
Reporter: Steffen Mazanek
I use jjtree to generate the input for javacc. So my input-Directory for
javacc-goal has to be target/generated-sources/jjtree, however this does only
work, if I call mvn from the directory of this pom. But this pom is a
sub-module pom und calling mvn from the top level project directory I get an
error that the directory cannot be found. If I add ${basedir} it works fine.
It should not be necessary to add ${basedir}.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>generate-parser-spec</id>
<goals>
<goal>jjtree</goal>
</goals>
</execution>
<execution>
<id>generate-java-classes</id>
<configuration>
<sourceDirectory>${basedir}/target/generated-sources/jjtree</sourceDirectory>
</configuration>
<goals>
<goal>javacc</goal>
</goals>
</execution>
</executions>
</plugin>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email