Open twogee opened 3 years ago
Hum it's new to me, moreover adb34bbcac212bf110a5665a0020b3572fc197be was there to correct that.
also I did not checked with latest flatten versions.
jgitver automatic integration/usage with flatten was done with 1.0.1
see JGitverModelProcessor.java#L187
I think the sisu index is missing...
I set the phase for flatten to package since validate seemed early, but it is not essential; flatten 1.2.2 works fine (except for dependencies with classifiers).
I am in the process of reviewing the extension/plugin and how it works in regards of some maven internals for injection (see my exchanges on maven dev mailing list) ; i'll review that after the cleanup.
I believe the discussion is interesting and deserves to be referred here. Is there a solution for the classloading problem?
Hi, I continued the exploration of what is discussed in the mailing list. I refactored jgitver to use the injection mechanism and separation between extension and plugin but I am facing another classloading issue when inside the reactor. I am currently busy simplifying the problem to show to the maven core developpers. It's a bit long I know but then the codebase will be in a better shape for future evolutions/modifications.
We regularly encounter this problem on our projects - many small microservices all using jgitver... and the flatten plugin. Any news or progress on this issue ?
Unfortunately the refactored version is still in branch and was never finished & pushed due to lack of time. So no there is no progress on this item.
Thank you McFoggy for that quick reply and for that incredibly useful plugin you have created.
For the time being, for those that are encountering the aforementioned problem, the workaround is to downgrade the maven-flatten-plugin to version 1.2.3 this is the most recent version that works flawlessly with JGitver.
Encountered the same problem, AGAIN! But found another way to make it work with the latest flatten plugin:
<pluginManagement>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.7</version>
<dependencies>
<dependency>
<groupId>fr.brouillard.oss</groupId>
<artifactId>jgitver-maven-plugin</artifactId>
<version>1.9.0</version>
</dependency>
</dependencies>
</plugin>
</pluginManagement>
Before submitting an issue I have first:
Issue
flatten plugin cannot be loaded because jgitver has no bound implementation
1.7.0:
Parent POM has flatten-plugin 1.2.5 (I try to use the latest version to get around the classifier issue https://github.com/mojohaus/flatten-maven-plugin/issues/132) configured as follows
The following happens when children POM is flattened