I am trying to debug a strange case. The project needs an artifact that is
not on any online repository (a Google library), so I deployed on my local
repository. Still Maven seems unable to find it. and insistes in checking
online:

Verifying availability of
/home/franco/.m2/repository/com/google/apis/google-api-services-discovery/v1-1.2.0-beta/google-api-services-discovery-v1-1.2.0-beta.pom
from [jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots), central (http://repo1.maven.org/maven2, releases)]

But the file exists: if I issue an ls command I get both .pom and .jar files
form local repository exactly with the shown name.

Any idea of what is going on?

___________
Listing

mvn -X --offline compile

Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /home/franco/programs/apache-maven-3.0.3
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: /home/franco/programs/java/jre1.6.0_23
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.35-30-generic-pae", arch: "i386", family:
"unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from
/home/franco/programs/apache-maven-3.0.3/conf/settings.xml
[DEBUG] Reading user settings from /home/franco/.m2/settings.xml
[DEBUG] Using local repository at /home/franco/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for
/home/franco/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project
net.cbsolution:ps.srvcr2:jar:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from
ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN
================================================
[DEBUG] Project: net.cbsolution:ps.srvcr2:jar:1.0-SNAPSHOT
[DEBUG] Tasks:   [compile]
[DEBUG] Style:   Regular
[DEBUG]
=======================================================================
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building ps.srvcr 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN
================================================
[DEBUG] Project:       net.cbsolution:ps.srvcr2:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile]
[DEBUG] Repositories (dependencies): [jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots), central (http://repo1.maven.org/maven2, releases)]
[DEBUG] Repositories (plugins)     : [jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots), central (http://repo1.maven.org/maven2, releases)]
[DEBUG]
-----------------------------------------------------------------------
[DEBUG] Goal:         
org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources
(default-resources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding
default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString default-value="${maven.resources.escapeString}"/>
  <escapeWindowsPaths
default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs
default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG]
-----------------------------------------------------------------------
[DEBUG] Goal:         
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="${basedir}"/>
  <buildDirectory default-value="${project.build.directory}"/>
  <classpathElements default-value="${project.compileClasspathElements}"/>
  <compileSourceRoots default-value="${project.compileSourceRoots}"/>
  <compilerId
default-value="javac">${maven.compiler.compilerId}</compilerId>
  <compilerVersion>${maven.compiler.compilerVersion}</compilerVersion>
  <debug default-value="true">${maven.compiler.debug}</debug>
  <debuglevel>${maven.compiler.debuglevel}</debuglevel>
  <encoding
default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <executable>${maven.compiler.executable}</executable>
  <failOnError
default-value="true">${maven.compiler.failOnError}</failOnError>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedSourcesDirectory
default-value="${project.build.directory}/generated-sources/annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <projectArtifact default-value="${project.artifact}"/>
  <session default-value="${session}"/>
  <showDeprecation
default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings
default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <source default-value="1.5">${maven.compiler.source}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${maven.compiler.target}</target>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG]
=======================================================================
[DEBUG] The repository system is offline but the metadata
net.cbsolution:sc.cbslib:1.0-SNAPSHOT/maven-metadata.xml from
jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots) is not available in the local repository.
[DEBUG] The repository system is offline but the metadata
net.cbsolution:sc.cbslib:1.0-SNAPSHOT/maven-metadata.xml from
jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots) is not available in the local repository.
[WARNING] The POM for dom4j:dom4j:jar:2.0.0-ALPHA-2 is missing, no
dependency information available
[WARNING] The POM for extra_:iText:jar:5.0.4 is missing, no dependency
information available
[WARNING] The POM for extra_:jnlp:jar:1.6.0_18 is missing, no dependency
information available
[WARNING] The POM for extra_.jGoodies:forms:jar:1.3.0 is missing, no
dependency information available
[WARNING] The POM for extra_.jGoodies:validation:jar:2.1.0 is missing, no
dependency information available
[DEBUG] The repository system is offline but the metadata
net.cbsolution:sc.datagrid:1.0-SNAPSHOT/maven-metadata.xml from
jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots) is not available in the local repository.
[DEBUG] The repository system is offline but the metadata
net.cbsolution:sc.datagrid:1.0-SNAPSHOT/maven-metadata.xml from
jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots) is not available in the local repository.
[WARNING] The POM for extra_:treemap:jar:2.5.2 is missing, no dependency
information available
[DEBUG] The repository system is offline but the metadata
com.google.api:google-api-translate-java:0.95-SNAPSHOT/maven-metadata.xml
from jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots) is not available in the local repository.
[DEBUG] The repository system is offline but the metadata
com.google.api:google-api-translate-java:0.95-SNAPSHOT/maven-metadata.xml
from jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots) is not available in the local repository.
[DEBUG] Verifying availability of
/home/franco/.m2/repository/com/google/apis/google-api-services-discovery/v1-1.2.0-beta/google-api-services-discovery-v1-1.2.0-beta.pom
from [jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots), central (http://repo1.maven.org/maven2, releases)]
[WARNING] The POM for
com.google.apis:google-api-services-discovery:jar:v1-1.2.0-beta is missing,
no dependency information available
[DEBUG] net.cbsolution:ps.srvcr2:jar:1.0-SNAPSHOT
[DEBUG]    junit:junit:jar:3.8.1:test
[DEBUG]    tablelayout:TableLayout:jar:20050920:compile
[DEBUG]    org.noos.xing:mydoggy-api:jar:1.5.0:compile
[DEBUG]    org.noos.xing:mydoggy-plaf:jar:1.5.0:compile
[DEBUG]       org.noos.xing:mydoggy-res:jar:1.5.0:compile
[DEBUG]    net.cbsolution:sc.cbslib:jar:1.0-SNAPSHOT:compile
[DEBUG]       org.apache.commons:commons-io:jar:1.3.2:compile
[DEBUG]       commons-lang:commons-lang:jar:2.4:compile
[DEBUG]       dom4j:dom4j:jar:2.0.0-ALPHA-2:compile
[DEBUG]       net.sf.opencsv:opencsv:jar:2.1:compile
[DEBUG]       commons-vfs:commons-vfs:jar:20050307052300:compile
[DEBUG]       extra_:iText:jar:5.0.4:compile
[DEBUG]       extra_:jnlp:jar:1.6.0_18:compile
[DEBUG]       com.caucho:hessian:jar:3.1.5:compile
[DEBUG]       org.apache.poi:poi:jar:3.6:compile
[DEBUG]          commons-logging:commons-logging:jar:1.1:compile
[DEBUG]             logkit:logkit:jar:1.0.1:compile
[DEBUG]             avalon-framework:avalon-framework:jar:4.1.3:compile
[DEBUG]             javax.servlet:servlet-api:jar:2.3:compile
[DEBUG]          log4j:log4j:jar:1.2.13:compile
[DEBUG]       org.apache.poi:poi-contrib:jar:3.6:compile
[DEBUG]       net.java.dev.glazedlists:glazedlists_java15:jar:1.8.0:compile
[DEBUG]       commons-beanutils:commons-beanutils-core:jar:1.8.3:compile
[DEBUG]       commons-httpclient:commons-httpclient:jar:3.1:compile
[DEBUG]          commons-codec:commons-codec:jar:1.2:compile
[DEBUG]       extra_.jGoodies:forms:jar:1.3.0:compile
[DEBUG]       extra_.jGoodies:validation:jar:2.1.0:compile
[DEBUG]       org.apache.poi:openxml4j:jar:1.0-beta:compile
[DEBUG]       org.apache.poi:poi-ooxml:jar:3.6:compile
[DEBUG]          org.apache.poi:poi-ooxml-schemas:jar:3.6:compile
[DEBUG]             org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile
[DEBUG]                stax:stax-api:jar:1.0.1:compile
[DEBUG]            
org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0:compile
[DEBUG]    net.cbsolution:sc.datagrid:jar:1.0-SNAPSHOT:compile
[DEBUG]       jfree:jfreechart:jar:1.0.13:compile
[DEBUG]       jfree:jcommon:jar:1.0.15:compile
[DEBUG]       extra_:treemap:jar:2.5.2:compile
[DEBUG]       jaxen:jaxen:jar:1.1.1:compile
[DEBUG]          jdom:jdom:jar:1.0:compile
[DEBUG]          xml-apis:xml-apis:jar:1.3.02:compile
[DEBUG]          xerces:xercesImpl:jar:2.6.2:compile
[DEBUG]          xom:xom:jar:1.0:compile
[DEBUG]             xerces:xmlParserAPIs:jar:2.6.2:compile
[DEBUG]             xalan:xalan:jar:2.6.0:compile
[DEBUG]             com.ibm.icu:icu4j:jar:2.6.1:compile
[DEBUG]    org.apache.commons:commons-math:jar:2.0:compile
[DEBUG]    org.beanshell:bsh:jar:2.0b4:compile
[DEBUG]   
com.google.api:google-api-translate-java:jar:0.95-SNAPSHOT:compile
[DEBUG]       org.json:json:jar:20090211:compile
[DEBUG]    com.google.gdata:core:jar:1.0:compile
[DEBUG]    com.google.gdata:spreadsheet:jar:3.0:compile
[DEBUG]   
com.google.apis:google-api-services-discovery:jar:v1-1.2.0-beta:compile
[DEBUG] Verifying availability of
/home/franco/.m2/repository/com/google/apis/google-api-services-discovery/v1-1.2.0-beta/google-api-services-discovery-v1-1.2.0-beta.jar
from [jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public-jboss/,
releases+snapshots), central (http://repo1.maven.org/maven2, releases)]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.611s
[INFO] Finished at: Tue Sep 13 22:14:41 CEST 2011
[INFO] Final Memory: 2M/76M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ps.srvcr2: Could not resolve
dependencies for project net.cbsolution:ps.srvcr2:jar:1.0-SNAPSHOT: The
repository system is offline but the artifact
com.google.apis:google-api-services-discovery:jar:v1-1.2.0-beta is not
available in the local repository. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project ps.srvcr2: Could not resolve dependencies for project
net.cbsolution:ps.srvcr2:jar:1.0-SNAPSHOT: The repository system is offline
but the artifact
com.google.apis:google-api-services-discovery:jar:v1-1.2.0-beta is not
available in the local repository.
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:196)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:108)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not
resolve dependencies for project net.cbsolution:ps.srvcr2:jar:1.0-SNAPSHOT:
The repository system is offline but the artifact
com.google.apis:google-api-services-discovery:jar:v1-1.2.0-beta is not
available in the local repository.
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:170)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:171)
        ... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The
repository system is offline but the artifact
com.google.apis:google-api-services-discovery:jar:v1-1.2.0-beta is not
available in the local repository.
        at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:412)
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:164)
        ... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The
repository system is offline but the artifact
com.google.apis:google-api-services-discovery:jar:v1-1.2.0-beta is not
available in the local repository.
        at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
        at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
        at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:395)
        ... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: The
repository system is offline but the artifact
com.google.apis:google-api-services-discovery:jar:v1-1.2.0-beta is not
available in the local repository.
        at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:352)
        ... 26 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



--
View this message in context: 
http://maven.40175.n5.nabble.com/Why-artifact-not-found-on-local-repository-tp4800084p4800084.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to