Skip to content

Commit

Permalink
rename version.jboss.bom to version.wildfly.bom
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
  • Loading branch information
jmesnil committed Aug 18, 2023
1 parent 92a27bd commit 441572e
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Determine Archetype & WildFly versions
run: |-
ARCHETYPE_VERSION=$(mvn -B help:evaluate -Dexpression=project.version -DforceStdout -q)
WILDFLY_VERSION=$(mvn -B help:evaluate -Dexpression=version.jboss.bom -DforceStdout -q)
WILDFLY_VERSION=$(mvn -B help:evaluate -Dexpression=version.wildfly.bom -DforceStdout -q)
echo "ARCHETYPE_VERSION=$ARCHETYPE_VERSION" >> "$GITHUB_ENV"
echo "WILDFLY_VERSION=$WILDFLY_VERSION" >> "$GITHUB_ENV"
echo "## Testing archetypes ${ARCHETYPE_VERSION} with WildFly ${WILDFLY_VERSION}" >> $GITHUB_STEP_SUMMARY
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
WildFly archetypes
==================

This project contains Maven Archetypes to generate Maven projects to develop Jakarta EE applications with [WildFly](https://wildfly.org/)

* [wildfly-jakartaee-webapp-archetype](/wildfly-jakartaee-webapp-archetype/) generates a Maven project to develop a simple Web Archive (WAR) with WildFly
* [wildfly-jakartaee-ear-archetype](/wildfly-jakartaee-ear-archetype/) generates a Maven project to develop a Entreprise Archive (EAR) with WildFly. It generates an EJB and WAR modules to compose the EAR
* [wildfly-subsystem-archetype](/wildfly-subsystem-archetype/) generates a Maven project to develop a WildFly subsystem to extend the capabilities of WildFly.

[[newwildflyversion]]
## Component dependencies

The versions of all dependencies and plugins that are used by this archetype are configured in the parent's `pom.xml`.

To update the archetypes to new versions:

* update to latest "org.jboss:jboss-parent" version found at https://repo.maven.apache.org/maven2/org/jboss/jboss-parent/
* update the version property named "version.wildfly.bom"
* check whether dependencies have changed.
* check the plugin versions and update if necessary:

** wildfly-maven-plugin: https://repo.maven.apache.org/maven2/org/wildfly/plugins/wildfly-maven-plugin/
** maven-compiler-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/
** maven-surefire-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/
** maven-failsafe-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-failsafe-plugin/
** maven-war-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/
** maven-ear-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ear-plugin/
** maven-ejb-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ejb-plugin/
12 changes: 3 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
actually use these dependencies.
-->
<properties>
<version.jboss.bom>29.0.0.Final</version.jboss.bom>
<version.wildfly.bom>29.0.0.Final</version.wildfly.bom>
<version.wildfly.core>21.1.0.Final</version.wildfly.core>
<version.wildfly.maven.plugin>4.2.0.Final</version.wildfly.maven.plugin>

Expand Down Expand Up @@ -61,13 +61,13 @@
<dependency>
<groupId>org.wildfly.bom</groupId>
<artifactId>wildfly-ee-with-tools</artifactId>
<version>\${version.jboss.bom}</version>
<version>${version.wildfly.bom}</version>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<build>

<build>
<pluginManagement>
<plugins>
<plugin>
Expand All @@ -89,23 +89,17 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>${version.ear.plugin}</version>

</plugin>
<plugin>

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>${version.ejb.plugin}</version>
</plugin>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-war-plugin</artifactId>
<version>${version.war.plugin}</version>
</plugin>

</plugins>
</pluginManagement>
</build>
Expand Down
24 changes: 3 additions & 21 deletions wildfly-jakartaee-ear-archetype/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,9 @@ It is prepared for running Arquillian unit tests.
More details can be found in the file "src/main/resources/archetype-resources/README.txt", which is end-user doc and added to the resulting project.

[[newwildflyversion]]
==== New WildFly version
To update this archetype to a new WildFly version:
In file "pom.xml":

* update the version
* update to latest "org.jboss:jboss-parent" version found at https://repo.maven.apache.org/maven2/org/jboss/jboss-parent/

In file "src/main/resources/archetype-resources/pom.xml":

* update the version property named "version.jboss.bom"
* check whether dependencies have changed.
* check the plugin versions and update if necessary:
** wildfly-maven-plugin: https://repo.maven.apache.org/maven2/org/wildfly/plugins/wildfly-maven-plugin/
** maven-compiler-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/
** maven-ear-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ear-plugin/
** maven-ejb-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ejb-plugin/
** maven-surefire-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/
** maven-failsafe-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-failsafe-plugin/
** maven-war-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/

Also test whether the Arquillian unit test "SampleIT" still works, see below.
==== Component Dependencies

The versions of all dependencies and plugins that are used by this archetype are configured in the parent's `pom.xml`.

[[build]]
==== Build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<version.wildfly.maven.plugin>${version.wildfly.maven.plugin}</version.wildfly.maven.plugin>

<!-- Define the version of the JBoss BOMs we want to import to specify tested stacks. -->
<version.jboss.bom>${version.jboss.bom}</version.jboss.bom>
<version.wildfly.bom>${version.wildfly.bom}</version.wildfly.bom>

<!-- other plugin versions -->
<version.compiler.plugin>${version.compiler.plugin}</version.compiler.plugin>
Expand Down Expand Up @@ -118,7 +118,7 @@
<dependency>
<groupId>org.wildfly.bom</groupId>
<artifactId>wildfly-ee-with-tools</artifactId>
<version>\${version.jboss.bom}</version>
<version>\${version.wildfly.bom}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
20 changes: 2 additions & 18 deletions wildfly-jakartaee-webapp-archetype/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,9 @@ It is prepared for running Arquillian unit tests.
More details can be found in the file "src/main/resources/archetype-resources/README.txt", which is end-user doc and added to the resulting project.

[[newwildflyversion]]
==== New WildFly version
To update this archetype to a new WildFly version:
In file "pom.xml":
==== Component dependencies

* update the version
* update to latest "org.jboss:jboss-parent" version found at https://repo.maven.apache.org/maven2/org/jboss/jboss-parent/

In file "src/main/resources/archetype-resources/pom.xml":

* update the version property named "version.jboss.bom"
* check whether dependencies have changed.
* check the plugin versions and update if necessary:
** wildfly-maven-plugin: https://repo.maven.apache.org/maven2/org/wildfly/plugins/wildfly-maven-plugin/
** maven-compiler-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/
** maven-surefire-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/
** maven-failsafe-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-failsafe-plugin/
** maven-war-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/

Also test whether the Arquillian unit test "SampleIT" still works, see below.
The versions of all dependencies and plugins that are used by this archetype are configured in the parent's `pom.xml`.

[[build]]
==== Build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<version.wildfly.maven.plugin>${version.wildfly.maven.plugin}</version.wildfly.maven.plugin>

<!-- Define the version of the JBoss BOMs we want to import to specify tested stacks. -->
<version.jboss.bom>${version.jboss.bom}</version.jboss.bom>
<version.wildfly.bom>${version.wildfly.bom}</version.wildfly.bom>

<!-- other plugin versions -->
<version.compiler.plugin>${version.compiler.plugin}</version.compiler.plugin>
Expand Down Expand Up @@ -91,7 +91,7 @@
<dependency>
<groupId>org.wildfly.bom</groupId>
<artifactId>wildfly-ee-with-tools</artifactId>
<version>\${version.jboss.bom}</version>
<version>\${version.wildfly.bom}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
17 changes: 2 additions & 15 deletions wildfly-subsystem-archetype/Readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,9 @@ This archetype creates a subsystem project.

See https://docs.wildfly.org/26/Extending_WildFly.html

==== New WildFly version
To update this archetype to a new WildFly version:
In file "pom.xml":
==== Component Dependencies

* update the archetype version
* update to latest "org.jboss:jboss-parent" version found at https://repo.maven.apache.org/maven2/org/jboss/jboss-parent/

In file "src/main/resources/archetype-resources/pom.xml":

* update the version property named "version.wildfly.core" to the version bundled with WildFly (found in "%WILDFLY_HOME%/modules/system/layers/base/org/jboss/as/controller/main").
* check the plugin versions and update if necessary:
** maven-compiler-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/
** maven-surefire-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/
** maven-antrun-plugin: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/

In file "src/main/resources/archetype-resources/Readme.txt", update the version in the link to the WildFly documentation.
The versions of all dependencies and plugins that are used by this archetype are configured in the parent's `pom.xml`.

[[build]]
==== Build
Expand Down

0 comments on commit 441572e

Please sign in to comment.