Hi Thomas,

you were right. The --repos option works.
But it overrides the default repos, which means I must explicitly
specify each maven repo pax runner should visit.
It would have been nice to have the possibilty to add repositories in
addition to the default ones (maybe there is such an option?).

I guess the lesson for me is that pax runner ignores the
<repositories> tag in the pom file.
The only reason I can see that it used to "work", is that I must have
had all those dependencies downloaded in my local repository.

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

Reply via email to