root / middleware / pom.xml @ 51

View | Annotate | Download

1
<!--
2
  ~ Copyright 2009 Andrey Khalzov, and individual contributors as indicated by the @author tag.
3
  ~
4
  ~ Licensed under the Apache License, Version 2.0 (the "License");
5
  ~ you may not use this file except in compliance with the License.
6
  ~ You may obtain a copy of the License at
7
  ~
8
  ~      http://www.apache.org/licenses/LICENSE-2.0
9
  ~
10
  ~ Unless required by applicable law or agreed to in writing,
11
  ~ software distributed under the License is distributed on an "AS IS" BASIS,
12
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  ~ See the License for the specific language governing permissions and limitations under the License.
14
  -->
15
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
17
    <parent>
18
        <groupId>org.wannatrak</groupId>
19
        <artifactId>wannatrak</artifactId>
20
        <version>${projectVersion}</version>
21
    </parent>
22
23
    <modelVersion>4.0.0</modelVersion>
24
    <groupId>org.wannatrak</groupId>
25
    <artifactId>wannatrak-middleware</artifactId>
26
    <packaging>ejb</packaging>
27
28
    <name>Wannatrak middleware</name>
29
30
    <dependencies>
31
        <!-- ORM -->
32
        <dependency>
33
            <groupId>org.hibernate</groupId>
34
            <artifactId>hibernate-annotations</artifactId>
35
            <version>3.4.0.GA</version>
36
            <scope>provided</scope>
37
        </dependency>
38
        <dependency>
39
            <groupId>org.hibernate</groupId>
40
            <artifactId>hibernate-entitymanager</artifactId>
41
            <version>3.4.0.GA</version>
42
            <scope>provided</scope>
43
        </dependency>
44
45
        <!-- persistence -->
46
        <dependency>
47
            <groupId>javax.persistence</groupId>
48
            <artifactId>persistence-api</artifactId>
49
            <version>1.0</version>
50
            <scope>provided</scope>
51
        </dependency>
52
53
        <!-- EJB3 -->
54
        <dependency>
55
            <groupId>javax.ejb</groupId>
56
            <artifactId>ejb-api</artifactId>
57
            <version>3.0</version>
58
            <scope>provided</scope>
59
        </dependency>
60
        <dependency>
61
            <groupId>jboss</groupId>
62
            <artifactId>jboss-annotations-ejb3</artifactId>
63
            <version>4.2.2.GA</version>
64
            <scope>provided</scope>
65
        </dependency>
66
67
        <dependency>
68
            <groupId>javax.mail</groupId>
69
            <artifactId>mail</artifactId>
70
            <version>1.4</version>
71
            <scope>provided</scope>
72
        </dependency>
73
74
        <dependency>
75
            <groupId>joda-time</groupId>
76
            <artifactId>joda-time</artifactId>
77
            <version>1.6</version>
78
            <scope>provided</scope>
79
        </dependency>
80
81
        <dependency>
82
            <groupId>joda-time</groupId>
83
            <artifactId>joda-time-hibernate</artifactId>
84
            <version>1.0</version>
85
            <scope>provided</scope>
86
        </dependency>
87
88
        <dependency>
89
            <groupId>org.testng</groupId>
90
            <artifactId>testng</artifactId>
91
            <version>5.12.1</version>
92
            <scope>test</scope>
93
        </dependency>
94
95
        <dependency>
96
            <groupId>com.intellij</groupId>
97
            <artifactId>annotations</artifactId>
98
            <version>9.0.4</version>
99
            <scope>compile</scope>
100
        </dependency>
101
    </dependencies>
102
103
    <profiles>
104
        <profile>
105
            <id>Deploy2JBoss</id>
106
            <build>
107
                <plugins>
108
                    <plugin>
109
                        <artifactId>maven-jar-plugin</artifactId>
110
                        <executions>
111
                            <execution>
112
                                <id>Deploy jar</id>
113
                                <phase>install</phase>
114
                                <goals>
115
                                    <goal>jar</goal>
116
                                </goals>
117
                                <configuration>
118
                                    <outputDirectory>${jboss.config.path}/deploy</outputDirectory>
119
                                    <finalName>wannatrak-middleware</finalName>
120
                                </configuration>
121
                            </execution>
122
                        </executions>
123
                    </plugin>
124
                </plugins>
125
            </build>
126
        </profile>
127
    </profiles>
128
129
    <build>
130
        <plugins>
131
            <plugin>
132
                <groupId>org.apache.maven.plugins</groupId>
133
                <artifactId>maven-compiler-plugin</artifactId>
134
                <configuration>
135
                    <encoding>UTF-8</encoding>
136
                </configuration>
137
            </plugin>
138
            <plugin>
139
                <groupId>org.apache.maven.plugins</groupId>
140
                <artifactId>maven-resources-plugin</artifactId>
141
                <configuration>
142
                    <encoding>UTF-8</encoding>
143
                </configuration>
144
            </plugin>
145
            <plugin>
146
                <groupId>org.apache.maven.plugins</groupId>
147
                <artifactId>maven-ejb-plugin</artifactId>
148
                <configuration>
149
                    <ejbVersion>3.0</ejbVersion>
150
                </configuration>
151
            </plugin>
152
        </plugins>
153
    </build>
154
</project>