dev@glassfish.java.net

Re: adding a new module--snapshot doesn't show up

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 24 Jan 2008 16:40:03 -0800

Thanks Tim.

It turns out that I mistakenly had <type>zip</type>.

Removing that solved the problem.

Lloyd

On Jan 24, 2008, at 3:16 PM, Tim Quinn wrote:

> Hi, Lloyd.
>
> I'm not sure this is the best approach, but because I have not
> published my new module (named, for the moment, appclient) to a
> maven repository yet the other thing I did was to follow the
> suggestion in the error message:
>
>> Try downloading the file manually from the project website.
>>
>> Then, install it using the command:
>> mvn install:install-file -DgroupId=com.sun.enterprise -
>> DartifactId=appclient \
>> -Dversion=0.1-SNAPSHOT -Dclassifier=build -
>> Dpackaging=jar -Dfile=/path/to/file
> For me "downloading" was really just locating where the JAR is in
> the directory structure: v3/${module-name}/target/${jar-name}.
> This is so that maven2 could find my newly-built module JAR, since
> the distribution is defined with dependencies on the various
> modules and it looks for them in the defined repositories.
>
> Also, I edited the top-level pom.xml to define
> <appclient.version>0.1</appclient.version> and then referred to $
> {appclient.version} in my module's pom and the distribution's pom.
>
> I'm not sure that's the right place or way to set the version, but
> I had understood that each module will certainly be evolving at
> different speeds and with different version IDs, not all inheriting
> the same version pe.version.
> But maybe I'm wrong. Sometimes I feel like I'm stumbling along a
> bit with all this!
>
> HTH.
>
> - Tim
>
> Jerome Dochez wrote:
>> why does it have zip type ? should be "jar" type or don't put the
>> type which defaults to jar.
>>
>>> <dependency>
>>> <groupId>org.glassfish.common</groupId>
>>> <artifactId>amx-impl</artifactId>
>>> <version>${pe.version}</version>
>>> </dependency>
>>
>> jerome
>>
>> On Jan 24, 2008, at 2:07 PM, Lloyd L Chambers wrote:
>>
>>> I've added a new module as described in http://
>>> wiki.glassfish.java.net/Wiki.jsp?page=AddingModule
>>>
>>> I've added it to the distributions/web/pom.xml per Jerome:
>>>
>>> <dependency>
>>> <groupId>org.glassfish.common</groupId>
>>> <artifactId>amx-impl</artifactId>
>>> <version>${pe.version}</version>
>>> <type>zip</type>
>>> </dependency>
>>>
>>> But I encounter this problem when doing 'maven install':
>>>
>>>
>>> Downloading: http://download.java.net/maven/glassfish/org/
>>> glassfish/common/amx-impl/10.0-SNAPSHOT/amx-impl-10.0-SNAPSHOT.zip
>>> Downloading: http://download.java.net/maven/1/
>>> org.glassfish.common/zips/amx-impl-10.0-SNAPSHOT.zip
>>> Downloading: http://repo1.maven.org/maven2/org/glassfish/common/
>>> amx-impl/10.0-SNAPSHOT/amx-impl-10.0-SNAPSHOT.zip
>>> Downloading: http://download.java.net/maven/2/org/glassfish/
>>> common/amx-impl/10.0-SNAPSHOT/amx-impl-10.0-SNAPSHOT.zip
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>> [INFO] Failed to resolve artifact.
>>>
>>> Missing:
>>> ----------
>>> 1) org.glassfish.common:amx-impl:zip:10.0-SNAPSHOT
>>>
>>>
>>> ---
>>> Lloyd L Chambers
>>> lloyd.chambers_at_sun.com
>>> Sun Microsystems, Inc
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc