Re: [maven] Troubleshooting a NPE in maven build

2011-08-17 Thread Wayne Fay
> A work around is to install the artifact by hand.
>
> But what is the solution to connect to a maven 1 repo?

Install an MRM like Nexus, Artifactory, Archiva and these problems
magically go away...

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [maven] Troubleshooting a NPE in maven build

2011-08-17 Thread Robert Scholte


https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-LegacystyleRepositories

 

-Robert

 


> From: jpye...@pdinc.us
> To: users@maven.apache.org
> Subject: RE: [maven] Troubleshooting a NPE in maven build
> Date: Wed, 17 Aug 2011 15:09:49 -0400
>
> > -Original Message-
> > From: Jason Pyeron
> > Sent: Wednesday, August 17, 2011 15:00
> > To: 'Maven Users List'
> > Subject: RE: [maven] Troubleshooting a NPE in maven build
> >
> 
> > > >
> > > > When I add
> > > > 
> > > > org.springframework.ws
> > > > spring-ws-security
> > > > 2.0.2.RELEASE
> > > > 
> > > >
> > > > I get a NPE (see attached log) if I comment it out it builds fine.
>
> 
>
> > Failed to read artifact descriptor for
> > com.sun.xml.wss:xws-security:jar:3.0:
> > Could not transfer artifact
> > com.sun.xml.wss:xws-security:pom:3.0 from/to java.net
> > (http://download.java.net/maven/1/): No connector available
> > to access repository java.net
> > (http://download.java.net/maven/1/) of type legacy using the
> > available factories WagonRepositoryConnectorFactory -> [Help 1]
> >
>
> A work around is to install the artifact by hand.
>
> mvn install:install-file -Dfile=tmp/xws-security-3.0.jar
> -DgroupId=com.sun.xml.wss -DartifactId=xws-security -Dversion=3.0
> -Dpackaging=jar -DgeneratePom=true
>
> But what is the solution to connect to a maven 1 repo?
>
> -Jason
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> - -
> - Jason Pyeron PD Inc. http://www.pdinc.us -
> - Principal Consultant 10 West 24th Street #100 -
> - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
> - -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [maven] Troubleshooting a NPE in maven build

2011-08-17 Thread Jason Pyeron
> -Original Message-
> From: Jason Pyeron 
> Sent: Wednesday, August 17, 2011 15:00
> To: 'Maven Users List'
> Subject: RE: [maven] Troubleshooting a NPE in maven build
> 

> > > 
> > > When I add 
> > >   
> > >   org.springframework.ws
> > >   spring-ws-security
> > >   2.0.2.RELEASE
> > >   
> > > 
> > > I get a NPE (see attached log) if I comment it out it builds fine.



> Failed to read artifact descriptor for 
> com.sun.xml.wss:xws-security:jar:3.0:
> Could not transfer artifact 
> com.sun.xml.wss:xws-security:pom:3.0 from/to java.net 
> (http://download.java.net/maven/1/): No connector available 
> to access repository java.net 
> (http://download.java.net/maven/1/) of type legacy using the 
> available factories WagonRepositoryConnectorFactory -> [Help 1]
> 

A work around is to install the artifact by hand.

mvn install:install-file -Dfile=tmp/xws-security-3.0.jar
-DgroupId=com.sun.xml.wss -DartifactId=xws-security -Dversion=3.0
-Dpackaging=jar  -DgeneratePom=true

But what is the solution to connect to a maven 1 repo?

-Jason


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [maven] Troubleshooting a NPE in maven build

2011-08-17 Thread Jason Pyeron
> -Original Message-
> From: Jason Pyeron 
> Sent: Wednesday, August 17, 2011 14:49
> To: 'Maven Users List'
> Subject: RE: [maven] Troubleshooting a NPE in maven build
> 
>  
> > -Original Message-
> > From: Jason Pyeron
> > Sent: Wednesday, August 17, 2011 14:47
> > To: 'Maven Users List'
> > Subject: [maven] Troubleshooting a NPE in maven build
> > 
> > When I add 
> > 
> > org.springframework.ws
> > spring-ws-security
> > 2.0.2.RELEASE
> > 
> > 
> > I get a NPE (see attached log) if I comment it out it builds fine.
> 
> It stripped the log.
> 
> > 
> > Where to start on this?
> > 

Running:

mvn dependency:go-offline

Tells me:

Failed to read artifact descriptor for com.sun.xml.wss:xws-security:jar:3.0:
Could not transfer artifact com.sun.xml.wss:xws-security:pom:3.0 from/to
java.net (http://download.java.net/maven/1/): No connector available to access
repository java.net (http://download.java.net/maven/1/) of type legacy using the
available factories WagonRepositoryConnectorFactory -> [Help 1]

Full log attached. I am googling this one right now.

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: C:\Documents and Settings\All 
Users\workspace\fepl_5010_web_services\var\opt\apache-maven-3.0.3
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_26\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp", version: "5.2", arch: "amd64", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\Documents and Settings\All 
Users\workspace\fepl_5010_web_services\var\opt\apache-maven-3.0.3\conf\settings.xml
[DEBUG] Reading user settings from C:\Documents and 
Settings\jpyeron\.m2\settings.xml
[DEBUG] Using local repository at C:\Documents and Settings\All 
Users\workspace\fepl_5010_web_services\.\lib\mvn
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for 
C:\Documents and Settings\All Users\workspace\fepl_5010_web_services\.\lib\mvn
[INFO] Scanning for projects...
[DEBUG] Extension realms for project 
com.carefirst.fep.local.webservices:fepl5010webServices:war:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging war from 
ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix dependency from [org.apache.maven.plugins, 
org.codehaus.mojo]
[DEBUG] Resolved plugin prefix dependency to 
org.apache.maven.plugins:maven-dependency-plugin from POM 
com.carefirst.fep.local.webservices:fepl5010webServices:war:1.0-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN 
[DEBUG] Project: 
com.carefirst.fep.local.webservices:fepl5010webServices:war:1.0-SNAPSHOT
[DEBUG] Tasks:   [dependency:go-offline]
[DEBUG] Style:   Regular
[DEBUG] ===
[INFO] 
[INFO] 
[INFO] Building fepl 5010 Spring-WS Application 1.0-SNAPSHOT
[INFO] 
[DEBUG] Resolving plugin prefix dependency from [org.apache.maven.plugins, 
org.codehaus.mojo]
[DEBUG] Resolved plugin prefix dependency to 
org.apache.maven.plugins:maven-dependency-plugin from POM 
com.carefirst.fep.local.webservices:fepl5010webServices:war:1.0-SNAPSHOT
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, 
process-sources, generate-resources, process-resources, compile, 
process-classes, generate-test-sources, process-test-sources, 
generate-test-resources, process-test-resources, test-compile, 
process-test-classes, test, prepare-package, package, pre-integration-test, 
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN 
[DEBUG] Project:   
com.carefirst.fep.local.webservices:fepl5010webServices:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[