For now, I can enable the report to generate into
assembles/apache-karaf/target - I'm not sure how to expose it from
Jenkins...
We can always attach these files as deployable maven artifacts and they'll
go to Maven Central ;)

regards
Grzegorz

wt., 8 sty 2019 o 13:36 Andrea Cosentino <ancosen1...@yahoo.com.invalid>
napisał(a):

> I think a Jenkins profile is really a good idea.
>
> Great!
>
> --
> Andrea Cosentino
> ----------------------------------
> Apache Camel PMC Chair
> Apache Karaf Committer
> Apache Servicemix PMC Member
> Email: ancosen1...@yahoo.com
> Twitter: @oscerd2
> Github: oscerd
>
>
>
>
>
>
> On Tuesday, January 8, 2019, 1:34:35 PM GMT+1, Jean-Baptiste Onofré <
> j...@nanthrax.net> wrote:
>
>
>
>
>
> Nice Greg.
>
> What do you think about enabling this report via Jenkins (using a profile)
> ?
>
> Regards
> JB
>
> On 08/01/2019 13:28, Grzegorz Grzybek wrote:
> > Hello
> >
> > For any custom Karaf distro we can enable generation of "consistency
> > report" - check sample here:
> > http://people.apache.org/~ggrzybek/bundle-report-full-karaf.xml
> (requires
> > browser that can do XSLT transformation using <?xml-stylesheet?>)
> >
> > it can be configured using:
> >
> > <plugin>
> >    <groupId>org.apache.karaf.tooling</groupId>
> >    <artifactId>karaf-maven-plugin</artifactId>
> >    <configuration>
> >
> >
> <generateConsistencyReport>${project.build.directory}/assembly</generateConsistencyReport>
> > ....
> >
> > karaf-maven-plugin:assembly then generates:
> >  - bundle-report.xslt - stylesheet to transform XMLs
> >  - bundle-report-full.xml - full report, including blacklisted
> > repos/features/bundles
> >  - bundle-report.xml - a report without blacklisted items
> >
> > The idea behind this report is to show _duplicates_ - bundles that appear
> > with the same groupId and artifactId (maven) but with different version.
> > The report also shows the features the bundles are declared in and
> feature
> > repositories the features come from.
> >
> > Entire closure of bundles → features → repositories is taken into
> account.
> >
> > It's most important when creating custom Karaf distribution - we can
> check
> > if some features declare conflicting bundles - we (usually) don't want to
> > have two versions of servlet-api JAR installed (though it's not a problem
> > with guava - it's even a must).
> >
> > When a _duplicate_ is found or even duplicate repositories are referenced
> > (directly or transitively) usually there's a need to _blacklist_
> something.
> >
> > With https://issues.apache.org/jira/browse/KARAF-5376 I've introduced a
> way
> > (documentation is still being written...) to blacklist
> > bundles/features/repositories or override bundles/features/repositories.
> >
> > Blacklisting/overriding is done using etc/org.apache.karaf.features.xml
> > file. Short summary of the mechanism is here:
> >
> https://issues.apache.org/jira/browse/KARAF-5376?focusedCommentId=16431939&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16431939
> >
> > In next email, I'll show what should/could be aligned in master branch
> for
> > Karaf 4.2.3-SNAPSHOT.
> >
> > regards
> > Grzegorz Grzybek
>
> >
>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>

Reply via email to