Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] Determining the GAV of poms in remote repository

Hi,

I posted the following to the Maven mailing list, but I'm guessing this list is more appropriate.  Essentially, what I need is the following function:

gav(File settingsXml, File pom) => GAV coordinates

I'm writing a standalone program that needs to find the GAV coordinates for a Maven pom file, which is retrieved from Subversion.  In the simple case, this is easy.  I just parse the pom.  However, things get much more complicated when only the artifactId is present.

Is this possible?  It seems like it should be since Maven can build the project if I check it out (presumably by resolving all the parent stuff).

If Aether isn't the answer, is there some other way?

I tried http://www.jcabi.com/jcabi-aether/index.html
 
, but it doesn't compile (MavenProject.setRemoteProjectRepositories doesn't exist).

I have also tried to using http://git.eclipse.org/c/aether/aether-demo.git/tree/aether-demo-snippets as a starting ground, but I can't get it to compile.

Many thanks.

Back to the top