ochafik/nativelibs4java — Issue #248: Build failure - ScalaCL Compiler plugin - Maven failed to resolve artifact
Author: finson
Created: 2012-01-26 01:06:13+00:00
State: open

When building the ScalaCL Compiler plugin, Maven cannot resolve a required dependency.

```
[INFO] ------------------------------------------------------------------------
[INFO] Building ScalaCL Compiler Plugin
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/nativelibs4java/scalacl/0.3-SNAPSHOT/scalacl-0.3-SNAPSHOT-shaded.jar
[INFO] Unable to find resource 'com.nativelibs4java:scalacl:jar:shaded:0.3-SNAPSHOT' in repository sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.nativelibs4java:scalacl:jar:shaded:0.3-SNAPSHOT
```

The file that it is looking for is in fact in the repo. I believe that the problem is due to the presence of the attribute modelVersion="1.1.0" on the metadata element in the directory containing the file. I am using Maven 2.2.1 on my side.

I was able to work around this by downloading and installing the required file myself, but it would be better if it were fixed on the repo. I've read about SNAPSHOT resolution being a problem in Nexus and earlier versions of Maven, but it was a couple of years ago and it seemed like the issue was resolved.