Hi all,
After upgrading from Ubuntu 9.04 to 9.10 Maven suddenly failed to launch
with the following exception:
p...@ubuntu-desktop:~/wirexn$ mvn --version
java.io.FileNotFoundException: /usr/share/maven2/bin/m2.conf (No such
file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:407)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Looks like the m2.conf file is a symlink to ../conf/m2.conf, but there
is no such file! Created an empty m2.conf file with one line:
# m2.conf
saved, and now I am getting:
p...@ubuntu-desktop:~/wirexn$ mvn --version
org.codehaus.classworlds.NoSuchRealmException
at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
at org.codehaus.classworlds.Launcher.getMainRealm(Launcher.java:181)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:290)
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)
Also, tried to reinstall the Maven package through Synaptic.
What should I check?
TIA,
Adrian.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org