Thanks for the reply Eugene. >> To begin with, this plugin is not using MAVEN_REPO variable or >> actually any other variable.
ok, I think I got that from some web examples, from when I was pulling my hair out with 0.0.9 I have removed it now. >> Repository location is controlled by the standard Maven >> settings.xml which is located at <user home>/.m2/settings.xml >> (on Window this is C:\Documents and Settings\<user name>\.m2\settings.xml). I do not have a settings.xml file Interestingly, the errors printed from maven duiring my build did not point to <user home>/.m2/repository, they point to <company name>/<user home>/.m2/repository I confirmed this with our IT staff and they say our machines use this instead. >> If settings.xml is not exist there, Maven will assume default repository >> location at <user home>/.m2/repository Looking in that dir, I see <home>\.m2\repository\log4j-1.2.8.jar <-- I added this jar <home>\.m2\repository\classworlds\classworlds\1.1-alpha-2\... <-- not sure where this came from <home>\.m2\repository\junit\junit\3.8.1\... <-- not sure where this came from <home>\.m2\repository\org\apache\... <-- not sure where this came from <home>\.m2\repository\org\codehaus\plexus\... <-- not sure where this came from Where exactly is my jar supposed to be located? I assume it is in the root of <home>\.m2\repository\, where my log4j jar is found. >> Maven should use the same settings if you rut from the command line of from IDE. >> The only know issue is that IDE integration currently does not >> allow to specify location of the global settings.xml, which you can do >> from the command line. So, I would suggest to try to run the same things >> from the command line. This sounds good, except I'm not very familiar with what commands I should try from the command line. Thoughts? Cheers, Andy Andy Dingfelder wrote: > I successfully updated to 0.0.10 but now am having different issues. > Hopefully it is something easy to fix like a configuration setting. > > I configured my local repository MAVEN_REPO environment variable to be: > > C:\Documents and Settings\company_name\user_name\.m2\repository > > I then added the log4j 1.2.8 jar to that dir > > I then selected "add dependency" to define that as a required jar, and > got the following messages: > > __________________________________________________ > > > 22/01/07 11:13:04: [INFO] > NOTE: Maven is executing in offline mode. Any artifacts not already in > your local > repository will be inaccessible. > > 22/01/07 11:13:04: [DEBUG] common_java:common_java:jar:0.0.1 (selected > for null) > 22/01/07 11:13:04: [DEBUG] log4j:log4j:jar:1.2.8:compile (selected > for compile) > 22/01/07 11:13:04: [DEBUG] System is offline. > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > > > log4j:log4j:jar:1.2.8 > > > 22/01/07 11:13:04: Missing: > 1) log4j:log4j:jar:1.2.8 > Try downloading the file manually from the project website. > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > 1 required artifact is missing. > for artifact: > common_java:common_java:jar:0.0.1 > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > __________________________________________________ > > I also tried doing a "update source folders" cmd and got the following > messages: > (interestingly, the file plugin-registry.xml does not exist in that > directory) > __________________________________________________ > > 22/01/07 11:18:49: [DEBUG] Building Maven user-level plugin registry > from: 'C:\Documents and > Settings\company_name\user_name\.m2\plugin-registry.xml' > 22/01/07 11:18:49: [DEBUG] Building Maven user-level plugin registry > from: 'C:\Documents and > Settings\company_name\user_name\.m2\plugin-registry.xml' > 22/01/07 11:18:49: Reading /common_java/pom.xml > 22/01/07 11:18:49: Generating sources /common_java/pom.xml > 22/01/07 11:18:49: [INFO] > NOTE: Maven is executing in offline mode. Any artifacts not already in > your local > repository will be inaccessible. > > 22/01/07 11:18:49: [INFO] Scanning for projects... > 22/01/07 11:18:49: [INFO] > ---------------------------------------------------------------------------- > 22/01/07 11:18:49: [INFO] Building Unnamed - > common_java:common_java:jar:0.0.1 > 22/01/07 11:18:49: [INFO] task-segment: [process-test-resources] > 22/01/07 11:18:49: [INFO] > ---------------------------------------------------------------------------- > 22/01/07 11:18:49: [DEBUG] maven-resources-plugin: resolved to version > 2.2 from repository central > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven.plugins:maven-plugins::1 for project: > null:maven-resources-plugin:maven-plugin:2.2 from the repository. > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven-parent::1 for project: > org.apache.maven.plugins:maven-plugins:pom:1 from the repository. > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: org.apache:apache::1 > for project: org.apache.maven:maven-parent:pom:1 from the repository. > 22/01/07 11:18:49: [DEBUG] maven-compiler-plugin: resolved to version > 2.0.1 from repository central > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven.plugins:maven-plugins::1 for project: > null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository. > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven-parent::1 for project: > org.apache.maven.plugins:maven-plugins:pom:1 from the repository. > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: org.apache:apache::1 > for project: org.apache.maven:maven-parent:pom:1 from the repository. > 22/01/07 11:18:49: [DEBUG] > org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime > (selected for runtime) > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-model:jar:2.0 from the repository. > 22/01/07 11:18:49: [DEBUG] > org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime) > 22/01/07 11:18:49: [DEBUG] > org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for > runtime) > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: null:maven-project:jar:2.0 from > the repository. > 22/01/07 11:18:49: [DEBUG] > org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime) > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: null:maven-profile:jar:2.0 from > the repository. > 22/01/07 11:18:49: [DEBUG] > org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime) > 22/01/07 11:18:49: [DEBUG] > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime > (selected for runtime) > 22/01/07 11:18:49: [DEBUG] junit:junit:jar:3.8.1:runtime > (selected for runtime) > 22/01/07 11:18:49: [DEBUG] > classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-artifact-manager:jar:2.0 from the repository. > 22/01/07 11:18:49: [DEBUG] > org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for > runtime) > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-repository-metadata:jar:2.0 from the repository. > 22/01/07 11:18:49: [DEBUG] > org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for > runtime) > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-artifact:jar:2.0 from the repository. > 22/01/07 11:18:49: [DEBUG] > org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime) > 22/01/07 11:18:49: [DEBUG] > org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime > (selected for runtime) > 22/01/07 11:18:49: [DEBUG] > org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime) > 22/01/07 11:18:49: [DEBUG] > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime > (selected for runtime) > 22/01/07 11:18:49: [DEBUG] junit:junit:jar:3.8.1:runtime > (selected for runtime) > 22/01/07 11:18:49: [DEBUG] > classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) > 22/01/07 11:18:49: [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-plugin-api:jar:2.0 from the repository. > 22/01/07 11:18:49: [DEBUG] > org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for > runtime) > 22/01/07 11:18:49: [DEBUG] Configuring mojo > 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' --> > 22/01/07 11:18:49: [DEBUG] (f) filters = [] > 22/01/07 11:18:49: [DEBUG] (f) outputDirectory = > C:\projects\common_java\target\classes > 22/01/07 11:18:49: [DEBUG] (f) project = > [EMAIL PROTECTED] > 22/01/07 11:18:49: [DEBUG] (f) resources = > [EMAIL PROTECTED] > 22/01/07 11:18:49: [DEBUG] -- end configuration -- > 22/01/07 11:18:49: resources:resources > 22/01/07 11:18:49: [INFO] Using default encoding to copy filtered > resources. > 22/01/07 11:18:49: [DEBUG] common_java:common_java:jar:0.0.1 (selected > for null) > 22/01/07 11:18:49: [DEBUG] Artifact not found - using stub model: > System is offline. > > log4j:log4j:pom:1.2.8 > > > 22/01/07 11:18:49: [DEBUG] Using defaults for missing POM > log4j:log4j:pom:1.2.8:compile > 22/01/07 11:18:49: [DEBUG] log4j:log4j:jar:1.2.8:compile (selected > for compile) > 22/01/07 11:18:49: [DEBUG] System is offline. > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > > > log4j:log4j:jar:1.2.8 > > > 22/01/07 11:18:49: ERROR project-execute : > common_java:common_java:jar:0.0.1 ( task-segment: > [process-test-resources] ) : Missing: > ---------- > 1) log4j:log4j:jar:1.2.8 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > > ---------- > 1 required artifact is missing. > > for artifact: > common_java:common_java:jar:0.0.1 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > 22/01/07 11:18:49: ERROR reactor-execute : C:\projects\common_java : > Missing: > ---------- > 1) log4j:log4j:jar:1.2.8 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > > ---------- > 1 required artifact is missing. > > for artifact: > common_java:common_java:jar:0.0.1 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > 22/01/07 11:18:49: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:49: [ERROR] BUILD ERROR > 22/01/07 11:18:49: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:49: [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) log4j:log4j:jar:1.2.8 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > > ---------- > 1 required artifact is missing. > > for artifact: > common_java:common_java:jar:0.0.1 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > NOTE: Maven is executing in offline mode. Any artifacts not already in > your local > repository will be inaccessible. > > > 22/01/07 11:18:49: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:49: [DEBUG] Trace Missing: > ---------- > 1) log4j:log4j:jar:1.2.8 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > > ---------- > 1 required artifact is missing. > > for artifact: > common_java:common_java:jar:0.0.1 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > 22/01/07 11:18:49: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:49: [INFO] Total time: < 1 second > 22/01/07 11:18:49: [INFO] Finished at: Mon Jan 22 11:18:49 NZDT 2007 > 22/01/07 11:18:50: [INFO] Final Memory: 72M/144M > 22/01/07 11:18:50: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:50: [INFO] Error for project: Unnamed - > common_java:common_java:jar:0.0.1 (during process-test-resources) > 22/01/07 11:18:50: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:50: [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) log4j:log4j:jar:1.2.8 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > > ---------- > 1 required artifact is missing. > > for artifact: > common_java:common_java:jar:0.0.1 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > NOTE: Maven is executing in offline mode. Any artifacts not already in > your local > repository will be inaccessible. > > > 22/01/07 11:18:50: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:50: [DEBUG] Trace Missing: > ---------- > 1) log4j:log4j:jar:1.2.8 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=log4j -DartifactId=log4j \ > -Dversion=1.2.8 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) common_java:common_java:jar:0.0.1 > 2) log4j:log4j:jar:1.2.8 > > ---------- > 1 required artifact is missing. > > for artifact: > common_java:common_java:jar:0.0.1 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > 22/01/07 11:18:50: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:50: ERROR reactor-execute : C:\projects\common_java > 22/01/07 11:18:50: [INFO] BUILD ERRORS > 22/01/07 11:18:50: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:50: [INFO] Total time: 1 second > 22/01/07 11:18:50: [INFO] Finished at: Mon Jan 22 11:18:50 NZDT 2007 > 22/01/07 11:18:51: [INFO] Final Memory: 73M/144M > 22/01/07 11:18:51: [INFO] > ------------------------------------------------------------------------ > 22/01/07 11:18:51: Build error for /common_java/pom.xml; > org.apache.maven.reactor.MavenExecutionException: Some builds failed > 22/01/07 11:18:52: Updated source folders for project common_java 3sec > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WARNING: This email and any attachments may be confidential and/or privileged. They are intended for the addressee only and are not to be read, used, copied or disseminated by anyone receiving them in error. If you are not the intended recipient, please notify the sender by return email and delete this message and any attachments. The views expressed in this email are those of the sender and do not necessarily reflect the official views of Landcare Research. SirTrack http://www.sirtrack.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
