dev@glassfish.java.net

how to build v3 offline ?

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Thu, 28 Feb 2008 00:16:32 -0800

Hi,

I have a working environment, everything is great. Then i changed one
line in my admingui code and want to just recompile and test the change.
I want all the server bits stays the same. So, i use the '-o' offline
mode.
I don't expect and don't want it to go out and check for any updates
and thus risk messing up my working environment.
Yet, i am getting the following error.
 
Can someone tell me how i can archive what i intended, ie, don't check
for anything, just use everything in my local repository, only
recompile that 1 file for me. Is this doable ?

thanks
Anissa

anissa-lams-computer:~/Awork/V3/v3/admingui/core anilam$ mvn -o install
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in
your local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO] snapshot
org.glassfish.build:maven-glassfish-extension:1.0-SNAPSHOT: checking for
updates from glassfish-repository
[INFO] snapshot
org.glassfish.build:maven-glassfish-extension:1.0-SNAPSHOT: checking for
updates from glassfish-repository-wsinterop
[INFO] snapshot
org.glassfish.build:maven-glassfish-extension:1.0-SNAPSHOT: checking for
updates from java-dev-repository
[INFO] snapshot
org.glassfish.build:maven-glassfish-extension:1.0-SNAPSHOT: checking for
updates from repo1.maven.org
[INFO] snapshot
org.glassfish.build:maven-glassfish-extension:1.0-SNAPSHOT: checking for
updates from maven2.java.net
[INFO] snapshot
org.glassfish.build:maven-glassfish-extension:1.0-SNAPSHOT: checking for
updates from maven2.java.net-backup
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.glassfish.build:maven-glassfish-extension:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.glassfish.build
-DartifactId=maven-glassfish-extension \
          -Dversion=1.0-SNAPSHOT -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.build
-DartifactId=maven-glassfish-extension \
          -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
           -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.glassfish.admingui:console-core:hk2-jar:1.0-SNAPSHOT
        2) org.glassfish.build:maven-glassfish-extension:jar:1.0-SNAPSHOT

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

for artifact:
  org.glassfish.admingui:console-core:hk2-jar:1.0-SNAPSHOT