Yes, spring repositories are part of the default list of maven
repositories searched by pax runner:
private static final String DEFAULT_REPOSITORIES =
"http://repo1.maven.org/maven2,"
+ "http://repository.ops4j.org/maven2,"
+ "http://repository.springsource.com/maven/bundles/release,"
+ "http://repository.springsource.com/maven/bundles/external"
On Sun, Dec 28, 2008 at 6:12 PM, Peter Gardfjäll
<[email protected]> wrote:
> Hi Thomas,
>
> I have been using the <repositories> tag in the pom.xml file to
> specify this and until now it has been working fine (or at least I
> thought it was ... :) .
>
> In fact, from the output in my previous mail you can see that pax
> runner searches two springsource maven repositories (which I also have
> defined in my pom file). Are they part of the default pax-runner setup
> as well?
>
> Hmm, the link you sent me appears to be broken.
>
> regards, Peter
>
>
>
> On Sun, Dec 28, 2008 at 5:03 PM, Thomas Joseph <[email protected]> wrote:
>> Hi Peter,
>>
>> Pax runner uses mvn protocol handler to download the artifacts, but it is
>> not the maven itself. The handler needs to be aware of the repositories.
>> What you see on the log output are the repositories that are configured for
>> it by default. See here http://wiki.ops4j.org/confluence/x/CoA6 on
>> configuring the mvn protocol handler. You can easily configure the
>> repositories at the command line with the option 'repos'.
>>
>> Did you try this option?
>>
>> HTH
>> /Thomas Joseph
>>
>> On Sun, Dec 28, 2008 at 6:19 PM, Peter Gardfjäll <[email protected]>
>> wrote:
>>>
>>> Hi all,
>>>
>>> I am trying to get Pax Runner to download the OSGi-ified catalina
>>> (tomcat) bundle from Spring's maven repository.
>>> Unfortunately, this fails. Pax Runner doesn't seem to be able to find
>>> the requested file.
>>>
>>> I am using Pax Runner's pom scanner and my pom file contains the
>>> following dependency:
>>>
>>> <dependency>
>>> <groupId>org.springframework.osgi</groupId>
>>> <artifactId>catalina.osgi</artifactId>
>>> <version>6.0.16-SNAPSHOT</version>
>>> </dependency>
>>>
>>> and I have included the following maven repository
>>>
>>> <repository>
>>> <id>i21-s3-osgi-repo</id>
>>> <name>i21 osgi artifacts repo</name>
>>> <snapshots>
>>> <enabled>true</enabled>
>>> </snapshots>
>>> <url>http://maven.springframework.org/osgi</url>
>>> </repository>
>>>
>>> What's strange is that Pax-Runner doesn't even seem to include this
>>> repository in its search.
>>> At least not judging by this log output:
>>>
>>> -> Using repositories
>>>
>>> [[file:/C:/Documents%20and%20Settings/peter/.m2/repository/,releases=true,snapshots=true,
>>> http://repo1.maven.org/maven2/,releases=true,snapshots=false,
>>> http://repository.ops4j.org/maven2/,releases=true,snapshots=false,
>>>
>>> http://repository.springsource.com/maven/bundles/release/,releases=true,snapshots=false,
>>>
>>> http://repository.springsource.com/maven/bundles/external/,releases=true,snapshots=false]
>>>
>>>
>>> If I am usign the same dependency/repository combination in a regular
>>> maven build the dependency gets downloaded as expected.
>>> Furthermore, once the dependency is available in the local maven repo
>>> Pax Runner has no problem picking it up.
>>> But if I delete it and re-run Pax-Runner it fails to download it.
>>>
>>> Am I doing something wrong here or is Pax-Runner at fault?
>>> BTW, I am using version 0.16.0 of Pax Runner.
>>>
>>> regards, Peter
>>>
>>> _______________________________________________
>>> general mailing list
>>> [email protected]
>>> http://lists.ops4j.org/mailman/listinfo/general
>>
>>
>> LinkedIn: http://www.linkedin.com/in/ethomasjoseph
>> ------------------------------------------------------------
>> Promote Open Source - Promote Liberty of Ideas and Software.
>> ------------------------------------------------------------
>>
>> _______________________________________________
>> general mailing list
>> [email protected]
>> http://lists.ops4j.org/mailman/listinfo/general
>>
>>
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>
--
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven
Development.
http://malaysia.jayway.net - New Energy for Projects - Great People
working on Great Projects at Great Places
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general