You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by itripleeee <it...@trash-mail.com> on 2009/04/27 15:05:23 UTC

Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

I wanted to build felix, so I downloaded the sources and followed the
instruction here: http://felix.apache.org/site/building-felix.html

When I run the command "mvn -Dpackaging=plugins install"

D:\Test\felix\bundleplugin\src\main\java\org\apache\felix\bundleplugin\AbstractDependencyFilter.java:[53,22]
cannot find symbol
symbol  : class Instruction
location: class
org.apache.felix.bundleplugin.AbstractDependencyFilter.DependencyFilter 

and a lot of Erros looking like this.

And after that, when I run the command "mvn -Dpackaging=bundle install" I
get the followeing error message
[INFO] Internal error in the plugin manager executing goal
'org.apache.felix:mav
en-bundle-plugin:1.4.3:bundle': Unable to load the mojo
'org.apache.felix:maven-
bundle-plugin:1.4.3:bundle' in the plugin
'org.apache.felix:maven-bundle-plugin'
. A required class is missing: aQute/lib/osgi/Resource

What I'm doing wrong? I could not find an error msg like this in google or
here. May some please explain me, why the build does not work? Thanks.
-- 
View this message in context: http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23255846.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


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


Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/4/28 itripleeee <it...@trash-mail.com>

>
> We are using Nexus and I added
> http://people.apache.org/repo/m2-snapshot-repository to the repository
> list.
> But it did not work. After many hours of despair, now I know why. The
> Default setting of maven is, NOT to download snapshot-artifacts. You have
> to
> tell maven explicit, that you want to use snapshots. I created a repository
> in the profile-section of my settings.xml with the
> apache-snapshot-repository and now it works.
>
> But Nexus seem to have problems with the packaging-type "Bundle". And at
> the
> moment, I don't care, it jsut works. :)
>

FYI, there was an old Maven bug related to packing types that defined their
own lifecycle (ie. like bundle) where Maven sometimes looked up "foo.bundle"
instead of "foo.jar", but if you use a recent build like Maven 2.0.10 or
2.1.0 this shouldn't happen (afaik this is unrelated to Nexus).


> @ Carsten: Thanks for the message, but fortunately in this case, they were
> no problems concerning the version of the parent pom.
>
> And at home, it worked by the first time, without any problems.
>

that's certainly been my experience, glad everything is working again :)


> --
> View this message in context:
> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23275223.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>

-- 
Cheers, Stuart

Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by itripleeee <it...@trash-mail.com>.
We are using Nexus and I added
http://people.apache.org/repo/m2-snapshot-repository to the repository list.
But it did not work. After many hours of despair, now I know why. The
Default setting of maven is, NOT to download snapshot-artifacts. You have to
tell maven explicit, that you want to use snapshots. I created a repository
in the profile-section of my settings.xml with the
apache-snapshot-repository and now it works.

But Nexus seem to have problems with the packaging-type "Bundle". And at the
moment, I don't care, it jsut works. :)

@ Carsten: Thanks for the message, but fortunately in this case, they were
no problems concerning the version of the parent pom.

And at home, it worked by the first time, without any problems. 

-- 
View this message in context: http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23275223.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


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


Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by Carsten Ziegeler <cz...@apache.org>.
Just as an addition info: if you're doing a reactor build (and build all
Felix sub projects) and the various modules use different parent pom
versions with maybe different plugin versions defined, the whole build
is just using a single version of a plugin; and this causes sometimes
problems, too as either an older or newer version of a plugin is uses
for some module.

So although it doesn't make sense from an independent releases pov, it
makes sense from a maven pov to have all modules use the same parent pom
version in order to guarantee which plugin versions are really used for
a reactor build.

Carsten

-- 
Carsten Ziegeler
cziegeler@apache.org

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


Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/4/27 itripleeee <it...@trash-mail.com>

>
> well, I'm behind a proxy, which may cause problems. I tried to change
> manually everything from SNAPSHOT to release, but it seems not to have an
> end. I think it's better, when I try it at home, where I do not have a
> proxy. I'm going to post here tomorrow, if it did work, but thanks for your
> help guys.
>

yep, if your proxy only allows access to the central Maven repository
then you won't be able to access the Apache snapshot repository at:

   http://people.apache.org/repo/m2-snapshot-repository

I think most sub-projects should probably move to depend on released
versions where possible (any volunteers to look into this?) but there are
a few sub-projects that haven't had an initial release, so there are only
snapshots available - for those dependencies you'd need the snapshot
repository

if your company uses a Maven repository manager (like Nexus/Archiva)
then you could configure that to pull in snapshots from the Apache URL
mentioned above...

clement escoffier wrote:
> >
> >
> > On 27.04.2009, at 17:30, Stuart McCulloch wrote:
> >
> >> 2009/4/27 itripleeee <it...@trash-mail.com>
> >>
> >>>
> >>> Thanks for your answer. But it did not work. The file was corrupted
> >>> so I
> >>> deleted it and downloaded it manually. But the problem still is not
> >>> solved.
> >>> felix is using Dependencies to Snapshot-Artifacts, which do not
> >>> exist. Like
> >>> 1) org.apache.felix:org.apache.felix.shell:jar:1.1.0-SNAPSHOT
> >>> 2) org.apache.felix:org.apache.felix.bundlerepository:jar:1.1.0-
> >>> SNAPSHOT
> >>> 3) org.apache.felix:org.osgi.compendium:jar:1.1.0-SNAPSHOT
> >>>
> >>
> >> some subprojects may still depend on snapshots, but those should be
> >> downloaded from the Apache snapshot repository, which is configured
> >> in the parent pom
> >>
> >>  ( at least that's what happened last time I rebuilt from scratch )
> >>
> >> it sounds like you might have an intermittent network connection and
> >> that's causing corrupted artifacts in your local maven repository -
> >> you
> >> might want to try Maven 2.1.0 which has improved download support
> >>
> >> I have some urgent tasks to finish up, but I'll try rebuilding from
> >> scratch
> >> in case there are any missing artifacts - note that the error from
> >> maven
> >> will show you the path from the sub-project to the unavailable
> >> artifact,
> >> you just have to read all of the error message...
> >
> > I just tried to rebuild from scratch (empty repository). I don't have
> > any issue.
> > So, it can come from your Internet connection, as said by Stuart.
> >
> > Clement
> >
> >
> >>
> >>
> >>
> >>> I replaced the Versions in the pomx, where 1 and 2 are used with
> >>> version
> >>> 1.2.0, but in 3, I could not find out, where it is used. And even
> >>> if I find
> >>> it, there could be more SNAPSHOTS, which cannot be found by maven.
> >>> Did you
> >>> not have the same problem?
> >>>
> >>> clement escoffier wrote:
> >>>>
> >>>> Hi,
> >>>>
> >>>> I don't get the error.
> >>>> Can you try to:
> >>>> -delete bndlib from your local maven repo (in .m2/repository/biz/
> >>>> aQute)
> >>>> - compile the trunk with mvn clean install -Dpackaging=plugins
> >>>> -Check that you download bnd, so you should see something like:
> >>>> Downloading:
> >>>>
> >>>
> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.pom
> >>>> 864b downloaded  (bndlib-0.0.311.pom)
> >>>> Downloading:
> >>>>
> >>>
> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.jar
> >>>> 150K downloaded  (bndlib-0.0.311.jar)
> >>>>
> >>>> Regards,
> >>>>
> >>>> Clement
> >>>>
> >>>>
> >>>> On 27.04.2009, at 15:05, itripleeee wrote:
> >>>>
> >>>>>
> >>>>> I wanted to build felix, so I downloaded the sources and followed
> >>>>> the
> >>>>> instruction here: http://felix.apache.org/site/building-felix.html
> >>>>>
> >>>>> When I run the command "mvn -Dpackaging=plugins install"
> >>>>>
> >>>>> D:\Test\felix\bundleplugin\src\main\java\org\apache\felix
> >>>>> \bundleplugin\AbstractDependencyFilter.java:[53,22]
> >>>>> cannot find symbol
> >>>>> symbol  : class Instruction
> >>>>> location: class
> >>>>> org
> >>>>> .apache
> >>>>> .felix.bundleplugin.AbstractDependencyFilter.DependencyFilter
> >>>>>
> >>>>> and a lot of Erros looking like this.
> >>>>>
> >>>>> And after that, when I run the command "mvn -Dpackaging=bundle
> >>>>> install" I
> >>>>> get the followeing error message
> >>>>> [INFO] Internal error in the plugin manager executing goal
> >>>>> 'org.apache.felix:mav
> >>>>> en-bundle-plugin:1.4.3:bundle': Unable to load the mojo
> >>>>> 'org.apache.felix:maven-
> >>>>> bundle-plugin:1.4.3:bundle' in the plugin
> >>>>> 'org.apache.felix:maven-bundle-plugin'
> >>>>> . A required class is missing: aQute/lib/osgi/Resource
> >>>>>
> >>>>> What I'm doing wrong? I could not find an error msg like this in
> >>>>> google or
> >>>>> here. May some please explain me, why the build does not work?
> >>>>> Thanks.
> >>>>> --
> >>>>> View this message in context:
> >>>>>
> >>>
> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23255846.html
> >>>>> Sent from the Apache Felix - Users mailing list archive at
> >>>>> Nabble.com.
> >>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >>>>> For additional commands, e-mail: users-help@felix.apache.org
> >>>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >>>> For additional commands, e-mail: users-help@felix.apache.org
> >>>>
> >>>>
> >>>>
> >>>
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23258672.html
> >>> Sent from the Apache Felix - Users mailing list archive at
> >>> Nabble.com.
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >>> For additional commands, e-mail: users-help@felix.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> Cheers, Stuart
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23259505.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
Cheers, Stuart

Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by itripleeee <it...@trash-mail.com>.
well, I'm behind a proxy, which may cause problems. I tried to change
manually everything from SNAPSHOT to release, but it seems not to have an
end. I think it's better, when I try it at home, where I do not have a
proxy. I'm going to post here tomorrow, if it did work, but thanks for your
help guys. 


clement escoffier wrote:
> 
> 
> On 27.04.2009, at 17:30, Stuart McCulloch wrote:
> 
>> 2009/4/27 itripleeee <it...@trash-mail.com>
>>
>>>
>>> Thanks for your answer. But it did not work. The file was corrupted  
>>> so I
>>> deleted it and downloaded it manually. But the problem still is not  
>>> solved.
>>> felix is using Dependencies to Snapshot-Artifacts, which do not  
>>> exist. Like
>>> 1) org.apache.felix:org.apache.felix.shell:jar:1.1.0-SNAPSHOT
>>> 2) org.apache.felix:org.apache.felix.bundlerepository:jar:1.1.0- 
>>> SNAPSHOT
>>> 3) org.apache.felix:org.osgi.compendium:jar:1.1.0-SNAPSHOT
>>>
>>
>> some subprojects may still depend on snapshots, but those should be
>> downloaded from the Apache snapshot repository, which is configured
>> in the parent pom
>>
>>  ( at least that's what happened last time I rebuilt from scratch )
>>
>> it sounds like you might have an intermittent network connection and
>> that's causing corrupted artifacts in your local maven repository -  
>> you
>> might want to try Maven 2.1.0 which has improved download support
>>
>> I have some urgent tasks to finish up, but I'll try rebuilding from  
>> scratch
>> in case there are any missing artifacts - note that the error from  
>> maven
>> will show you the path from the sub-project to the unavailable  
>> artifact,
>> you just have to read all of the error message...
> 
> I just tried to rebuild from scratch (empty repository). I don't have  
> any issue.
> So, it can come from your Internet connection, as said by Stuart.
> 
> Clement
> 
> 
>>
>>
>>
>>> I replaced the Versions in the pomx, where 1 and 2 are used with  
>>> version
>>> 1.2.0, but in 3, I could not find out, where it is used. And even  
>>> if I find
>>> it, there could be more SNAPSHOTS, which cannot be found by maven.  
>>> Did you
>>> not have the same problem?
>>>
>>> clement escoffier wrote:
>>>>
>>>> Hi,
>>>>
>>>> I don't get the error.
>>>> Can you try to:
>>>> -delete bndlib from your local maven repo (in .m2/repository/biz/ 
>>>> aQute)
>>>> - compile the trunk with mvn clean install -Dpackaging=plugins
>>>> -Check that you download bnd, so you should see something like:
>>>> Downloading:
>>>>
>>> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.pom
>>>> 864b downloaded  (bndlib-0.0.311.pom)
>>>> Downloading:
>>>>
>>> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.jar
>>>> 150K downloaded  (bndlib-0.0.311.jar)
>>>>
>>>> Regards,
>>>>
>>>> Clement
>>>>
>>>>
>>>> On 27.04.2009, at 15:05, itripleeee wrote:
>>>>
>>>>>
>>>>> I wanted to build felix, so I downloaded the sources and followed  
>>>>> the
>>>>> instruction here: http://felix.apache.org/site/building-felix.html
>>>>>
>>>>> When I run the command "mvn -Dpackaging=plugins install"
>>>>>
>>>>> D:\Test\felix\bundleplugin\src\main\java\org\apache\felix
>>>>> \bundleplugin\AbstractDependencyFilter.java:[53,22]
>>>>> cannot find symbol
>>>>> symbol  : class Instruction
>>>>> location: class
>>>>> org
>>>>> .apache 
>>>>> .felix.bundleplugin.AbstractDependencyFilter.DependencyFilter
>>>>>
>>>>> and a lot of Erros looking like this.
>>>>>
>>>>> And after that, when I run the command "mvn -Dpackaging=bundle
>>>>> install" I
>>>>> get the followeing error message
>>>>> [INFO] Internal error in the plugin manager executing goal
>>>>> 'org.apache.felix:mav
>>>>> en-bundle-plugin:1.4.3:bundle': Unable to load the mojo
>>>>> 'org.apache.felix:maven-
>>>>> bundle-plugin:1.4.3:bundle' in the plugin
>>>>> 'org.apache.felix:maven-bundle-plugin'
>>>>> . A required class is missing: aQute/lib/osgi/Resource
>>>>>
>>>>> What I'm doing wrong? I could not find an error msg like this in
>>>>> google or
>>>>> here. May some please explain me, why the build does not work?  
>>>>> Thanks.
>>>>> --
>>>>> View this message in context:
>>>>>
>>> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23255846.html
>>>>> Sent from the Apache Felix - Users mailing list archive at  
>>>>> Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23258672.html
>>> Sent from the Apache Felix - Users mailing list archive at  
>>> Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>
>>
>> -- 
>> Cheers, Stuart
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23259505.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


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


Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by Clement Escoffier <cl...@gmail.com>.
On 27.04.2009, at 17:30, Stuart McCulloch wrote:

> 2009/4/27 itripleeee <it...@trash-mail.com>
>
>>
>> Thanks for your answer. But it did not work. The file was corrupted  
>> so I
>> deleted it and downloaded it manually. But the problem still is not  
>> solved.
>> felix is using Dependencies to Snapshot-Artifacts, which do not  
>> exist. Like
>> 1) org.apache.felix:org.apache.felix.shell:jar:1.1.0-SNAPSHOT
>> 2) org.apache.felix:org.apache.felix.bundlerepository:jar:1.1.0- 
>> SNAPSHOT
>> 3) org.apache.felix:org.osgi.compendium:jar:1.1.0-SNAPSHOT
>>
>
> some subprojects may still depend on snapshots, but those should be
> downloaded from the Apache snapshot repository, which is configured
> in the parent pom
>
>  ( at least that's what happened last time I rebuilt from scratch )
>
> it sounds like you might have an intermittent network connection and
> that's causing corrupted artifacts in your local maven repository -  
> you
> might want to try Maven 2.1.0 which has improved download support
>
> I have some urgent tasks to finish up, but I'll try rebuilding from  
> scratch
> in case there are any missing artifacts - note that the error from  
> maven
> will show you the path from the sub-project to the unavailable  
> artifact,
> you just have to read all of the error message...

I just tried to rebuild from scratch (empty repository). I don't have  
any issue.
So, it can come from your Internet connection, as said by Stuart.

Clement


>
>
>
>> I replaced the Versions in the pomx, where 1 and 2 are used with  
>> version
>> 1.2.0, but in 3, I could not find out, where it is used. And even  
>> if I find
>> it, there could be more SNAPSHOTS, which cannot be found by maven.  
>> Did you
>> not have the same problem?
>>
>> clement escoffier wrote:
>>>
>>> Hi,
>>>
>>> I don't get the error.
>>> Can you try to:
>>> -delete bndlib from your local maven repo (in .m2/repository/biz/ 
>>> aQute)
>>> - compile the trunk with mvn clean install -Dpackaging=plugins
>>> -Check that you download bnd, so you should see something like:
>>> Downloading:
>>>
>> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.pom
>>> 864b downloaded  (bndlib-0.0.311.pom)
>>> Downloading:
>>>
>> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.jar
>>> 150K downloaded  (bndlib-0.0.311.jar)
>>>
>>> Regards,
>>>
>>> Clement
>>>
>>>
>>> On 27.04.2009, at 15:05, itripleeee wrote:
>>>
>>>>
>>>> I wanted to build felix, so I downloaded the sources and followed  
>>>> the
>>>> instruction here: http://felix.apache.org/site/building-felix.html
>>>>
>>>> When I run the command "mvn -Dpackaging=plugins install"
>>>>
>>>> D:\Test\felix\bundleplugin\src\main\java\org\apache\felix
>>>> \bundleplugin\AbstractDependencyFilter.java:[53,22]
>>>> cannot find symbol
>>>> symbol  : class Instruction
>>>> location: class
>>>> org
>>>> .apache 
>>>> .felix.bundleplugin.AbstractDependencyFilter.DependencyFilter
>>>>
>>>> and a lot of Erros looking like this.
>>>>
>>>> And after that, when I run the command "mvn -Dpackaging=bundle
>>>> install" I
>>>> get the followeing error message
>>>> [INFO] Internal error in the plugin manager executing goal
>>>> 'org.apache.felix:mav
>>>> en-bundle-plugin:1.4.3:bundle': Unable to load the mojo
>>>> 'org.apache.felix:maven-
>>>> bundle-plugin:1.4.3:bundle' in the plugin
>>>> 'org.apache.felix:maven-bundle-plugin'
>>>> . A required class is missing: aQute/lib/osgi/Resource
>>>>
>>>> What I'm doing wrong? I could not find an error msg like this in
>>>> google or
>>>> here. May some please explain me, why the build does not work?  
>>>> Thanks.
>>>> --
>>>> View this message in context:
>>>>
>> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23255846.html
>>>> Sent from the Apache Felix - Users mailing list archive at  
>>>> Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23258672.html
>> Sent from the Apache Felix - Users mailing list archive at  
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
> -- 
> Cheers, Stuart


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


Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/4/27 itripleeee <it...@trash-mail.com>

>
> Thanks for your answer. But it did not work. The file was corrupted so I
> deleted it and downloaded it manually. But the problem still is not solved.
> felix is using Dependencies to Snapshot-Artifacts, which do not exist. Like
> 1) org.apache.felix:org.apache.felix.shell:jar:1.1.0-SNAPSHOT
> 2) org.apache.felix:org.apache.felix.bundlerepository:jar:1.1.0-SNAPSHOT
> 3) org.apache.felix:org.osgi.compendium:jar:1.1.0-SNAPSHOT
>

some subprojects may still depend on snapshots, but those should be
downloaded from the Apache snapshot repository, which is configured
in the parent pom

  ( at least that's what happened last time I rebuilt from scratch )

it sounds like you might have an intermittent network connection and
that's causing corrupted artifacts in your local maven repository - you
might want to try Maven 2.1.0 which has improved download support

I have some urgent tasks to finish up, but I'll try rebuilding from scratch
in case there are any missing artifacts - note that the error from maven
will show you the path from the sub-project to the unavailable artifact,
you just have to read all of the error message...


> I replaced the Versions in the pomx, where 1 and 2 are used with version
> 1.2.0, but in 3, I could not find out, where it is used. And even if I find
> it, there could be more SNAPSHOTS, which cannot be found by maven. Did you
> not have the same problem?
>
> clement escoffier wrote:
> >
> > Hi,
> >
> > I don't get the error.
> > Can you try to:
> > -delete bndlib from your local maven repo (in .m2/repository/biz/aQute)
> > - compile the trunk with mvn clean install -Dpackaging=plugins
> > -Check that you download bnd, so you should see something like:
> > Downloading:
> >
> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.pom
> > 864b downloaded  (bndlib-0.0.311.pom)
> > Downloading:
> >
> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.jar
> > 150K downloaded  (bndlib-0.0.311.jar)
> >
> > Regards,
> >
> > Clement
> >
> >
> > On 27.04.2009, at 15:05, itripleeee wrote:
> >
> >>
> >> I wanted to build felix, so I downloaded the sources and followed the
> >> instruction here: http://felix.apache.org/site/building-felix.html
> >>
> >> When I run the command "mvn -Dpackaging=plugins install"
> >>
> >> D:\Test\felix\bundleplugin\src\main\java\org\apache\felix
> >> \bundleplugin\AbstractDependencyFilter.java:[53,22]
> >> cannot find symbol
> >> symbol  : class Instruction
> >> location: class
> >> org
> >> .apache.felix.bundleplugin.AbstractDependencyFilter.DependencyFilter
> >>
> >> and a lot of Erros looking like this.
> >>
> >> And after that, when I run the command "mvn -Dpackaging=bundle
> >> install" I
> >> get the followeing error message
> >> [INFO] Internal error in the plugin manager executing goal
> >> 'org.apache.felix:mav
> >> en-bundle-plugin:1.4.3:bundle': Unable to load the mojo
> >> 'org.apache.felix:maven-
> >> bundle-plugin:1.4.3:bundle' in the plugin
> >> 'org.apache.felix:maven-bundle-plugin'
> >> . A required class is missing: aQute/lib/osgi/Resource
> >>
> >> What I'm doing wrong? I could not find an error msg like this in
> >> google or
> >> here. May some please explain me, why the build does not work? Thanks.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23255846.html
> >> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> >> For additional commands, e-mail: users-help@felix.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23258672.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
Cheers, Stuart

Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by itripleeee <it...@trash-mail.com>.
Thanks for your answer. But it did not work. The file was corrupted so I
deleted it and downloaded it manually. But the problem still is not solved.
felix is using Dependencies to Snapshot-Artifacts, which do not exist. Like 
1) org.apache.felix:org.apache.felix.shell:jar:1.1.0-SNAPSHOT
2) org.apache.felix:org.apache.felix.bundlerepository:jar:1.1.0-SNAPSHOT
3) org.apache.felix:org.osgi.compendium:jar:1.1.0-SNAPSHOT

I replaced the Versions in the pomx, where 1 and 2 are used with version
1.2.0, but in 3, I could not find out, where it is used. And even if I find
it, there could be more SNAPSHOTS, which cannot be found by maven. Did you
not have the same problem?



clement escoffier wrote:
> 
> Hi,
> 
> I don't get the error.
> Can you try to:
> -delete bndlib from your local maven repo (in .m2/repository/biz/aQute)
> - compile the trunk with mvn clean install -Dpackaging=plugins
> -Check that you download bnd, so you should see something like:
> Downloading:
> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.pom
> 864b downloaded  (bndlib-0.0.311.pom)
> Downloading:
> http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.jar
> 150K downloaded  (bndlib-0.0.311.jar)
> 
> Regards,
> 
> Clement
> 
> 
> On 27.04.2009, at 15:05, itripleeee wrote:
> 
>>
>> I wanted to build felix, so I downloaded the sources and followed the
>> instruction here: http://felix.apache.org/site/building-felix.html
>>
>> When I run the command "mvn -Dpackaging=plugins install"
>>
>> D:\Test\felix\bundleplugin\src\main\java\org\apache\felix 
>> \bundleplugin\AbstractDependencyFilter.java:[53,22]
>> cannot find symbol
>> symbol  : class Instruction
>> location: class
>> org 
>> .apache.felix.bundleplugin.AbstractDependencyFilter.DependencyFilter
>>
>> and a lot of Erros looking like this.
>>
>> And after that, when I run the command "mvn -Dpackaging=bundle  
>> install" I
>> get the followeing error message
>> [INFO] Internal error in the plugin manager executing goal
>> 'org.apache.felix:mav
>> en-bundle-plugin:1.4.3:bundle': Unable to load the mojo
>> 'org.apache.felix:maven-
>> bundle-plugin:1.4.3:bundle' in the plugin
>> 'org.apache.felix:maven-bundle-plugin'
>> . A required class is missing: aQute/lib/osgi/Resource
>>
>> What I'm doing wrong? I could not find an error msg like this in  
>> google or
>> here. May some please explain me, why the build does not work? Thanks.
>> -- 
>> View this message in context:
>> http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23255846.html
>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23258672.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


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


Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

Posted by Clement Escoffier <cl...@gmail.com>.
Hi,

I don't get the error.
Can you try to:
-delete bndlib from your local maven repo (in .m2/repository/biz/aQute)
- compile the trunk with mvn clean install -Dpackaging=plugins
-Check that you download bnd, so you should see something like:
Downloading: http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.pom
864b downloaded  (bndlib-0.0.311.pom)
Downloading: http://repo1.maven.org/maven2/biz/aQute/bndlib/0.0.311/bndlib-0.0.311.jar
150K downloaded  (bndlib-0.0.311.jar)

Regards,

Clement


On 27.04.2009, at 15:05, itripleeee wrote:

>
> I wanted to build felix, so I downloaded the sources and followed the
> instruction here: http://felix.apache.org/site/building-felix.html
>
> When I run the command "mvn -Dpackaging=plugins install"
>
> D:\Test\felix\bundleplugin\src\main\java\org\apache\felix 
> \bundleplugin\AbstractDependencyFilter.java:[53,22]
> cannot find symbol
> symbol  : class Instruction
> location: class
> org 
> .apache.felix.bundleplugin.AbstractDependencyFilter.DependencyFilter
>
> and a lot of Erros looking like this.
>
> And after that, when I run the command "mvn -Dpackaging=bundle  
> install" I
> get the followeing error message
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.felix:mav
> en-bundle-plugin:1.4.3:bundle': Unable to load the mojo
> 'org.apache.felix:maven-
> bundle-plugin:1.4.3:bundle' in the plugin
> 'org.apache.felix:maven-bundle-plugin'
> . A required class is missing: aQute/lib/osgi/Resource
>
> What I'm doing wrong? I could not find an error msg like this in  
> google or
> here. May some please explain me, why the build does not work? Thanks.
> -- 
> View this message in context: http://www.nabble.com/Felix-Build-Error---Unable-to-load-the-mojo-org.apache.felix%3Amaven-bundle-plugin%3A1.4.3%3Abundle-tp23255846p23255846.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>


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