dev@glassfish.java.net

Re: maven-istack-commons-plugin

From: Jane Young <jane.young_at_oracle.com>
Date: Tue, 01 Mar 2011 12:00:32 -0800

On 3/1/11 11:41 AM, Bill Shannon wrote:
> I just confirmed that if I remove all mirror settings from my
> settings.xml
> this project builds correctly. Argh! Why can't there be one maven
> configuration that works for all projects?!?
>
> Jane, this is why I want a maven caching proxy, not a mirror with
> limited content.
>
Instead of mirror all the the repositories (" <mirrorOf>*</mirrorOf>"),
you can add another mirror element in settings.xml to include
http://download.java.net/maven/2. Will that fix your issue?
>
> Bill Shannon wrote on 03/01/2011 11:02 AM:
>> 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?
>>
>>
>> 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
>>>>
>>>>
>>>
>>
>