0

私はMavenプロジェクトに取り組んでおり、その基本構造を知りたいです。プロジェクトに関連する成果物を定義する pom.xml があることは知っています。しかし、私のプロジェクトには 5 つの pom.xml があります。したがって、pom の正確な役割と、依存関係をどのように処理するかを知りたいと思います。

ガイドとなる有用な本やリソースを提案できる人がいれば、感謝します。

よろしくアヌラグ

4

4 に答える 4

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)
于 2013-03-21T10:34:37.320 に答える
0

このhttp://maven.apache.org/guides/getting-started/maven-in-five-minutes.htmlから始めることができます。 「Maven by Example: Table of Contents / Documentation Sonatype」という本をお勧めします。幸運を!

于 2013-03-21T10:23:03.517 に答える
0

POM の詳細については、リンクを参照してください。

http://maven.apache.org/pom.html
http://www.tutorialspoint.com/maven/maven_pom.htm

于 2013-03-21T10:25:32.390 に答える
0

Read Sonatype's "Maven: The Definitive Guide" (also known as "Maven By Example"). The book is available for free from their site, or you can buy it.

于 2013-03-21T10:16:39.510 に答える