mvn install-file suggestion wrong?
----------------------------------

                 Key: MNG-3629
                 URL: http://jira.codehaus.org/browse/MNG-3629
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.9
            Reporter: Marvin Froeder


Hi,

On flex-mojos, I have one type where type != extension:
                <component>
                        
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
                        <role-hint>resource-bundle</role-hint>
                        
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
                        <configuration>
                                <type>resource-bundle</type>
                                <extension>swc</extension>
                        </configuration>
                </component>

But, when this artifact is missing, maven show this:

[INFO] Failed to resolve artifact.

Missing:
----------
1) com.adobe.flex.sdk:framework:resource-bundle:asdas:3.0.0.477

  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=framework -Dversion=3.0.0.477 -Dclassifier=asdas 
-Dpackaging=resource-bundle -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=framework -Dversion=3.0.0.477 -Dclassifier=asdas 
-Dpackaging=resource-bundle -Dfile=/p
ath/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) com.datasul.test:optimization:swf:1.0-SNAPSHOT
        2) com.adobe.flex.sdk:framework:resource-bundle:asdas:3.0.0.477

----------
1 required artifact is missing.

If I install following this, the artifact on repository will be wrong.

I need to install like this:
mvn install:install-file -DgroupId=com.adobe.flex.sdk -DartifactId=framework 
-Dversion=3.0.0.477 -Dclassifier=asdas -Dpackaging=swc -Dfile=/path/to/file


The packaging suggested by maven is wrong.


VELO

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to