I read about the struts2-showcase and found the maven repository at https://mvnrepository.com
Maven repository I am using is https://mvnrepository.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 https://mvnrepository.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).