[ https://issues.apache.org/jira/browse/KARAF-7734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-7734: ------------------------------------------- Assignee: Jean-Baptiste Onofré > 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 > Assignee: Jean-Baptiste Onofré > 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)