Fix Adobe XMP imports in 'Samples' - #714
Conversation
…elper-maven-plugin' in pom.xml.
|
Thanks very much for this.
Historically I've just bumped it when pushing an actual package update. I can see that for folks creating their own releases that this could be problematic, but I haven't tackled the maintenance burden of this. Do you know of any way to do this simply and automatically?
I'm not very familiar with Maven (as you can probably tell) so I'd be interested to hear more about why this would help. |
No great Maven expert here either ;-) Then, just before deploying a new release, run No need to manually edit POM files, though for a simple project like this (with no child modules) one could do just as well. Maven by default treats |
|
Restructuring the project...
Maven's canonical directory layout for Java projects is this: It is what plugins and IDEs assume by default and requires a minimal POM setup. Another advantage is that resources used only for testing are clearly separated and are excluded from the deployed artifact. However, the current layout of your project is probably just as good as long as the project stays as simple as it is. Actual reason for my comment was that the cleanest way to distribute the files in If you are interested I can try a quick refactoring attempt, perhaps also add |
Ah, I see. That makes sense. I'm reluctant to change much about the layout here as I generally don't use Maven. If there were regular contributors here who wanted to use Maven then I wouldn't have an issue, but as it's likely a few years down the line that I need to update something and Maven has changed, then I will find it simpler to keep it simple and familiar. I don't think that building samples is enough of a reason to warrant the change here. We can easily add a shell script that builds the samples too. Possibly just shell scripting some of the release process (i.e. handling |
Fixes issue #713:
XmpSample.java.Samplesas an additional test source directory usingbuild-helper-maven-plugin. This causes code inSamplesto be compiled during Maven'stest-compilephase (as a validity check) but does not include it in the distribution.Other suggestions:
2.19.0) is the same as the last release version - perhaps change to something like2.20.0-SNAPSHOT?