[
https://issues.apache.org/jira/browse/KARAF-7891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18029990#comment-18029990
]
Jean-Baptiste Onofré commented on KARAF-7891:
---------------------------------------------
I created a PR that fix the issue in your test case. I have to fix the
corresponding itests.
> karaf-maven-plugin: packaging 'kar' broken with enableGeneration=false
> ----------------------------------------------------------------------
>
> Key: KARAF-7891
> URL: https://issues.apache.org/jira/browse/KARAF-7891
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.4.6
> Reporter: Modestas Vainius
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Attachments: bug-kar-as-features-xml.tar.gz
>
>
> {{karaf-maven-plugin}} with packaging {{kar}} and {{enableGeneration=false}}
> ends up installing kar archive as features-xml attachment. Thus
> {{bug-kar-as-features-xml:bug-kar-as-features-xml:kar}} is not resolvable
> from Maven reactor. This is kind of related to
> https://issues.apache.org/jira/browse/KARAF-7734 and I believe they both
> should be resolved together.
> See attachment sample and output from building/testing it. Notice:
> {quote}{{[INFO] Installing
> /home/modax/tmp/bug-kar-as-features-xml/target/bug-kar-as-features-xml-0.0.1-SNAPSHOT{*}.kar{*}
> to
> /home/modax/.m2/repository/bug-kar-as-features-xml/bug-kar-as-features-xml/0.0.1-SNAPSHOT/bug-kar-as-features-xml-0.0.1-SNAPSHOT{*}-features.xml{*}}}
> {quote}
> {code:java}
> mvn clean install
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ----------< bug-kar-as-features-xml:bug-kar-as-features-xml
> >-----------
> [INFO] Building bug-kar-as-features-xml 0.0.1-SNAPSHOT
> [INFO] from pom.xml
> [INFO] --------------------------------[ kar
> ]---------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
> bug-kar-as-features-xml ---
> [INFO] Deleting /home/modax/tmp/bug-kar-as-features-xml/target
> [INFO]
> [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @
> bug-kar-as-features-xml ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Using 'UTF-8' encoding to copy filtered properties files.
> [INFO] skip non existing resourceDirectory
> /home/modax/tmp/bug-kar-as-features-xml/src/main/resources
> [INFO]
> [INFO] --- karaf-maven-plugin:4.4.6:features-generate-descriptor
> (default-features-generate-descriptor) @ bug-kar-as-features-xml ---
> [INFO] Generation not enabled
> [INFO] Attaching artifact
> [INFO]
> [INFO] --- karaf-maven-plugin:4.4.6:verify (default-verify) @
> bug-kar-as-features-xml ---
> [INFO] Using repositories: https://repo.maven.apache.org/maven2@id=central
> [INFO] Features verified: 0, failures: 0, ignored: 0, skipped: 0
> [INFO]
> [INFO] --- karaf-maven-plugin:4.4.6:kar (default-kar) @
> bug-kar-as-features-xml ---
> [INFO] Building jar:
> /home/modax/tmp/bug-kar-as-features-xml/target/bug-kar-as-features-xml-0.0.1-SNAPSHOT.kar
> [INFO]
> [INFO] --- maven-install-plugin:3.1.3:install (default-install) @
> bug-kar-as-features-xml ---
> [INFO] Installing /home/modax/tmp/bug-kar-as-features-xml/pom.xml to
> /home/modax/.m2/repository/bug-kar-as-features-xml/bug-kar-as-features-xml/0.0.1-SNAPSHOT/bug-kar-as-features-xml-0.0.1-SNAPSHOT.pom
> [INFO] Installing
> /home/modax/tmp/bug-kar-as-features-xml/target/bug-kar-as-features-xml-0.0.1-SNAPSHOT.kar
> to
> /home/modax/.m2/repository/bug-kar-as-features-xml/bug-kar-as-features-xml/0.0.1-SNAPSHOT/bug-kar-as-features-xml-0.0.1-SNAPSHOT-features.xml
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.636 s
> [INFO] Finished at: 2024-12-17T02:33:32+02:00
> [INFO]
> ------------------------------------------------------------------------{code}
>
> {code:java}
> unzip -l
> ~/.m2/repository/bug-kar-as-features-xml/bug-kar-as-features-xml/0.0.1-SNAPSHOT/bug-kar-as-features-xml-0.0.1-SNAPSHOT-features.xml
>
>
> Archive:
> /home/modax/.m2/repository/bug-kar-as-features-xml/bug-kar-as-features-xml/0.0.1-SNAPSHOT/bug-kar-as-features-xml-0.0.1-SNAPSHOT-features.xml
> Length Date Time Name
> --------- ---------- ----- ----
> 0 2024-12-17 02:33 META-INF/
> 81 2024-12-17 02:33 META-INF/MANIFEST.MF
> 0 2024-12-17 02:33 repository/
> 0 2024-12-17 02:33 repository/bug-kar-as-features-xml/
> 0 2024-12-17 02:33
> repository/bug-kar-as-features-xml/bug-kar-as-features-xml/
> 0 2024-12-17 02:33
> repository/bug-kar-as-features-xml/bug-kar-as-features-xml/0.0.1-SNAPSHOT/
> 0 2024-12-17 02:33 META-INF/maven/
> 0 2024-12-17 02:33 META-INF/maven/bug-kar-as-features-xml/
> 0 2024-12-17 02:33
> META-INF/maven/bug-kar-as-features-xml/bug-kar-as-features-xml/
> 116 2024-12-17 02:33
> repository/bug-kar-as-features-xml/bug-kar-as-features-xml/0.0.1-SNAPSHOT/bug-kar-as-features-xml-0.0.1-SNAPSHOT-features.xml
> 610 2024-12-17 02:33
> repository/bug-kar-as-features-xml/bug-kar-as-features-xml/0.0.1-SNAPSHOT/maven-metadata-local.xml
> 1034 2024-12-17 02:33
> META-INF/maven/bug-kar-as-features-xml/bug-kar-as-features-xml/pom.xml
> 90 2024-12-17 02:33
> META-INF/maven/bug-kar-as-features-xml/bug-kar-as-features-xml/pom.properties
> --------- -------
> 1931 13 files{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)