You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Felix Meschberger <fm...@adobe.com> on 2012/10/18 11:50:30 UTC

[DS] Current trunk of scr project requires non-central artifact

Hi all

The scr project currently does not build successfully due to requiring one or more artifacts not available from the central maven repository.

The integration tests all fail with messages like this:

 test_required_multiple_static:ServiceBindTest.test_required_multiple_static:org.ops4j.pax.exam.forked.ForkedTestContainer@657ba64f(org.apache.felix.scr.integration.ServiceBindTest): Could not find artifact org.junit:com.springsource.org.junit:jar:4.9.0 in central (http://repo1.maven.org/maven2/)

Where does this integration test time "dependency" come from ?
And how can the build be configured to be able to get it when needed ?

Regards
Felix

Re: [DS] Current trunk of scr project requires non-central artifact

Posted by Pierre De Rop <pi...@gmail.com>.
Felix,

it sounds like this problem has also been seen here:

http://mail-archives.apache.org/mod_mbox/sling-dev/201203.mbox/%3CCAKkCf4oM=gTxaMv1gBkdndVf_vyGua8dC3GE86DSrO8ysSn+5Q@mail.gmail.com%3E



So, adding the following in the pom.xml seems to resolve the problem:

    <repositories>
        <repository>
            <id>com.springsource.repository.bundles.release</id>
            <name>EBR Spring Release Repository</name>
            <url>http://repository.springsource.com/maven/bundles/release
</url>
        </repository>
        <repository>
            <id>com.springsource.repository.bundles.external</id>
            <name>EBR External Release Repository</name>
            <url>http://repository.springsource.com/maven/bundles/external
</url>
        </repository>
    </repositories>

<dependencies>
        <dependency>
            <groupId>org.junit</groupId>
            <artifactId>com.springsource.org.junit</artifactId>
            <version>4.9.0</version>
            <scope>test</scope>
        </dependency>
...

I prefer to let you check and commit this if you think it's ok ?


regards
/pierre




On Thu, Oct 18, 2012 at 1:08 PM, Pierre De Rop <pi...@gmail.com>wrote:

> Hi Felix,
>
> it seems that I also have the problem: I I removed everything from
> ~/.m2/repository and I then have the download problem. (but so far, before
> removing my repo, I did not have the problem):
>
> [org.ops4j.pax.url.mvn.internal.Connection] : Resolving
> [mvn:org.junit/com.springsource.org.junit/4.9.0]
> [org.ops4j.pax.url.mvn.internal.LogAdapter] : Using manager
> SimpleLocalRepositoryManager with priority 0 for /home/nxuser/.m2/repository
> [org.ops4j.pax.url.mvn.internal.LogAdapter] : Using connector
> WagonRepositoryConnector with priority 0 for
> http://repo1.maven.org/maven2/ via proxy.nextenso.alcatel.fr:3128 as null
>
>
> What is odd is that I'm also having an OutOfMemory after a few seconds.
>
> Error occurred during initialization of VM
> java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:640)
>         at java.lang.ref.Finalizer.<clinit>(Finalizer.java:176)
>
>
> regards
> /pierre
>
>
>
>
> On Thu, Oct 18, 2012 at 11:50 AM, Felix Meschberger <fm...@adobe.com>wrote:
>
>> Hi all
>>
>> The scr project currently does not build successfully due to requiring
>> one or more artifacts not available from the central maven repository.
>>
>> The integration tests all fail with messages like this:
>>
>>
>>  test_required_multiple_static:ServiceBindTest.test_required_multiple_static:org.ops4j.pax.exam.forked.ForkedTestContainer@657ba64f(org.apache.felix.scr.integration.ServiceBindTest):
>> Could not find artifact org.junit:com.springsource.org.junit:jar:4.9.0 in
>> central (http://repo1.maven.org/maven2/)
>>
>> Where does this integration test time "dependency" come from ?
>> And how can the build be configured to be able to get it when needed ?
>>
>> Regards
>> Felix
>
>
>

Re: [DS] Current trunk of scr project requires non-central artifact

Posted by Pierre De Rop <pi...@gmail.com>.
Hi Felix,

it seems that I also have the problem: I I removed everything from
~/.m2/repository and I then have the download problem. (but so far, before
removing my repo, I did not have the problem):

[org.ops4j.pax.url.mvn.internal.Connection] : Resolving
[mvn:org.junit/com.springsource.org.junit/4.9.0]
[org.ops4j.pax.url.mvn.internal.LogAdapter] : Using manager
SimpleLocalRepositoryManager with priority 0 for /home/nxuser/.m2/repository
[org.ops4j.pax.url.mvn.internal.LogAdapter] : Using connector
WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2/via
proxy.nextenso.alcatel.fr:3128 as null


What is odd is that I'm also having an OutOfMemory after a few seconds.

Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:640)
        at java.lang.ref.Finalizer.<clinit>(Finalizer.java:176)


regards
/pierre



On Thu, Oct 18, 2012 at 11:50 AM, Felix Meschberger <fm...@adobe.com>wrote:

> Hi all
>
> The scr project currently does not build successfully due to requiring one
> or more artifacts not available from the central maven repository.
>
> The integration tests all fail with messages like this:
>
>
>  test_required_multiple_static:ServiceBindTest.test_required_multiple_static:org.ops4j.pax.exam.forked.ForkedTestContainer@657ba64f(org.apache.felix.scr.integration.ServiceBindTest):
> Could not find artifact org.junit:com.springsource.org.junit:jar:4.9.0 in
> central (http://repo1.maven.org/maven2/)
>
> Where does this integration test time "dependency" come from ?
> And how can the build be configured to be able to get it when needed ?
>
> Regards
> Felix

Re: [DS] Current trunk of scr project requires non-central artifact

Posted by Felix Meschberger <fm...@adobe.com>.
Thanks for the quick turnaround.

Regards
Felix

Am 19.10.2012 um 08:55 schrieb David Jencks:

> Fixed, FELIX-3725, r1399981, and see http://team.ops4j.org/wiki/display/paxexam/JUnit+Driver
> 
> we needed a newer pax-exam.
> 
> david jencks
> 
> On Oct 18, 2012, at 6:29 PM, David Jencks wrote:
> 
>> this is odd, we switched to using the servicemix junit wrapper some time ago.... will look into it.
>> 
>> david jencks
>> 
>> On Oct 18, 2012, at 2:50 AM, Felix Meschberger wrote:
>> 
>>> Hi all
>>> 
>>> The scr project currently does not build successfully due to requiring one or more artifacts not available from the central maven repository.
>>> 
>>> The integration tests all fail with messages like this:
>>> 
>>> test_required_multiple_static:ServiceBindTest.test_required_multiple_static:org.ops4j.pax.exam.forked.ForkedTestContainer@657ba64f(org.apache.felix.scr.integration.ServiceBindTest): Could not find artifact org.junit:com.springsource.org.junit:jar:4.9.0 in central (http://repo1.maven.org/maven2/)
>>> 
>>> Where does this integration test time "dependency" come from ?
>>> And how can the build be configured to be able to get it when needed ?
>>> 
>>> Regards
>>> Felix
>> 
> 


Re: [DS] Current trunk of scr project requires non-central artifact

Posted by David Jencks <da...@yahoo.com>.
Fixed, FELIX-3725, r1399981, and see http://team.ops4j.org/wiki/display/paxexam/JUnit+Driver

we needed a newer pax-exam.

david jencks

On Oct 18, 2012, at 6:29 PM, David Jencks wrote:

> this is odd, we switched to using the servicemix junit wrapper some time ago.... will look into it.
> 
> david jencks
> 
> On Oct 18, 2012, at 2:50 AM, Felix Meschberger wrote:
> 
>> Hi all
>> 
>> The scr project currently does not build successfully due to requiring one or more artifacts not available from the central maven repository.
>> 
>> The integration tests all fail with messages like this:
>> 
>> test_required_multiple_static:ServiceBindTest.test_required_multiple_static:org.ops4j.pax.exam.forked.ForkedTestContainer@657ba64f(org.apache.felix.scr.integration.ServiceBindTest): Could not find artifact org.junit:com.springsource.org.junit:jar:4.9.0 in central (http://repo1.maven.org/maven2/)
>> 
>> Where does this integration test time "dependency" come from ?
>> And how can the build be configured to be able to get it when needed ?
>> 
>> Regards
>> Felix
> 


Re: [DS] Current trunk of scr project requires non-central artifact

Posted by David Jencks <da...@yahoo.com>.
this is odd, we switched to using the servicemix junit wrapper some time ago.... will look into it.

david jencks

On Oct 18, 2012, at 2:50 AM, Felix Meschberger wrote:

> Hi all
> 
> The scr project currently does not build successfully due to requiring one or more artifacts not available from the central maven repository.
> 
> The integration tests all fail with messages like this:
> 
> test_required_multiple_static:ServiceBindTest.test_required_multiple_static:org.ops4j.pax.exam.forked.ForkedTestContainer@657ba64f(org.apache.felix.scr.integration.ServiceBindTest): Could not find artifact org.junit:com.springsource.org.junit:jar:4.9.0 in central (http://repo1.maven.org/maven2/)
> 
> Where does this integration test time "dependency" come from ?
> And how can the build be configured to be able to get it when needed ?
> 
> Regards
> Felix