If you use proxy repository and you have non-standard maven installation (no 
repo at ~/.m2/repository) it’s possible that pax-exam rely on defaults thus it 
doesn’t recognize your local repository/maven settings.

Make sure your maven settings are located in ~/.m2/settings.xml not in 
M2_HOME/conf/settings.xml.

Cheers,
Lukasz

> Wiadomość napisana przez hsinchen <[email protected]> w dniu 4 cze 2015, o 
> godz. 03:59:
> 
> Hi,
> 
> I would like to do testing with PAX-EAXM for Karaf. But, meeting Maven
> connection problem. 
> 
> Caused by: java.io.IOException: Error resolving artifact
> org.apache.karaf:apache-karaf:zip:3.0.1: Could not transfer artifact
> org.apache.karaf:apache-karaf:zip:3.0.1 from/to central
> (http://repo1.maven.org/maven2/): Error transferring file: Connection timed
> out: connect
> 
> We have internal Nexus to mirror outside repositories. During the compiling,
> all of dependency libraries including the Karaf 3.0.1 are downloaded from
> the internal Nexus. I could see it at local maven repository. But, it seems
> that the testing code would connect the outside repository directly, but not
> local maven repository or the internal Nexus repository. May I know how to
> change it to access our internal repository?
> 
> 
> 
> 
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Integration-Test-by-PAX-EXAM-tp4040735.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to