Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the list of artifacts in my Maven repository?

Is there a Maven goal to list the artifacts that are stored in my local Maven repository?

like image 912
Rafa Avatar asked Jan 14 '10 10:01

Rafa


People also ask

Where are Maven artifacts stored?

Maven's local repository is a directory on the local machine that stores all the project artifacts. When we execute a Maven build, Maven automatically downloads all the dependency jars into the local repository. Usually, this directory is named .

Which file maintains all the artifacts information in Maven?

An artifact is apparently a directory satisfying some constraints, e.g. it must contain a file called maven-metadata. xml and a file called <artifactId>-<version>. pom .

What is Maven artifact repository?

As a Maven repository, Artifactory is both a source for artifacts needed for a build, and a target to deploy artifacts generated in the build process. Maven is configured using a settings. xml file located under your Maven home directory (typically, this will be /user.

How do I view Maven repository?

To browse Maven repositories and to manipulate repository indexes open the Maven Repositories view by selecting Windows, Show View, Other... Once you select Other... Eclipse will display a dialog containing all available views. Select the Maven Repositories view under the Maven folder in the Show View dialog.


1 Answers

I'm not aware of any plugin doing that and, to be honest, I don't get the point. Maybe you could just use your OS file search feature to achieve your goal. If really you want to do this from Maven, then execute this command using the maven-exec-plugin. Another option would be to use the maven-antrun-plugin if you can find an Ant task allowing to find files. But, as I said, I don't get the point of this.

like image 193
Pascal Thivent Avatar answered Oct 21 '22 16:10

Pascal Thivent