Maven gives MojoExecutionException when Maven install -


i trying install maven project, getting following error message.

slf4j: failed load class "org.slf4j.impl.staticloggerbinder". slf4j: defaulting no-operation (nop) logger implementation slf4j: see http://www.slf4j.org/codes.html#staticloggerbinder further details. [info] scanning projects... [info]                                                                          [info] ------------------------------------------------------------------------ [info] building mail maven webapp 1.0-snapshot [info] ------------------------------------------------------------------------ [info]  [info] --- maven-resources-plugin:2.5:resources (default-resources) @ mail --- [debug] execute contextualize [info] using 'utf-8' encoding copy filtered resources. [info] copying 5 resources [info]  [info] --- maven-compiler-plugin:3.0:compile (default-compile) @ mail --- [info] changes detected - recompiling module! [info] compiling 13 source files c:\users\gk\workspace-juno\mail\target\classes [info]  [info] --- maven-resources-plugin:2.5:testresources (default-testresources) @ mail  [debug] execute contextualize [info] using 'utf-8' encoding copy filtered resources. [info] copying 1 resource [info]  [info] --- maven-compiler-plugin:3.0:testcompile (default-testcompile) @ mail --- [info] changes detected - recompiling module! [info] compiling 2 source files c:\users\gk\workspace-juno\mail\target\test-classes [info]  [info] --- maven-surefire-plugin:2.13:test (default-test) @ mail ---     [info] surefire report directory: c:\users\gk\workspace-juno\mail\target\surefire-reports  -------------------------------------------------------  t e s t s ------------------------------------------------------- running testsuite configuring testng with: testng652configurator tests run: 5, failures: 0, errors: 0, skipped: 0, time elapsed: 0.684 sec  results :  tests run: 5, failures: 0, errors: 0, skipped: 0  [info]  [info] --- maven-war-plugin:2.3:war (default-war) @ mail --- [info] packaging webapp [info] assembling webapp [mail] in [c:\users\gk\workspace-juno\mail\target\mail-1.0-snapshot] [info] processing war project [info] copying webapp resources [c:\users\gk\workspace-juno\mail\src\main\webapp] [info] webapp assembled in [895 msecs] [info] building war: c:\users\gk\workspace-juno\mail\target\mail.war [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 4.398s [info] finished at: mon may 20 12:28:45 ist 2013 [info] final memory: 15m/35m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.maven.plugins:maven-war-plugin:2.3:war (default-war) on project mail: error assembling war: webxml attribute required (or pre-existing web-inf/web.xml if executing in update mode) -> [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 

please me in resolving issue.

this error self explainable:

[error] failed execute goal org.apache.maven.plugins:maven-war-plugin:2.3:war (default-war) on project mail: error assembling war: webxml attribute required (or pre-existing web-inf/web.xml if executing in update mode) -> [help 1] 

it says either need have "web.xml" file pre-existing in "web-inf" directory, or specify location explicitly using "webxml" parameter in pom.xml or command line.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -