Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18819

Quickstart READMEs XML snippets for server provisioning/bootable jar should not specify layers

XMLWordPrintable

    • ---
    • ---

      Each quickstart only uses the Galleon layer(s) needed and currently there is no way to specify those, other than overriding the XML snippet on the shared-docs, e.g. https://github.com/wildfly/quickstart/blob/main/shared-doc/build-and-run-the-quickstart-with-bootable-jar.adoc?plain=1#L24 , which is non sustainable since each QS should avoid adding complexity to such common README sections.

      Personally I don't think we need to provide README XML snippets exactly matching the quickstart pom.xml, the following should be enough for bootable-jar:

       

      [source,xml,subs="attributes+"]
      ----
            <profile>
                <id>bootable-jar</id>
                <build>
                    <plugins>
                        <plugin>
                            <groupId>org.wildfly.plugins</groupId>
                            <artifactId>wildfly-jar-maven-plugin</artifactId>
                            <configuration>
                                <feature-pack-location>wildfly@maven(org.jboss.universe:community-universe)#${version.server}</feature-pack-location>
                                <layers>...</layers>
                                <plugin-options>
                                    <jboss-fork-embedded>true</jboss-fork-embedded>
                                </plugin-options>
                            </configuration>
                            <executions>
                                <execution>
                                    <goals>
                                        <goal>package</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </build>
            </profile>
       ----
      

      Similar for server provisioning and openshift profile snippets.

       

       

       

       

            emartins@redhat.com Eduardo Martins
            emartins@redhat.com Eduardo Martins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: