dev@glassfish.java.net

Re: nucleus.zip dependency

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 26 Sep 2008 15:58:20 +0200

On Sep 26, 2008, at 1:26 PM, Paul Sandoz wrote:

> Hi
>
> I see there were some recent discussions here:
>
> http://www.nabble.com/nucleus.zip-inclorrect-dependency-
> td19300645.html
>
> I am encountering the same issue as Vivek. I am using Maven 2.0.9
> and also tried 2.1.0-M1.
>
> We are using embedded Glassfish for testing samples of Jersey-based
> web applications, for example here:
>
> http://download.java.net/maven/2/com/sun/jersey/samples/helloworld-webapp/1.0-ea-SNAPSHOT/helloworld-webapp-1.0-ea-SNAPSHOT-project.zip
>
> Currently the pom in the above example uses an old version of the GF
> web and embedded API:
>
> <dependency>
> <groupId>org.glassfish.embedded</groupId>
> <artifactId>gf-embedded-api</artifactId>
> <version>1.0-alpha-4</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-client</artifactId>
> <version>${project.version}</version>
> <scope>test</scope>
> </dependency>
>

The above is wrong i meant:

         <dependency>
             <groupId>org.glassfish.distributions</groupId>
             <artifactId>web-all</artifactId>
             <version>10.0-build-20080430</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.glassfish.embedded</groupId>
             <artifactId>gf-embedded-api</artifactId>
             <version>1.0-alpha-4</version>
             <scope>test</scope>
         </dependency>

Paul.

> and i wanted to replace it with:
>
> <dependency>
> <groupId>org.glassfish.embedded</groupId>
> <artifactId>glassfish-embedded-api</artifactId>
> <version>10.0-SNAPSHOT</version>
> <scope>test</scope>
> </dependency>
>
> but i get the same result as Vivek:
>
> 1) org.glassfish.osgi-platforms:felix:distribution-fragment:10.0-
> SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.glassfish.osgi-platforms
> -DartifactId=felix -Dversion=10.0-SNAPSHOT -Dpackaging=distribution-
> fragment -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the
> file there:
> mvn deploy:deploy-file -DgroupId=org.glassfish.osgi-platforms -
> DartifactId=felix -Dversion=10.0-SNAPSHOT -Dpackaging=distribution-
> fragment -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) com.sun.jersey.samples:helloworld-webapp:war:1.0-ea-SNAPSHOT
> 2) org.glassfish.embedded:glassfish-embedded-api:jar:10.0-SNAPSHOT
> 3) org.glassfish.distributions:web:zip:10.0-SNAPSHOT
> 4) org.glassfish.distributions:nucleus:zip:10.0-SNAPSHOT
> 5) org.glassfish.osgi-platforms:felix:distribution-fragment:10.0-
> SNAPSHOT
>
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>