Search This Blog

How to create a war file directly inside jboss deployments folder(external folder) using maven in pom.xml

Kindly keep a configuration as below mentioned :
 
    Pom.xml

<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/maven-v4_0_0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <groupId>com.seedsofjava.blogspot.com</groupId>
 <artifactId>abc</artifactId>
 <packaging>war</packaging>
 <version>1.0</version>
 <name>abc</name>
 <build>
 <finalName>abc</finalName>
 <pluginManagement>
 <plugins>
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <version>3.5</version>
 <configuration>
 <source>${java-version}</source>
 <target>${java-version}</target>
 </configuration>
 </plugin>
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-war-plugin</artifactId>
 <configuration>
 <warName>abc</warName>
 <warSourceDirectory>src/main/webapp</warSourceDirectory>
 <failOnMissingWebXml>false</failOnMissingWebXml>
 <webResources>
 <resource>
 <directory>lib/</directory>
 <targetPath>WEB-INF/lib</targetPath>
 <includes>
 <include>**/*.jar</include>
 </includes>
 </resource>
 </webResources>
 <outputDirectory>C:/Softwares/jboss-eap-7.0/standalone/deployments</outputDirectory>
 </configuration>
 </plugin>
 </plugins>
 </pluginManagement>
 </build>
</project> 

No comments:

Post a Comment

Are You A Thinker Or Maybe It's Overflowing?

Hi, everybody. I'm Rohit Patel and I'd like to ask you today, "Are you a thinker Or maybe it's overflowing? Do you live in ...

Popular Posts