This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes After settting up maven, then what? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "After settting up maven, then what?" Watch "After settting up maven, then what?" New topic
Author

After settting up maven, then what?

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
So, once you install Maven can you just add your own classes and code and from that point (once dependencies are done) and Maven will take care of things?

IOW, do you have to do anything special in the "maven project" to add your own code?

Haven't been able to find an end-to-end Java-maven example using any IDE as of yet.

Thanks,

-mike
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

Mike London wrote:So, once you install Maven can you just add your own classes and code and from that point (once dependencies are done) and Maven will take care of things?

Yes. You need to add any dependencies to the pom.xml. And you need to use the Maven project layout (/src/main/java for java files.)

Mike London wrote:Haven't been able to find an end-to-end Java-maven example using any IDE as of yet.

Which IDE? Eclipse has a Maven plugin that makes thins easier. And it has a nice tutorial.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
Jeanne Boyarsky wrote:
Mike London wrote:So, once you install Maven can you just add your own classes and code and from that point (once dependencies are done) and Maven will take care of things?

Yes. You need to add any dependencies to the pom.xml. And you need to use the Maven project layout (/src/main/java for java files.)

Mike London wrote:Haven't been able to find an end-to-end Java-maven example using any IDE as of yet.

Which IDE? Eclipse has a Maven plugin that makes thins easier. And it has a nice tutorial.


As I just found out, the WSDL was being generated, it just wasn't a disk-based WSDL. And, I wasn't using the right URL to view it.

I'm still having a 404 problem where I'm trying to get the @PayloadRoot annotations to be correct so the service can be found. Very frustrating and time consuming.

Thanks very much for your reply.

mike
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Here's some free online docs that will help you get started with Maven:

http://maven.apache.org/guides/getting-started/index.html
http://www.maestrodev.com/support/
http://www.sonatype.com/books/mvnref-book/reference/

I highly recommend that you get used to using Maven outside of an IDE first. Once you understand you Maven works and how it expects it project to be set up, then you can go back to the IDE.


JBoss In Action
 
 
subject: After settting up maven, then what?
 
Similar Threads
Still do not understand Maven
Maven Logging Custom output to a file
maven / web inf
how to create a jar file for an eclipse project using maven
How to add existing jars using maven...