I don't know what your ant script looks like, but assuming its a basic script for building, you will need to create a pom.xml file for your project, add your dependencies, and then build it via maven.
For anyone who lands here in future, there is an easier way to find dependencies for maven using the file hashes. So, you won't have to guess artifact versions.
As per the below article, the idea is to generate a SHA1 checksum of the dependency that you want to find the information, then do a reverse search in Nexus repository manager using that hash. For the checksum generation, you can use Microsoft's FCIV (free) utility.
发布评论
评论(3)
使用 Maven 的好处是,一旦你按照 Maven 的方式做事,大多数标准的东西就会自动工作。对于一个简单的webapp:
应该可以让你开始运行。
The nice part of using maven is that most standard stuff works automatically once you do things the maven way. For a simple webapp:
That should get you up 'n' running.
http: //www.sonatype.com/people/2009/04/how-to-convert-from-ant-to-maven-in-5-minutes/
我不知道你的ant脚本是什么样的,但假设它是用于构建的基本脚本,您将需要为您的项目创建一个 pom.xml 文件项目,添加依赖项,然后通过 Maven 构建它。
http://www.sonatype.com/people/2009/04/how-to-convert-from-ant-to-maven-in-5-minutes/
I don't know what your ant script looks like, but assuming its a basic script for building, you will need to create a pom.xml file for your project, add your dependencies, and then build it via maven.
对于将来登陆这里的任何人来说,有一种更简单的方法可以使用文件哈希来查找 Maven 的依赖项。因此,您不必猜测工件版本。
根据下面的文章,其想法是生成您想要查找信息的依赖项的 SHA1 校验和,然后使用该哈希在 Nexus 存储库管理器中进行反向搜索。对于校验和生成,您可以使用 Microsoft 的 FCIV(免费)实用程序。
https://dzone.com/articles/ant-to-maven -转换无痛方法
For anyone who lands here in future, there is an easier way to find dependencies for maven using the file hashes. So, you won't have to guess artifact versions.
As per the below article, the idea is to generate a SHA1 checksum of the dependency that you want to find the information, then do a reverse search in Nexus repository manager using that hash. For the checksum generation, you can use Microsoft's FCIV (free) utility.
https://dzone.com/articles/ant-to-maven-conversion-the-painless-method