File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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: 1075
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30753
    
156

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: 1075
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: 5836
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: After settting up maven, then what?