我正在开展一个maven项目,我想知道它的基本结构。我知道有一个pom.xml定义了项目中涉及的工件。但在我的项目中,有5个pom.xml。所以我想知道pom的确切作用是什么,以及我们如何处理依赖关系。
感谢是否有人可以推荐任何可以指导的有用书籍或资源。
此致 阿努拉格
答案 0 :(得分:1)
假设它是一个java项目,基本结构是:
Parent Dir
-src/main/java/ java source files for the application (included in the JAR/WAR)
-src/main/resourcs/ resource files, xml, properties, etc (included in the JAR/WAR)
-src/test/java/ java source files for tests (only used during testing)
-src/test/resources/ resource files for testing (only used during testing)
答案 1 :(得分:0)
阅读Sonatype的“Maven:The Definitive Guide”(也称为“Maven By Example”)。这本书可以从他们的网站免费获得,或者你可以购买。
答案 2 :(得分:0)
您可以从这个http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html开始,我可以推荐“Maven by Example:目录/文档类型”这本书。 祝你好运!
答案 3 :(得分:0)
您可以参考链接以了解有关POM的更多信息
http://maven.apache.org/pom.html
http://www.tutorialspoint.com/maven/maven_pom.htm