You have define a proxy in your settings.xml, and the port isn't an integer.

Emmanuel

Christopher Haskins wrote:
Hi,

I have just installed Maven 2.0 on a linux box and I am following the
setup instructions. I am just at the stage where I am creating a project
skeleton and I run the following command;  m2 archetype:create
-DgroupId=com.mycompany.app -DartifactId=my-app

I get a java.lang.NumberFormatException: For input string: "".

The stack trace is as follows;

constituent[0]:
file:/usr/local/maven-2.0-alpha-3/lib/wagon-http-lightweight-1.0-alpha-4
.jar

constituent[1]:
file:/usr/local/maven-2.0-alpha-3/lib/wagon-ssh-1.0-alpha-4.jar

constituent[2]:
file:/usr/local/maven-2.0-alpha-3/lib/commons-validator-1.1.4.jar

constituent[3]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-model-2.0-alpha-3.jar

constituent[4]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-profile-2.0-alpha-3.jar

constituent[5]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-settings-2.0-alpha-3.jar

constituent[6]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-plugin-registry-2.0-alpha-3.
jar

constituent[7]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-plugin-descriptor-2.0-alpha-
3.jar

constituent[8]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-core-2.0-alpha-3.jar

constituent[9]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-reporting-api-2.0-alpha-3.ja
r

constituent[10]: file:/usr/local/maven-2.0-alpha-3/lib/jsch-0.1.17.jar

constituent[11]: file:/usr/local/maven-2.0-alpha-3/lib/oro-2.0.7.jar

constituent[12]:
file:/usr/local/maven-2.0-alpha-3/lib/wagon-provider-api-1.0-alpha-4.jar

constituent[13]:
file:/usr/local/maven-2.0-alpha-3/lib/plexus-input-handler-1.0-alpha-2.j
ar

constituent[14]:
file:/usr/local/maven-2.0-alpha-3/lib/commons-cli-1.0-beta-2.jar

constituent[15]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-monitor-2.0-alpha-3.jar

constituent[16]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-plugin-api-2.0-alpha-3.jar

constituent[17]:
file:/usr/local/maven-2.0-alpha-3/lib/doxia-core-1.0-alpha-3.jar

constituent[18]: file:/usr/local/maven-2.0-alpha-3/lib/jline-0.9.1.jar

constituent[19]:
file:/usr/local/maven-2.0-alpha-3/lib/wagon-file-1.0-alpha-4.jar

constituent[20]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-artifact-manager-2.0-alpha-3
.jar

constituent[21]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-artifact-2.0-alpha-3.jar

constituent[22]:
file:/usr/local/maven-2.0-alpha-3/lib/maven-project-2.0-alpha-3.jar

---------------------------------------------------

java.lang.NumberFormatException: For input string: ""

        at
java.lang.NumberFormatException.forInputString(NumberFormatException.jav
a:48)

        at java.lang.Integer.parseInt(Integer.java:489)

        at java.lang.Integer.valueOf(Integer.java:574)

        at
org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.getIntegerValue(Set
tingsXpp3Reader.java:148)

        at
org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseProxy(Settings
Xpp3Reader.java:451)

        at
org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseSettings(Setti
ngsXpp3Reader.java:601)

        at
org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.read(SettingsXpp3Re
ader.java:979)

        at
org.apache.maven.settings.DefaultMavenSettingsBuilder.readSettings(Defau
ltMavenSettingsBuilder.java:89)

        at
org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(Defa
ultMavenSettingsBuilder.java:110)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:177)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)

        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:363)

Has anyone seen this before and if so is there a fix for it?

Thanks

Chris Haskins

Senior Analyst Developer

Logistics & Information Systems
Customer Solutions & Support
BAE SYSTEMS

Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Tel:     + 44 (0) 1454 284900

Fax:    + 44 (0) 1454 284950

This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender. You
should not copy it or use it for any purpose nor disclose or distribute
its contents to any other person.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to