You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Danilo Tuler <tu...@ideais.com.br> on 2008/06/05 05:37:13 UTC
Re: Starting from scratch
I'm trying the same aproach as the first poster.
1) Installed archiva 1.0.2 standalone as windows service with out of the box
configuration.
2) Installed maven 2.0.9.
3) Configured settings.xml with:
<mirror>
<id>archiva.default</id>
<url>http://localhost:8080/archiva/repository/internal</url>
<mirrorOf>*</mirrorOf>
</mirror>
4) deleted my ~/.m2/repository
5) nothings works...
'mvn clean' can't find maven-clean-plugin.
Reason: POM 'org.apache.maven.plugins:maven-clean-plugin' not found in
repository: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-clean-plugin:pom:2.2
from the specified remote repositories:
archiva.default (http://localhost:8080/archiva/repository/internal)
for project org.apache.maven.plugins:maven-clean-plugin
But if I point my browser to
http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.jar
It works as expected. The jar is downloaded.
What makes the browser work and maven not?
Thanks,
Danilo
--
View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17661366.html
Sent from the archiva-users mailing list archive at Nabble.com.
Re: Starting from scratch
Posted by Danilo Tuler <tu...@ideais.com.br>.
Brett Porter wrote:
>
> It's hard to tell if it is actually hitting Archiva and where the
> problem might be.
>
I think it's not. I don't know why.
Brett Porter wrote:
>
> - enable debug logging in Archiva (edit
> apps/archiva/webapp/WEB-INF/classes/log4j.xml)
>
Nothing. So I guess archiva is not being hit.
Brett Porter wrote:
>
> - are you using a http proxy in maven?
>
No.
Brett Porter wrote:
>
> - what version of Archiva are you using?
>
1.0.2
Thanks.
--
View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17683020.html
Sent from the archiva-users mailing list archive at Nabble.com.
Re: Starting from scratch
Posted by Danilo Tuler <tu...@ideais.com.br>.
Brett Porter wrote:
>
> Built in firewall, or perhaps a permissions issue?
>
Firewall is disabled.
But may be a permission issue. Hard to know where.
Thanks,
Danilo
--
View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17732316.html
Sent from the archiva-users mailing list archive at Nabble.com.
Re: Starting from scratch
Posted by Brett Porter <br...@gmail.com>.
Built in firewall, or perhaps a permissions issue?
- Brett
2008/6/7 Danilo Tuler <tu...@ideais.com.br>:
>
>
>
> Brett Porter wrote:
>>
>> It's hard to tell if it is actually hitting Archiva and where the
>> problem might be.
>>
>
> It may be related to the OS.
> It worked in Windows XP.
> It didn't work in Windox Vista.
>
> -- Danilo
>
>
> --
> View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17702902.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/
Re: Starting from scratch
Posted by Danilo Tuler <tu...@ideais.com.br>.
Brett Porter wrote:
>
> It's hard to tell if it is actually hitting Archiva and where the
> problem might be.
>
It may be related to the OS.
It worked in Windows XP.
It didn't work in Windox Vista.
-- Danilo
--
View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17702902.html
Sent from the archiva-users mailing list archive at Nabble.com.
Re: Starting from scratch
Posted by Brett Porter <br...@gmail.com>.
It's hard to tell if it is actually hitting Archiva and where the
problem might be.
Some more things to try:
- enable debug logging in Archiva (edit
apps/archiva/webapp/WEB-INF/classes/log4j.xml)
- are you using a http proxy in maven?
- what version of Archiva are you using?
Cheers,
Brett
2008/6/6 Danilo Tuler <tu...@ideais.com.br>:
>
>
>
> Brett Porter wrote:
>>
>> It is definitely receiving a 404. Is there anything in the Archiva
>> logs to indicate why?
>>
>
> Nothing in audit.log or archiva.log.
>
>
> Brett Porter wrote:
>>
>> You said you were able to retrieve the JAR - but are you also able to
>> retrieve the POM that it is unable to find?
>>
>
> Yes. The url I open is:
>
> http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
>
> --
> View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17682831.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/
Re: Starting from scratch
Posted by Danilo Tuler <tu...@ideais.com.br>.
Brett Porter wrote:
>
> It is definitely receiving a 404. Is there anything in the Archiva
> logs to indicate why?
>
Nothing in audit.log or archiva.log.
Brett Porter wrote:
>
> You said you were able to retrieve the JAR - but are you also able to
> retrieve the POM that it is unable to find?
>
Yes. The url I open is:
http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
--
View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17682831.html
Sent from the archiva-users mailing list archive at Nabble.com.
Re: Starting from scratch
Posted by Brett Porter <br...@gmail.com>.
It is definitely receiving a 404. Is there anything in the Archiva
logs to indicate why?
You said you were able to retrieve the JAR - but are you also able to
retrieve the POM that it is unable to find?
Cheers,
Brett
2008/6/6 Danilo Tuler <tu...@ideais.com.br>:
>
>
> Brett Porter wrote:
>>
>> Can you run mvn with the -X flag and see what error it gets from the
>> repository?
>>
>
> Stack trace is below. I see no clue in it.
> Strangely enough, I did the same steps on another machine at work, and it
> worked properly.
>
> + Error stacktraces are turned on.
> Maven version: 2.0.9
> Java version: 1.6.0_03
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
> [DEBUG] Building Maven user-level plugin registry from:
> 'C:\Users\hp\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'C:\Program
> Files\Apache Software
> Foundation\apache-maven-2.0.9\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building hsbroker
> [INFO] task-segment: [clean]
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trying repository central
> Downloading:
> http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
> [DEBUG] Unable to get resource
> 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository
> central (http://repo1.maven.org/maven2)
> [DEBUG] Trying repository central
> Downloading:
> http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
> [DEBUG] Unable to get resource
> 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository
> central (http://repo1.maven.org/maven2)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.apache.maven.plugins:maven-clean-plugin
>
> Reason: POM 'org.apache.maven.plugins:maven-clean-plugin' not found in
> repository: Unable to download the artifact from any repository
>
> org.apache.maven.plugins:maven-clean-plugin:pom:2.2
>
> from the specified remote repositories:
> archiva.default (http://localhost:8080/archiva/repository/internal)
> for project org.apache.maven.plugins:maven-clean-plugin
>
>
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
> project for plugin 'org.apache.maven.plugins:maven-clean-plugin': POM
> 'org.apache.maven.plugins:maven-clean-plugin' not found in repository:
> Unable to download the artifact from any repository
>
> org.apache.maven.plugins:maven-clean-plugin:pom:2.2
>
> from the specified remote repositories:
> archiva.default (http://localhost:8080/archiva/repository/internal)
> for project org.apache.maven.plugins:maven-clean-plugin
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1291)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
> (DefaultLifecycleExecutor.java:1542)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1033)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:997)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:477)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
> project for plugin 'org.apache.maven.plugins:maven-clean-plugin': POM
> 'org.apache.maven.plugins:maven-clean-plugin' not found in repository:
> Unable to download the artifact from any repository
>
> org.apache.maven.plugins:maven-clean-plugin:pom:2.2
>
> from the specified remote repositories:
> archiva.default (http://localhost:8080/archiva/repository/internal)
> for project org.apache.maven.plugins:maven-clean-plugin
> at
> org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:281)
> at
> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:197)
> at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:176)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
> ... 18 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM
> 'org.apache.maven.plugins:maven-clean-plugin' not found in repository:
> Unable to download the artifact from any repository
>
> org.apache.maven.plugins:maven-clean-plugin:pom:2.2
>
> from the specified remote repositories:
> archiva.default (http://localhost:8080/archiva/repository/internal)
> for project org.apache.maven.plugins:maven-clean-plugin
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
> at
> org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:265)
> ... 21 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> Unable to download the artifact from any repository
>
> org.apache.maven.plugins:maven-clean-plugin:pom:2.2
>
> from the specified remote repositories:
> archiva.default (http://localhost:8080/archiva/repository/internal)
>
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveDefaultArtifactResolver.java:212)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve
> (DefaultArtifactResolver.java:74)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
> ... 23 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
> download the artifact from any repository
> at
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
> ... 25 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Jun 05 22:00:42 BRT 2008
> [INFO] Final Memory: 1M/4M
> [INFO]
> ------------------------------------------------------------------------
> --
> View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17682708.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/
Re: Starting from scratch
Posted by Danilo Tuler <tu...@ideais.com.br>.
Brett Porter wrote:
>
> Can you run mvn with the -X flag and see what error it gets from the
> repository?
>
Stack trace is below. I see no clue in it.
Strangely enough, I did the same steps on another machine at work, and it
worked properly.
+ Error stacktraces are turned on.
Maven version: 2.0.9
Java version: 1.6.0_03
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
[DEBUG] Building Maven user-level plugin registry from:
'C:\Users\hp\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\Program
Files\Apache Software
Foundation\apache-maven-2.0.9\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building hsbroker
[INFO] task-segment: [clean]
[INFO]
------------------------------------------------------------------------
[DEBUG] Trying repository central
Downloading:
http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
[DEBUG] Unable to get resource
'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository
central (http://repo1.maven.org/maven2)
[DEBUG] Trying repository central
Downloading:
http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
[DEBUG] Unable to get resource
'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository
central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-clean-plugin
Reason: POM 'org.apache.maven.plugins:maven-clean-plugin' not found in
repository: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-clean-plugin:pom:2.2
from the specified remote repositories:
archiva.default (http://localhost:8080/archiva/repository/internal)
for project org.apache.maven.plugins:maven-clean-plugin
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
project for plugin 'org.apache.maven.plugins:maven-clean-plugin': POM
'org.apache.maven.plugins:maven-clean-plugin' not found in repository:
Unable to download the artifact from any repository
org.apache.maven.plugins:maven-clean-plugin:pom:2.2
from the specified remote repositories:
archiva.default (http://localhost:8080/archiva/repository/internal)
for project org.apache.maven.plugins:maven-clean-plugin
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1542)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1033)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:997)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:477)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
project for plugin 'org.apache.maven.plugins:maven-clean-plugin': POM
'org.apache.maven.plugins:maven-clean-plugin' not found in repository:
Unable to download the artifact from any repository
org.apache.maven.plugins:maven-clean-plugin:pom:2.2
from the specified remote repositories:
archiva.default (http://localhost:8080/archiva/repository/internal)
for project org.apache.maven.plugins:maven-clean-plugin
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:281)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:197)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:176)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
... 18 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.apache.maven.plugins:maven-clean-plugin' not found in repository:
Unable to download the artifact from any repository
org.apache.maven.plugins:maven-clean-plugin:pom:2.2
from the specified remote repositories:
archiva.default (http://localhost:8080/archiva/repository/internal)
for project org.apache.maven.plugins:maven-clean-plugin
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:265)
... 21 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
org.apache.maven.plugins:maven-clean-plugin:pom:2.2
from the specified remote repositories:
archiva.default (http://localhost:8080/archiva/repository/internal)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveDefaultArtifactResolver.java:212)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve
(DefaultArtifactResolver.java:74)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
... 23 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
... 25 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Jun 05 22:00:42 BRT 2008
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17682708.html
Sent from the archiva-users mailing list archive at Nabble.com.
Re: Starting from scratch
Posted by Brett Porter <br...@gmail.com>.
Can you run mvn with the -X flag and see what error it gets from the repository?
Also, please ensure to remove the repository before doing this - the
previous failure gets cached in maven's local repo by mistake.
- Brett
2008/6/5 Danilo Tuler <tu...@ideais.com.br>:
>
> I'm trying the same aproach as the first poster.
>
> 1) Installed archiva 1.0.2 standalone as windows service with out of the box
> configuration.
> 2) Installed maven 2.0.9.
> 3) Configured settings.xml with:
> <mirror>
> <id>archiva.default</id>
> <url>http://localhost:8080/archiva/repository/internal</url>
> <mirrorOf>*</mirrorOf>
> </mirror>
> 4) deleted my ~/.m2/repository
> 5) nothings works...
>
> 'mvn clean' can't find maven-clean-plugin.
>
> Reason: POM 'org.apache.maven.plugins:maven-clean-plugin' not found in
> repository: Unable to download the artifact from any repository
>
> org.apache.maven.plugins:maven-clean-plugin:pom:2.2
>
> from the specified remote repositories:
> archiva.default (http://localhost:8080/archiva/repository/internal)
> for project org.apache.maven.plugins:maven-clean-plugin
>
>
> But if I point my browser to
> http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.jar
> It works as expected. The jar is downloaded.
>
> What makes the browser work and maven not?
>
> Thanks,
> Danilo
>
> --
> View this message in context: http://www.nabble.com/Starting-from-scratch-tp13229503p17661366.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/