[jboss-jira] [JBoss JIRA] (DROOLS-2753) SNAPSHOT KJars are always reloaded

Nils Meyer (JIRA) issues at jboss.org
Wed Jul 18 10:44:01 EDT 2018


Nils Meyer created DROOLS-2753:
----------------------------------

             Summary: 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: Edson Tirelli


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. 



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list