dev@glassfish.java.net

How should I build a web distribution?

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Wed, 19 Mar 2008 23:01:26 -0700

I am trying *not* to build the entire server, but instead download files
from mvn which (hopefully) have passed some level of verification before
being added to the repository. I want to do this to avoid the constant
build problems that have plagued our productivity in the admin gui team.

So, I did this:

% svn checkout
https://svn.dev.java.net/svn/glassfish-svn/trunk/v3/distributions
% cd distributions/web
% mvn -U install

After waiting for mvn to do it's thing, I get this:

...
521K downloaded
Downloading:
http://download.java.net/maven/glassfish/org/glassfish/external/grizzly-jruby-module/${glassfish-jruby.version}/grizzly-jruby-module-${glassfish-jruby.version}.jar
Downloading:
http://maven.dyndns.org/glassfish//org/glassfish/external/grizzly-jruby-module/${glassfish-jruby.version}/grizzly-jruby-module-${glassfish-jruby.version}.jar
Downloading:
https://maven-repository.dev.java.net/nonav/repository/org.glassfish.external/jars/grizzly-jruby-module-${glassfish-jruby.version}.jar
Downloading:
http://repo1.maven.org/maven2/org/glassfish/external/grizzly-jruby-module/${glassfish-jruby.version}/grizzly-jruby-module-${glassfish-jruby.version}.jar
Downloading:
http://download.java.net/maven/2/org/glassfish/external/grizzly-jruby-module/${glassfish-jruby.version}/grizzly-jruby-module-${glassfish-jruby.version}.jar
Downloading:
https://maven2-repository.dev.java.net/nonav/repository/org/glassfish/external/grizzly-jruby-module/${glassfish-jruby.version}/grizzly-jruby-module-${glassfish-jruby.version}.jar
Downloading:
http://repo1.maven.org/maven2/org/glassfish/external/grizzly-jruby-module/${glassfish-jruby.version}/grizzly-jruby-module-${glassfish-jruby.version}.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1)
org.glassfish.external:grizzly-jruby-module:jar:${glassfish-jruby.version}

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.glassfish.external
-DartifactId=grizzly-jruby-module \
          -Dversion=${glassfish-jruby.version} -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there: mvn deploy:deploy-file -DgroupId=org.glassfish.external
-DartifactId=grizzly-jruby-module \
          -Dversion=${glassfish-jruby.version} -Dpackaging=jar
-Dfile=/path/to/file \
           -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1)
org.glassfish.distributions:web:distribution-base-zip:10.0-SNAPSHOT
        2) org.glassfish.extras:gf-jruby-connector:jar:10.0-SNAPSHOT
        3)
org.glassfish.external:grizzly-jruby-module:jar:${glassfish-jruby.version}

----------
1 required artifact is missing.

for artifact:
  org.glassfish.distributions:web:distribution-base-zip:10.0-SNAPSHOT

from the specified remote repositories:
  maven2.java.net (http://download.java.net/maven/2),
  repo1.maven.org (http://repo1.maven.org/maven2),
  maven2.java.net-backup
(https://maven2-repository.dev.java.net/nonav/repository),
  glassfish-repository-wsinterop (http://maven.dyndns.org/glassfish/),
  glassfish-repository (http://download.java.net/maven/glassfish),
  central (http://repo1.maven.org/maven2),
  java-dev-repository
(https://maven-repository.dev.java.net/nonav/repository)


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7 minutes 50 seconds
[INFO] Finished at: Thu Mar 20 05:46:52 GMT 2008
[INFO] Final Memory: 14M/26M
[INFO]
------------------------------------------------------------------------


Am I doing something wrong? Please help!

Thanks,

Ken