Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Idea Maven build "failed to read artifact descriptor"

All the maven builds on idea are failing with the following error for each Maven dependency:

"Failed to read artifact dependency:coordinates" where "dependency:coordinates" could be any dependency in my pom.

When I go to the respective dependency inside the pom the part underlined in red reads...

"Dependency 'dependency:coordinates' not found."

The build works fine on the command-line (using cygwin).

I am using:

Intellij Idea 14.0.2 Maven 3.2.3 jdk 1.7.0_71

As I am working on a corporate network I have to access the outside world through a proxy server. I have configured Intellij Idea to use this proxy, so it should not have any trouble accessing the maven central repositories.

When I tail the idea log file as the builds fail I get the following:

2014-12-15 12:07:01,905 [2682540] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS) 2014-12-15 12:07:01,928 [2682563] INFO - j.compiler.server.BuildManager - Using preloaded build process to compile C:\code_checkouts\idea_project 2014-12-15 12:07:03,056 [2683691] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED (BUILD PROCESS); Errors: 18; warnings: 0 took 1102 ms: 0 min 1sec 2014-12-15 12:07:03,890 [2684525] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: 12:07:03,852 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.groovy] at [jar:file:/C:/Program%20Files%20(x86)/JetBrains/IntelliJ%20IDEA%2014.0.2/plugins/gradle/lib/gradle.jar!/logback.groovy] 2014-12-15 12:07:03,890 [2684525] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: 12:07:03,854 |-ERROR in ch.qos.logback.classic.LoggerContext[default] - Groovy classes are not available on the class path. ABORTING INITIALIZATION. 2014-12-15 12:07:03,936 [2684571] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /C:/Program Files (x86)/JetBrains/IntelliJ IDEA 14.0.2/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.7.0_71/lib/tools.jar;/C:/Program Files (x86)/JetBrains/IntelliJ IDEA 14.0.2/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 14.0.2/lib/ecj-4.4.jar

Can anyone suggest a solution???

The answer to the this question suggests that it is indeed a network connectivity issue however there is nothing in the snippet from the logs (above) to confirm this. Is there any way to increment the level of detail in the IDEA logs that would give more insight on the problem?? i.e. How does one configure debug logging in IDEA?

Failed to read artifact descriptor for maven-resources-plugin

like image 449
murungu Avatar asked Dec 15 '14 11:12

murungu


People also ask

What is artifact descriptor in Maven?

Provides information about an artifact that is relevant to transitive dependency resolution. Each artifact is expected to have an accompanying artifact descriptor that among others lists the direct dependencies of the artifact.

What is Maven build command?

To build a Maven project via the command line, you use the mvn command from the command line. The command must be executed in the directory which contains the relevant pom file. You pass the build life cycle, phase or goal as parameter to this command.


1 Answers

Even though you wrote that, please make sure that Maven uses the same settings.xml both from cmd and from IDEA. in IDEA, maven has no logic, and it simply runs the commands that you give it.

like image 162
OhadR Avatar answered Sep 28 '22 11:09

OhadR