Hi,

> required artifacts missing:
>   root.project.projects:logging:jar:1.0

Looking at this snippet from the log shows that maven is searching for an artifact with the groupId 'root.project.projects', the artifactId 'logging' and the version '1.0'. You installed the artifact with a groupId of 'commons-logging' and and artifactId of 'commons-logging' to your local repository, so your dependency definition in your pom.xml should look like this:

<dependency>      
  <groupId>commons-logging</groupId>
  <artifactId>commons-logging</artifactId>
  <version>1.0</version>
</dependency>     


However, you don't need to add the commons-logging jar to your local repository by hand at all. This is just needed for the Sun jars due to licensing issues. The other arifacts are downloaded automatically by maven during the build.

Hope this helps
-Tim


[EMAIL PROTECTED] schrieb:
Can someone explain why I am getting this error below during mvn compile
I have installed the activation and mail jars into my local repository works fine, then installed
the logging.jar however commons logging .jar is not being picked up.
Did I not install it correctly?
Why is it still going outside my local repository?

mvn install:install-file -Dfile=commons-logging.jar
-DgroupId=commons-logging -DartifactId=commons-logging -Dversion=1.0 -Dpackaging=jar

produces in my repository
commons-logging -> commons-logging -> 1.0 -> commons-logging-1.0jar

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/root/project/projects/logging/1.0/logging-1.0.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

required artifacts missing:
  root.project.projects:logging:jar:1.0

for the artifact:
  root.project:primary-source:jar:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

----------------------------------------------
Thanks, Michael Tedesco
----------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to