aspose file tools*
The moose likes Struts and the fly likes first example, i use maven2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "first example, i use maven2" Watch "first example, i use maven2" New topic
Author

first example, i use maven2

Lucas Nussbaum
Greenhorn

Joined: Oct 16, 2011
Posts: 2
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

Joined: Oct 16, 2011
Posts: 2
Also, I can not start the jetty server by : "mvn jetty:run "
(I just installed maven2, on ubuntu)



Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8873
    
    8

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?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: first example, i use maven2