<?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>development</groupId> <artifactId>project</artifactId> <version>${project.version}</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>web</artifactId> <packaging>war</packaging> <name>web</name> <description>Web Project by 313 DEV GRP</description> <properties> <java.bootstrap.classes>${java.home}/lib/rt.jar</java.bootstrap.classes> <java.cryptographic.extension.classes>${java.home}/lib/jce.jar</java.cryptographic.extension.classes> <java.secure.socket.extension.classes>${java.home}/lib/jsse.jar</java.secure.socket.extension.classes> <version.proguard-base>5.3.3</version.proguard-base> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>net.sf.proguard</groupId> <artifactId>proguard-base</artifactId> <version>${version.proguard-base}</version> </dependency> </dependencies> </dependencyManagement> <dependencies> <!-- 실행환경 라이브러리 --> <dependency> <groupId>development</groupId> <artifactId>support</artifactId> <version>${project.version}</version> <type>pom</type> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>javax.servlet.jsp-api</artifactId> <version>2.3.1</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>javax.servlet.jsp.jstl</groupId> <artifactId>jstl-api</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> </dependency> <!-- WebSocket Messenger --> <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>2.11.7</version> </dependency> </dependencies> <build> <defaultGoal>install</defaultGoal> <directory>${basedir}/target</directory> <finalName>web</finalName> <filters> <filter>${basedir}/profiles/${build.profile.id}/support.properties</filter> </filters> <resources> <resource> <filtering>true</filtering> <directory>src/main/resources</directory> </resource> </resources> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <executions> <execution> <phase>deploy</phase> <goals> <goal>redeploy</goal> </goals> </execution> </executions> <configuration> <charset>UTF-8</charset> <uriEncoding>UTF-8</uriEncoding> <url>http://ubuntu.313.co.kr:58080/manager/text</url> <server>StandardProject-Snapshot</server> <path>/</path> <protocol>org.apache.coyote.http11.Http11NioProtocol</protocol> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> <archive> <manifest> <addClasspath>false</addClasspath> </manifest> <manifestEntries> <Build-Time>${maven.build.timestamp}</Build-Time> <Build-Host>default</Build-Host> <Build-User>${user.name}</Build-User> <Build-Maven>Maven 3.0.5</Build-Maven> <Build-Java>${java.version}</Build-Java> <Build-OS>${os.name}</Build-OS> <Build-Label>${project.version}</Build-Label> <Build-Path>${basedir}</Build-Path> <Build-ETC>Korea Standard Project</Build-ETC> </manifestEntries> </archive> </configuration> </plugin> <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</artifactId> <version>3.4.1</version> <executions> <execution> <id>scala-compile-first</id> <phase>process-resources</phase> <goals> <goal>add-source</goal> <goal>compile</goal> </goals> </execution> <execution> <id>scala-test-compile</id> <phase>process-test-resources</phase> <goals> <goal>testCompile</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.5.3</version> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass>ScalaRunner</mainClass> </manifest> </archive> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>com.github.wvengen</groupId> <artifactId>proguard-maven-plugin</artifactId> <version>2.0.14</version> <configuration> <includeDependency>false</includeDependency> <injar>${project.build.finalName}.${project.packaging}</injar> <outjar>${project.build.finalName}-proguard.${project.packaging}</outjar> <libs> <lib>${java.bootstrap.classes}</lib> <lib>${java.cryptographic.extension.classes}</lib> <lib>${java.secure.socket.extension.classes}</lib> </libs> <options> <option>-keepclasseswithmembers public class * { public static void main(java.lang.String[]); }</option> <option>-keepattributes Signature</option> <option>-keepattributes *Annotation*</option> <option>-keepattributes InnerClasses,EnclosingMethod</option> <option>-ignorewarnings</option> </options> </configuration> <dependencies> <dependency> <groupId>net.sf.proguard</groupId> <artifactId>proguard-base</artifactId> <version>${version.proguard-base}</version> <scope>runtime</scope> </dependency> </dependencies> <executions> <execution> <id>proguard</id> <phase>package</phase> <goals> <goal>proguard</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>