Maven Vs Ant

来源:互联网 发布:金山ppt软件下载 编辑:程序博客网 时间:2024/04/30 16:39

Reference

http://www.sonatype.com/books/mvnref-book/reference/public-book.html
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

 

 

Deploy use Maven

http://jlorenzen.blogspot.com/2007/09/how-to-effectively-use-snapshot.html

http://java.dzone.com/articles/getting-started-nexus-maven

 

Release use Maven

http://jlorenzen.blogspot.com/2007/09/how-to-create-release-using-maven2.html
http://maven.apache.org/guides/mini/guide-releasing.html
Issues
http://blog.dawouds.com/2010/07/mavennexus-failed-to-transfer-file.html
org.apache.maven.wagon.TransferFailedException: Failed to transfer file 401 code
-> password is wrong or not set in  $M2_HOME/conf/settings.xml
 Failed to transfer file return code 400
-> try to release snapshots or re-deploy 
Issues: how to convert maven pom to ivy
http://stefan222devel.blogspot.com/2010/01/how-to-convert-maven-pomxml-into-ivy.html
http://draconianoverlord.com/2010/07/18/publishing-to-maven-repos-with-ivy.html
impossible convert given pom file to
 ivy file: java.io.IOException: Impossible to load parent for file
|_ build.xml
|_ ivysettings.xml
build.xml
 
ivysettings.xml
 

 

 

 

 

 

 

Declarative (Maven) and Imperative (Ant)

Convention and configuration (Maven) over configuration andscripting (Ant)

 

 

Maven

 Good for Modularization

Dependency management

Not easy for beginner to understand

Bugs and issues are hard to track (understand the conventions)

Sometimes are slow


Ant

 Easy to learn – No so many abstraction

 

 


 

PPT is downlaod: http://www.slideshare.net/leefs/maven-7839125/download

 

Maven
View more presentations from leefs

 

原创粉丝点击