~ubuntu-branches/ubuntu/utopic/jetty/utopic-proposed

« back to all changes in this revision

Viewing changes to modules/jetty/pom.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2009-08-09 08:48:10 UTC
  • Revision ID: james.westby@ubuntu.com-20090809084810-k522b97ind2robyd
ImportĀ upstreamĀ versionĀ 6.1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
  <parent>
 
3
    <artifactId>project</artifactId>
 
4
    <groupId>org.mortbay.jetty</groupId>
 
5
    <version>6.1.19</version>
 
6
    <relativePath>../../pom.xml</relativePath>
 
7
  </parent>
 
8
  <modelVersion>4.0.0</modelVersion>
 
9
  <groupId>org.mortbay.jetty</groupId>
 
10
  <artifactId>jetty</artifactId>
 
11
  <name>Jetty Server</name>
 
12
  <description>Jetty server core</description>
 
13
  <build>
 
14
    <plugins>
 
15
      <plugin>
 
16
        <groupId>org.apache.maven.plugins</groupId>
 
17
        <artifactId>maven-dependency-plugin</artifactId>
 
18
        <executions>
 
19
          <execution>
 
20
            <id>copy-deps</id>
 
21
            <phase>install</phase>
 
22
            <goals>
 
23
              <goal>copy</goal>
 
24
            </goals>
 
25
            <configuration>
 
26
              <artifactItems>
 
27
                <artifactItem>
 
28
                  <groupId>org.mortbay.jetty</groupId>
 
29
                  <artifactId>servlet-api</artifactId>
 
30
                  <version>${servlet-version}</version>
 
31
                </artifactItem>
 
32
              </artifactItems>
 
33
              <outputDirectory>../../lib</outputDirectory>
 
34
            </configuration>
 
35
          </execution>
 
36
        </executions>
 
37
      </plugin>
 
38
      <plugin>
 
39
        <artifactId>maven-antrun-plugin</artifactId>
 
40
        <executions>
 
41
          <execution>
 
42
            <id>clean</id>
 
43
            <phase>clean</phase>
 
44
            <goals>
 
45
              <goal>run</goal>
 
46
            </goals>
 
47
            <configuration>
 
48
              <tasks>
 
49
                <delete includeemptydirs="true">
 
50
                  <fileset dir="../../lib/" includes="${project.artifactId}-${project.version}.${project.packaging}" />
 
51
                  <fileset dir="../../lib/" includes="servlet-api-${servlet-version}.jar" />
 
52
                  <fileset dir="../../etc/" >
 
53
                    <include name="webdefault.xml"/>
 
54
                    <include name="jetty.xml"/>
 
55
                    <include name="jetty-bio.xml"/>
 
56
                    <include name="jetty-ssl.xml"/>
 
57
                    <include name="keystore"/>
 
58
                    <include name="jetty-stats.xml"/>
 
59
                    <include name="jetty-xinetd.xml"/>
 
60
                    <include name="realm.properties"/>
 
61
                    <include name="jdbcRealm.properties"/>
 
62
                  </fileset>
 
63
                </delete>
 
64
              </tasks>
 
65
            </configuration>
 
66
          </execution>
 
67
          <execution>
 
68
            <id>copyjar</id>
 
69
            <phase>install</phase>
 
70
            <goals>
 
71
              <goal>run</goal>
 
72
            </goals>
 
73
            <configuration>
 
74
              <tasks>
 
75
                <copy failonerror="false" file="target/${project.artifactId}-${project.version}.${project.packaging}" tofile="../../lib/${project.artifactId}-${project.version}.${project.packaging}" />
 
76
                <copy failonerror="false" file="src/main/resources/org/mortbay/jetty/webapp/webdefault.xml" tofile="../../etc/webdefault.xml" />
 
77
                <copy failonerror="false" includeEmptyDirs="false" todir="../../etc">
 
78
                  <flattenmapper />
 
79
                  <fileset dir="src/main/config/etc">
 
80
                    <include name="jetty.xml"/>
 
81
                    <include name="jetty-bio.xml"/>
 
82
                    <include name="jetty-xinetd.xml"/>
 
83
                    <include name="jetty-ssl.xml"/>
 
84
                    <include name="keystore"/>
 
85
                    <include name="jetty-stats.xml"/>
 
86
                    <include name="realm.properties"/>
 
87
                    <include name="jdbcRealm.properties"/>
 
88
                  </fileset>
 
89
                </copy>
 
90
              </tasks>
 
91
            </configuration>
 
92
          </execution>
 
93
        </executions>
 
94
      </plugin>
 
95
      <plugin>
 
96
        <groupId>org.apache.felix</groupId>
 
97
        <artifactId>maven-bundle-plugin</artifactId>
 
98
        <version>${maven-bundle-plugin-version}</version>
 
99
        <extensions>true</extensions>
 
100
        <executions>
 
101
          <execution>
 
102
            <goals>
 
103
              <goal>manifest</goal>
 
104
            </goals>
 
105
            <configuration>
 
106
              <instructions>
 
107
                <Bundle-SymbolicName>org.mortbay.jetty.server</Bundle-SymbolicName>
 
108
                <Bundle-RequiredExecutionEnvironment>J2SE-1.4</Bundle-RequiredExecutionEnvironment>
 
109
                <Bundle-DocURL>http://jetty.mortbay.org</Bundle-DocURL>
 
110
                <Import-Package>!org.mortbay.jetty.*,!org.mortbay.xml.*,!org.mortbay.resource.*,!org.mortbay.io.*,!org.mortbay.servlet.jetty.*,javax.servlet.resources;resolution:=optional,javax.servlet.jsp;resolution:=optional,org.apache.jasper.servlet;resolution:=optional,org.mortbay.jetty.handler.management;resolution:=optional,*</Import-Package>
 
111
              </instructions>
 
112
            </configuration>
 
113
           </execution>
 
114
        </executions>
 
115
      </plugin>
 
116
      <plugin>
 
117
        <!--
 
118
        Required for OSGI
 
119
        -->
 
120
        <groupId>org.apache.maven.plugins</groupId>
 
121
        <artifactId>maven-jar-plugin</artifactId>
 
122
        <executions>
 
123
          <execution>
 
124
            <id>artifact-jar</id>
 
125
            <goals>
 
126
              <goal>jar</goal>
 
127
            </goals>
 
128
          </execution>
 
129
          <execution>
 
130
            <id>test-jar</id>
 
131
            <goals>
 
132
              <goal>test-jar</goal>
 
133
            </goals>
 
134
          </execution>
 
135
        </executions>
 
136
        <configuration>
 
137
          <archive>               
 
138
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
 
139
          </archive>
 
140
        </configuration>
 
141
      </plugin>
 
142
    </plugins>
 
143
  </build>
 
144
  <dependencies>
 
145
    <dependency>
 
146
      <groupId>junit</groupId>
 
147
      <artifactId>junit</artifactId>
 
148
      <scope>test</scope>
 
149
    </dependency>
 
150
    <dependency>
 
151
      <groupId>org.mortbay.jetty</groupId>
 
152
      <artifactId>jetty-util</artifactId>
 
153
      <version>${project.version}</version>
 
154
    </dependency>
 
155
    <dependency>
 
156
      <groupId>org.mortbay.jetty</groupId>
 
157
      <artifactId>servlet-api</artifactId>
 
158
      <version>${servlet-version}</version>
 
159
    </dependency>
 
160
  </dependencies>
 
161
</project>