Maven - problem running targets

I am using a fresh install of Idea 10.5. The only modifications I made are installing the Scala and SBT plugins.

I imported an existing Maven project that builds fine from the command line.

I created a Run/Debug configuration, selected Maven and set the goals to 'clean test'. (I also tried 'clean install' with the same result)

I'm getting a ClassNotFoundException for com.intellij.rt.execution.application.AppMain

I tried messing around with Maven's -cp arguments, but I can't imagine that's necessary to do simple Maven builds (and it did not work). What's going wrong here?

Entire output of my build attempt pasted below: Thanks.

Gregg

/rel/third_party/jdk/jdk1.6.0_20_64/jre/bin/java -javaagent:/usr/pic1/m2/org/springframework/org.springframework.instrument/3.0.2.RELEASE/org.springframework.instrument-3.0.2.RELEASE.jar -cp /usr/pic1/m2/com/oracle/ojdbc14/10.2.0.4/ojdbc14-10.2.0.4.jar -Dclassworlds.conf=/rel/third_party/maven/2.2.1/bin/m2.conf -Dmaven.home=/rel/third_party/maven/2.2.1 -Didea.launcher.port=7532 -Didea.launcher.bin.path=/usr/pic1/idea-IC-107.105/bin -Dfile.encoding=UTF-8 com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast --no-plugin-updates --strict-checksums --update-snapshots -DskipTests=true -f /home/gcarrier/arwork/pam_java/pam_project_service/pam_project-service/pom.xml clean install
Exception in thread "main" java.lang.NoClassDefFoundError: com/intellij/rt/execution/application/AppMain
Caused by: java.lang.ClassNotFoundException: com.intellij.rt.execution.application.AppMain
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: com.intellij.rt.execution.application.AppMain.  Program will exit.

Process finished with exit code 1

Please sign in to leave a comment.