views:

149

answers:

1

Hello, Is there a Maven goal to list the artifacts stored in my maven local repository?

+1  A: 

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.

Pascal Thivent
What I want is to maintain an intermediate POM that includes all those artifacts. If I updated the repo I'd get the new list of artifacts, generate the POM and upload it.The point is that my projects may use classes from a variety of jars and finding the apropiate one is not easy. Whith this, I only would need to use this POM.Eclipse can find jars from class names, but only jars that are already in classpaths.
Rafa
You should use a repository search engine instead: http://maven.apache.org/general.html#How_to_find_dependencies
Pascal Thivent