POM文件内容: |
<?xml version="1.0" encoding="UTF-8"?><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">
<parent>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-jsp</artifactId>
<version>2.1.v20100127</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jsp-2.1-glassfish</artifactId>
<name>Glassfish :: Jasper JSP 2.1</name>
<description>JSP2.1 Jasper implementation from Glassfish</description>
<licenses>
<license>
<name>CDDL 1.0</name>
<url>https://glassfish.dev.java.net/public/CDDLv1.0.html</url>
</license>
</licenses>
<build>
<defaultGoal>install</defaultGoal>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>target/generated-sources/main/resources</directory>
<includes>
<include>**/**</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<compilerArgument>-nowarn </compilerArgument>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>export</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant antfile="checkout.xml" target="extract-src">
<property name="glassfish.tag" value="${glassfish-tag-version}" />
</ant>
</tasks>
<sourceRoot>target/generated-sources/main/java</sourceRoot>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-patch-plugin</artifactId>
<version>1.0</version>
<configuration>
<targetDirectory>${project.build.directory}/generated-sources/main/java</targetDirectory>
<skipApplication>false</skipApplication>
</configuration>
<executions>
<execution>
<id>bugfix-patches</id>
<configuration>
<patchDirectory>${basedir}/src/main/patches</patchDirectory>
<naturalOrderProcessing>true</naturalOrderProcessing>
</configuration>
<phase>process-sources</phase>
<goals>
<goal>apply</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<instructions>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
<Import-Package>com.sun.org.apache.xalan*;resolution:=optional,com.sun.org.apache.xml*;resolution:=optional,com.sun.org.apache.xpath*;resolution:=optional,org.apache.tools.ant*;resolution:=optional,org.eclipse.jdt*;resolution:=optional,sun.*;resolution:=optional,!com.sun.org.apache.commons*,!com.sun.appserv.*,!com.sun.common.util.*,!com.sun.el.*,!com.sun.enterprise.web.*,!com.sun.org.apache.commons.*,!org.apache.jasper.*,*</Import-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!--
Required for OSGI
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<version>${eclipse-compiler-version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jsp-api-2.1-glassfish</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<eclipse-compiler-version>3.5.1</eclipse-compiler-version>
</properties>
</project>
|