java - exec-maven-plugin error... can compile, but can NOT run project -


i asked here first... not concluded. please @ post first.

exec-maven-plugin error, on working example


=== current situation ===

  1. i modified jdk path fixed forcibly eclipse java build path , project build path.
  2. i can compile now. (with 'mvn -e compile exec:java')
  3. but can't run. (with 'mvn -e clean exec:java') maven not find mainclass
  4. i tried explicitly declared main class 'mvn -e clean exec:java -dexec.mainclass=com.jadex.qna.maventestproject.app'. gives me same error result.

=== data ===

here full code (including pom.xml, can open project eclipse)

https://github.com/arincblossom/maventestproject

this error log shown when run project 'mvn -e clean exec:java' (same edit5 previous post)

[warning]  [warning] problems encountered while building effective settings [warning] expected start_tag or end_tag not text (position: text seen ...ore artifacts.\n   |\n   | default: ${user.home}/.m2/repository\n  <l... @53:5)  @ c:\apache-maven-3.3.3\conf\settings.xml, line 53, column 5 [warning] expected start_tag or end_tag not text (position: text seen ...ore artifacts.\n   |\n   | default: ${user.home}/.m2/repository\n  <l... @53:5)  @ c:\apache-maven-3.3.3\conf\settings.xml, line 53, column 5 [warning]  [info] scanning projects... [info]                                                                          [info] ------------------------------------------------------------------------ [info] building maventestproject 0.0.1-snapshot [info] ------------------------------------------------------------------------ [info]  [info] --- maven-clean-plugin:2.5:clean (default-clean) @ maventestproject --- [info] deleting c:\users\bonavision_laptop\desktop\project\jadex\maventestproject\maventestproject\target [info]  [info] --- exec-maven-plugin:1.4.0:java (default-cli) @ maventestproject --- [warning]  java.lang.classnotfoundexception: com.jadex.qna.maventestproject.app     @ java.net.urlclassloader.findclass(urlclassloader.java:381)     @ java.lang.classloader.loadclass(classloader.java:424)     @ java.lang.classloader.loadclass(classloader.java:357)     @ org.codehaus.mojo.exec.execjavamojo$1.run(execjavamojo.java:281)     @ java.lang.thread.run(thread.java:745) [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 0.900 s [info] finished at: 2015-06-15t17:42:19+09:00 [info] final memory: 8m/153m [info] ------------------------------------------------------------------------ [error] failed execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (default-cli) on project maventestproject: exception occured while executing java class. com.jadex.qna.maventestproject.app -> [help 1] [error]  [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error]  [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception 



there way solve it? i'm stuck in 4 days now... please t_t

if run mvn clean exec:java compiled classes removed clean exec:java cannot find it's class execute.

if run mvn clean compile exec:java. clean remove compiled classes might there previous biuld. compile compile source codes , exec:java execute specified class.

if output not expect, maybe should better describe want achive.

output

[info] error stacktraces turned on. [info] scanning projects... [info] [info] ------------------------------------------------------------------------ [info] building maventestproject 0.0.1-snapshot [info] ------------------------------------------------------------------------ [info] [info] --- maven-clean-plugin:2.4.1:clean (default-clean) @ maventestproject --- [info] deleting /tmp/maventestproject/target [info] [info] --- maven-resources-plugin:2.5:resources (default-resources) @ maventestproject --- [debug] execute contextualize [info] using 'utf-8' encoding copy filtered resources. [info] skip non existing resourcedirectory /tmp/maventestproject/src/main/resources [info] [info] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ maventestproject --- [info] compiling 1 source file /tmp/maventestproject/target/classes [info] [info] --- exec-maven-plugin:1.4.0:java (default-cli) @ maventestproject --- hello world!? [info] ------------------------------------------------------------------------ [info] build success [info] ------------------------------------------------------------------------ [info] total time: 0.934s [info] finished at: mon jun 15 12:08:36 cest 2015 [info] final memory: 8m/19m [info] ------------------------------------------------------------------------ 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -