• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven src and netbeans

 
Wynn Teoh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Wynn Teoh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maven 1 went end-of-life about 4 years ago. I never learned to love it anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic