• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

How to automate maven build with server

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using maven , eclipse and jBoss in my project.

Now i am creating ear file using eclipse and maven.
Then I manually copy the ear file to server folder then i will start the server from Eclipse.

Now i want to automate the process as one step activity like a batch file.

If maven build is success then only ear file has to be copied to the server folder on my local machine and start my local server.

If maven build is failed then process has to be stopped

I used batch file to copy the ear file to the server folder.

Can you please help to give some hints about which process or technologies i can use to achieve my goal.

Regards,
Mohan.

 
Saloon Keeper
Posts: 24499
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maven does have goals that allow it to build and deploy from a single maven command. But for more complex operations, or if you want stuff like automated nightly builds, there are also build management programs such as Jenkins that can be configured to do all that and more. Including running tests and displaying the test results.
 
mohana krishna
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks Tim Holloway, i will check.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic