-
Notifications
You must be signed in to change notification settings - Fork 3
/
pom.xml
136 lines (123 loc) · 4.14 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010-present Sonatype, Inc. All rights reserved.
This program is licensed to you under the Apache License Version 2.0,
and you may not use this file except in compliance with the Apache License Version 2.0.
You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing,
software distributed under the Apache License Version 2.0 is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
-->
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.goodies</groupId>
<artifactId>goodies</artifactId>
<version>2.0.0</version>
</parent>
<artifactId>goodies-lifecycle</artifactId>
<name>${project.groupId}:${project.artifactId}</name>
<packaging>bundle</packaging>
<dependencies>
<dependency>
<groupId>org.sonatype.goodies</groupId>
<artifactId>goodies-common</artifactId>
</dependency>
<!--
TODO: Investigate 6.1.0 version update. http://smc.sourceforge.net/
Not on central, this version deployed manually to RSO 3rd party repo
-->
<dependency>
<groupId>net.sf.smc</groupId>
<artifactId>statemap</artifactId>
<classifier>java</classifier>
<version>6.0.1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.sonatype.goodies</groupId>
<artifactId>goodies-testsupport</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>smc-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>smc</goal>
</goals>
<configuration>
<sync>true</sync>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<!--
Repackage the statemap runtime classes in the final jar.
-->
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>net.sf.smc:statemap</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>statemap</pattern>
<shadedPattern>org.sonatype.goodies.lifecycle.internal</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-smc-generated-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>target/generated-sources/smc</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>