Skip to main content

Maven dependency errors while trying to build Metro

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
gmazza
Offline
Joined: 2005-01-14

Hello, I checked out Metro (WSIT) from https://svn.java.net/svn/wsit~svn/trunk (URL as advertised here: http://java.net/projects/wsit/sources/svn/show/trunk?rev=6834), then, from the wsit folder, ran "mvn clean install". But I'm getting this error on WS-TX while building:

[INFO] Reactor Summary:
[INFO]
[INFO] Metro Web Services Stack Project .................. SUCCESS [3.430s]
[INFO] Metro Configuration Management Project ............ SUCCESS [0.011s]
[INFO] Metro Configuration Management API ................ SUCCESS [40.169s]
[INFO] Metro Common Utilities and Classes ................ SUCCESS [2.116s]
[INFO] Metro Configuration Project ....................... SUCCESS [0.026s]
[INFO] Metro Configuration API ........................... SUCCESS [1.206s]
[INFO] SOAP over TCP Transport Project ................... SUCCESS [0.011s]
[INFO] SOAP over TCP Transport API ....................... SUCCESS [0.940s]
[INFO] Metro Configuration Implementation ................ SUCCESS [4.045s]
[INFO] Metro Configuration Management Implementation ..... SUCCESS [3.191s]
[INFO] WS-Security Project ............................... SUCCESS [0.006s]
[INFO] WS-SX API ......................................... SUCCESS [7.597s]
[INFO] Metro Runtime Project ............................. SUCCESS [0.005s]
[INFO] Metro Runtime API ................................. SUCCESS [1.103s]
[INFO] WSIT XML Document Filtering Project ............... SUCCESS [2.377s]
[INFO] SOAP over TCP Transport Implementation ............ SUCCESS [17.165s]
[INFO] Metro Runtime Implementation ...................... SUCCESS [3.733s]
[INFO] WS-MetadataExchange Service Implementation ........ SUCCESS [2.335s]
[INFO] WS-RX Project ..................................... SUCCESS [0.026s]
[INFO] WS-MakeConnection API ............................. SUCCESS [1.226s]
[INFO] WS-ReliableMessaging API .......................... SUCCESS [1.245s]
[INFO] WS-RX Common Utilities and Classes ................ SUCCESS [1.667s]
[INFO] WS-MakeConnection Implementation .................. SUCCESS [2.317s]
[INFO] WS-ReliableMessaging Implementation ............... SUCCESS [24.853s]
[INFO] WS-RX Testing Support ............................. SUCCESS [1.312s]
[INFO] WS-SX Implementation .............................. SUCCESS [3:07.974s]
[INFO] WS-TX Project ..................................... SUCCESS [0.005s]
[INFO] WS-TX API ......................................... SUCCESS [1.035s]
[INFO] WS-TX Core ........................................ SUCCESS [1.103s]
[INFO] WS-TX Implementation .............................. FAILURE [3.476s]
[INFO] WS-TX Protocol Web Services ....................... SKIPPED
[INFO] Metro Bundles ..................................... SKIPPED
[INFO] Metro Web Services API non-OSGi Bundle ............ SKIPPED
[INFO] Metro Web Services Interoperability Technology API Bundle SKIPPED
[INFO] Metro Web Services Interoperability Technology Implementation Bundle SKIPPED
[INFO] Metro Web Services Runtime non-OSGi Bundle ........ SKIPPED
[INFO] Metro Web Services Tools non-OSGi Bundle .......... SKIPPED
[INFO] Metro Web Services Extra Runtime non-OSGi Bundle .. SKIPPED
[INFO] Metro Web Services Extra API non-OSGi Bundle ...... SKIPPED
[INFO] Metro Web Services API OSGi Bundle ................ SKIPPED
[INFO] Extra JDK 6 packages required by Metro Web Services OSGi bundle SKIPPED
[INFO] Metro Web Services Runtime OSGi Bundle ............ SKIPPED
[INFO] Metro Web Services Runtime OSGi Bundle for AIX .... SKIPPED
[INFO] Metro Web Services Standalone Zipped Bundle ....... SKIPPED
[INFO] Metro Web Services Base Dependencies .............. SKIPPED

[ERROR] Failed to execute goal on project wstx-impl: Could not resolve dependencies for project org.glassfish.metro:wstx-impl:jar:2.2-SNAPSHOT: Failed to collect dependencies for [javax.ejb:ejb-api:jar:3.0 (provided), javax.transaction:transaction-api:jar:1.1 (provided), javax.resource:connector-api:jar:1.5 (provided), org.glassfish.metro:wstx-core:jar:2.2-SNAPSHOT (compile), org.glassfish.metro:wstx-api:jar:2.2-SNAPSHOT (compile), org.glassfish.metro:metro-runtime-api:jar:2.2-SNAPSHOT (compile), com.sun.istack:istack-commons-runtime:jar:2.2.1 (compile), javax.xml.bind:jaxb-api:jar:2.2.3 (compile), com.sun.xml.bind:jaxb-impl:jar:2.2.4-1 (compile), javax.xml.ws:jaxws-api:jar:2.2.5-promoted-b01 (compile), com.sun.xml.ws:jaxws-rt:jar:2.2.6-promoted-b01 (compile), javax.jws:jsr181-api:jar:1.0-MR1 (compile), javax.annotation:jsr250-api:jar:1.0 (compile), com.sun.xml.ws:policy:jar:2.2.2 (compile), javax.xml.soap:saaj-api:jar:1.3.3 (compile), javax.xml.stream:stax-api:jar:1.0-2 (compile)]: Failed to read artifact descriptor for javax.ejb:ejb-api:jar:3.0: Could not transfer artifact javax.ejb:ejb-api:pom:3.0 from/to m1.legacy.java.net (http://download.java.net/maven/1): No connector available to access repository m1.legacy.java.net (http://download.java.net/maven/1) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Any idea what the problem is? "mvn clean install" should ordinarily run OOTB successfully.

Thanks,

Glen

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmazza
Offline
Joined: 2005-01-14

OK, this question was already answered on the Metro-Dev mailing list, I just needed to owngrade to Maven 2.2.1 instead of Maven 3.0.3:

http://metro.1045641.n5.nabble.com/Building-Metro-2-1-from-source-td4371...