How do I specify a Wildfly server version when using wildfly-maven-plugin?

lpacheco

When I start my webapp using the wildfly-maven-plugin (mvn wildfly:run), it starts with Wildfly 10. I need to test it with Wilfly 8.1.

Is there some parameter for chosing the Wildfly server version?

This is the piece of pom.xml I used to enable wildfly:run:

<build>
    <plugins>
        <plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>
            <version>1.0.2.Final</version>
        </plugin>
    </plugins>
</build>
uthark

There are several options:

  1. Configure user property in pom.xml:

    <properties>
        <wildfly.version>8.1.0.Final</wildfly.version>
    </properties>
    <build>
    <plugins>
        <plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>
            <version>1.0.2.Final</version>
        </plugin>
    </plugins>
    </build>
    
  2. Set required version in plugin configuration section:

    <plugins> 
        <plugin> 
            <groupId>org.wildfly.plugins</groupId> 
            <artifactId>wildfly-maven-plugin</artifactId> 
            <version>1.0.2.Final</version> 
            <configuration> 
                <version>8.1.0.Final</version> 
            </configuration> 
        </plugin> 
    </plugins> 
    
  3. Pass required version using command-line argument:

    mvn wildfly:run -Dwildfly.version=8.1.0.Final
    

See plugin documentation for details.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I make JNDI names compatible with both GlassFish and WildFly

From Dev

How do I get Wildfly to use additional Jackson Datatypes?

From Dev

Add plugin for WildFly Application Server to NetBeans

From Dev

Deploy app using wildfly maven plugin on an address different than localhost

From Dev

Maven - No plugin found for prefix 'wildfly' in the current project

From Dev

Start and configure a WildFly server and deploy the app using wildfly-maven-plugin in 1 maven run

From Dev

Wildfly maven plugin not register web context

From Dev

Wildfly Maven Plugin error: deploy-artifact must specify the artifactId

From Dev

wildfly-maven-plugin --> No plugin found for prefix 'wildfly'

From Dev

How to add libraries to Wildfly Application Server using module?

From Dev

How do i specify a version range for Maven dependency plugin get on command line

From Dev

How do I set java:comp/DefaultDataSource in WildFly?

From Dev

How do I encrypt the bindCredential password in Wildfly?

From Dev

How do I setup arquillian to test a maven war project by deploying the entire war to WildFly embedded?

From Dev

How do I connect a STOMP client to Wildfly?

From Dev

How to setup Jacoco with Wildfly and Maven

From Dev

How do I shutdown JBoss Wildfly when I can't access the CLI tool?

From Dev

Maven WildFly Plugin: Could not execute goal deploy

From Dev

How to specify domain path of WildFly on NetBeans?

From Dev

Wildfly Maven Plugin ignores deployment name?

From Dev

Wildfly 9 - How do I exclude Jackson

From Dev

Maven - No plugin found for prefix 'wildfly' in the current project

From Dev

wildfly-maven-plugin --> No plugin found for prefix 'wildfly'

From Dev

How to add libraries to Wildfly Application Server using module?

From Dev

Wildfly 9 - How do I exclude Jackson

From Dev

Wildfly Deploy Maven - Remove Version

From Dev

wildfly-maven-plugin not deploying when multiple profiles selected

From Dev

Wildfly-Maven-Plugin only Ear and War

From Dev

How do I get the maven dependency:tree command to show when I'm using a RELEASE version?

Related Related

  1. 1

    How do I make JNDI names compatible with both GlassFish and WildFly

  2. 2

    How do I get Wildfly to use additional Jackson Datatypes?

  3. 3

    Add plugin for WildFly Application Server to NetBeans

  4. 4

    Deploy app using wildfly maven plugin on an address different than localhost

  5. 5

    Maven - No plugin found for prefix 'wildfly' in the current project

  6. 6

    Start and configure a WildFly server and deploy the app using wildfly-maven-plugin in 1 maven run

  7. 7

    Wildfly maven plugin not register web context

  8. 8

    Wildfly Maven Plugin error: deploy-artifact must specify the artifactId

  9. 9

    wildfly-maven-plugin --> No plugin found for prefix 'wildfly'

  10. 10

    How to add libraries to Wildfly Application Server using module?

  11. 11

    How do i specify a version range for Maven dependency plugin get on command line

  12. 12

    How do I set java:comp/DefaultDataSource in WildFly?

  13. 13

    How do I encrypt the bindCredential password in Wildfly?

  14. 14

    How do I setup arquillian to test a maven war project by deploying the entire war to WildFly embedded?

  15. 15

    How do I connect a STOMP client to Wildfly?

  16. 16

    How to setup Jacoco with Wildfly and Maven

  17. 17

    How do I shutdown JBoss Wildfly when I can't access the CLI tool?

  18. 18

    Maven WildFly Plugin: Could not execute goal deploy

  19. 19

    How to specify domain path of WildFly on NetBeans?

  20. 20

    Wildfly Maven Plugin ignores deployment name?

  21. 21

    Wildfly 9 - How do I exclude Jackson

  22. 22

    Maven - No plugin found for prefix 'wildfly' in the current project

  23. 23

    wildfly-maven-plugin --> No plugin found for prefix 'wildfly'

  24. 24

    How to add libraries to Wildfly Application Server using module?

  25. 25

    Wildfly 9 - How do I exclude Jackson

  26. 26

    Wildfly Deploy Maven - Remove Version

  27. 27

    wildfly-maven-plugin not deploying when multiple profiles selected

  28. 28

    Wildfly-Maven-Plugin only Ear and War

  29. 29

    How do I get the maven dependency:tree command to show when I'm using a RELEASE version?

HotTag

Archive