The problem is solved after I put a setting.xml into the ~/.m2/. Thank you.
It seems that Maven in Eclipse uses what I sets in Preference. But, PAX-EXAM uses the default location. Łukasz Dywicki [via Karaf] <[email protected]> 於 2015年6月5日 星期五寫道: > 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 <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4040753&i=0>> 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. > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://karaf.922171.n3.nabble.com/Integration-Test-by-PAX-EXAM-tp4040735p4040753.html > To unsubscribe from Integration Test by PAX-EXAM, click here > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4040735&code=aGN0c2FpZUBnbWFpbC5jb218NDA0MDczNXwtNTU1ODcwNjQ4> > . > NAML > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://karaf.922171.n3.nabble.com/Integration-Test-by-PAX-EXAM-tp4040735p4040915.html Sent from the Karaf - User mailing list archive at Nabble.com.
