This is my first time on a Mac. I have maven 2.2.1 installed on a Mac...but,
I have never been successfully able to execute a "mvn install" or "mvn clean
install". It would great if someone could help me out from the issues I am
having....

Firstly,I downloaded Maven 2.2.1 (tar.gz), but when I try to untar it, it
errors out in "file format unrecognized". And, every new download of Maven
2.2.1 (tar.gz) would result in different file size. So, I downloaded Maven
2.2.1 (tar.bz2) and it worked...I don't know if this could be the root cause
of all the issues I am having...

"mvn install" - When I run this command, it errors out in error: error
reading /Users/XXXXX/.m2/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar;
cannot read zip file. Basically, it unable to read jar file from repository.
I have no clue why. The file is right there in the repository, but unable to
read. but, there is one strange thing I noticed. Along with
jaxb-api-2.1.jar, there is a corresponding .pom file and both these files
have same size 357. huh?

"mvn clean install" - When I run this command, it errors out as
java.lang.NoClassDefFoundError:
org/apache/maven/shared/io/logging/MessageSink. Here is the stack trace...




java.lang.NoClassDefFoundError:
org/apache/maven/shared/io/logging/MessageSink
        at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:171)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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)
Caused by: java.lang.ClassNotFoundException:
org.apache.maven.shared.io.logging.MessageSink
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
        at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
        at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
        at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
        ... 20 more



-- 
View this message in context: 
http://old.nabble.com/Maven-Install-on-Mac-OS-X-tp26657605p26657605.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to