LaVOZs

The World’s Largest Online Community for Developers

'; java - how to configure Wildfly to deploy Maven project - LavOzs.Com

I'm learning Maven with eclipse and a liitle bit confused on how to deployed it on a remote server.
Before using Maven I created a web project and exported it as ear file and copied to the server's deployment folder. With Maven do I follow the same step? Do I need to install maven at wildfly server by modify the configuration xml? Thx.

user12741576

Use maven only to produce artifacts(jar, war, ear). I was in the same position a couple of years back and found a useful link to build a project as an ear with maven. For the remaining tasks, I coded Shell script to move the artifact from /target directory to wildfly10 \standalone\deployments.

It could also be achieved without any script using symbolic links.Just cd to your \standalone\deployments directory and:

ln -s [ABSOULUTE-PATH-TO-YOUR-WAR/EAR-FILE] [NAME-OF-EAR]

That's it. If you are more interested in symbolic links you may read here

Related
How do I efficiently iterate over each entry in a Java Map?
How do I read / convert an InputStream into a String in Java?
How do I generate random integers within a specific range in Java?
How can I create an executable JAR with dependencies using Maven?
How to add local jar files to a Maven project?
How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds
How to create a memory leak in Java?
What is “pom” packaging in maven?
Deploy app using wildfly maven plugin on an address different than localhost
Best practice for deploying EAR-project to remote WildFly server via Eclipse