You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2025/10/15 07:20:00 UTC
[jira] [Commented] (KARAF-7734) karaf-maven-plugin enableGeneration = true, packaging feature, does not assign main file to project
[ https://issues.apache.org/jira/browse/KARAF-7734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18029991#comment-18029991 ]
Jean-Baptiste Onofré commented on KARAF-7734:
---------------------------------------------
I created a PR that fixes the issue but I have to fix the corresponding itests.
> 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)