Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

How to automate maven build with server

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • 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: 21127
131
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Tim Holloway, i will check.
 
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!