2
mvn test -f file-directory
およびmvn test -pl project
を実行する場合。 両方の内部実行の違いは何ですか?maven `-f`と` -pl`パラメータの主な違いは何ですか?
mvn test -f file-directory
およびmvn test -pl project
を実行する場合。 両方の内部実行の違いは何ですか?maven `-f`と` -pl`パラメータの主な違いは何ですか?
使用例
-f,--file <arg> Force the use of an alternate POM
file.
-pl,--projects <arg> Comma-delimited list of specified
reactor projects to build instead
of all projects. A project can be
specified by [groupId]:artifactId
or by its relative path.
mvn -help
から:
-f
-pl
...あなたは...
-f
を使用してtools/build
ディレクトリからparent
プロジェクトをビルドでき +- tools
| |
| +- build
| |
+- projects
| |
| +- parent
| |
| +- pom.xml
|
| +- childA
| |
| +- pom.xml
| +- childB
| |
| +- pom.xml
cd tools/build; mvn -f ../../projects/parent/pom.xml
-f
と-pl
を用いてtools/build
ディレクトリからのみchildAサブモジュールビルド例えば-pl
を用いてparent
ディレクトリから
cd tools/build; mvn -f ../../projects/parent/pom.xml -pl parent:childA
cd projects/parent; mvn -pl parent:childB
感謝。 – hemanik