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:35.0.1.Final'
}
dependencies {
implementation("com.github.wildfly:wildfly:35.0.1.Final")
}
<dependency>
<groupId>com.github.wildfly</groupId>
<artifactId>wildfly</artifactId>
<version>35.0.1.Final</version>
</dependency>
libraryDependencies += "com.github.wildfly" % "wildfly" % "35.0.1.Final"
:dependencies [[com.github.wildfly/wildfly "35.0.1.Final"]]
https://wildfly.org
And of course Jakarta EE and MicroProfile!
Prerequisites:
java -version
mvn -v
ulimit -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.
Please see the instructions available in the contribution guide.
After 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.
The testsuite module contains several submodules including the following:
For basic smoke tests, simply: mvn test
To run all the tests
mvn install -DallTests