You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Alan D. Cabrera" <li...@toolazydogs.com> on 2007/10/31 16:18:26 UTC
Re: Yoko trunk build error.
Does anyone in maven-land know why we have to do this?
Regards,
Alan
On Oct 31, 2007, at 2:11 AM, Rick McGuire wrote:
> I finally managed to get this to build, but it wasn't a pretty
> process. Here were the steps:
>
> 1) I upgraded my maven version to 2.0.7.
> 2) Attempt to rebuild 2.0.7. This will fail also, but with a
> different error. In order to patch things up, you need to attempt
> this with 2.0.7 and allow it to fail, otherwise you won't be able
> to do step 3).
> 3) In the maven repository, go to directory org/codehaus/plexus/
> plexus-archiver and edit the file maven-metadata-central.xml and
> add the version <version>1.0-alpha-10-SNAPSHOT</version> to
> the list.
> 4) Rebuild again...it should work this time.
>
> Rick
>
> Lars Kühne wrote:
>> Rick McGuire wrote:
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>> [ERROR] FATAL ERROR
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>> [INFO] org/codehaus/plexus/util/FileUtils$FilterWrapper
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>> [INFO] Trace
>>> java.lang.NoClassDefFoundError: org/codehaus/plexus/util/FileUtils
>>> $FilterWrapper
>>>
>>> at org.apache.maven.plugin.resources.ResourcesMojo.copyFile
>>> (ResourcesMoj
>>> o.java:235)
>>
>>
>> Same here.
>>
>> Lars
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Yoko trunk build error.
Posted by John Casey <jd...@commonjava.org>.
Nm.
On Oct 31, 2007, at 6:38 PM, Brett Porter wrote:
>>>>>>> org.apache.maven.plugin.resources.ResourcesMojo.copyFile
>>>>>>> (ResourcesMoj
>>>>>>> o.java:235)
---
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: Yoko trunk build error.
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
It is probably the container and container api jars. Take a look at the dependency plugin pom to see how I used the enforcer to detect these and the exclusions to keep them out.
--Brian
-----Original Message-----
From: Brett Porter [mailto:brett@apache.org]
Sent: Wednesday, October 31, 2007 11:39 PM
To: Maven Developers List
Subject: Re: Yoko trunk build error.
I suspect it's the surefire plugin, actually (based on it using the
new archiver), which in turn pulls in the new plexus-utils - and for
some reason that is polluting the resources plugin (no idea how, but
I have seen Brian file a similar bug).
- Brett
On 01/11/2007, at 3:29 AM, Daniel Kulp wrote:
>
> Actually, it's probably the other way... You have plugin snapshots
> turned on:
> <pluginRepository>
> <id>apache-snapshots</id>
> <name>Maven apache plugins snapshot repository</name>
> <url>http://people.apache.org/maven-snapshot-
> repository</url>
> <layout>default</layout>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> <releases>
> <updatePolicy>never</updatePolicy>
> </releases>
> </pluginRepository>
>
> Thus, you'r probaby getting SNAPSHOT versions of various plugins
> that may
> or may not be working.
>
> I would suggest removing that.
>
> Either that, or lock down the resources plugin to the latest release
> version.
>
> Dan
>
>
>
> On Wednesday 31 October 2007, John Casey wrote:
>> Just a guess, but you may be using an old version of the resource
>> plugin. It looks like it's using but not declaring a direct
>> dependency on plexus-utils, and if/when maven ceases to export that
>> dependency to the plugin as part of the parent classloader, it fails.
>>
>> Again, just a guess.
>>
>> -john
>>
>> On Oct 31, 2007, at 11:18 AM, Alan D. Cabrera wrote:
>>> Does anyone in maven-land know why we have to do this?
>>>
>>>
>>> Regards,
>>> Alan
>>>
>>> On Oct 31, 2007, at 2:11 AM, Rick McGuire wrote:
>>>> I finally managed to get this to build, but it wasn't a pretty
>>>> process. Here were the steps:
>>>>
>>>> 1) I upgraded my maven version to 2.0.7.
>>>> 2) Attempt to rebuild 2.0.7. This will fail also, but with a
>>>> different error. In order to patch things up, you need to attempt
>>>> this with 2.0.7 and allow it to fail, otherwise you won't be able
>>>> to do step 3).
>>>> 3) In the maven repository, go to directory org/codehaus/plexus/
>>>> plexus-archiver and edit the file maven-metadata-central.xml and
>>>> add the version <version>1.0-alpha-10-SNAPSHOT</version> to
>>>> the list.
>>>> 4) Rebuild again...it should work this time.
>>>>
>>>> Rick
>>>>
>>>> Lars Kühne wrote:
>>>>> Rick McGuire wrote:
>>>>>> [INFO]
>>>>>> --------------------------------------------------------------
>>>>>> -- -----
>>>>>> [ERROR] FATAL ERROR
>>>>>> [INFO]
>>>>>> -----------------------------------------------------------------
>>>>>> -- -----
>>>>>> [INFO] org/codehaus/plexus/util/FileUtils$FilterWrapper
>>>>>> [INFO]
>>>>>> -----------------------------------------------------------------
>>>>>> -- -----
>>>>>> [INFO] Trace
>>>>>> java.lang.NoClassDefFoundError: org/codehaus/plexus/util/
>>>>>> FileUtils$FilterWrapper
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.plugin.resources.ResourcesMojo.copyFile
>>>>>> (ResourcesMoj
>>>>>> o.java:235)
>>>>>
>>>>> Same here.
>>>>>
>>>>> Lars
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-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
>
>
>
> --
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727 C: 508-380-7194
> daniel.kulp@iona.com
> http://www.dankulp.com/blog
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
--
Brett Porter - brett@apache.org
Blog: http://www.devzuz.org/blogs/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Yoko trunk build error.
Posted by John Casey <jd...@commonjava.org>.
What about this?
>>>>>>> org.apache.maven.plugin.resources.ResourcesMojo.copyFile
>>>>>>> (ResourcesMoj
>>>>>>> o.java:235)
-john
---
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: Yoko trunk build error.
Posted by Brett Porter <br...@apache.org>.
I suspect it's the surefire plugin, actually (based on it using the
new archiver), which in turn pulls in the new plexus-utils - and for
some reason that is polluting the resources plugin (no idea how, but
I have seen Brian file a similar bug).
- Brett
On 01/11/2007, at 3:29 AM, Daniel Kulp wrote:
>
> Actually, it's probably the other way... You have plugin snapshots
> turned on:
> <pluginRepository>
> <id>apache-snapshots</id>
> <name>Maven apache plugins snapshot repository</name>
> <url>http://people.apache.org/maven-snapshot-
> repository</url>
> <layout>default</layout>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> <releases>
> <updatePolicy>never</updatePolicy>
> </releases>
> </pluginRepository>
>
> Thus, you'r probaby getting SNAPSHOT versions of various plugins
> that may
> or may not be working.
>
> I would suggest removing that.
>
> Either that, or lock down the resources plugin to the latest release
> version.
>
> Dan
>
>
>
> On Wednesday 31 October 2007, John Casey wrote:
>> Just a guess, but you may be using an old version of the resource
>> plugin. It looks like it's using but not declaring a direct
>> dependency on plexus-utils, and if/when maven ceases to export that
>> dependency to the plugin as part of the parent classloader, it fails.
>>
>> Again, just a guess.
>>
>> -john
>>
>> On Oct 31, 2007, at 11:18 AM, Alan D. Cabrera wrote:
>>> Does anyone in maven-land know why we have to do this?
>>>
>>>
>>> Regards,
>>> Alan
>>>
>>> On Oct 31, 2007, at 2:11 AM, Rick McGuire wrote:
>>>> I finally managed to get this to build, but it wasn't a pretty
>>>> process. Here were the steps:
>>>>
>>>> 1) I upgraded my maven version to 2.0.7.
>>>> 2) Attempt to rebuild 2.0.7. This will fail also, but with a
>>>> different error. In order to patch things up, you need to attempt
>>>> this with 2.0.7 and allow it to fail, otherwise you won't be able
>>>> to do step 3).
>>>> 3) In the maven repository, go to directory org/codehaus/plexus/
>>>> plexus-archiver and edit the file maven-metadata-central.xml and
>>>> add the version <version>1.0-alpha-10-SNAPSHOT</version> to
>>>> the list.
>>>> 4) Rebuild again...it should work this time.
>>>>
>>>> Rick
>>>>
>>>> Lars Kühne wrote:
>>>>> Rick McGuire wrote:
>>>>>> [INFO]
>>>>>> --------------------------------------------------------------
>>>>>> -- -----
>>>>>> [ERROR] FATAL ERROR
>>>>>> [INFO]
>>>>>> -----------------------------------------------------------------
>>>>>> -- -----
>>>>>> [INFO] org/codehaus/plexus/util/FileUtils$FilterWrapper
>>>>>> [INFO]
>>>>>> -----------------------------------------------------------------
>>>>>> -- -----
>>>>>> [INFO] Trace
>>>>>> java.lang.NoClassDefFoundError: org/codehaus/plexus/util/
>>>>>> FileUtils$FilterWrapper
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.plugin.resources.ResourcesMojo.copyFile
>>>>>> (ResourcesMoj
>>>>>> o.java:235)
>>>>>
>>>>> Same here.
>>>>>
>>>>> Lars
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-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
>
>
>
> --
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727 C: 508-380-7194
> daniel.kulp@iona.com
> http://www.dankulp.com/blog
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
--
Brett Porter - brett@apache.org
Blog: http://www.devzuz.org/blogs/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Yoko trunk build error.
Posted by Daniel Kulp <dk...@apache.org>.
Actually, it's probably the other way... You have plugin snapshots
turned on:
<pluginRepository>
<id>apache-snapshots</id>
<name>Maven apache plugins snapshot repository</name>
<url>http://people.apache.org/maven-snapshot-repository</url>
<layout>default</layout>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</pluginRepository>
Thus, you'r probaby getting SNAPSHOT versions of various plugins that may
or may not be working.
I would suggest removing that.
Either that, or lock down the resources plugin to the latest release
version.
Dan
On Wednesday 31 October 2007, John Casey wrote:
> Just a guess, but you may be using an old version of the resource
> plugin. It looks like it's using but not declaring a direct
> dependency on plexus-utils, and if/when maven ceases to export that
> dependency to the plugin as part of the parent classloader, it fails.
>
> Again, just a guess.
>
> -john
>
> On Oct 31, 2007, at 11:18 AM, Alan D. Cabrera wrote:
> > Does anyone in maven-land know why we have to do this?
> >
> >
> > Regards,
> > Alan
> >
> > On Oct 31, 2007, at 2:11 AM, Rick McGuire wrote:
> >> I finally managed to get this to build, but it wasn't a pretty
> >> process. Here were the steps:
> >>
> >> 1) I upgraded my maven version to 2.0.7.
> >> 2) Attempt to rebuild 2.0.7. This will fail also, but with a
> >> different error. In order to patch things up, you need to attempt
> >> this with 2.0.7 and allow it to fail, otherwise you won't be able
> >> to do step 3).
> >> 3) In the maven repository, go to directory org/codehaus/plexus/
> >> plexus-archiver and edit the file maven-metadata-central.xml and
> >> add the version <version>1.0-alpha-10-SNAPSHOT</version> to
> >> the list.
> >> 4) Rebuild again...it should work this time.
> >>
> >> Rick
> >>
> >> Lars Kühne wrote:
> >>> Rick McGuire wrote:
> >>>> [INFO]
> >>>> --------------------------------------------------------------
> >>>>-- -----
> >>>> [ERROR] FATAL ERROR
> >>>> [INFO]
> >>>> -----------------------------------------------------------------
> >>>>-- -----
> >>>> [INFO] org/codehaus/plexus/util/FileUtils$FilterWrapper
> >>>> [INFO]
> >>>> -----------------------------------------------------------------
> >>>>-- -----
> >>>> [INFO] Trace
> >>>> java.lang.NoClassDefFoundError: org/codehaus/plexus/util/
> >>>> FileUtils$FilterWrapper
> >>>>
> >>>> at
> >>>> org.apache.maven.plugin.resources.ResourcesMojo.copyFile
> >>>> (ResourcesMoj
> >>>> o.java:235)
> >>>
> >>> Same here.
> >>>
> >>> Lars
> >
> > --------------------------------------------------------------------
> >- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-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
--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727 C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Yoko trunk build error.
Posted by John Casey <jd...@commonjava.org>.
Just a guess, but you may be using an old version of the resource
plugin. It looks like it's using but not declaring a direct
dependency on plexus-utils, and if/when maven ceases to export that
dependency to the plugin as part of the parent classloader, it fails.
Again, just a guess.
-john
On Oct 31, 2007, at 11:18 AM, Alan D. Cabrera wrote:
> Does anyone in maven-land know why we have to do this?
>
>
> Regards,
> Alan
>
>
> On Oct 31, 2007, at 2:11 AM, Rick McGuire wrote:
>
>> I finally managed to get this to build, but it wasn't a pretty
>> process. Here were the steps:
>>
>> 1) I upgraded my maven version to 2.0.7.
>> 2) Attempt to rebuild 2.0.7. This will fail also, but with a
>> different error. In order to patch things up, you need to attempt
>> this with 2.0.7 and allow it to fail, otherwise you won't be able
>> to do step 3).
>> 3) In the maven repository, go to directory org/codehaus/plexus/
>> plexus-archiver and edit the file maven-metadata-central.xml and
>> add the version <version>1.0-alpha-10-SNAPSHOT</version> to
>> the list.
>> 4) Rebuild again...it should work this time.
>>
>> Rick
>>
>> Lars Kühne wrote:
>>> Rick McGuire wrote:
>>>> [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>> [ERROR] FATAL ERROR
>>>> [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>> [INFO] org/codehaus/plexus/util/FileUtils$FilterWrapper
>>>> [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>> [INFO] Trace
>>>> java.lang.NoClassDefFoundError: org/codehaus/plexus/util/
>>>> FileUtils$FilterWrapper
>>>>
>>>> at
>>>> org.apache.maven.plugin.resources.ResourcesMojo.copyFile
>>>> (ResourcesMoj
>>>> o.java:235)
>>>
>>>
>>> Same here.
>>>
>>> Lars
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-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