转换成Scala格式就是
project {
m => m.artifactId = "polygot-maven-test"
m.dependency
{
d => d.artifactId = "junit"
d.groupId = "junit"
d.optional = false
d.scope = "test"
d._type = "jar"
d.version = "3.8.1"
}
m.groupId = "com.shekhar"
m.modelVersion = "4.0.0"
m.name = "polygot-maven-test"
m.packaging = "jar"
m.properties += ("project.build.sourceEncoding" -> "UTF-8")
m.url = "http://maven.apache.org" m.version = "1.0-SNAPSHOT"}
m => m.artifactId = "polygot-maven-test"
m.dependency
{
d => d.artifactId = "junit"
d.groupId = "junit"
d.optional = false
d.scope = "test"
d._type = "jar"
d.version = "3.8.1"
}
m.groupId = "com.shekhar"
m.modelVersion = "4.0.0"
m.name = "polygot-maven-test"
m.packaging = "jar"
m.properties += ("project.build.sourceEncoding" -> "UTF-8")
m.url = "http://maven.apache.org" m.version = "1.0-SNAPSHOT"}
10、M2Eclipse
M2Eclipse让Maven可以和Eclipse集成,M2Eclipse目前最新版本是0.10.0,它已经用Maven 3的嵌入式API进行了重写,M2Eclipse的性能得到了明显提升(根据该项目的网站描述,大约提升了200-500%),因为M2Eclipse在Maven POM中提供了额外的XML元数据,它们只能由M2Eclipse识别。
原文出处:http://www.developer.com/java/article.php/3908561/article.htm