maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <tpa...@loftware.com>
Subject dependency Classifier not honored?
Date Mon, 14 Sep 2009 13:11:49 GMT
Hi,

                I have setup the following dependency in my POM:

                <dependency>
                                <groupId>com.adobe.flex.sdk</groupId>
                                <artifactId>datavisualization_rb</artifactId>
                                <version>${flex.sdk.version}</version>
                                <classifier>en_US</classifier>
                                <type>swc</type>
                </dependency>

I placed the artifact in my repo

C:\dev\maven\repo\com\adobe\flex\sdk\datavisualization_rb\3.2.0.3958 and the name of the artifact
is "datavisualization_rb-3.2.0.3958-en_US.swc" .

When I run, I get the following error:

---- Error start ----

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=com.adobe.flex.sdk -DartifactId=datavisualization_rb
-Dversion=3.2.0.3958 -Dpackaging=swc
 -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=com.adobe.flex.sdk -DartifactId=datavisualization_rb
-Dversion=3.2.0.3958 -Dpackaging=swc -
Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  com.adobe.flex.sdk:datavisualization_rb:swc:3.2.0.3958

----- Error End -----

I went into the repo and changed the name of the artifact to "datavisualization_rb-3.2.0.3958.swc"
and ran it again.  This time it was successful.

Does the classifier not work in Maven 2.2.1 or am I doing it wrong?

Thanks,

Todd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message