[ https://issues.apache.org/jira/browse/KARAF-7734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760628#comment-17760628 ]
Eric Lilja commented on KARAF-7734: ----------------------------------- We did a different workaround, we changed to packaging pom and invoke the plugin explicitly instead. This yields no warnings, and the latest version of maven-install-plugin can be used. But we will probably switch to handcrafted feature-files. Generating them from pom-files is frowned upon > karaf-maven-plugin enableGeneration = true, packaging feature, does not > assign main file to project > ---------------------------------------------------------------------------------------------------- > > Key: KARAF-7734 > URL: https://issues.apache.org/jira/browse/KARAF-7734 > Project: Karaf > Issue Type: Bug > Components: karaf > Affects Versions: 4.4.3 > Environment: <karaf.version>4.4.3</karaf.version> > <maven-install.version>3.1.1</maven-install.version> > Reporter: Mark Fernandes > Priority: Major > Attachments: feature-enable-generation.zip > > > An example project has been attached. > Our project has : > - pom packaging 'feature' > - karaf-maven-plugin with enableGeneration = true > - a dependency that we want added to our feature.xml > - src/main/feature with an exmpty feature.xml > Enable generation is activated to include the bundle dependency to the > feature.xml file. > Running mvn clean install on this project ends in the following error : > {color:#FF0000}[ERROR] Failed to execute goal > org.apache.maven.plugins:maven-install-plugin:3.1.1:install (default-install) > on project example: The packaging plugin for this project did not assign a > main file to the project but it has attachments. Change packaging to > 'pom'.{color} > > *WORKAROUND* > We can workaround the issue with : > maven-install-plugin > <allowIncompleteProjects>true</allowIncompleteProjects> > > *MAVEN PLUGIN VERSIONS* > <karaf.version>4.4.3</karaf.version> > <maven-install.version>3.1.1</maven-install.version> -- This message was sent by Atlassian Jira (v8.20.10#820010)