You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/04/03 13:25:44 UTC

[jira] Updated: (ARCHETYPE-10) j2ee archetype has invalid dependencies

     [ http://jira.codehaus.org/browse/ARCHETYPE-10?page=all ]

Brett Porter updated ARCHETYPE-10:
----------------------------------

    Assign To: Jesse McConnell  (was: Jason van Zyl)
    Component: Archetypes
      Summary: j2ee archetype has invalid dependencies  (was: ARCHETYPE-8 appears to depend on 1.0-ALPHA-4-SNAPSHOT which is not in Central or cvs Repos)

the versions have all been aligned for the 1.0-alpha-4 release, but the dependency still needs to be investigated.

> j2ee archetype has invalid dependencies
> ---------------------------------------
>
>          Key: ARCHETYPE-10
>          URL: http://jira.codehaus.org/browse/ARCHETYPE-10
>      Project: Maven Archetype
>         Type: Bug

>   Components: Archetypes
>  Environment: j2sdk1.4.2_08, maven 2.0, winxp
>     Reporter: Brian Bonner
>     Assignee: Jesse McConnell

>
>
> I'm trying to install the maven-j2ee-archetype and run it to test a mod to the eclipse plugin that I made.
> Unfortunately, it's not letting me install the archetype.
> I unpacked:  maven-archetype-j2ee.jar
> I cd'd to the directory and ran:  mvn install.
> C:\test\maven-archetype-j2ee>mvn install
> [INFO] Scanning for projects...
> Downloading: http://cvs.apache.org/repository//org/apache/maven/archetypes/maven
> -archetypes/1.0-alpha-4-SNAPSHOT/maven-archetypes-1.0-alpha-4-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository snapshot-repo (http://cvs.apach
> e.org/repository/)
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> GroupId: org.apache.maven.archetypes
> ArtifactId: maven-archetypes
> Version: 1.0-alpha-4-SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   org.apache.maven.archetypes:maven-archetypes:1.0-alpha-4-SNAPSHOT:pom
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   snapshot-repo (http://cvs.apache.org/repository/)
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM 'org.apache.maven.archetyp
> es:maven-archetypes' not found in repository: Unable to download the artifact fr
> om any repository
>   org.apache.maven.archetypes:maven-archetypes:1.0-alpha-4-SNAPSHOT:pom
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   snapshot-repo (http://cvs.apache.org/repository/)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:359)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:276)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         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.project.ProjectBuildingException: POM 'org.apache.ma
> ven.archetypes:maven-archetypes' not found in repository: Unable to download the
>  artifact from any repository
>   org.apache.maven.archetypes:maven-archetypes:1.0-alpha-4-SNAPSHOT:pom
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   snapshot-repo (http://cvs.apache.org/repository/)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:423)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:955)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:586)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> le(DefaultMavenProjectBuilder.java:298)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:276)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:509)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:441)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:345)
>         ... 11 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
> to download the artifact from any repository
>   org.apache.maven.archetypes:maven-archetypes:1.0-alpha-4-SNAPSHOT:pom
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   snapshot-repo (http://cvs.apache.org/repository/)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:136)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:63)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:380)
>         ... 18 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
> oad the artifact from any repository
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:260)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:124)
>         ... 20 more
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Oct 27 11:01:13 EDT 2005
> [INFO] Final Memory: 1M/2M
> [INFO] -------------------------------------------------------------------------
> ---
> C:\test\maven-archetype-j2ee>
> I added the snapshot repository to my settings.xml, (more or less hoping the snapshot would be in there), to no avail.  I subsequently checked and verified that it was not there.
> Any thoughts?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira