Skip to content

Example of an unavailable dependencies error, when a war deployment depends on a jar deployment via jboss-deployment-structure.xml

Notifications You must be signed in to change notification settings

MihaStemberger/wildfly-unavailable-jboss-deployment-dependency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unavailable dependency

Credentials

Usage

1. Build maven project

mvn clean install

2. Start docker containers

docker compose up

3. Deploy artifacts to wildfly 20.0.1.Final container

mvn wildfly:deploy-only -Pworking-wildfly

This deployment is all good.

4. Deploy artifacts to wildfly 26.1.3.Final container

mvn wildfly:deploy-only -Pnon-working-wildfly

war-deployment will in this case fail with Caused by: java.lang.ClassNotFoundException: com.mihas.wildfly.examples.unresolved.dependency.special.TestUtil from [Module "deployment.war-deployment-1.0.0-SNAPSHOT.war" from Service Module Loader]

Deploying changes

If any changes are made to source code use: mvn clean install wildfly:deploy-only with a specified profile -Pnon-working-wildfly or -Pworking-wildfly

If any changes are made to a DockerFile:

  1. remove running containers:
    docker compose down
  2. rebuild the project:
    mvn clean install
  3. build new docker images:
    docker compose build
  4. start docker containers:
    docker compose up

About

Example of an unavailable dependencies error, when a war deployment depends on a jar deployment via jboss-deployment-structure.xml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published