Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.wildfly:wildfly:37.0.0.Beta1'
}
dependencies {
implementation("com.github.wildfly:wildfly:37.0.0.Beta1")
}
<dependency>
<groupId>com.github.wildfly</groupId>
<artifactId>wildfly</artifactId>
<version>37.0.0.Beta1</version>
</dependency>
libraryDependencies += "com.github.wildfly" % "wildfly" % "37.0.0.Beta1"
:dependencies [[com.github.wildfly/wildfly "37.0.0.Beta1"]]
https://wildfly.org
And of course Jakarta EE and MicroProfile!
Prerequisites:
java -versionulimit -n) or more, depending on what other i/o intensive processes the user is running.To build with your own Maven installation:
mvn install
Alternatively, you can use the Maven Wrapper script that downloads and installs (if necessary) the required Maven version to
~/.m2/wrapper and runs it from there. On Linux, run
./mvnw install
On Windows
mvnw install
Change to the bin directory after a successful build
$ cd build/target/wildfly-\[version\]/bin
Start the server in domain mode
./domain.sh
Start the server in standalone mode
./standalone.sh
To stop the server, press Ctrl + C, or use the admin console
./jboss-cli.sh --connect command=:shutdown
Check 'Getting Started Guide' in the WildFly documentation for more information about how to start and stop WildFly.
build vs. dist directoriesAfter running mvn install, WildFly will be available in two distinct directories, build and dist.
build directory contains a build of WildFly that is based on Maven artifact resolution for module configurationdist directory, on the other hand, contains a full distributable build of WildFlyUsing the build directory makes iterating with subsystem or module development easier since there is no need to rebuild the whole of WildFly or copy JAR files around on every change.
The dist directory is better suited when a full build of WildFly is needed for development or test purposes.
For basic smoke tests, simply: mvn test
To run all the tests
mvn install -DallTests
The testsuite module contains several submodules which can be run individually as needed to speed up development. Refer to our documentation section that describes the testsuite in details.
https://github.com/wildfly/wildfly/blob/main/docs/src/main/asciidoc/_testsuite/WildFly_Integration_Testsuite_User_Guide.adoc
Please see the instructions available in the contributing guide.