Hi, Looks like you are running with snapshots enabled (surefire plugin uses v2.3-SNAPSHOT) - not sure how exactly maven behaves when snapshot versions of plugins are enabled, but it may be that it requires to be online all the time.
Regards, Johan Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) wrote: > Hi, all. > > I understood that it should be possible to do a Maven build offline, > that is, with no connection to any repository except the local > repository. I understand that all necessary artifacts have to already > be in the local repository. > > In fact, I did this exercise a couple of months ago with great success. > But Maven seems to have changed in the meantime. > > I have a situation where I just did a build using a local repository. > The build succeeded. From that success, I assumed that all necessary > artifacts had been downloaded to the local repository. I then tried to > repeat that build using the "-o" parameter to Maven, using that very > same local repository. The build failed because some artifacts were > missing. I re-ran it with " -o -e " as recommend, but got no additional > information. Can someone explain what is going on? Should I file a JIRA > report? > > I received the messages below. Three artifacts are missing. In all > three cases the pom file and its checksum file are present, but no > corresponding jar file. In the dependency paths to the three jar files, > some of the artifacts have jar files in the local repository and some > have only the pom file. But if the jar files are needed, how could > the original build have run successfully? Also, my repository does not > have dummy:dummy. Can anyone explain what dummy:dummy is? > > I could start downloading things manually, but (a) I thought it should > not be necessary, and (b) I could end up having to download dozens of > things manually, as this is a very large build. > > Thanks for any insights that could be provided. > > --Marilyn Sander > > [exec] Missing: > [exec] ---------- > [exec] 1) classworlds:classworlds:jar:1.1-alpha-2 > > [exec] Try downloading the file manually from the project > website. > > [exec] Then, install it using the command: > [exec] mvn install:install-file -DgroupId=classworlds > -DartifactId=classworlds \ > [exec] -Dversion=1.1-alpha-2 -Dpackaging=jar > -Dfile=/path/to/file > > [exec] Path to dependency: > [exec] 1) dummy:dummy:jar:1.0 > [exec] 2) > org.apache.maven.surefire:surefire-booter:jar:2.3-SNAPSHOT > [exec] 3) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 > [exec] 4) > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 > [exec] 5) classworlds:classworlds:jar:1.1-alpha-2 > > [exec] 2) > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 > > [exec] Try downloading the file manually from the project > website. > > [exec] Then, install it using the command: > [exec] mvn install:install-file -DgroupId=org.codehaus.plexus > -DartifactId=plexus-container-default \ > [exec] -Dversion=1.0-alpha-8 -Dpackaging=jar > -Dfile=/path/to/file > > [exec] Path to dependency: > [exec] 1) dummy:dummy:jar:1.0 > [exec] 2) > org.apache.maven.surefire:surefire-booter:jar:2.3-SNAPSHOT > [exec] 3) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 > [exec] 4) > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 > > [exec] 3) org.codehaus.plexus:plexus-utils:jar:1.1 > > [exec] Try downloading the file manually from the project > website. > > [exec] Then, install it using the command: > [exec] mvn install:install-file -DgroupId=org.codehaus.plexus > -DartifactId=plexus-utils \ > [exec] -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file > > [exec] Path to dependency: > [exec] 1) dummy:dummy:jar:1.0 > [exec] 2) > org.apache.maven.surefire:surefire-booter:jar:2.3-SNAPSHOT > [exec] 3) org.codehaus.plexus:plexus-utils:jar:1.1 > > [exec] ---------- > [exec] 3 required artifacts are missing. > [exec] for artifact: > [exec] dummy:dummy:jar:1.0 > > [exec] from the specified remote repositories: > [exec] central (http://maven.cisco.com/maven-proxy/repository), > [exec] bounty-build-proxy > (http://bounty-build.cisco.com/maven-proxy/repository) > > > [exec] NOTE: Maven is executing in offline mode. Any artifacts not > already in your local > [exec] repository will be inaccessible. > > > > -- you too? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
