How to ignore diffs in pom.xml and OSGI-OPT/src/

My baseline task (non-Bnd Workspace Build) reports MAJOR differences for <resources> because the META-INF/…/pom.xml and the OSGI-OPT/src/… have changed. Well, of course, they have, they do this after even the smallest change.

Does anybody have an idea how can I prevents this (or why others might not have the problem)? I tried

-diffignore: OSGI-OPT/src/*, \
    META-INF/maven/org.jgrapes/org.jgrapes.core/pom.xml

but this doesn’t change the report.

  • Michael

This topic seems to have slipped general Attention. What bnd Version are you using? Until a Minute ago I believed that OSGi-OPT woud be generally ignored until I looked in the defaults we are carrying around in all our Projects:

-diffignore: *.xml,\
	*/pom.properties,\
	 Git-SHA,\
	 Bundle-Vendor,\
	 Bundle-License,\
	 Bundle-DocURL,\
	 Bundle-SCM,\
	 Bundle-Developers,\
	 Bundle-Copyright,\
	 Bundle-ContactAddress,\
	 META-INF/maven/*,\
	 OSGI-OPT/*

This works for us and might solve your problem as well.

Thanks. (For some reason, I wasn’t notified by mail when you answered.) As mentioned, I tried to set diffignore, but it made no difference. I released nevertheless and therefore there’s currently no problem. Maybe I’ll come back to this later.

The issues sounds familiar though. What bnd version are you using?