How to convert build.xml to maven pom file?
-
I have portlet project which runs using build.xml. I want to shift to maven based build management. How can i map build.xml to pom.xml? How can i write goal for every target in build.xml? Whether it is good to use maven maven-antrun-plugin-1.6 for running ant tasks from pom.xml or not? How can i put jars from build path to repository? Thanks, Bhupendra K.
-
Answer:
Simply not. cause Maven has a http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html You have to understand that Maven has a http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html and that is your plan. You must forget the Ant Targets. The lifecycle has for example test-compile (compile the unit tests) and compile (compiling your production code. And further steps are running the unit tests and finally packaging your production code into a jar file. It's not a good idea to use maven-antrun-plugin (only in very very very very rare cases). Via mvn release:prepare release:perform or via mvn deploy (for SNAPSHOT's) I recommend to read http://sonatype.com/Support/Books in particular Maven by Example and Maven: The Complete Reference If you working in a company you should think hard about setting up a repository manager (for example Nexus or Archiva etc.).
user89749 at Stack Overflow Visit the source
Related Q & A:
- How To Convert Pmd File To Pdf File Online?Best solution by Yahoo! Answers
- How to convert positional attributes in an xml file to normal attributes?Best solution by Stack Overflow
- How to convert XML files to PDF files?Best solution by Super User
- How to convert a HTML file to XML file?Best solution by Stack Overflow
- How to convert any song lyrics into subtitle file?Best solution by Super User
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.