In my maven project, when I use maven-dependency-plugin:resolve, it resolves all the dependencies used by the project in text file. I want to resolve specific dependencies of particular POM file. But there is no inputFile, file, url tags support with this plugin so that I can give path to input file (say specific POM file having dependencies list) so that those all dependencies get resolved in text file. Is there any other way or other plugin to achieve this?
Note: The POM file is not present in the project. It is present on central repo/nexus and it's dependency is imported/added in source pom file of project.
Here is my plugin usage code:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>list-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>resolve</goal>
</goals>
<configuration>
<includeScope>compile</includeScope>
<sort>true</sort>
<outputFile>${project.basedir}/target/dependencies.txt</outputFile>
</configuration>
</execution>
</executions>
</plugin>