1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- |
3 |
~ Copyright 2004-2014 ICEsoft Technologies Canada Corp. |
4 |
~ |
5 |
~ Licensed under the Apache License, Version 2.0 (the "License"); |
6 |
~ you may not use this file except in compliance with the |
7 |
~ License. You may obtain a copy of the License at |
8 |
~ |
9 |
~ http://www.apache.org/licenses/LICENSE-2.0 |
10 |
~ |
11 |
~ Unless required by applicable law or agreed to in writing, |
12 |
~ software distributed under the License is distributed on an "AS |
13 |
~ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
14 |
~ express or implied. See the License for the specific language |
15 |
~ governing permissions and limitations under the License. |
16 |
--> |
17 |
|
18 |
<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"> |
19 |
<modelVersion>4.0.0</modelVersion> |
20 |
|
21 |
<parent> |
22 |
<groupId>org.icepush</groupId> |
23 |
<artifactId>icepush-parent</artifactId> |
24 |
<version>4.2.0-SNAPSHOT</version> |
25 |
<relativePath>..</relativePath> |
26 |
</parent> |
27 |
|
28 |
<groupId>org.icesoft.notify</groupId> |
29 |
<artifactId>${icenotify.lib.name}</artifactId> |
30 |
<packaging>jar</packaging> |
31 |
<name>${icenotify.product.name} Library</name> |
32 |
<url>http://www.icesoft.org</url> |
33 |
<description>${icenotify.product.name} Core Library</description> |
34 |
|
35 |
<build> |
36 |
|
37 |
<plugins> |
38 |
|
39 |
<plugin> |
40 |
<artifactId>maven-antrun-plugin</artifactId> |
41 |
<version>1.7</version> |
42 |
|
43 |
<executions> |
44 |
|
45 |
<!-- Run the default Ant target to clean everything --> |
46 |
<execution> |
47 |
<id>clean-all</id> |
48 |
<phase>clean</phase> |
49 |
<configuration> |
50 |
<target> |
51 |
<ant antfile="./build.xml" target="clean" /> |
52 |
</target> |
53 |
</configuration> |
54 |
<goals> |
55 |
<goal>run</goal> |
56 |
</goals> |
57 |
</execution> |
58 |
|
59 |
<!-- Other parts of the build need the icepush.jar in the lib directory. --> |
60 |
<execution> |
61 |
<id>compile-all</id> |
62 |
<phase>compile</phase> |
63 |
<configuration> |
64 |
<target> |
65 |
<ant antfile="./build.xml" target="jar" /> |
66 |
</target> |
67 |
</configuration> |
68 |
<goals> |
69 |
<goal>run</goal> |
70 |
</goals> |
71 |
</execution> |
72 |
|
73 |
</executions> |
74 |
</plugin> |
75 |
|
76 |
</plugins> |
77 |
|
78 |
</build> |
79 |
|
80 |
<dependencies> |
81 |
|
82 |
<dependency> |
83 |
<groupId>org.icesoft.util</groupId> |
84 |
<artifactId>${iceutil.lib.name}</artifactId> |
85 |
</dependency> |
86 |
|
87 |
<dependency> |
88 |
<groupId>javax.servlet</groupId> |
89 |
<artifactId>javax.servlet-api</artifactId> |
90 |
</dependency> |
91 |
|
92 |
<dependency> |
93 |
<groupId>javax.mail</groupId> |
94 |
<artifactId>mail</artifactId> |
95 |
<version>1.4.4</version> |
96 |
</dependency> |
97 |
|
98 |
</dependencies> |
99 |
|
100 |
<profiles> |
101 |
|
102 |
<!-- Not sure why but when I tried to put this in the top-level parent pom, it would sign all the artifacts |
103 |
but would only deploy the signatures for the main .jar and not the the sources and javadoc jars. It |
104 |
apparently works fine if the profile is defined in each project so that's what I've done for now. --> |
105 |
<profile> |
106 |
<id>sign-artifacts</id> |
107 |
<activation> |
108 |
<!--<activeByDefault>true</activeByDefault>--> |
109 |
<property> |
110 |
<name>signArtifacts</name> |
111 |
</property> |
112 |
</activation> |
113 |
<build> |
114 |
<plugins> |
115 |
<plugin> |
116 |
<groupId>org.apache.maven.plugins</groupId> |
117 |
<artifactId>maven-gpg-plugin</artifactId> |
118 |
<version>1.4</version> |
119 |
|
120 |
<executions> |
121 |
|
122 |
<execution> |
123 |
<id>sign-library</id> |
124 |
<phase>verify</phase> |
125 |
<goals> |
126 |
<goal>sign</goal> |
127 |
</goals> |
128 |
</execution> |
129 |
|
130 |
</executions> |
131 |
|
132 |
</plugin> |
133 |
</plugins> |
134 |
</build> |
135 |
</profile> |
136 |
|
137 |
</profiles> |
138 |
|
139 |
</project> |