1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Maven build failed for struts2 showcase

Discussão em 'StackOverflow' iniciado por Stack, Fevereiro 19, 2021.

  1. Stack

    Stack Membro Participativo

    Hi I am new to Struts2 and Maven. I read about the struts2-showcase and found the maven repository at http://maven-repository.com

    maven repository I am using is http://maven-repository.com/artifact/org.apache.struts/struts2-showcase/2.3.16.3

    I am trying to create one project using the given pom.xml given in the maven repo. But whenever I run mvn install, its giving build failure. Firstly I was doing this by creating one project using


    mvn archetype:generate -DgroupId=struts -DartifactId=struts2-showcase -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

    command in console. Then I opened the pom.xml and added the dependency.

    <dependency>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts2-showcase</artifactId>
    <version>2.3.16.3</version>
    </dependency>


    But when I run the command


    mvn install

    I got error in test and at last Build failure.

    But Later I deleted all and created a directory manually and inside that I created one pom.xml and pasted all the contents got from http://maven-repository.com/artifact/org.apache.struts/struts2-showcase/2.3.16.3/pom

    Then all worked perfectly but nothing to compile and nothing to test and got build successful. But when I deployed it got the error and build failed.

    I know I am doing something terribly wrong. Someone please show me the way to make it work. As application server I used JBoss (wildfly).

    Continue reading...

Compartilhe esta Página