Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven: deploy application to server

 
C. Cook
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm quite new to maven, and the official documentation could not help me here. I created an enterprise application with m2eclipse. Now I want maven to deploy it to my local JBoss server (copy the ear to D:\Server\jboss-5.0.1.GA\server\default\deploy) when I execute the INSTALL goal.

Here is my parent pom:


and the pom of the ear-module:



thank you
Chris
 
C. Cook
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found a solution myself, using the cargo plugin:



mvn package cargo:start now builds, deploys to jboss and starts the container. Now what I'm still missing is a solution for remote deployment via jmx....
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic