3

I am getting this error message and a further one here: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4:

Even though when i go the .m2 repository with this path C:\Users\A591024.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.4

the maven-resources-plugin-2.4.jar file is there AND maven-resources-plugin-2.4.pom is also there. i have tried to delete the .m2 repository with no luck. so far maven will not build my project that i desperately need it to.

any ideas?

BlueShark
  • 150
  • 5
  • 7
  • 20
  • Take a look into your full log file i assume you will find messages like `[WARNING] ..could not be found` or similar and i assume you have other message which say not allowed to access `http://repo.maven.org/maven2` which might be caused by proxy issues etc. – khmarbaise Dec 17 '14 at 11:18
  • also - show your pom – benji Dec 18 '14 at 00:21

2 Answers2

2

it seems proxy issue please aad following in your setting.xml by grabbing LAN setting and proxy information.

<proxies>
      <proxy>
        <id>proxy</id>
        <active>true</active>
        <protocol>http</protocol>
        <host>HOSTNAME</host>
        <port>PORT</port>
      </proxy>
  </proxies>

This is a frequent issue, please see the below link as well.

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved

Maven: Failed to retrieve plugin descriptor error

Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved

Community
  • 1
  • 1
0

Errors might be something like

  • Could not resolve org.apache.maven.plugins:maven-clean-plugin:2.4.1
  • error : (groupId):(artifactID):(version)

In dependencies section pom.xml, put

<dependency>
    <groupId>(groupId)</groupId>    
    <artifactId>(artifactID) </artifactId>  
    <version>(version)</version>
    <type>maven-plugin</type> // here type will be whatever the groupId is 
</dependency>    

Result will be then this dependency for above error

<dependency>
    <groupId>org.apache.maven.plugins</groupId>    
    <artifactId>maven-install-plugin</artifactId>  
    <version>2.4</version>
    <type>maven-plugin</type>
</dependency>

Reload build and this should download the dependencies for those unresolved errors.

myeongkil kim
  • 2,465
  • 4
  • 16
  • 22
oshin pojta
  • 89
  • 1
  • 6