Rev 16 | Rev 47 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16 | soliveira | 1 | <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"> |
2 | <modelVersion>4.0.0</modelVersion> |
||
3 | <groupId>org.mentawai</groupId> |
||
4 | <artifactId>mentaservice</artifactId> |
||
5 | <packaging>war</packaging> |
||
6 | <version>1.0.1-SNAPSHOT</version> |
||
7 | <name>Mentawai Reference Web Application with a Service Layer</name> |
||
8 | <url>http://www.mentaframework.org</url> |
||
9 | |||
10 | <scm> |
||
11 | <connection>scm:svn:svn://soliveirajr.com/mentaservice/trunk</connection> |
||
12 | <developerConnection>scm:svn:svn://soliveirajr.com/mentaservice/trunk</developerConnection> |
||
13 | <url>svn://soliveirajr.com/mentaservice/trunk</url> |
||
14 | </scm> |
||
15 | |||
16 | <dependencies> |
||
17 | |||
18 | <dependency> |
||
19 | <groupId>javax.servlet.jsp</groupId> |
||
20 | <artifactId>jsp-api</artifactId> |
||
21 | <version>2.0</version> |
||
22 | <scope>provided</scope> |
||
23 | </dependency> |
||
24 | |||
25 | <dependency> |
||
26 | <groupId>javax.servlet</groupId> |
||
27 | <artifactId>servlet-api</artifactId> |
||
28 | <version>2.5</version> |
||
29 | <scope>provided</scope> |
||
30 | </dependency> |
||
31 | |||
32 | <dependency> |
||
33 | <groupId>junit</groupId> |
||
34 | <artifactId>junit</artifactId> |
||
35 | <version>4.8.1</version> |
||
36 | <scope>test</scope> |
||
37 | </dependency> |
||
38 | |||
39 | <dependency> |
||
40 | <groupId>com.h2database</groupId> |
||
41 | <artifactId>h2</artifactId> |
||
42 | <version>1.2.138</version> |
||
43 | </dependency> |
||
44 | |||
45 | <dependency> |
||
46 | <groupId>me.soliveirajr</groupId> |
||
47 | <artifactId>mentawai</artifactId> |
||
38 | soliveira | 48 | <version>2.5.2</version> |
16 | soliveira | 49 | </dependency> |
50 | |||
51 | </dependencies> |
||
52 | |||
53 | <build> |
||
54 | <plugins> |
||
55 | |||
56 | |||
57 | <plugin> |
||
58 | <groupId>org.mortbay.jetty</groupId> |
||
59 | <artifactId>jetty-maven-plugin</artifactId> |
||
60 | <version>7.1.0.v20100505</version> |
||
61 | <configuration> |
||
62 | <webApp>${basedir}/target/${project.artifactId}.war</webApp> |
||
63 | <webAppConfig> |
||
64 | <contextPath>/${project.artifactId}</contextPath> |
||
65 | </webAppConfig> |
||
66 | <reload>manual</reload> |
||
67 | <connectors> |
||
68 | <connector implementation="org.eclipse.jetty.server.bio.SocketConnector"> |
||
69 | <port>8080</port> |
||
70 | </connector> |
||
71 | </connectors> |
||
72 | </configuration> |
||
73 | </plugin> |
||
74 | |||
75 | <plugin> |
||
76 | <groupId>org.apache.maven.plugins</groupId> |
||
77 | <artifactId>maven-compiler-plugin</artifactId> |
||
78 | <version>2.0.2</version> |
||
79 | <configuration> |
||
80 | <source>1.6</source> |
||
81 | <target>1.6</target> |
||
82 | </configuration> |
||
83 | </plugin> |
||
84 | <plugin> |
||
85 | <groupId>org.apache.maven.plugins</groupId> |
||
86 | <artifactId>maven-war-plugin</artifactId> |
||
87 | <version>2.1-beta-1</version> |
||
88 | <configuration> |
||
89 | <webResources> |
||
90 | <resource> |
||
91 | <directory>${project.build.sourceDirectory}</directory> |
||
92 | <targetPath>WEB-INF/sources</targetPath> |
||
93 | </resource> |
||
94 | </webResources> |
||
95 | <failOnMissingWebXml>true</failOnMissingWebXml> |
||
96 | </configuration> |
||
97 | </plugin> |
||
98 | </plugins> |
||
99 | <finalName>mentaservice</finalName> |
||
100 | <pluginManagement> |
||
101 | <plugins> |
||
102 | <plugin> |
||
103 | <artifactId>maven-antrun-plugin</artifactId> |
||
104 | <version>1.3</version> |
||
105 | </plugin> |
||
106 | <plugin> |
||
107 | <artifactId>maven-assembly-plugin</artifactId> |
||
108 | <version>2.2-beta-5</version> |
||
109 | </plugin> |
||
110 | <plugin> |
||
111 | <artifactId>maven-dependency-plugin</artifactId> |
||
112 | <version>2.1</version> |
||
113 | </plugin> |
||
114 | <plugin> |
||
115 | <artifactId>maven-release-plugin</artifactId> |
||
116 | <version>2.0</version> |
||
117 | <configuration> |
||
118 | <mavenExecutorId>forked-path</mavenExecutorId> |
||
119 | </configuration> |
||
120 | </plugin> |
||
121 | </plugins> |
||
122 | </pluginManagement> |
||
123 | |||
124 | </build> |
||
125 | <profiles> |
||
126 | <profile> |
||
127 | <id>endorsed</id> |
||
128 | <activation> |
||
129 | <property> |
||
130 | <name>sun.boot.class.path</name> |
||
131 | </property> |
||
132 | </activation> |
||
133 | <build> |
||
134 | <plugins> |
||
135 | |||
136 | <plugin> |
||
137 | <artifactId>maven-clean-plugin</artifactId> |
||
138 | <version>2.2</version> |
||
139 | <configuration> |
||
140 | <filesets> |
||
141 | <fileset> |
||
142 | <directory>.</directory> |
||
143 | <includes> |
||
144 | <include>MentaTest.h2.db</include> |
||
145 | <include>MentaTest.trace.db</include> |
||
146 | <include>MentaTest.lock.db</include> |
||
147 | </includes> |
||
148 | <followSymlinks>false</followSymlinks> |
||
149 | </fileset> |
||
150 | </filesets> |
||
151 | </configuration> |
||
152 | </plugin> |
||
153 | |||
154 | |||
155 | |||
156 | <plugin> |
||
157 | <groupId>org.apache.maven.plugins</groupId> |
||
158 | <artifactId>maven-compiler-plugin</artifactId> |
||
159 | <version>2.0.2</version> |
||
160 | <configuration> |
||
161 | <!-- javaee6 contains upgrades of APIs contained within the JDK itself. |
||
162 | As such these need to be placed on the bootclasspath, rather than classpath |
||
163 | of the compiler. If you don't make use of these new updated API, you can |
||
164 | delete the profile. On non-SUN jdk, you will need to create a similar profile |
||
165 | for your jdk, with the similar property as sun.boot.class.path in Sun's JDK. --> |
||
166 | <compilerArguments> |
||
167 | <bootclasspath>${settings.localRepository}/javax/javaee-endorsed-api/6.0/javaee-endorsed-api-6.0.jar${path.separator}${sun.boot.class.path}</bootclasspath> |
||
168 | </compilerArguments> |
||
169 | </configuration> |
||
170 | <dependencies> |
||
171 | <dependency> |
||
172 | <groupId>javax</groupId> |
||
173 | <artifactId>javaee-endorsed-api</artifactId> |
||
174 | <version>6.0</version> |
||
175 | </dependency> |
||
176 | </dependencies> |
||
177 | </plugin> |
||
178 | </plugins> |
||
179 | </build> |
||
180 | </profile> |
||
181 | </profiles> |
||
182 | |||
183 | </project> |
||
184 |