Announcement Announcement Module
Collapse
No announcement yet.
Maven Error in Spring Tutorial - "Your Own Web App in Under 10 Minutes" Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Maven Error in Spring Tutorial - "Your Own Web App in Under 10 Minutes"

    I was trying out the tutorial on
    http://static.springsource.org/sprin...tml/intro.html

    using
    jre1.5.0_17
    spring-roo-1.0.2.RELEASE
    apache-maven-2.2.1

    I get the following error when I run the command mvn tomcat:run

    Code:
    C:\SpringRoo\ten-minutes>mvn tomcat:run
    [INFO] Scanning for projects...
    Downloading: http://repository.springsource.com/maven/bundles/release/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/rel
    ease): Error transferring file: repository.springsource.com
    Downloading: http://repository.springsource.com/maven/bundles/external/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/ex
    ternal): Error transferring file: repository.springsource.com
    Downloading: http://repository.springsource.com/maven/bundles/milestone/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository com.springsource.repository.bundles.milestone (http://repository.springsource.com/maven/bundles/m
    ilestone): Error transferring file: repository.springsource.com
    Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
    Downloading: http://repository.springsource.com/maven/bundles/release/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/rel
    ease): Error transferring file: repository.springsource.com
    Downloading: http://repository.springsource.com/maven/bundles/external/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/ex
    ternal): Error transferring file: repository.springsource.com
    Downloading: http://repository.springsource.com/maven/bundles/milestone/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository com.springsource.repository.bundles.milestone (http://repository.springsource.com/maven/bundles/m
    ilestone): Error transferring file: repository.springsource.com
    Downloading: http://repository.springsource.com/maven/bundles/snapshot/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository com.springsource.repository.bundles.snapshot (http://repository.springsource.com/maven/bundles/sn
    apshot): Error transferring file: repository.springsource.com
    Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-war-plugin:pom:2.0.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
    
    GroupId: org.apache.maven.plugins
    ArtifactId: maven-war-plugin
    Version: 2.0.2
    
    Reason: Unable to download the artifact from any repository
    
      org.apache.maven.plugins:maven-war-plugin:pom:2.0.2
    
    from the specified remote repositories:
      central (http://repo1.maven.org/maven2),
      com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external),
      com.springsource.repository.bundles.snapshot (http://repository.springsource.com/maven/bundles/snapshot),
      com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release),
      com.springsource.repository.bundles.milestone (http://repository.springsource.com/maven/bundles/milestone)
    
    
    
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1 minute 5 seconds
    [INFO] Finished at: Mon Aug 16 18:33:13 GMT+05:30 2010
    [INFO] Final Memory: 1M/3M
    [INFO] ------------------------------------------------------------------------

  • #2
    u known,you download war_plugin error.why you try upgrade on roo 1.1.0 m2?


    or add those repository :

    pom.xml
    <repositories>
    ....
    <repository>
    <id>spring-maven-release</id>
    <name>Spring Maven Release Repository</name>
    <url>http://maven.springframework.org/release</url>
    </repository>
    <repository>
    <id>spring-maven-milestone</id>
    <name>Spring Maven Milestone Repository</name>
    <url>http://maven.springframework.org/milestone</url>
    </repository>
    <repository>
    <id>spring-roo-repository</id>
    <name>Spring Roo Repository</name>
    <url>http://spring-roo-repository.springsource.org/release</url>
    </repository>
    <repository>
    <id>JBoss Repo</id>
    <url>https://repository.jboss.org/nexus/content/repositories/releases</url>
    <name>JBoss Repo</name>
    </repository>
    ....
    </repositories>
    Last edited by sjbwylbs; Aug 19th, 2010, 06:38 AM.

    Comment


    • #3
      Thanks for the suggestion.

      I tried the basic example (http://www.springsource.org/roo/start) with a upgraded version in my laptop and it worked.

      JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21
      Path=C:\apache-maven-2.2.1\bin;C:\spring-roo-1.1.0.M2\bin

      Now, I need to figure out if this would work in the corporate network.

      Comment

      Working...
      X