From users-return-131248-apmail-maven-users-archive=maven.apache.org@maven.apache.org Thu Feb 14 11:12:01 2013 Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD4CDE671 for ; Thu, 14 Feb 2013 11:12:01 +0000 (UTC) Received: (qmail 41444 invoked by uid 500); 14 Feb 2013 11:11:59 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 41370 invoked by uid 500); 14 Feb 2013 11:11:59 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 41343 invoked by uid 99); 14 Feb 2013 11:11:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 11:11:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of crankydillo@gmail.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 11:11:52 +0000 Received: by mail-lb0-f179.google.com with SMTP id j14so1704258lbo.38 for ; Thu, 14 Feb 2013 03:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=Y44QZTsHOwgbITDlxy+ulGdQLze8iw419Gj3kfHZh3Y=; b=tZp8bOjGHBXjyA/0fZyvSBMJ72eo+fdl7VF8+YyZpW3MQIUrVNJYK0bR/hvGWXef2+ lzuF5LTnHRw9k0+iu/zxuU5G0Z6tfTblhDBu7YTfVZXSOu/+/sianCxJqfdOnHkY+sUF bJ45FdPDZkgbLl5i8y/lqJ4+3rVcM2Fi1D/kUBpkiSDM9BMA36KcGgM33ukLOd7GJO9O 2lcKSK2AIyXTWf4VaIhihZhtpICktVoh4j+aA0Ipiw1nqzYFG8hVyNwp3D4FWozQp+0M gNYbJuuBHSDxhh/qZKFw4PeM3DO3nIsK8HEWyiwRZoxVw3rdEyIhnl5I14IpQFq9ks24 LTMA== MIME-Version: 1.0 X-Received: by 10.112.88.5 with SMTP id bc5mr445658lbb.50.1360840292210; Thu, 14 Feb 2013 03:11:32 -0800 (PST) Received: by 10.112.5.170 with HTTP; Thu, 14 Feb 2013 03:11:32 -0800 (PST) Date: Thu, 14 Feb 2013 05:11:32 -0600 Message-ID: Subject: Using Maven Aether from my standalone application From: Samuel Cox To: users@maven.apache.org Content-Type: multipart/alternative; boundary=f46d04016b493699ce04d5ad529a X-Virus-Checked: Checked by ClamAV on apache.org --f46d04016b493699ce04d5ad529a Content-Type: text/plain; charset=ISO-8859-1 Hi, 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. I'm looking for some API such that I can do this: gav(File settingsXml, File pom) => GAV 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). Many thanks. --f46d04016b493699ce04d5ad529a--