Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-468

[wildfly-maven-plugin] Attempt to resolve latest version is done even when version is defined and not resolvable from Maven repository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None

      Plugin version: 4.0.0.Alpha2-SNAPSHOT (upstream repo main branch)

      With this configuration:

      <feature-packs>
          <feature-pack>
              <groupId>org.jboss.eap</groupId>
              <artifactId>wildfly-ee-galleon-pack</artifactId>
          </feature-pack>
          <feature-pack>
              <groupId>org.jboss.eap.cloud</groupId>
              <artifactId>eap-cloud-galleon-pack</artifactId>
              <version>8.0.0.Beta-redhat-20220614</version>
          </feature-pack>
      </feature-packs>
      <channels>
          <channel>
              <groupId>org.jboss.eap</groupId>
              <artifactId>wildfly-ee-galleon-pack</artifactId>
              <version>8.0.0.Beta-redhat-20220614</version>
          </channel>
      </channels>
      

      provisioning fails and following output is printed:

      čvn 15, 2022 12:42:30 ODP. org.wildfly.channel.maven.VersionResolverFactory resolveChannels
      INFO: Resolving channel from Maven artifact org.jboss.eap:wildfly-ee-galleon-pack:8.0.0.Beta-redhat-20220614
      [INFO] Provisioning server in /home/jkasik/projects/rhat/tests-wildfly-maven-plugin/user-interface-usability/target/test-classes/pom-configs/target/server
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  4.464 s
      [INFO] Finished at: 2022-06-15T12:42:34+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:4.0.0.Alpha2-SNAPSHOT:package (packaging) on project artifact-with-wf-maven-plugin: Provisioning failed: Can not resolve latest Maven artifact (no stream found) : org.jboss.eap.cloud:eap-cloud-galleon-pack:zip: -> [Help 1]
      

      Expected output: A message informing user that requested version couldn't be resolved from Maven repository and neither from the channel.

            jdenise@redhat.com Jean Francois Denise
            jkasik@redhat.com Jan Kašík
            Jan Kašík Jan Kašík
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: