dev@glassfish.java.net

Re: maven-istack-commons-plugin

From: Jane Young <jane.young_at_oracle.com>
Date: Tue, 01 Mar 2011 11:56:05 -0800

On 3/1/11 11:02 AM, Bill Shannon wrote:
> Sorry, you're right, I misread the pom.
>
> Here's the real problem I'm having. I'm trying to build grizzly:
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building grizzly-utils
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus//com/sun/istack/istack-commons/1.1-SNAPSHOT/istack-commons-1.1-SNAPSHOT.pom
> [INFO] Unable to find resource
> 'com.sun.istack:istack-commons:pom:1.1-SNAPSHOT' in repository
> java.net maven 2 repository (http://download.java.net/maven/2)
> Downloading:
> http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus//com/sun/istack/istack-commons/1.1-SNAPSHOT/istack-commons-1.1-SNAPSHOT.pom
> [INFO] Unable to find resource
> 'com.sun.istack:istack-commons:pom:1.1-SNAPSHOT' in repository
> glassfish (http://download.java.net/maven/2/)
> Downloading:
> http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus//com/sun/istack/istack-commons/1.1-SNAPSHOT/istack-commons-1.1-SNAPSHOT.pom
> [INFO] Unable to find resource
> 'com.sun.istack:istack-commons:pom:1.1-SNAPSHOT' in repository
> java.net (http://download.java.net/maven/2)
> Downloading:
> http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus//com/sun/istack/istack-commons/1.1-SNAPSHOT/istack-commons-1.1-SNAPSHOT.pom
> [INFO] Unable to find resource
> 'com.sun.istack:istack-commons:pom:1.1-SNAPSHOT' in repository
> codehaus (http://repository.codehaus.org)
> Downloading:
> http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus//com/sun/istack/istack-commons/1.1-SNAPSHOT/istack-commons-1.1-SNAPSHOT.pom
> [INFO] Unable to find resource
> 'com.sun.istack:istack-commons:pom:1.1-SNAPSHOT' in repository
> glassfish-maven2-repository.dev.java.net
> (http://download.java.net/maven/glassfish/)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: com.sun.istack:maven-istack-commons-plugin:maven-plugin:0.1
>
> Reason: Cannot find parent: com.sun.istack:istack-commons for project:
> com.sun.istack:maven-istack-commons-plugin:maven-plugin:0.1 for
> project com.sun.istack:maven-istack-commons-plugin:maven-plugin:0.1
>
>
> What am I doing wrong? Is this because gf-maven doesn't have any
> snapshot artifacts? (Should this really be depending on a snapshot
> artifact?)
>
> How do I configure my maven mirrors so that I get all non-snapshot
> artifacts from gf-maven but can still access snapshot artifacts from
> (e.g.) download.java.net?
This is because com.sun.istack:maven-istack-commons-plugin:0.1:pom is
referencing a a SNAPSHOT parent pom.
The fix should be in maven-istack-commons-plugin.

I can add SNAPSHOT artifacts to GlassFish Nexus. This will be a
workaround for building Grizzly. But I'd really prefer GlassFish Nexus
to proxy only release artifacts.
>
>
> Martin Grebac wrote on 03/01/2011 10:30 AM:
>> Hi,
>> I do see it refers to the parent 1.1-SNAPSHOT pom, but the version
>> itself is redefined to 0.1.
>> MartiNG
>> --
>> Martin Grebac
>> GlassFish/Metro/JAXB/Tooling at Oracle
>> http://blogs.sun.com/mgrebac
>> ICQ: 93478885
>>
>> On Feb 23, 2011, at 10:47 PM, Bill Shannon wrote:
>>
>>> Who owns the maven-istack-commons-plugin?
>>>
>>> The version published in the repository as the 0.1 version claims to
>>> be version 1.1-SNAPSHOT:
>>>
>>> http://download.java.net/maven/2/com/sun/istack/maven-istack-commons-plugin/0.1/maven-istack-commons-plugin-0.1.pom
>>>
>>
>