andgau

Tomcat Deploy con Maven

Nov 19th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4.     <modelVersion>4.0.0</modelVersion>
  5.     <groupId>es.sinjava</groupId>
  6.     <artifactId>restserwar</artifactId>
  7.     <version>1.0-SNAPSHOT</version>
  8.     <packaging>war</packaging>
  9.     <name>Simple CXF JAX-RS webapp service using spring configuration</name>
  10.     <description>Simple CXF JAX-RS webapp service using spring configuration</description>
  11.     <properties>
  12.         <jackson.version>1.8.6</jackson.version>
  13.     </properties>
  14.     <dependencies>
  15.         <dependency>
  16.             <groupId>junit</groupId>
  17.             <artifactId>junit</artifactId>
  18.             <version>4.12</version>
  19.             <scope>test</scope>
  20.         </dependency>
  21.     </dependencies>
  22.     <build>
  23.         <finalName>${artifactId}</finalName>
  24.         <pluginManagement>
  25.             <plugins>
  26.                 <plugin>
  27.                     <groupId>org.apache.tomcat.maven</groupId>
  28.                     <artifactId>tomcat7-maven-plugin</artifactId>
  29.                     <version>2.2</version>
  30.                 </plugin>
  31.                 <plugin>
  32.                     <groupId>org.apache.maven.plugins</groupId>
  33.                     <artifactId>maven-compiler-plugin</artifactId>
  34.                     <configuration>
  35.                         <source>1.8</source>
  36.                         <target>1.8</target>
  37.                     </configuration>
  38.                 </plugin>
  39.             </plugins>
  40.         </pluginManagement>
  41.         <plugins>
  42.             <plugin>
  43.                 <groupId>org.apache.tomcat.maven</groupId>
  44.                 <artifactId>tomcat7-maven-plugin</artifactId>
  45.                 <configuration>
  46.                     <server>TomcatLocalServer</server>
  47.                     <url>http://localhost:8080/manager/text</url>
  48.                     <username>tomcat</username>
  49.                     <password>tomcat</password>
  50.                     <path>/restserwar</path>
  51.                     <update>true</update>
  52.                 </configuration>
  53.             </plugin>
  54.         </plugins>
  55.     </build>
  56. </project>
Advertisement
Add Comment
Please, Sign In to add comment