Hi!

I found a strange behaviour when having a referring to a dependency dependency with classifier in my pom:

Let us say, my pom holds the following snippet:

  <dependencies>
    <dependency>
      <groupId>org.mule.modules</groupId>
<artifactId>mule-module-scripting</artifactId>
      <version>3.6.0</version>
      <scope>provided</scope>
    </dependency>

This strange mule thingy has a pom of its own, and in there is a classified reference to javax.script:jruby-engine.
Then when calling

# mvn dependency:resolve -U | grep jruby-engine

i see the following log lines:

Downloading: https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/javax/script/jruby-engine/1.1/jruby-engine-1.1.pom Downloading: https://repository.mulesoft.org/releases/javax/script/jruby-engine/1.1/jruby-engine-1.1.pom Downloading: https://repository.mulesoft.org/nexus/content/repositories/public/javax/script/jruby-engine/1.1/jruby-engine-1.1.pom Downloading: https://repo.maven.apache.org/maven2/javax/script/jruby-engine/1.1/jruby-engine-1.1.pom Downloading: https://repository.mulesoft.org/nexus/content/repositories/public/javax/script/jruby-engine/1.1/jruby-engine-1.1.pom [WARNING] The POM for javax.script:jruby-engine:jar:jdk14:1.1 is missing, no dependency information available

So, even if the warning says that they searched for the classified (jdk14) version, the debugging says they tried a download without classifier.

But when i add a direct dependency in my pom file like that:

<dependency>
      <groupId>javax.script</groupId>
      <artifactId>jruby-engine</artifactId>
      <version>1.1</version>
      <classifier>jdk14</classifier>
    </dependency>

The log looks like that:

Downloading: https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/javax/script/jruby-engine/1.1/jruby-engine-1.1-jdk14.jar Downloading: https://repository.mulesoft.org/releases/javax/script/jruby-engine/1.1/jruby-engine-1.1-jdk14.jar Downloading: https://repository.mulesoft.org/nexus/content/repositories/public/javax/script/jruby-engine/1.1/jruby-engine-1.1-jdk14.jar Downloaded: https://repository.mulesoft.org/nexus/content/repositories/public/javax/script/jruby-engine/1.1/jruby-engine-1.1-jdk14.jar (0 B at 0.0 KB/sec)
[INFO]    javax.script:jruby-engine:jar:jdk14:1.1:compile

Then they are really resolving the classifier and they really search for the classified version. I attach a stripped down pom file, if someone wants to give it a try...

Am i missing something? Or is that considered to work like that?

--
Med vennlig hilsen / Mit freundlichem Gruß / Kind regards

Sören Krum
System Ingeniør - System
UNINETT AS
www.uninett.no

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>

  <modelVersion>4.0.0</modelVersion>
  <groupId>no.uninett</groupId>
  <artifactId>test</artifactId>
  <version>1.0.0</version>

  <dependencies>
    <dependency>
      <groupId>org.mule.modules</groupId>
      <artifactId>mule-module-scripting</artifactId>
      <version>3.6.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.script</groupId>
      <artifactId>jruby-engine</artifactId>
      <version>1.1</version>
      <classifier>jdk14</classifier>
    </dependency>
  </dependencies>

  <repositories>
    <repository>
      <id>mule-codehaus</id>
      <url>https://repository.mulesoft.org/nexus/content/repositories/public</url>
    </repository>
  </repositories>
</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to