You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "krishnan.1000" <kr...@gmail.com> on 2008/02/13 02:31:15 UTC

Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by David Larsson <da...@albacore.se>.
Solved it by setting

<plugin>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>2.1-20080129.223043-7</version>

and cleaning my repository from maven-compiler-plugin 2.1-SNAPSHOT

/Dave

David Larsson wrote:
> I have the same problem as Hendrik but I really need to use 
> maven-compiler-plugin 2.1-SNAPSHOT. Is there anything I can do to fix 
> this problem?
>
> Regards
> David
>
> Martin Höller wrote:
>> On Wednesday 13 February 2008 wrote Hendrik Busch:
>>  
>>> Is there any way to prevent Maven from using snapshot versions of
>>> plugins? Just disabling the repos does not seem to suffice.
>>>     
>>
>> That's because you already have them in your local repo 
>> (~/.m2/repository/). Along with disabling the snapshot repo, you 
>> should remove the coresponding subtree from your local repo, e.g. 
>> ~/.m2/repository/org/codehaus/plexus/plexus-compiler.
>>
>> The even better solution would be to specify which version of a 
>> plugin you'd like to use in the pluginManagement-section.
>>
>> hth,
>> - martin
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by John Casey <jd...@commonjava.org>.
If you have a test project I can use to verify, debug, and fix the  
error, that would help immensely. I tested the plugin before I  
deployed it yesterday, but apparently didn't have the configuration  
needed to express this problem.

Thanks,

-john

On Feb 13, 2008, at 5:48 AM, David Larsson wrote:

> I have the same problem as Hendrik but I really need to use maven- 
> compiler-plugin 2.1-SNAPSHOT. Is there anything I can do to fix  
> this problem?
>
> Regards
> David
>
> Martin Höller wrote:
>> On Wednesday 13 February 2008 wrote Hendrik Busch:
>>
>>> Is there any way to prevent Maven from using snapshot versions of
>>> plugins? Just disabling the repos does not seem to suffice.
>>>
>>
>> That's because you already have them in your local repo (~/.m2/ 
>> repository/). Along with disabling the snapshot repo, you should  
>> remove the coresponding subtree from your local repo, e.g. ~/.m2/ 
>> repository/org/codehaus/plexus/plexus-compiler.
>>
>> The even better solution would be to specify which version of a  
>> plugin you'd like to use in the pluginManagement-section.
>>
>> hth,
>> - martin
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---
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



Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by David Larsson <da...@albacore.se>.
I have the same problem as Hendrik but I really need to use 
maven-compiler-plugin 2.1-SNAPSHOT. Is there anything I can do to fix 
this problem?

Regards
David

Martin Höller wrote:
> On Wednesday 13 February 2008 wrote Hendrik Busch:
>   
>> Is there any way to prevent Maven from using snapshot versions of
>> plugins? Just disabling the repos does not seem to suffice.
>>     
>
> That's because you already have them in your local repo (~/.m2/repository/). 
> Along with disabling the snapshot repo, you should remove the coresponding 
> subtree from your local repo, e.g. 
> ~/.m2/repository/org/codehaus/plexus/plexus-compiler.
>
> The even better solution would be to specify which version of a plugin you'd 
> like to use in the pluginManagement-section.
>
> hth,
> - martin
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by Martin Höller <ma...@xss.co.at>.
On Wednesday 13 February 2008 wrote Hendrik Busch:
> Is there any way to prevent Maven from using snapshot versions of
> plugins? Just disabling the repos does not seem to suffice.

That's because you already have them in your local repo (~/.m2/repository/). 
Along with disabling the snapshot repo, you should remove the coresponding 
subtree from your local repo, e.g. 
~/.m2/repository/org/codehaus/plexus/plexus-compiler.

The even better solution would be to specify which version of a plugin you'd 
like to use in the pluginManagement-section.

hth,
- martin
-- 
Martin Höller                   | martin.hoeller@xss.co.at
*x Software + Systeme           | http://www.xss.co.at/
Karmarschgasse 51/2/20          | Tel: +43-1-6060114-30
A-1100 Vienna, Austria          | Fax: +43-1-6060114-71

Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by John Casey <jd...@commonjava.org>.
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 <kr...@gmail.com> 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: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>> -------------------------------------------------------------------- 
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> -- 
> 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
> hendrik.busch@lexisnexis.de
>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---
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



Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by Hendrik Busch <he...@lexisnexis.de>.
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 <kr...@gmail.com> 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: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

-- 
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
hendrik.busch@lexisnexis.de 

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by John Casey <jd...@commonjava.org>.
Nope, they're both on public repositories, but the compiler plugin  
may not have a repository entry pointing where the plexus-compiler- 
javac snapshot was deployed. I'll fix that and redeploy.

-john

On Feb 13, 2008, at 4:39 AM, Marco Huber wrote:

> 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 <kr...@gmail.com> 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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---
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



Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by Marco Huber <mh...@project-team.de>.
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 <kr...@gmail.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by David Larsson <da...@albacore.se>.
You will find it if you add:

<repository>
            <id>codehausSnapshots</id>
            <name>Codehaus Snapshots</name>
            <releases>
                <enabled>false</enabled>
                <updatePolicy>always</updatePolicy>
                <checksumPolicy>warn</checksumPolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
                <checksumPolicy>fail</checksumPolicy>
            </snapshots>
            <url>http://snapshots.maven.codehaus.org/maven2</url>
            <layout>default</layout>
        </repository>

but the snapshot doesn't work anyway. I get NullPointerException....

/Dave

Tobias Gierke wrote:
> Hi,
>> 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.
>>   
> No, I just ran across the same error when trying to compile one of our 
> projects. It's the typical "yesterday everything worked, today it's 
> broken" problem caused by not specifying Maven core plugin versions in 
> the (super) POM... :(
>
> Obviously, a new maven-compiler-plugin snapshot was released that 
> requires snapshot versions of plexus-compiler-* jars.
>
> ----------
> [INFO] snapshot 
> org.apache.maven.plugins:maven-compiler-plugin:2.1-SNAPSHOT: checking 
> for updates from central
> Downloading: 
> http://XXXXXXXXXX1/artifactory/repo/org/apache/maven/plugins/maven-compiler-plugin/2.1-SNAPSHOT/maven-compiler-plugin-2.1-20080212.213249-8.pom 
>
> Downloading: 
> http://XXXXXXXX/artifactory/repo/org/codehaus/plexus/plexus-compiler-javac/1.6-SNAPSHOT/plexus-compiler-javac-1.6-SNAPSHOT.pom 
>
> Downloading: 
> http://XXXXXXXX/repo/m2-snapshot-repository/org/codehaus/plexus/plexus-compiler-api/1.6-SNAPSHOT/plexus-compiler-api-1.6-SNAPSHOT.pom 
>
> Downloading: 
> http://XXXXXXXX/artifactory/repo/org/codehaus/plexus/plexus-compiler-manager/1.6-SNAPSHOT/plexus-compiler-manager-1.6-SNAPSHOT.jar 
>
> .
> .
> .
>
> 1) org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT
>
> 2) org.codehaus.plexus:plexus-compiler-manager:jar:1.6-SNAPSHOT
>
> 3) org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT
>
> ---------
>
> I can't seem to find these jars on repo1.maven.org / 
> snapshots.repository.codehaus.org ...does anyone know where to get them ?
>
>
> Regards,
>
> Tobias
>
>
> P.S. After locking down the maven-compiler plugin version to 2.0.2 
> things are working again...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by Tobias Gierke <To...@freenet-ag.de>.
Hi,
> 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.
>   
No, I just ran across the same error when trying to compile one of our 
projects. It's the typical "yesterday everything worked, today it's 
broken" problem caused by not specifying Maven core plugin versions in 
the (super) POM... :(

Obviously, a new maven-compiler-plugin snapshot was released that 
requires snapshot versions of plexus-compiler-* jars.

----------
[INFO] snapshot 
org.apache.maven.plugins:maven-compiler-plugin:2.1-SNAPSHOT: checking 
for updates from central
Downloading: 
http://XXXXXXXXXX1/artifactory/repo/org/apache/maven/plugins/maven-compiler-plugin/2.1-SNAPSHOT/maven-compiler-plugin-2.1-20080212.213249-8.pom
Downloading: 
http://XXXXXXXX/artifactory/repo/org/codehaus/plexus/plexus-compiler-javac/1.6-SNAPSHOT/plexus-compiler-javac-1.6-SNAPSHOT.pom
Downloading: 
http://XXXXXXXX/repo/m2-snapshot-repository/org/codehaus/plexus/plexus-compiler-api/1.6-SNAPSHOT/plexus-compiler-api-1.6-SNAPSHOT.pom
Downloading: 
http://XXXXXXXX/artifactory/repo/org/codehaus/plexus/plexus-compiler-manager/1.6-SNAPSHOT/plexus-compiler-manager-1.6-SNAPSHOT.jar
.
.
.

1) org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT

2) org.codehaus.plexus:plexus-compiler-manager:jar:1.6-SNAPSHOT

3) org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

---------

I can't seem to find these jars on repo1.maven.org / 
snapshots.repository.codehaus.org ...does anyone know where to get them ?


Regards,

Tobias


P.S. After locking down the maven-compiler plugin version to 2.0.2 
things are working again...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT

Posted by Wayne Fay <wa...@gmail.com>.
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 <kr...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org