Converting Ant Web Application Project to Maven Project

后端 未结 1 574
伪装坚强ぢ
伪装坚强ぢ 2021-01-26 08:33

Hi I have a running code project build using Ant now what i need is to convert it to maven , i browse for the solution and what i done is simply creating a new maven web project

相关标签:
1条回答
  • 2021-01-26 08:46

    I developed a script to transition legacy ANT projects to a Maven infrastructure:

    • ant2ivy

    It focuses on generating a list of dependencies, which the Apache ivy plugin downloads from Maven repositories. It is also able to create a local repo for those 5-10% of jar files that can never be identified (nobody remembers who added them into the project...)

    This code could be adapted to generate a Maven POM, a piece of work I've been considering. The problem is that it's really hard to switch ANT projects over to Maven in a seamless manner.... Maven has a standardized set of life-cycle actions, whereas ANT build scripts are free-form. This explains why I concentrated on dependency management.

    0 讨论(0)
提交回复
热议问题