It's a good practice to pin down the specific version of a plugin you
want to use. In this case, specifying <version>2.0.2</version> for
the compiler plugin would avoid the issue for you.
I'm looking into the NPE, but if you had a test project that
displayed the error, it would help me a lot to debug and fix the
problem.
-john
On Feb 13, 2008, at 5:10 AM, Hendrik Busch wrote:
Hi!
We are experiencing the same problem. After adding the codehaus
snapshot
repository to our Artifactory server the plexus-compiler could be
downloaded but we still get build errors.
Caused by: java.lang.NullPointerException
at
org.codehaus.plexus.compiler.javac.JavacCompiler.compile
(JavacCompiler.java:120)
at
org.apache.maven.plugin.AbstractCompilerMojo.execute
(AbstractCompilerMojo.java:500)
Is there any way to prevent Maven from using snapshot versions of
plugins? Just disabling the repos does not seem to suffice.
Regards,
Hendrik Busch
Am Mittwoch, den 13.02.2008, 10:39 +0100 schrieb Marco Huber:
I got the similar error this morning, after starting a normal clean
install of my project.
As I see from the error message the "maven-compiler-plugin" 2.1-
SNAPSHOT
tried to use the 1.6-SNAPSHOT of the "plexus-compiler".
I nailed the version of the maven-compiler-plugin to 2.0.2 and all
works.
Does the developer of the maven-compiler-plugin or plexus-compiler
missed to deploy the neccessary snapshot to a public repository ;-)
Regards
Marco
Wayne Fay wrote:
The reason it is failing is because you are trying to utilize
SNAPSHOT
artifacts and yet you have not configured a Snapshot repository in
your pom.xml.
It looks like you're trying to compile Maven itself, or something
along those lines? Why are you doing this? This is generally
something
that rookies should avoid doing.
What exactly are you trying to do? Perhaps you can post your pom.xml
somewhere so we can take a look and help you figure things out.
Wayne
On 2/12/08, krishnan.1000 <[EMAIL PROTECTED]> wrote:
Hi ,
I am a rookie using Maven. I have got this error. I have created
this pom
and I dont know what is causing this error. I looked at the
forum but I did
not understand what was being discussed%-O
Please help me.
Thanks,
Karthik
1) org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-compiler-javac -Dversion=1.6-SNAPSHOT -
Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy
the file
there:
mvn deploy:deploy-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-compiler-javac -Dversion=1.6-SNAPSHOT -
Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1)
org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.1-
SNAPSHOT
2) org.codehaus.plexus:plexus-compiler-javac:jar:1.6-
SNAPSHOT
2) org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-compiler-api -Dversion=1.6-SNAPSHOT -
Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy
the file
there:
mvn deploy:deploy-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-compiler-api -Dversion=1.6-SNAPSHOT -
Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1)
org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.1-
SNAPSHOT
2) org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT
3) org.codehaus.plexus:plexus-compiler-manager:jar:1.6-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-compiler-manager -Dversion=1.6-SNAPSHOT -
Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy
the file
there:
mvn deploy:deploy-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-compiler-manager -Dversion=1.6-SNAPSHOT -
Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1)
org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.1-
SNAPSHOT
2) org.codehaus.plexus:plexus-compiler-manager:jar:1.6-
SNAPSHOT
--
View this message in context:
http://www.nabble.com/Maven-does-not-compile%
3Aorg.codehaus.plexus%3Aplexus-compiler-javac%3Ajar%3A1.6-
SNAPSHOT-tp15447362s177p15447362.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]
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Mit freundlichen GrüÃen / Kind regards
Hendrik Busch - Stellv. Leiter der Softwareentwicklung
LexisNexis Deutschland GmbH
http://www.lexisnexis.de
Feldstiege 100
D-48161 Münster
phone +49 (0) 2533-9300-455
fax +49 (0) 02533-9300-50
[EMAIL PROTECTED]
LexisNexis Deutschland GmbH, Münster
Geschäftsführer: Claus Damwerth, Michael Freter, Lutz Kleinrensing
AG Münster, HRB 7778 - USt.-ID: DE 152942868 - St.-Nr. 143/174/60571
Ein Unternehmen der Reed Elsevier Gruppe
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john
rss: http://feeds.feedburner.com/ejlife/john