]
Mario Fusco commented on DROOLS-2753:
-------------------------------------
[~nilsm] Sorry, but I'm also not understanding what you mean. Please provide a
reproducer.
SNAPSHOT KJars are always reloaded
----------------------------------
Key: DROOLS-2753
URL:
https://issues.jboss.org/browse/DROOLS-2753
Project: Drools
Issue Type: Bug
Affects Versions: 7.8.0.Final
Reporter: Nils Meyer
Assignee: Mario Fusco
The fix provided in DROOLS-2591 filled the snapshotVersion of the ReleaseId Object in
org.drools.compiler.kproject.ReleaseIdImpl.adapt(AFReleaseId) using
org.appformer.maven.support.AFReleaseId.getVersion(). This seems to be not correct, as the
snapshotVersion is filled with a version of the pattern 1.0.0-SNAPSHOT by this means.
Later the destinction wether to reload a SNAPSHOT version or not is made by comparing
this version to a version of the pattern 1.0.0-20180718.102926-4 retrieved from
org.eclipse.aether.artifact.Artifact.getVersion()
The corresponding tests did not reveal this issue, as they do not test that a non-newer
version is not loaded.
I'll try to provide an updated test and potentially a solution idea, too.