NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

maven noob

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
desertman314



Joined: 28 Sep 2009
Posts: 6

PostPosted: Mon Sep 28, 2009 8:53 pm    Post subject: maven noob Reply with quote

Hi ,

I am new to Netbeans and Maven. I have a directory with pre-existing java files and a maven.xml file. I don't understand how to pull this as a project into Netbeans . If I use File->Open Project and browse to that directory, nothing shows up. When I use File->Open File I can open maven.xml, and it shows up in the navigatator box, but what do I do next?

Thanks from the desert!
Back to top
mkleint
Posted via mailing list.





PostPosted: Tue Sep 29, 2009 11:17 am    Post subject: maven noob Reply with quote

if you have a maven.xml file, it means you have a maven1 project, which
is not supported by the IDE. Only maven2 is.. you need a pom.xml file in
the project base directory.

Milos

desertman314 wrote:
Quote:
Hi ,



I am new to Netbeans and Maven. I have a directory with pre-existing java files and a maven.xml file. I don't understand how to pull this as a project into Netbeans . If I use File->Open Project and browse to that directory, nothing shows up. When I use File->Open File I can open maven.xml, and it shows up in the navigatator box, but what do I do next?



Thanks from the desert!




Back to top
desertman314



Joined: 28 Sep 2009
Posts: 6

PostPosted: Wed Sep 30, 2009 2:48 am    Post subject: Reply with quote

Hi,

Thats interesting, why don't I see that documented anywhere? I'm sorry, maybe I'm just getting old, but this thing seems to make my life harder rather than easier.

In an effort to understand the process better, I decided to take a different approach. I built by hand a working "build.xml" file and used ant (1.7.1) to compile and run it. Everything went fine.

In the process, following normal protocol, I created a folder named "build" to store the class files.


Then I opened NB and proceeded as follows:

->New Project with existing sources.

I re-iterate:

-->>with existing sources<<-

because it doesn't seem to know what to do with them. If it does, where is it documented. It would seem a particularly important feature to new users (unless you mean kids who are completely new at this) who would be more likely have pre-exisitng code.

First NB complains about build folder, so I delete it (so much for the pre-existing sources)

Then I point it to the two source directories. Of course, one is the file with "main".

Next NB can't identify the right file with main, it brings up a box and I pick the one that has "main" for NB.

Then I try to build and run it.

("main" is in WSDLCrawler.java)

I get these errors:


run:

java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: class MessageReceiver
at ie.moguntia.webcrawler.WSDLCrawler.<clinit>(WSDLCrawler.java:5)
Could not find the main class: ie.moguntia.webcrawler.WSDLCrawler. Program will exit.
Exception in thread "main" Java Result: 1

BUILD SUCCESSFUL (total time: 17 seconds)


Besides wasting my time, I would have thought NB would provide for new uswers a smoother transition here, I should be able to point it at an exisiting project that functions perfectly (built with ant 1.7.1) that NB presumably knows about.

Well, it didn't, and besides that I cant find any documentation on something you might consider important for a new user.

In the mean time, could you guys start to consider usability issues for us older programmers (and Im not even that old, only 102 since yesterday), we're growing in numbers and need something to do besides chasing the nurses around here (hey you guys will be old too someday!!). I used to use Borland JBuilder, ten years ago or more, back in the day, it was simple and easy to learn. Now you've got all these new fangled city-slicker gadgets to deal with

Thanks from "old and in the way" (and in the desert!)
Back to top
mkleint
Posted via mailing list.





PostPosted: Wed Sep 30, 2009 6:21 am    Post subject: maven noob Reply with quote

desertman314 wrote:
Quote:
Hi,



Thats interesting, why don't I see that documented anywhere? I'm sorry, maybe I'm just getting old, but this thing seems to make my life harder rather than easier.


Well what is there to be documented? maven1 is EOLed for a few years
already (development stopped sometimes like 2005) and maven 2 became
"the" maven in the meantime.

Milos
Quote:


In an effort to understand the process better, I decided to take a different approach. I built by hand a working "build.xml" file and used ant (1.7.1) to compile and run it. Everything went fine.



In the process, following normal protocol, I created a folder named "build" to store the class files.





Then I opened NB and proceeded as follows:



->New Project with existing sources.



I re-iterate:



-->>with existing sources<<-



because it doesn't seem to know what to do with them. If it does, where is it documented. It would seem a particularly important feature to new users (unless you mean kids who are completely new at this) who would be more likely have pre-exisitng code.



First NB complains about build folder, so I delete it (so much for the pre-existing sources)



Then I point it to the two source directories. Of course, one is the file with "main".



Next NB can't identify the right file with main, it brings up a box and I pick the one that has "main" for NB.



Then I try to build and run it.



("main" is in WSDLCrawler.java)



I get these errors:





run:



java.lang.ExceptionInInitializerError

Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol

symbol: class MessageReceiver

at ie.moguntia.webcrawler.WSDLCrawler.<clinit>(WSDLCrawler.java:5)

Could not find the main class: ie.moguntia.webcrawler.WSDLCrawler. Program will exit.

Exception in thread "main" Java Result: 1



BUILD SUCCESSFUL (total time: 17 seconds)





Besides wasting my time, I would have thought NB would provide for new uswers a smoother transition here, I should be able to point it at an exisiting project that functions perfectly (built with ant 1.7.1) that NB presumably knows about.



Well, it didn't, and besides that I cant find any documentation on something you might consider important for a new user.



In the mean time, could you guys start to consider usability issues for us older programmers (and Im not even that old, only 102 since yesterday), we're growing in numbers and need something to do besides chasing the nurses around here (hey you guys will be old too someday!!). I used to use Borland JBuilder, ten years ago or more, back in the day, it was simple and easy to learn. Now you've got all these new fangled city-slicker gadgets to deal with



Thanks from "old and in the way" (and in the desert!)




Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo