最小限のファイルをダウンロードして、io.airlift:node:0.112 のすべての依存関係を見つけたい:
コマンド%M2_HOME%/bin/mvn を使用する依存関係:copy -Dmdep.outputScope=true -DincludeScope=compile -DincludeParents=true -DoutputFile="F:\temp\mytemp5" -DexcludeTransitive=true -f "F:\maven-plugins \node-0.112.pom" 、 org.apache.maven.scm:maven-scm-provider-gitexe:1.8.1をダウンロードしています。
ダミーの pom を作成し、node-0.112 に依存してから、ダミーの pom で同じコマンドを実行すると、org.apache.maven.scm:maven-scm-provider-gitexe:1.8.1がダウンロードされません。以下は私のpomファイルです:
<project> <modelVersion>4.0.0</modelVersion> <groupId>dummy</groupId> <artifactId>dummy</artifactId> <version>1.0</version> <packaging>pom</packaging> <dependencies> <dependency> <groupId>io.airlift</groupId> <artifactId>node</artifactId> <version>0.112</version> <type>pom</type> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <addParentPoms>true</addParentPoms> <copyPom>true</copyPom> <outputDirectory>.</outputDirectory> <excludeTransitive>false</excludeTransitive> <useRepositoryLayout>true</useRepositoryLayout> <includeScope>compile</includeScope> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>
また、両方のメソッドの依存関係としてorg.apache.maven.scm:maven-scm-provider-gitexe:1.8.1も返されません。
maven がこの追加のプラグインをダウンロードしようとするのはなぜですか? 追加のプラグインをダウンロードせずに依存関係を見つける最良の方法は何ですか?