Hi, as I'm the one with the most pain right now, I'm +1 on a pure validation goal. OTH I know a lot of people use the Feature generation as a starting point to actually get going. Especially since the "hand" writing for starters of using Karaf is cumbersome in the beginning. May I introduce another posibility? Could we seperate the two concerns? Have a validation which actually only validates but the plugin still attaches the feature artifact to the build process so it can be deployed. And a second non-default generation goal, which uses all compile dependencies to generate a new feature file which then can also be used as attached artifact?
regards, Achim 2016-10-13 11:18 GMT+02:00 Grzegorz Grzybek <[email protected]>: > Good idea in my opinion. > > Feature descriptors should be (are) first-class artifacts and should be > carefully maintained. Relying simply on underlying dependencies of another > category (like Maven) is not enough. > > Manual creation + build time verification is much better idea. > > regards > Grzegorz Grzybek > > 2016-10-13 11:07 GMT+02:00 Guillaume Nodet <[email protected]>: > > > The feature packaging is a nice thing, as it allows automatic attachment > of > > the feature file. > > However, it always use the feature-generate-descriptor, which produces a > > lot of weird results. > > Afaik, the feature packaging is not much used and all projects i've seen, > > such as pax projects, camel, cxf, and even karaf itself (including > > decanter, cellar, karaf container...). > > > > I think part of the problem comes from the feature descriptor generation, > > which is difficult to control. I have always found much easier to simply > > write the feature manually. > > Although the generation process rewrites the xml entirely, so that any > xml > > comments or license header is lost. > > > > Overall, I'm not sure that it makes our users life really easier. > > > > So I'd like to propose to get rid of the feature-generate-descriptor from > > inside the feature packaging and replace it with the verify goal to > > validate the hand-written features instead. > > > > Thoughts ? > > > > -- > > ------------------------ > > Guillaume Nodet > > ------------------------ > > Red Hat, Open Source Integration > > > > Email: [email protected] > > Web: http://fusesource.com > > Blog: http://gnodet.blogspot.com/ > > > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
