Announcement Announcement Module
Collapse
No announcement yet.
STS pom.xml error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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-resourcesrocess-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-testResourcesrocess-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.plexuslexus-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.plexuslexus-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.plexuslexus-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.plexuslexus-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.plexuslexus-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.plexuslexus-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.plexuslexus-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.plexuslexus-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-resourcesrocess-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.plexuslexus-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.plexuslexus-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-testResourcesrocess-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
    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

    Comment


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

      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

      Comment


      • #4
        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

        Comment

        Working...
        X