Wildfly with JIB

55 views
Skip to first unread message

Juan Gabriel Rodriguez Fernandez

unread,
Apr 3, 2024, 12:55:54 PM4/3/24
to WildFly
Good morning.

I'm trying to link wildfly with JIB and Skaffold, but I don't understand when I run skaffold because the WAR won't deploy to the Wildfly server, the service is just a "hello world!!" test on RESTfull. I have the following settings:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>test</groupId>
        <artifactId>mod-test</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>

    <artifactId>test-wildfly-jib</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>war</packaging>

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>jakarta.platform</groupId>
            <artifactId>jakarta.jakartaee-api</artifactId>
            <version>10.0.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <finalName>test-wildfly-jib</finalName>
        <plugins>
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>3.4.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>dockerBuild</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <from>
                        <image>bitnami/wildfly:latest</image>
                    </from>
                    <to>
                        <image>test-wildfly-jib</image>
                    </to>                    
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>



Thanks for the help.

Bartosz Baranowski

unread,
Apr 11, 2024, 4:38:56 AM4/11/24
to WildFly
Whats the error? Or is it just silent failure? Did you try -X on maven command?
Reply all
Reply to author
Forward
0 new messages