Open jodygarnett opened 4 years ago
It happens specifically to this schema? Because it is based in org.geonetwork-opensource:schema-core:jar:3.7? Would love to see this fixed as generic as possible, so we can use this version of the schema-plugin in as many geonetwork versions as possible
Because schema-core is not published to a repository anywhere, ... can I just fix it? Or will that mess up folks that have built it previously on their machine ...
After further thought, this is a mistake in jaxen
, not our code; we only noticed because of a recent environment change.
Since this is a build change, and not something that affects geonetwork at runtime, I would like to ask that we patch all active branches (and backport as far back as folks care to).
Building with a schema such as iso19139.nl.geografie.2.0.0 and iso19139.nl.services.2.0.0 results in a very odd build failure!
What on earth could this mean?
After several hours I have an answer (using
mvn install -X
to bring up debug output).How did it happen
The
jaxen
1.1.3 dependencies are wrong, you can see so here: https://mvnrepository.com/artifact/jaxen/jaxen/1.1.3 It somehow got a compile dependency on two maven plugins and has been dragging them into a our build.When we depended on repo.boundlessgeo.com it had combined releases, snapshots and plugins into a single location .... so our build worked!
Now that we use repo.osgeo.org we are only getting releases. Plugins are stored in a serperate repository, they cannot be found, and so we do not run!
How to fix
The correct action is to exclude these in transitive dependency in schema-core:
Or use a newer version of jdom?