quando executo o item liberaração para tomcat completa desenvolvimento, gera este error abaixo :
[WARNING] Command line option -npu is deprecated and will be removed in future Maven versions. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building teste 1.0 [INFO] ------------------------------------------------------------------------ [WARNING] The POM for powerlogic.jaguar.app:teste_commons:jar:1.0 is missing, no dependency information available [WARNING] The POM for powerlogic.jaguar.app:teste_model:jar:1.0 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.153s [INFO] Finished at: Tue May 03 09:03:23 BRT 2011 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project teste: Could not resolve dependencies for project powerlogic.jaguar.app:teste:war:1.0: The following artifacts could not be resolved: powerlogic.jaguar.app:teste_commons:jar:1.0, powerlogic.jaguar.app:teste_model:jar:1.0: The repository system is offline but the artifact powerlogic.jaguar.app:teste_commons:jar:1.0 is not available in the local repository. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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
Autor: Gilberto Moisés Pereira Soares
1919 comentários
Vá em external tools Configurations e retire a linha -npu -o dos argumentos e tente novamente. E me informe. @masterudi
obrigado pela resposta.
Estou com o mesmo problema do Gilberto, removi os parametros do argumento e o erro continua.
Mais alguma sugestão?
<localRepository>C:\jaguar/repositorio</localRepository>
<offline/>
</settings> Realmente tinha um diretorio .m2 na minha maqui que eu removi e reinstalei o jaguar mas continuo com o mesmo erro. O que mais posso fazer?
<localRepository>C:\jaguar/repositorio</localRepository>
<servers>
<server>
<id>powerlogic</id>
<username>epc</username>
<password>senha</password>
</server>
</servers> <profiles>
<profile>
<id>powerlogic</id>
<repositories>
<repository>
<id>powerlogic</id>
<name>Repositorio Powerlogic</name>
<url>http://update.powerlogic.com.br:8080/archiva/repository/powerlogic
</url>
<snapshots>
<updatePolicy>interval:60</updatePolicy>
</snapshots>
</repository>
</repositories> <pluginRepositories>
<pluginRepository>
<id>powerlogic</id>
<name>Repositorio Powerlogic</name>
<url>http://update.powerlogic.com.br:8080/archiva/repository/powerlogic</url>
<snapshots>
<updatePolicy>interval:60</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile> <profile>
<id>jsf-app-profile</id>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots> <id>snapshots.jboss.org</id>
<name>Snapshot Jboss Repository for Maven</name>
<url>http://snapshots.jboss.org/maven2/</url>
<layout>default</layout>
</repository> <repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<id>repository.jboss.com</id>
<name>Jboss Repository for Maven</name>
<url>http://repository.jboss.com/maven2/</url>
<layout>default</layout>
</repository>
<repository>
<id>jasperreports</id>
<url>http://jasperreports.sourceforge.net/maven2</url>
</repository>
</repositories>
</profile>
</profiles> <activeProfiles>
<activeProfile>powerlogic</activeProfile>
<activeProfile>jsf-app-profile</activeProfile>
</activeProfiles>
</settings>
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project powerlogic.jaguar.app:projeto-Agritech:1.0 (C:\jaguar\meus_projetos\Agritech_parent\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: The repository system is offline but the artifact powerlogic.jaguar.jcompany:projeto-plc:pom:6.0.0-Final is not available in the local repository. and 'parent.relativePath' points at wrong local POM @ line 16, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
@masterudi
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project powerlogic.jaguar.app:projeto-Agritech:1.0 (C:\jaguar\meus_projetos\Agritech_parent\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find powerlogic.jaguar.jcompany:projeto-plc:pom:6.0.0-Final in repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 16, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
@masterudi
Java version: 1.6.0_10-rc2, vendor: Sun Microsystems Inc.
Java home: C:\jaguar\java\jre
Default locale: pt_BR, platform encoding: Cp1252
OS name: "windows vista", version: "6.1", arch: "x86", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\ph\Java\apache-maven-3.0.2\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\Pedro Henrique\.m2\settings.xml
[DEBUG] Using local repository at C:\Users\Pedro Henrique\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\Pedro Henrique\.m2\repository
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM: Failure to find powerlogic.jaguar.jcompany:projeto-plc:pom:6.0.0-Final in repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 16, column 10 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
[ERROR]
[ERROR] The project powerlogic.jaguar.app:projeto-Agritech:1.0 (C:\jaguar\meus_projetos\Agritech_parent\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find powerlogic.jaguar.jcompany:projeto-plc:pom:6.0.0-Final in repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 16, column 10 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Failure to find powerlogic.jaguar.jcompany:projeto-plc:pom:6.0.0-Final in repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:183)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:819)
at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:670)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:308)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:354)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:305)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.sonatype.aether.resolution.ArtifactResolutionException: Failure to find powerlogic.jaguar.jcompany:projeto-plc:pom:6.0.0-Final in repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:526)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:214)
at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:179)
... 21 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find powerlogic.jaguar.jcompany:projeto-plc:pom:6.0.0-Final in repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:186)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:408)
... 23 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
[DEBUG] Using local repository at C:\Users\Pedro Henrique\.m2\repository Dentro do seu eclipse altere a chamada do settings.xml para a pasta padrao do jaguar. ferramentas\maven2\conf\settings.xml. Para alterar va em Windows > Preference > e procure por maven, dentro das configuracoes dele voce consegue alterar. Dentro desse settings entra as configuracoes enviadas no post`s anteriores. Obrigado,
@masterudi