NetBeans Forums

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

Maven Web App Deployment?

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



Joined: 04 Nov 2011
Posts: 1

PostPosted: Fri Nov 04, 2011 8:01 pm    Post subject: Maven Web App Deployment? Reply with quote

I'm in the process of switching to Netbeans from Eclipse.

I have a web app project, maven builds the war. I had to jump through some hoops to get it deploying to tomcat from Eclipse so I could debug etc.

I'm kinda stuck getting Netbeans to do the same. I've added Tomcat as a server, but there's no deploy option for my project.

If I build a new maven web application project from within Netbeans I can deploy, just not with my project.

I'm not sure what is it that Netbeans looks for to enable that option... any advice?
Back to top
mdeggers



Joined: 28 Jan 2009
Posts: 208

PostPosted: Sun Nov 06, 2011 6:36 pm    Post subject: Re: Maven Web App Deployment? Reply with quote

On Fri, 04 Nov 2011 20:01:34 +0000, jgerman wrote:

Quote:
I'm in the process of switching to Netbeans from Eclipse.

I have a web app project, maven builds the war. I had to jump through
some hoops to get it deploying to tomcat from Eclipse so I could debug
etc.

I'm kinda stuck getting Netbeans to do the same. I've added Tomcat as a
server, but there's no deploy option for my project.

If I build a new maven web application project from within Netbeans I
can deploy, just not with my project.

I'm not sure what is it that Netbeans looks for to enable that option...
any advice?

What happens when you right-click on the project, select properties, and
click on the Run item in the list?

You should get a dialog with Server, etc. Choose your server there and
see if that solves the problem.

What it appears to do is add a property to pom.xml. The property looks
like the following:

<properties>
<netbeans.hint.deploy.server>server-name</netbeans.hint.deploy.server>
</properties>

It should be at the end of pom.xml

See if that gets you on the right track.

. . . . just my two cents.
/mde/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE 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