NPE --- Key: MREPOSITORY-13 URL: http://jira.codehaus.org/browse/MREPOSITORY-13 Project: Maven 2.x Repository Plugin Issue Type: Bug Affects Versions: 2.0 Environment: OS name: "linux" version: "2.6.28-11-generic" arch: "i386" Java version: 1.6.0_13 Reporter: Aaron Stromas
I have configured Artifactory and have tried to build Spring 2.0.7 sample projects. Running mvn clean compile generates NPE: java.lang.NullPointerException at org.apache.maven.wagon.PathUtils.protocol(PathUtils.java:206) at org.apache.maven.wagon.repository.Repository.setUrl(Repository.java:121) at org.apache.maven.wagon.repository.Repository.<init>(Repository.java:74) at org.apache.maven.artifact.repository.DefaultArtifactRepository.<init>(DefaultArtifactRepository.java:87) at org.apache.maven.artifact.repository.DefaultArtifactRepository.<init>(DefaultArtifactRepository.java:57) at org.apache.maven.artifact.manager.DefaultWagonManager.addMirror(DefaultWagonManager.java:940) at org.apache.maven.DefaultMaven.resolveParameters(DefaultMaven.java:657) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:270) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) I saw a couple of posts about missing <dependencyManagement> and <url> elemants, so I have created the <dependemcyManagement> and <repositories> from settings.xml into the project's pom.xml. To no avail, I'm still getting the NPE. Here are my repositories, as they appear in settings.xml: <repositories> <repository> <id>central</id> <name>Artifactory Repository</name> <url>http://localhost.com:8081/artifactory/repo</url> <snapshots> <enabled>fals</enabled> </snapshots> </repository> <repository> <id>snapshots</id> <name>Artifactory Repository</name> <url>http://localhost.com:8081/artifactory/repo</url> <releases> <enabled>false</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://localhost.com:8081/artifactory/plugin-releases</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>snapshots</id> <url>http://localhost.com:8081/artifactory/plugin-snapshots</url> <releases> <enabled>false</enabled> </releases> </pluginRepository> </pluginRepositories> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira