I dont believe antlr has compile goal in any of the V2 plugins try one of the 
antlr-plugins such as maven-castor-plugin
 
In the event you do'nt have internet access and want to demo offline try 
download ANTLR from svn checkout http://svn.codehaus.org/mojo/trunk mojo
cd mojo
--determine which folder you will need e.g. solaris / weblogic / was6 ..I use 
castor alot so i cd castor-maven-plugin
cd castor-maven-plugin
mvn compile
mvn package
--install to local repository
mvn install:install-file -DgroupId=org.codehaus.mojo 
-DartifactId=castor-maven-plugin 
-Dversion=2.1-SNAPSHOT -Dfile=pom.xml -Dpackaging=pom
 
--make SURE the maven-plugin's plugin.xml is located in 
./META-INF/maven/plugin.xml then install 
mvn install:install-file -DgroupId=org.codehaus.mojo 
-DartifactId=castor-maven-plugin 
-Dversion=2.1-SNAPSHOT -Dfile=pom.xml -Dpackaging=maven-plugin
 
--you *can* mvn deploy:deploy-file or simply copy the file up such as what is 
seen here
cp ./target/castor-maven-plugin-2.1-SNAPSHOT.jar
.${user.home}/.m2/repository/org/codehaus/mojo/target/castor-maven-plugin-2.1-SNAPSHOT.jar
 
--to test grep for all goals in *Mojo.java 
grep -S -l "@goal" *Mojo.java
 
--i've determined there is a help goal so i will call the help goal of 
castor-maven-plugin with
mvn -e -X org.codehaus.mojo:castor-maven-plugin:2.1-SNAPSHOT:help
 
i've experienced this same problem with struts-plugins and have used this 
methodology successfully 
 
Ciao
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
 

> Date: Thu, 2 Sep 2010 11:45:34 +0200
> Subject: Re: mvn package
> From: [email protected]
> To: [email protected]; [email protected]
> 
> 2010/9/2 Daniel Rindt <[email protected]>:
> > Am Donnerstag, den 02.09.2010, 11:17 +0200 schrieb Antonio Petrelli:
> >> It seems that in your pom you specify explicitly the need of Maven
> >> 2.0.9. What do you see when you run mvn -version?
> > It was as you mentioned. I updated maven2 by hand to 2.2.1, but now i
> > got next errors during the packaging task.
> > ...
> > [WARNING] POM for 'antlr:antlr:pom:2.7.6:compile' is invalid.
> > ...
> > error: error
> > reading /home/drindt/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar;
> > error in opening zip file
> 
> AFAICT, it seems that you have a problem with accessing your local
> repository, maybe they cannot be accessed or they are corrupt.
> This is strange. Did you try with a normal Maven distribution?
> 
> Antonio
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          

Reply via email to