I am having trouble getting maven to compile correctly
with antlr. I kept as many defaults as I could. The
directory looks like this
-Project
|
--src
|
--antlr
|
-- t.g
|
--java
|
--package
|
--Main.java
|
--target
I expect maven antlr:prepare-filesystem to create
target/antlr. maven antlr:generate should create java
files in target/antlr. maven java:compile should
compile the java files in target/antlr and Main.java
to target/classes.
Here is my project.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<pomVersion>3</pomVersion>
<id>thunder_load</id>
<name>Thunder Load</name>
<currentVersion>1.0</currentVersion>
<dependencies>
<dependency>
<id>antlr</id>
<version>2.7.2</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/java</sourceDirectory>
</build>
</project>
Here is my project.properties
maven.antlr.src.dir=${basedir}/src/antlr
maven.antlr.grammars=t.g
When I run maven java:compile, the directories
target/antlr and target/classes are created. t.g is
converted to some java files in target/antlr but
neither these nor Main.java are compiled. I get the
following error:
BUILD FAILED
File...... file:/C:/Documents and
Settings/wall/.maven/plugins/maven-java-plugin-1.3/
Element... ant:javac
Line...... 34
Column.... 48
Compile failed; see the compiler error output for
details.
Compiler errors are from compiling Main.java. I
thought the antlr classes would be compiled first, but
they are not. My system is windows 2000, java
1.4.1_04, maven-1.0-rc1, antlr2.7.2
I know it is something stupid, I just can't figure out
what I am doing wrong. Thanks for the help.
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]