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

**URL:** <https://bnd.discourse.group/t/how-to-ignore-diffs-in-pom-xml-and-osgi-opt-src/243>\
**Category:** GENERAL\
**Created:** [May 22, 2022, 10:37am UTC](https://bnd.discourse.group/t/how-to-ignore-diffs-in-pom-xml-and-osgi-opt-src/243 "2022-05-22T10:37:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnlipp](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/mnlipp/32/13_2.png) [@mnlipp](https://bnd.discourse.group/u/mnlipp)\
**Post date:** [May 22, 2022, 10:37am UTC](https://bnd.discourse.group/t/how-to-ignore-diffs-in-pom-xml-and-osgi-opt-src/243/1 "2022-05-22T10:37:14Z")

</div>

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

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

```

but this doesn’t change the report.

- Michael

---

<div class="post-metadata">

**Author:** ![juergen-albert](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/juergen-albert/32/20_2.png) [@juergen-albert](https://bnd.discourse.group/u/juergen-albert)\
**Post date:** [June 3, 2022, 10:50am UTC](https://bnd.discourse.group/t/how-to-ignore-diffs-in-pom-xml-and-osgi-opt-src/243/2 "2022-06-03T10:50:17Z")

</div>

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:

```auto
-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.

---

<div class="post-metadata">

**Author:** ![mnlipp](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/mnlipp/32/13_2.png) [@mnlipp](https://bnd.discourse.group/u/mnlipp)\
**Post date:** [June 6, 2022, 3:08pm UTC](https://bnd.discourse.group/t/how-to-ignore-diffs-in-pom-xml-and-osgi-opt-src/243/3 "2022-06-06T15:08:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![juergen-albert](https://yyz2.discourse-cdn.com/free1/user_avatar/bnd.discourse.group/juergen-albert/32/20_2.png) [@juergen-albert](https://bnd.discourse.group/u/juergen-albert)\
**Post date:** [June 6, 2022, 3:40pm UTC](https://bnd.discourse.group/t/how-to-ignore-diffs-in-pom-xml-and-osgi-opt-src/243/4 "2022-06-06T15:40:12Z")

</div>

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