java - Generate a web application using maven generate -


i have generated project struture using maven using mvn archetype:generate , project structure follows: webapps -src -main -java -com -web -app.java -test

i have tried following tutorial on link create web app

running mvn dependency:analyze-dep-mgt

but still project structure differs.

while use mvn archetype:generate -dgroupid={project-packaging} -dartifactid={project-name} -darchetypeartifactid=maven-archetype-webapp -dinteractivemode=false, pom file missing

where being wrong struture differs , web.xml not being generated?

c:\users\user\workspace\webappspringapp\webapp>mvn dependency:analyze-dep-mgt [info] scanning projects... [error] build not read 1 project -> [help 1] [error] [error]   project com.webapp:webapp:1.0-snapshot (c:\users\user\workspace\we bappspringapp\webapp\pom.xml) has 3 errors [error]     'dependencies.dependency.version' org.springframework:spring-cor e:jar must valid version '${spring.version}'. @ line 14, column 13 [error]     'dependencies.dependency.version' org.springframework:spring-web :jar must valid version '${spring.version}'. @ line 20, column 13 [error]     'dependencies.dependency.version' org.springframework:spring-web mvc:jar must valid version '${spring.version}'. @ line 26, column 13  [error] [error] see full stack trace of errors, re-run maven -e swit ch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please rea d following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/projectbuildin gexception 

pom.xml part

<dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-core</artifactid>             <version>${spring.version}</version>         </dependency>          <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-web</artifactid>             <version>${spring.version}</version>         </dependency>          <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-webmvc</artifactid>             <version>${spring.version}</version>         </dependency>     <dependency> 

mvn dependency:tree 

this used view dependency hierarchy of project being built. output resolved tree of dependencies maven build process uses.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -