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 Maven src and netbeans 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 "Maven src and netbeans" Watch "Maven src and netbeans" New topic
Author

Maven src and netbeans

Wynn Teoh
Greenhorn

Joined: Dec 04, 2009
Posts: 10
Hello,

I'm given a folder that contains :-
javaupload (folder)
-> src (folder)
-> b (windows batch file)
-> maven.xml
-> project.properties
-> project.xml
-> sing (windows batch file)

Under the src folder, contains the following folders :-
-> conf
-> java
-> resources
-> test

Separately, I have a dependencies folder. In the folder, there are :-
-> commons-collections-3.2.jar
-> commons-io-1.1.jar
-> commons-lang-2.1.jar
-> core-1.0.jar

Can anyone advise how I can put these into netbeans, so that I can modify the codes and customize it?

What I have done so far is :
I create new project from NetBeans. However NetBeans do not recognize the structure that I have.
Then I create a new Maven Project, and tried to copied the src folders into the src, but it doesn't work.
Have no idea how to integrate the rest of the files in. Any headstart much appreciated.

Thank you
Karl Heinz Marbaise
Greenhorn

Joined: Aug 12, 2007
Posts: 19
Hi,

as far as i know Netbeans supports Maven 2 not Maven 1...
Your files indicating Maven 1...
May be I'm wrong...

Maven 2 has a different folder layout and of course pom.xml instead of maven.xml/project.xml...

Kind regards
Karl Heinz Marbaise


Software Configuration Management (Subversion, CVS, SVK etc.) http://www.skmwiki.de/
Subversion Repository Search Engine http://www.supose.org/
Wynn Teoh
Greenhorn

Joined: Dec 04, 2009
Posts: 10
Hii,

Thanks for your reply. I do not know either if it's built on Maven 1 or 2.
You may be right. If it's built on Maven 1, what should I do to get it working on my local ?

Perhaps to install the maven 1 here --> http://maven.apache.org/maven-1.x/start/install.html
Then I can just create a project and copy the files to the different folders generated?

Thanks
Wynn Teoh
Greenhorn

Joined: Dec 04, 2009
Posts: 10
Hihi

I have installed Maven 1. However, when I want to create a project according to this http://maven.apache.org/maven-1.x/start/quick-start.html
I typed maven site . It gives me build failed. Then I typed "maven tool:build" , I get the error "No pom file was found, assuming default settings!" and "Goal tool:build doesn't exist in this project" .

How can I create the pom file manually, (I have no idea why it doesnt exist at the first place) and how I can get the tool:build to work?


Thanks
Karl Heinz Marbaise
Greenhorn

Joined: Aug 12, 2007
Posts: 19
Hi,
i would suggest to use Maven 2 instead of Maven 1...and Maven 2 is simpler to use than Maven 1...

and with Maven 2 i can help you better than on Maven 1 ....

Kind regards
Karl Heinz Marbaise
Wynn Teoh
Greenhorn

Joined: Dec 04, 2009
Posts: 10
hi,

Thanks, I will try to get the existing app up and running, then I will migrate them to maven 2.

Found out that netbeans does not support maven 1, only maven 2.

Thanks again!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

Maven 1 went end-of-life about 4 years ago. I never learned to love it anyway.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven src and netbeans
 
Similar Threads
How do I add a jar file to artifactory?
For j2me polish Urgent Help
how to copy resources with maven?
Netbeans tutorial :
How to add jar file to eclipse/ant