Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5140

Quarkus archetype - defer expansion of properties with versions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.8.0.Final
    • 1.5.0.Final, 1.6.0.Final
    • Build and release
    • None
    • False
    • False
    • Undefined

      When generating project using archetype in subject, there's following configuration of quarkus-maven-plugin:

           <plugin>
              <groupId>io.quarkus</groupId>
              <artifactId>quarkus-maven-plugin</artifactId>
              <version>1.11.4.Final</version>
              <executions>
                <execution>
                  <goals>
                    <goal>build</goal>
                    <goal>generate-code</goal>
                    <goal>generate-code-tests</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
      

      While instead of the explicit value for plugin version there should be reused property

      <quarkus.version>1.11.4.Final</quarkus.version>

      This can potentially cause troubles when users are overriding kogito version either in properties section or by passing env property.

       

      The property expansion should be deferred for all properties that are specified in that exact pom.xml in archetype-resources, to prevent such situation in future.

              jstastny@redhat.com Jan Stastny
              jstastny@redhat.com Jan Stastny
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: