Mark Fernandes created KARAF-7734:
-------------------------------------
Summary: 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
Affects Versions: 4.4.3
Environment: *MAVEN PLUGIN VERSIONS*
<karaf.version>4.4.3</karaf.version>
<maven-install.version>3.1.1</maven-install.version>
Reporter: Mark Fernandes
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)