Results 1 to 4 of 4

Thread: STS pom.xml error

  1. #1

    Question STS pom.xml error

    I am first to use Spring Tool Suite,Version: 3.1.0.RELEASE, File -> New -> Spring Template project,then it download some bytes from internet. But I find pom.xml file is marked by red sign. The error message is follows:
    1.Project build error: 'dependencies.dependency.groupId' for null::jar is missing.
    2.Project build error: 'dependencies.dependency.artifactId' for null::jar is missing.
    3.null (org.apache.maven.plugins:maven-resources-plugin:2.5:resources:default-resources:process-resources)
    4.Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
    5.null (org.apache.maven.plugins:maven-resources-plugin:2.5:testResources:default-testResources:process-test-resources)
    6.CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.codehaus.plexus:plexus-utils:jar:2.0.5 from http://repo.maven.apache.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. Original error: Could not transfer artifact org.codehaus.plexus:plexus-utils:jar:2.0.5 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/...tils-2.0.5.jar
    7.Project build error: 'dependencies.dependency.version' for null::jar is missing.
    8.CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.codehaus.plexus:plexus-utils:jar:2.0.5 from http://repo.maven.apache.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. Original error: Could not transfer artifact org.codehaus.plexus:plexus-utils:jar:2.0.5 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/...tils-2.0.5.jar

    Then I use quick fixes avaliable url to Install m2e connectors,I choose m2e-subversive to install. After installed it,pom.xle still error,like follows:
    1.Failure to transfer org.codehaus.plexus:plexus-utils:jar:2.0.5 from http://repo.maven.apache.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. Original error: Could not transfer artifact org.codehaus.plexus:plexus-utils:jar:2.0.5 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/...tils-2.0.5.jar

    2.Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failure to transfer org.codehaus.plexus:plexus-utils:jar:2.0.5 from http://repo.maven.apache.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. Original error: Could not transfer artifact org.codehaus.plexus:plexus-utils:jar:2.0.5 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/...tils-2.0.5.jar (org.apache.maven.plugins:maven-resources-plugin:2.5:resources:default-resources:process-resources)

    3.Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failure to transfer org.codehaus.plexus:plexus-utils:jar:2.0.5 from http://repo.maven.apache.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. Original error: Could not transfer artifact org.codehaus.plexus:plexus-utils:jar:2.0.5 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/...tils-2.0.5.jar (org.apache.maven.plugins:maven-resources-plugin:2.5:testResources:default-testResources:process-test-resources)

    How to fix above errors? I search Google,but I still can't find the answer. Do Anyone know how to solve it?

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hey!

    It looks like the Maven Integration for Eclipse is not able to download artifacts from the internet somehow. Are you behind a proxy? If so, you would need to setup the proxy configs for Maven in your settings.xml file of your local Maven directory (~/.m2), as described here:

    http://maven.apache.org/guides/mini/guide-proxies.html

    So you definitely don't need to install add-ons, in case you downloaded the STS distribution and started using it by creating a new project from one of the templates. With regards to the Maven support, everything is pre-installed.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3
    Join Date
    May 2013
    Posts
    1

    Default

    Is there another possibility that doesn't involves proxy? I got the same issue and no proxy.

    Quote Originally Posted by Martin Lippert View Post
    Hey!

    It looks like the Maven Integration for Eclipse is not able to download artifacts from the internet somehow. Are you behind a proxy? If so, you would need to setup the proxy configs for Maven in your settings.xml file of your local Maven directory (~/.m2), as described here:

    http://maven.apache.org/guides/mini/guide-proxies.html

    So you definitely don't need to install add-ons, in case you downloaded the STS distribution and started using it by creating a new project from one of the templates. With regards to the Maven support, everything is pre-installed.

    HTH,
    Martin

  4. #4
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hey!

    For many of those cases, deleting the local Maven repo helps. It triggers Maven to download a fresh copy of the used artifacts.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •