root/blogbird/pom.xml

Revision 252:36a778232678, 6.6 KB (checked in by dcaoyuan, 5 months ago)

test scala-2.8.0 snapshot

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<project xmlns="http://maven.apache.org/POM/4.0.0" 
4         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
6
7    <modelVersion>4.0.0</modelVersion>
8
9    <groupId>org.aiotrade</groupId>
10    <artifactId>blogbird</artifactId>
11    <version>1.0</version>
12    <packaging>war</packaging>
13    <name>Blogbird - a personal blog engine</name>
14
15    <properties>
16        <scala.version>2.8.0-SNAPSHOT</scala.version>
17        <jetty-version>7.0.1.v20091125</jetty-version>
18        <jetty-maven-plugin-version>${jetty-version}</jetty-maven-plugin-version>
19    </properties>
20
21    <repositories>
22        <repository>
23            <id>scala-tools.release</id>
24            <name>Scala-Tools Release Repository</name>
25            <url>http://scala-tools.org/repo-releases</url>
26        </repository>
27        <repository>
28            <id>scala-tools.snapshot</id>
29            <name>Scala-Tools Snapshot Repository</name>
30            <url>http://scala-tools.org/repo-snapshots</url>
31        </repository>
32    </repositories>
33
34    <pluginRepositories>
35        <pluginRepository>
36            <id>scala-tools.org</id>
37            <name>Scala-Tools Maven2 Repository</name>
38            <url>http://scala-tools.org/repo-releases</url>
39        </pluginRepository>
40
41        <pluginRepository>
42            <id>jetty.releases</id>
43            <name>Jetty Maven2 Release Repository</name>
44            <url>http://oss.sonatype.org/content/repositories/jetty-releases</url>
45        </pluginRepository>
46    </pluginRepositories>
47
48    <dependencies>
49        <!-- scala -->
50        <dependency>
51            <groupId>org.scala-lang</groupId>
52            <artifactId>scala-library</artifactId>
53            <version>${scala.version}</version>
54        </dependency>
55        <dependency>
56            <groupId>org.scala-lang</groupId>
57            <artifactId>scala-swing</artifactId>
58            <version>${scala.version}</version>
59        </dependency>
60
61        <!-- servlet - used to write servlet -->
62        <dependency>
63            <groupId>javax.servlet</groupId>
64            <artifactId>servlet-api</artifactId>
65            <version>2.5</version>
66        </dependency>
67
68        <!-- testing -->
69        <dependency>
70            <groupId>junit</groupId>
71            <artifactId>junit</artifactId>
72            <version>4.4</version>
73            <scope>test</scope>
74        </dependency>
75        <dependency>
76            <groupId>org.specs</groupId>
77            <artifactId>specs</artifactId>
78            <version>1.2.5</version>
79            <scope>test</scope>
80        </dependency>
81    </dependencies>
82
83    <build>
84        <finalName>blogbird</finalName>
85
86        <plugins>
87            <!-- begin scala plugins -->
88            <plugin>
89                <groupId>org.scala-tools</groupId>
90                <artifactId>maven-scala-plugin</artifactId>
91                <executions>
92                    <execution>
93                        <goals>
94                            <goal>compile</goal>
95                            <goal>testCompile</goal>
96                        </goals>
97                    </execution>
98                </executions>
99                <configuration>
100                    <jvmArgs>
101                        <jvmArg>-Xms64m</jvmArg>
102                        <jvmArg>-Xmx1024m</jvmArg>
103                    </jvmArgs>
104                    <scalaVersion>${scala.version}</scalaVersion>
105                    <args>
106                        <arg>-target:jvm-1.5</arg>
107                        <arg>-make:transitivenocp</arg>
108                        <arg>-dependencyfile</arg>
109                        <arg>${project.build.directory}/.scala_dependencies</arg>
110                    </args>
111                </configuration>
112            </plugin>
113
114            <plugin>
115                <groupId>org.apache.maven.plugins</groupId>
116                <artifactId>maven-compiler-plugin</artifactId>
117                <configuration>
118                    <source>1.5</source>
119                    <target>1.5</target>
120                </configuration>
121            </plugin>
122            <!-- end scala plugins -->
123
124            <!-- begin jetty web app plugins, it is used for local test only -->
125            <plugin>
126                <groupId>org.mortbay.jetty</groupId>
127                <artifactId>jetty-maven-plugin</artifactId>
128                <version>${jetty-version}</version>
129                <configuration>
130                    <scanIntervalSeconds>0</scanIntervalSeconds>
131                    <stopPort>9966</stopPort>
132                    <stopKey>blogbird</stopKey>
133
134                    <webAppConfig>
135                        <contextPath>/</contextPath>
136                        <tempDirectory>${project.build.directory}/work</tempDirectory>
137                        <defaultsDescriptor>src/main/resources/jetty/etc/webdefault.xml</defaultsDescriptor>
138                        <overrideDescriptor>src/main/resources/jetty/contexts/blogbird.xml</overrideDescriptor>
139                    </webAppConfig>
140
141                    <!-- configure the container -->
142                    <connectors>
143                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
144                            <port>8080</port>
145                            <maxIdleTime>60000</maxIdleTime>
146                        </connector>
147                    </connectors>
148                    <requestLog implementation="org.eclipse.jetty.server.NCSARequestLog">
149                        <filename>${project.build.directory}/yyyy_mm_dd.request.log</filename>
150                        <retainDays>90</retainDays>
151                        <append>true</append>
152                        <extended>false</extended>
153                        <logTimeZone>GMT</logTimeZone>
154                    </requestLog>
155                </configuration>
156            </plugin>
157           
158            <plugin>
159                <groupId>org.apache.maven.plugins</groupId>
160                <artifactId>maven-war-plugin</artifactId>
161                <configuration>
162                    <failOnMissingWebXml>false</failOnMissingWebXml>
163                </configuration>
164            </plugin>
165            <!-- end jetty web app plugins -->
166        </plugins>
167    </build>
168
169    <reporting>
170        <plugins>
171            <plugin>
172                <groupId>org.scala-tools</groupId>
173                <artifactId>maven-scala-plugin</artifactId>
174                <configuration>
175                    <scalaVersion>${scala.version}</scalaVersion>
176                </configuration>
177            </plugin>
178        </plugins>
179    </reporting>
180
181</project>
Note: See TracBrowser for help on using the browser.