pom.xml 8.3 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 10 11 12
    <packaging>war</packaging>
    <version>1.0</version>

    <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 25 26
                <configuration>
                    <verifyDownload>true</verifyDownload>
                    <checksumAlgorithm>MD5</checksumAlgorithm>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>${springboot.version}</version>
                <configuration>
Misagh Moayyed's avatar
Misagh Moayyed committed
27
                    <mainClass>${mainClassName}</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
                    <layout>WAR</layout>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
31
                </configuration>
Misagh Moayyed's avatar
Misagh Moayyed committed
32 33 34 35 36 37 38
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
Misagh Moayyed's avatar
Misagh Moayyed committed
39
            </plugin>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
40 41 42
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
Misagh Moayyed's avatar
Misagh Moayyed committed
43
                <version>2.6</version>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
44 45
                <configuration>
                    <warName>cas</warName>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
46 47 48 49
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                    <recompressZippedFiles>false</recompressZippedFiles>
                    <archive>
                        <compress>false</compress>
Misagh Moayyed's avatar
Misagh Moayyed committed
50
                        <manifestFile>${manifestFileToUse}</manifestFile>
Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
51
                    </archive>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
52 53
                    <overlays>
                        <overlay>
Misagh Moayyed's avatar
Misagh Moayyed committed
54
                            <groupId>org.apereo.cas</groupId>
Hal Deadman's avatar
Hal Deadman committed
55
                            <artifactId>cas-server-webapp${app.server}</artifactId>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
56 57 58 59 60 61 62
                        </overlay>
                    </overlays>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
Misagh Moayyed's avatar
Misagh Moayyed committed
63
                <version>3.3</version>
Misagh Moayyed's avatar
Misagh Moayyed committed
64
            </plugin>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
65 66 67 68 69
        </plugins>
        <finalName>cas</finalName>
    </build>

    <properties>
Misagh Moayyed's avatar
Misagh Moayyed committed
70
        <cas.version>5.3.1</cas.version>
Misagh Moayyed's avatar
Misagh Moayyed committed
71
        <springboot.version>1.5.14.RELEASE</springboot.version>
Hal Deadman's avatar
Hal Deadman committed
72
        <!-- app.server could be -jetty, -undertow, -tomcat, or blank if you plan to provide appserver -->
Misagh Moayyed's avatar
Misagh Moayyed committed
73
        <app.server>-tomcat</app.server>
Misagh Moayyed's avatar
Misagh Moayyed committed
74 75 76 77 78

        <mainClassName>org.springframework.boot.loader.WarLauncher</mainClassName>
        <isExecutable>false</isExecutable>
        <manifestFileToUse>${project.build.directory}/war/work/org.apereo.cas/cas-server-webapp${app.server}/META-INF/MANIFEST.MF</manifestFileToUse>

Misagh Moayyed's avatar
Misagh Moayyed committed
79 80
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
81 82 83 84 85 86 87
        <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
88 89 90 91 92 93
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
94 95 96 97
        </repository>
        <repository>
            <id>sonatype-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
Misagh Moayyed's avatar
Misagh Moayyed committed
98 99 100 101 102 103
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
104
        </repository>
105 106 107 108
        <repository>
            <id>shibboleth-releases</id>
            <url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
        </repository>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
109
    </repositories>
Misagh Moayyed's avatar
Misagh Moayyed committed
110 111

    <profiles>
Misagh Moayyed's avatar
Misagh Moayyed committed
112 113 114 115
        <profile>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
Misagh Moayyed's avatar
Misagh Moayyed committed
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
            <id>default</id>
            <dependencies>
                <dependency>
                    <groupId>org.apereo.cas</groupId>
                    <artifactId>cas-server-webapp${app.server}</artifactId>
                    <version>${cas.version}</version>
                    <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
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
            <id>exec</id>
            <properties>
                <mainClassName>org.apereo.cas.web.CasWebApplication</mainClassName>
                <isExecutable>true</isExecutable>
                <manifestFileToUse></manifestFileToUse>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.soebes.maven.plugins</groupId>
                        <artifactId>echo-maven-plugin</artifactId>
                        <version>0.3.0</version>
                        <executions>
                            <execution>
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>echo</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <echos>
Misagh Moayyed's avatar
Misagh Moayyed committed
157 158
                                <echo>Executable profile to make the generated CAS web application executable.</echo>
                            </echos>
Misagh Moayyed's avatar
Misagh Moayyed committed
159 160 161 162 163 164
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

Misagh Moayyed's avatar
Misagh Moayyed committed
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
        <profile>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <id>bootiful</id>
            <properties>
                <app.server>-tomcat</app.server>
                <isExecutable>false</isExecutable>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.apereo.cas</groupId>
                    <artifactId>cas-server-webapp${app.server}</artifactId>
                    <version>${cas.version}</version>
                    <type>war</type>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>
        </profile>

Misagh Moayyed's avatar
Updated  
Misagh Moayyed committed
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
        <profile>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <id>pgp</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.s4u.plugins</groupId>
                        <artifactId>pgpverify-maven-plugin</artifactId>
                        <version>1.1.0</version>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <pgpKeyServer>hkp://pool.sks-keyservers.net</pgpKeyServer>
                            <pgpKeysCachePath>${settings.localRepository}/pgpkeys-cache</pgpKeysCachePath>
                            <scope>test</scope>
                            <verifyPomFiles>true</verifyPomFiles>
                            <failNoSignature>false</failNoSignature>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
Misagh Moayyed's avatar
Misagh Moayyed committed
214
    </profiles>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
215
</project>