You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jason Pyeron <jp...@pdinc.us> on 2011/08/17 20:49:06 UTC

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 
> 		<dependency>
> 			<groupId>org.springframework.ws</groupId>
> 			<artifactId>spring-ws-security</artifactId>
> 			<version>2.0.2.RELEASE</version>
> 		</dependency>
> 
> I get a NPE (see attached log) if I comment it out it builds fine.

It stripped the log.

> 
> Where to start on this?
> 

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- 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.

RE: [maven] Troubleshooting a NPE in maven build

Posted by Robert Scholte <rf...@codehaus.org>.

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

 

-Robert

 

----------------------------------------
> From: jpyeron@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
> >
> <snip/>
> > > >
> > > > When I add
> > > > <dependency>
> > > > <groupId>org.springframework.ws</groupId>
> > > > <artifactId>spring-ws-security</artifactId>
> > > > <version>2.0.2.RELEASE</version>
> > > > </dependency>
> > > >
> > > > I get a NPE (see attached log) if I comment it out it builds fine.
>
> <snip/>
>
> > 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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 		 	   		  
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [maven] Troubleshooting a NPE in maven build

Posted by Wayne Fay <wa...@gmail.com>.
> 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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [maven] Troubleshooting a NPE in maven build

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----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
> 
<snip/>
> > > 
> > > When I add 
> > > 		<dependency>
> > > 			<groupId>org.springframework.ws</groupId>
> > > 			<artifactId>spring-ws-security</artifactId>
> > > 			<version>2.0.2.RELEASE</version>
> > > 		</dependency>
> > > 
> > > I get a NPE (see attached log) if I comment it out it builds fine.

<snip/>

> 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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [maven] Troubleshooting a NPE in maven build

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----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 
> > 		<dependency>
> > 			<groupId>org.springframework.ws</groupId>
> > 			<artifactId>spring-ws-security</artifactId>
> > 			<version>2.0.2.RELEASE</version>
> > 		</dependency>
> > 
> > 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 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.