This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

first example, i use maven2

 
Lucas Nussbaum
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm reading the book: "practical apache struts2 web 2.0 projects" by Ian Roughley. I have questions.
1) I do not know if Maven2 replaces an application server. Otherwise, what do I need?
2) the following command to build the directory structure does not give the results hoped for.

mvn archetype:create
-DgroupId=com.fdar.apress.s2
-DartifactId=app
-DarchetypeGroupId=org.apache.struts
-DarchetypeArtifactId=struts2-archetype-starter
-DarchetypeVersion=2.0.9-SNAPSHOT
-DremoteRepositories=http://people.apache.org/maven-snapshot-repository




mvn -v
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: it_IT, platform encoding: UTF-8
OS name: "linux" version: "2.6.35-30-generic" arch: "i386" Family: "unix"
 
Lucas Nussbaum
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, I can not start the jetty server by : "mvn jetty:run "
(I just installed maven2, on ubuntu)



 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) I do not know if Maven2 replaces an application server. Otherwise, what do I need?


Maven2 is a build tool. You will need an application server. What does the book recommend?

2) the following command to build the directory structure does not give the results hoped for.


What structure did you hope for? Are you familiar with the way Maven works?

Also, I can not start the jetty server by : "mvn jetty:run "


Did you install Jetty?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic