maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From koxkorr...@laudio.info
Subject nullpointerexception. SOS
Date Wed, 29 Oct 2008 15:56:28 GMT
Hello

i am stating using maven and i am finding a lot of problems.

now i made this command (bellow i writte the pom file):

mvn -B -s "C:\Documents and Settings\user\.m2\settings.xml" source:jar

and appears this problem (Can you help me please?):

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at org.apache.maven.wagon.PathUtils.protocol(PathUtils.java:206)
        at
org.apache.maven.wagon.repository.Repository.setUrl(Repository.java:1
21)
        at
org.apache.maven.wagon.repository.Repository.<init>(Repository.java:7
4)
        at
org.apache.maven.artifact.repository.DefaultArtifactRepository.<init>
(DefaultArtifactRepository.java:70)
        at
org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory
.createDeploymentArtifactRepository(DefaultArtifactRepositoryFactory.java:44)
        at
org.apache.maven.project.ProjectUtils.buildDeploymentArtifactReposito
ry(ProjectUtils.java:80)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLog
ic(DefaultMavenProjectBuilder.java:1060)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
aultMavenProjectBuilder.java:878)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:506)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:198)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
        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(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Oct 29 16:46:44 CET 2008
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------


My pom file is this:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>utils</groupId>
  <artifactId>utils</artifactId>
  <name>utils-Name</name>
  <version>1</version>
  <packaging>jar</packaging>
  <description>utils de utils</description>
  <url>http://www.mycompany.com</url>
    <prerequisites>
        <maven>2.0.6</maven>
    </prerequisites>
      <scm>
    </scm>

    <developers>

    </developers>
    <build>
		<extensions>
		</extensions>
		<plugins>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>

		</plugins>
	</build>
    <repositories>
		<repository>
			<id>repocache</id>
			<name>repocache</name>
			<url>http://myrepo:8080/archiva/repository/internal/</url>
		</repository></repositories>

    <distributionManagement>
    	<repository>
    	</repository>
    </distributionManagement>
</project>

Can you help me please?


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


Mime
View raw message