You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Lars Fischer <re...@googlemail.com> on 2011/06/14 15:17:33 UTC

missing dependency

Hello,

I would like to create a custom distribution and followed this
documentation: http://karaf.apache.org/manual/2.1.99-SNAPSHOT/developers-guide/custom-distribution.html

First I want to rebuild the default distribution without any changes.

When running mvn install, I get an error about a missing dependency:

[ERROR] Failed to execute goal on project distri: Could not resolve
dependencies for project test.karaf:
distri:pom:0.0.1-SNAPSHOT: The following artifacts could not be
resolved: org.eclipse:osgi:jar:3.6.0.v20100517
, org.apache.karaf:apache-karaf:xml:features:2.2.1: Could not find
artifact org.eclipse:osgi:jar:3.6.0.v201005
17

What repository can I use to resolve this dependency?

Regards,
Lars

Re: missing dependency

Posted by Andreas Pieber <an...@gmail.com>.
Hey Lars,

For 2.2.1 use the standard and enterprise descriptors [1] (the
mvn:groupId/artifactId/version/xml/features part is correct)

Kind regards,
Andreas

http://search.maven.org/#browse%7C1168531339

On Tue, Jun 14, 2011 at 3:39 PM, Lars Fischer <re...@googlemail.com> wrote:
> 2011/6/14 Lars Fischer <re...@googlemail.com>:
>>
>> When running mvn install, I get an error about a missing dependency:
>>
>> [ERROR] Failed to execute goal on project distri: Could not resolve
>> dependencies for project test.karaf:
>> distri:pom:0.0.1-SNAPSHOT: The following artifacts could not be
>> resolved: org.eclipse:osgi:jar:3.6.0.v20100517
>> , org.apache.karaf:apache-karaf:xml:features:2.2.1: Could not find
>> artifact org.eclipse:osgi:jar:3.6.0.v201005
>> 17
>>
>> What repository can I use to resolve this dependency?
>
> Ok, org.eclipse:osgi:jar is available from the servicemix repository.
> (http://svn.apache.org/repos/asf/servicemix/m2-repo)
>
>
> But now I have the next missing dependency:
> org.apache.karaf:apache-karaf:xml:features:2.2.1
>
> The example uses a features-maven-plugin, which I configured with a
> descriptor like
> "<descriptor>mvn:org.apache.karaf/apache-karaf/${karaf.version}/xml/features</descriptor>"
>
> This artifact can not be resolved. What is the correct descriptor for
> karaf 2.2.1?
>
> Regards,
> Lars
>

Re: missing dependency

Posted by Lars Fischer <re...@googlemail.com>.
2011/6/14 Lars Fischer <re...@googlemail.com>:
>
> When running mvn install, I get an error about a missing dependency:
>
> [ERROR] Failed to execute goal on project distri: Could not resolve
> dependencies for project test.karaf:
> distri:pom:0.0.1-SNAPSHOT: The following artifacts could not be
> resolved: org.eclipse:osgi:jar:3.6.0.v20100517
> , org.apache.karaf:apache-karaf:xml:features:2.2.1: Could not find
> artifact org.eclipse:osgi:jar:3.6.0.v201005
> 17
>
> What repository can I use to resolve this dependency?

Ok, org.eclipse:osgi:jar is available from the servicemix repository.
(http://svn.apache.org/repos/asf/servicemix/m2-repo)


But now I have the next missing dependency:
org.apache.karaf:apache-karaf:xml:features:2.2.1

The example uses a features-maven-plugin, which I configured with a
descriptor like
"<descriptor>mvn:org.apache.karaf/apache-karaf/${karaf.version}/xml/features</descriptor>"

This artifact can not be resolved. What is the correct descriptor for
karaf 2.2.1?

Regards,
Lars