How to convert ant project into a maven project

0 votes
Can somebody mention the method to convert an ant project into maven project?
Feb 6, 2020 in DevOps Tools by anonymous
• 19,610 points
9,160 views

1 answer to this question.

0 votes

Suppose for instance, you want to convert a simple web application to a maven project,

  1. You will need to create a pom file with groupId, artifactId and version (packaging: war)
  2. Then, you need to add the required dependencies to the pom file
  3. Next, you will have to move the
    • java sources to src/main/java,
    • resources to src/main/resources,
    • webapp content to src/main/webapp,
    • test content to src/test/java and src/test/resources
  4. set the compiler compliance version using the maven compiler plugin

This should do!

answered Feb 6, 2020 by anonymous
• 59,230 points

Related Questions In DevOps Tools

0 votes
1 answer

How to create a new project in OpenShift?

Hi@akhtar, A Kubernetes namespace provides a mechanism to ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,440 points
1,050 views
0 votes
1 answer

How to set quota for a project in Minishift?

Hi@akhtar, You can set a quota for a ...READ MORE

answered Aug 25, 2020 in DevOps Tools by MD
• 95,440 points
452 views
0 votes
1 answer

how to fix the build with maven in bluemix

As per Bluemix Status Page today DevOps Delivery Pipeline ...READ MORE

answered Jul 6, 2018 in DevOps Tools by Kalgi
• 52,360 points
1,289 views
+1 vote
1 answer

i have a pyhton code in my git/git repository how to build that code in jenkins

Follow these steps @Bhaskar: Step 1: Open the Jenkins ...READ MORE

answered Oct 14, 2019 in DevOps Tools by Kalgi
• 52,360 points
644 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,530 views
+2 votes
1 answer
0 votes
1 answer

How to get the current status of a local repository in Git?

Using 'git status' command in the repository ...READ MORE

answered Nov 26, 2019 in DevOps Tools by Sirajul
• 59,230 points
602 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP