[
https://jira.codehaus.org/browse/MNG-5063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MNG-5063.
-------------------------------
Resolution: Not A Bug
Assignee: Robert Scholte
That's because Maven first reads the {{pom.xml}} of the Maven execution folder
before doing any actions. It discovers the packaging-type {{dll}}, for which he
doesn't know what to do. There's no description which plugin should be called
during a specific phase. So Maven stops.
It should work if the {{pom.xml}} was in another folder (i.e. changing the
-DpomFile parameter).
However, that makes the {{pom.xml}} useless for building. It'll only be useful
for dependency management.
One solution is to add the native-maven-plugin, see its
[usage|http://mojo.codehaus.org/maven-native/native-maven-plugin/usage.html]
page.
> Unable to install file with existing pom with <packaging> element set to 'dll'
> ------------------------------------------------------------------------------
>
> Key: MNG-5063
> URL: https://jira.codehaus.org/browse/MNG-5063
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 3.0.3
> Environment: Windows XP 32 bits
> JRE 6 update 24
> Reporter: Alexandre de Paula
> Assignee: Robert Scholte
> Priority: Minor
>
> Installing a dll file into local repository works fine when typing all
> required parameters like below:
> mvn install:install-file -Dfile=myfile.dll -DgroupId=my.group.id
> -DartifactId=myartifact -Dversion=1.0 -Dpackaging=dll -DgeneratePo
> m=true
> Although, when I create a pom file with such descriptions and try to install
> it like:
> mvn install:install-file -Dfile=myfile.dll -DpomFile=./pom.xml
> an error message is displayed:
> [ERROR] Unknown packaging: dll @ line 8, column 16
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira