Re: 3.0.3 - Maven: Unknown packaging [feature | kar | karaf-assembly]
Hi Erwin, can you share your pom ? What's the goal that you use ? Regards JB On 03/25/2015 05:10 AM, Erwin Hogeweg wrote: Hi, I am utterly confused re. the use of the karaf-maven-plugin. This website shows 3 possible packagings: kar, feature and karaf-assembly: http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html Ea. of them generates an 'Unknown packaging’ error though. Am I not looking at the correct documentation? Please advise. Thanks, Erwin -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: 3.0.3 - Maven: Unknown packaging [feature | kar | karaf-assembly]
Hi, You forgot the extensiontrue/ declaration in your karaf-maven-plugin. Regards 2015-03-25 11:56 GMT+01:00 Erwin Hogeweg erwin.hoge...@me.com: Hi JB, Please find pom below. ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdcom.myproject.blah/groupId artifactIdcom.myproject.blah.server.parent/artifactId version3.1.0-SNAPSHOT/version relativePath../com.myproject.blah.server.parent/pom.xml/relativePath /parent groupIdcom.myproject.blah/groupId artifactIdmy-project/artifactId version1.0.0-SNAPSHOT/version packagingfeature/packaging packagingkar/packaging !--packagingkar/packaging-- name My Feature/name !-- scm /scm -- properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding /properties dependencies !-- Our Bundles -- dependency groupIdcom.myproject.blah/groupId artifactIdartifact-1/artifactId version${artifacts-1.version}/version /dependency dependency more dependencies /dependencies build resources resource directorysrc/main/feature/directory filteringtrue/filtering /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version3.1/version configuration source1.7/source target1.7/target /configuration /plugin !-- plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId version2.5.0/version extensionstrue/extensions configuration instructions Bundle-Activatororg.apache.aries.jpa.eclipselink.adapter.Activator/Bundle-Activator Export-Package / Private-Packageorg.apache.aries.jpa.eclipselink.adapter.*/Private-Package /instructions /configuration /plugin -- plugin groupIdorg.apache.karaf.tooling/groupId artifactIdkaraf-maven-plugin/artifactId version${karaf.version}/version executions execution idfeatures/id phasecompile/phase goals goalfeatures-generate-descriptor/goal /goals configuration startLevel30/startLevel inputFilesrc/feature.xml/inputFile /configuration /execution /executions /plugin /plugins /build /project On Mar 25, 2015, at 02:29, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi Erwin, can you share your pom ? What's the goal that you use ? Regards JB On 03/25/2015 05:10 AM, Erwin Hogeweg wrote: Hi, I am utterly confused re. the use of the karaf-maven-plugin. This website shows 3 possible packagings: kar, feature and karaf-assembly: http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html Ea. of them generates an 'Unknown packaging’ error though. Am I not looking at the correct documentation? Please advise. Thanks, Erwin -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com -- Charlie Mordant Full OSGI/EE stack made with Karaf: https://github.com/OsgiliathEnterprise/net.osgiliath.parent
Re: 3.0.3 - Maven: Unknown packaging [feature | kar | karaf-assembly]
Excellent catch. Thanks a bunch. Erwin On Mar 25, 2015, at 08:33, Charlie Mordant cmorda...@gmail.com wrote: Hi, You forgot the extensiontrue/ declaration in your karaf-maven-plugin. Regards 2015-03-25 11:56 GMT+01:00 Erwin Hogeweg erwin.hoge...@me.com mailto:erwin.hoge...@me.com: Hi JB, Please find pom below. ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd http://maven.apache.org/xsd/maven-4.0.0.xsd modelVersion4.0.0/modelVersion parent groupIdcom.myproject.blah/groupId artifactIdcom.myproject.blah.server.parent/artifactId version3.1.0-SNAPSHOT/version relativePath../com.myproject.blah.server.parent/pom.xml/relativePath /parent groupIdcom.myproject.blah/groupId artifactIdmy-project/artifactId version1.0.0-SNAPSHOT/version packagingfeature/packaging packagingkar/packaging !--packagingkar/packaging-- name My Feature/name !-- scm /scm -- properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding /properties dependencies !-- Our Bundles -- dependency groupIdcom.myproject.blah/groupId artifactIdartifact-1/artifactId version${artifacts-1.version}/version /dependency dependency more dependencies /dependencies build resources resource directorysrc/main/feature/directory filteringtrue/filtering /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version3.1/version configuration source1.7/source target1.7/target /configuration /plugin !-- plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId version2.5.0/version extensionstrue/extensions configuration instructions Bundle-Activatororg.apache.aries.jpa.eclipselink.adapter.Activator/Bundle-Activator Export-Package / Private-Packageorg.apache.aries.jpa.eclipselink.adapter.*/Private-Package /instructions /configuration /plugin -- plugin groupIdorg.apache.karaf.tooling/groupId artifactIdkaraf-maven-plugin/artifactId version${karaf.version}/version executions execution idfeatures/id phasecompile/phase goals goalfeatures-generate-descriptor/goal /goals configuration startLevel30/startLevel inputFilesrc/feature.xml/inputFile /configuration /execution /executions /plugin /plugins /build /project On Mar 25, 2015, at 02:29, Jean-Baptiste Onofré j...@nanthrax.net mailto:j...@nanthrax.net wrote: Hi Erwin, can you share your pom ? What's the goal that you use ? Regards JB On 03/25/2015 05:10 AM, Erwin Hogeweg wrote: Hi, I am utterly confused re. the use of the karaf-maven-plugin. This website shows 3 possible packagings: kar, feature and karaf-assembly: http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html Ea. of them generates an 'Unknown packaging’ error though. Am I not looking at the correct documentation? Please advise. Thanks, Erwin -- Jean-Baptiste Onofré jbono...@apache.org mailto:jbono...@apache.org http://blog.nanthrax.net http://blog.nanthrax.net/ Talend - http://www.talend.com http://www.talend.com/ -- Charlie Mordant Full OSGI/EE stack made with Karaf: https://github.com/OsgiliathEnterprise/net.osgiliath.parent https://github.com/OsgiliathEnterprise/net.osgiliath.parent
Re: 3.0.3 - Maven: Unknown packaging [feature | kar | karaf-assembly]
Hi JB, Please find pom below. ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdcom.myproject.blah/groupId artifactIdcom.myproject.blah.server.parent/artifactId version3.1.0-SNAPSHOT/version relativePath../com.myproject.blah.server.parent/pom.xml/relativePath /parent groupIdcom.myproject.blah/groupId artifactIdmy-project/artifactId version1.0.0-SNAPSHOT/version packagingfeature/packaging packagingkar/packaging !--packagingkar/packaging-- name My Feature/name !-- scm /scm -- properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding /properties dependencies !-- Our Bundles -- dependency groupIdcom.myproject.blah/groupId artifactIdartifact-1/artifactId version${artifacts-1.version}/version /dependency dependency more dependencies /dependencies build resources resource directorysrc/main/feature/directory filteringtrue/filtering /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version3.1/version configuration source1.7/source target1.7/target /configuration /plugin !-- plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId version2.5.0/version extensionstrue/extensions configuration instructions Bundle-Activatororg.apache.aries.jpa.eclipselink.adapter.Activator/Bundle-Activator Export-Package / Private-Packageorg.apache.aries.jpa.eclipselink.adapter.*/Private-Package /instructions /configuration /plugin -- plugin groupIdorg.apache.karaf.tooling/groupId artifactIdkaraf-maven-plugin/artifactId version${karaf.version}/version executions execution idfeatures/id phasecompile/phase goals goalfeatures-generate-descriptor/goal /goals configuration startLevel30/startLevel inputFilesrc/feature.xml/inputFile /configuration /execution /executions /plugin /plugins /build /project On Mar 25, 2015, at 02:29, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi Erwin, can you share your pom ? What's the goal that you use ? Regards JB On 03/25/2015 05:10 AM, Erwin Hogeweg wrote: Hi, I am utterly confused re. the use of the karaf-maven-plugin. This website shows 3 possible packagings: kar, feature and karaf-assembly: http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html Ea. of them generates an 'Unknown packaging’ error though. Am I not looking at the correct documentation? Please advise. Thanks, Erwin -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
3.0.3 - Maven: Unknown packaging [feature | kar | karaf-assembly]
Hi, I am utterly confused re. the use of the karaf-maven-plugin. This website shows 3 possible packagings: kar, feature and karaf-assembly: http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html Ea. of them generates an 'Unknown packaging’ error though. Am I not looking at the correct documentation? Please advise. Thanks, Erwin