pom.xml 8.76 KB
Newer Older
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
1 2 3 4 5
<?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>
Misagh Moayyed's avatar
Misagh Moayyed committed
6
    <groupId>org.apereo.cas</groupId>
Misagh Moayyed's avatar
Misagh Moayyed committed
7
    <artifactId>cas-overlay</artifactId>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
8 9
    <packaging>war</packaging>
    <version>1.0</version>
10

Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
11 12
    <build>
        <plugins>
Misagh Moayyed's avatar
Misagh Moayyed committed
13
            <plugin>
Misagh Moayyed's avatar
Misagh Moayyed committed
14
                <groupId>com.rimerosolutions.maven.plugins</groupId>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
15
                <artifactId>wrapper-maven-plugin</artifactId>
Misagh Moayyed's avatar
Misagh Moayyed committed
16
                <version>0.0.5</version>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
17 18 19 20 21 22 23 24
                <configuration>
                    <verifyDownload>true</verifyDownload>
                    <checksumAlgorithm>MD5</checksumAlgorithm>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
Misagh Moayyed's avatar
Misagh Moayyed committed
25
                <version>${springBootVersion}</version>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
26
                <configuration>
Misagh Moayyed's avatar
Misagh Moayyed committed
27
                    <mainClass>${startClass}</mainClass>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
28
                    <addResources>true</addResources>
Misagh Moayyed's avatar
Misagh Moayyed committed
29
                    <executable>${isExecutable}</executable>
Misagh Moayyed's avatar
Misagh Moayyed committed
30
                    <noverify>true</noverify>
Misagh Moayyed's avatar
Misagh Moayyed committed
31
                    <layout>WAR</layout>
Misagh Moayyed's avatar
Misagh Moayyed committed
32 33 34
                    <excludes>
                        <exclude>
                            <groupId>org.apereo.cas</groupId>
Misagh Moayyed's avatar
Misagh Moayyed committed
35
                            <artifactId>cas-server-webapp${appServer}</artifactId>
Misagh Moayyed's avatar
Misagh Moayyed committed
36 37
                        </exclude>
                    </excludes>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
38
                </configuration>
Misagh Moayyed's avatar
Misagh Moayyed committed
39 40 41 42 43 44 45
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
Misagh Moayyed's avatar
Misagh Moayyed committed
46
            </plugin>
Misagh Moayyed's avatar
Misagh Moayyed committed
47

Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
48 49 50
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
Misagh Moayyed's avatar
Misagh Moayyed committed
51
                <version>3.2.2</version>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
52 53
                <configuration>
                    <warName>cas</warName>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
54 55 56 57
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                    <recompressZippedFiles>false</recompressZippedFiles>
                    <archive>
                        <compress>false</compress>
Misagh Moayyed's avatar
Misagh Moayyed committed
58 59 60
                        <manifestEntries>
                            <Main-Class>${mainClass}</Main-Class>
                        </manifestEntries>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
61
                    </archive>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
62 63
                    <overlays>
                        <overlay>
Misagh Moayyed's avatar
Misagh Moayyed committed
64
                            <groupId>org.apereo.cas</groupId>
Misagh Moayyed's avatar
Misagh Moayyed committed
65
                            <artifactId>cas-server-webapp${appServer}</artifactId>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
66 67 68 69 70 71 72
                        </overlay>
                    </overlays>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
Misagh Moayyed's avatar
Misagh Moayyed committed
73
                <version>3.7.0</version>
Misagh Moayyed's avatar
Misagh Moayyed committed
74
            </plugin>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
75 76 77 78 79
        </plugins>
        <finalName>cas</finalName>
    </build>

    <properties>
Misagh Moayyed's avatar
Misagh Moayyed committed
80
        <isExecutable>false</isExecutable>
Misagh Moayyed's avatar
Misagh Moayyed committed
81 82
        <startClass>org.apereo.cas.web.CasWebApplication</startClass>
        <mainClass>org.springframework.boot.loader.WarLauncher</mainClass>
Misagh Moayyed's avatar
Misagh Moayyed committed
83

Misagh Moayyed's avatar
Misagh Moayyed committed
84 85 86
        <maven.compiler.source>${sourceCompatibility}</maven.compiler.source>
        <maven.compiler.target>${targetCompatibility}</maven.compiler.target>

Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
87 88 89 90 91 92 93
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <repositories>
        <repository>
            <id>sonatype-releases</id>
            <url>http://oss.sonatype.org/content/repositories/releases/</url>
Misagh Moayyed's avatar
Misagh Moayyed committed
94 95 96 97 98 99
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
100
        </repository>
Misagh Moayyed's avatar
Misagh Moayyed committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121

        <repository>
            <id>spring-lib-milestone</id>
            <url>https://repo.spring.io/libs-milestone</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>jitpack</id>
            <url>https://jitpack.io</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
122 123 124
        <repository>
            <id>sonatype-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
Misagh Moayyed's avatar
Misagh Moayyed committed
125 126 127 128 129 130
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
131
        </repository>
132 133 134 135
        <repository>
            <id>shibboleth-releases</id>
            <url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
        </repository>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
136
    </repositories>
Misagh Moayyed's avatar
Misagh Moayyed committed
137 138

    <profiles>
Misagh Moayyed's avatar
Misagh Moayyed committed
139 140 141 142
        <profile>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
Misagh Moayyed's avatar
Misagh Moayyed committed
143 144 145 146
            <id>default</id>
            <dependencies>
                <dependency>
                    <groupId>org.apereo.cas</groupId>
Misagh Moayyed's avatar
Misagh Moayyed committed
147 148
                    <artifactId>cas-server-webapp${appServer}</artifactId>
                    <version>${casVersion}</version>
Misagh Moayyed's avatar
Misagh Moayyed committed
149 150 151 152 153 154 155 156 157 158 159 160 161
                    <type>war</type>
                    <scope>runtime</scope>
                </dependency>
                <!--
                ...Additional dependencies may be placed here...
                -->
            </dependencies>
        </profile>

        <profile>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
Misagh Moayyed's avatar
Misagh Moayyed committed
162 163 164 165 166 167
            <id>exec</id>
            <properties>
                <isExecutable>true</isExecutable>
            </properties>
        </profile>

Misagh Moayyed's avatar
Misagh Moayyed committed
168 169 170 171
        <profile>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
172
            <id>external</id>
Misagh Moayyed's avatar
Misagh Moayyed committed
173 174
            <properties>
                <isExecutable>false</isExecutable>
175
                <mainClass>${startClass}</mainClass>
Misagh Moayyed's avatar
Misagh Moayyed committed
176 177 178 179
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.apereo.cas</groupId>
Misagh Moayyed's avatar
Misagh Moayyed committed
180 181
                    <artifactId>cas-server-webapp</artifactId>
                    <version>${casVersion}</version>
Misagh Moayyed's avatar
Misagh Moayyed committed
182
                    <type>war</type>
183
                    <scope>compile</scope>
Misagh Moayyed's avatar
Misagh Moayyed committed
184 185
                </dependency>
            </dependencies>
186 187 188 189 190 191 192 193 194 195 196 197 198 199
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.googlecode.maven-download-plugin</groupId>
                        <artifactId>download-maven-plugin</artifactId>
                        <version>1.4.1</version>
                        <executions>
                            <execution>
                                <id>download-tomcat</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>wget</goal>
                                </goals>
                                <configuration>
Misagh Moayyed's avatar
Misagh Moayyed committed
200
                                    <url>http://www-eu.apache.org/dist/tomcat/tomcat-${tomcatVersion}/v${tomcatFullVersion}/bin/apache-tomcat-${tomcatFullVersion}.zip</url>
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
                                    <unpack>true</unpack>
                                    <outputDirectory>${project.basedir}</outputDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>com.coderplus.maven.plugins</groupId>
                        <artifactId>copy-rename-maven-plugin</artifactId>
                        <version>1.0</version>
                        <executions>
                            <execution>
                                <id>rename-file</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>rename</goal>
                                </goals>
                                <configuration>
                                    <sourceFile>${project.basedir}/apache-tomcat-${tomcat.fullversion}</sourceFile>
                                    <destinationFile>${project.basedir}/apache-tomcat</destinationFile>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
Misagh Moayyed's avatar
Misagh Moayyed committed
227
        </profile>
228

Misagh Moayyed's avatar
Misagh Moayyed committed
229
    </profiles>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
230
</project>