• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

first example, i use maven2

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, I can not start the jetty server by : "mvn jetty:run "
(I just installed maven2, on ubuntu)



 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic