home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Jetty example source code file (pom.xml)

This example Jetty source code file (pom.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Jetty tags/keywords

glassfish, glassfish, import-package, import-package, jasper, jasper

The Jetty pom.xml source code

<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>
    <artifactId>project
    <groupId>org.mortbay.jetty
    <version>6.1.9
    <relativePath>../../pom.xml
  </parent>
  <modelVersion>4.0.0
  <artifactId>jsp-2.1
  <name>Glassfish Jasper
  <description>JSP2.1 Jasper implementation from Glassfish
  <licenses>
    <license>
      <name>CDDL 1.0
      <url>https://glassfish.dev.java.net/public/CDDLv1.0.html
    </license>
  </licenses>
  <build>
    <defaultGoal>install
    <resources>
      <resource>
        <directory>src/main/resources
      </resource>
      <resource>
        <directory>target/generated-sources/main/resources
        <includes>
          <includes>**/**
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin
        <configuration>
          <source>1.5
          <target>1.5
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin
        <executions>
          <execution>
            <id>clean
            <phase>clean
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <delete failonerror="false" includeemptydirs="true">
                  <fileset dir="../../lib/jsp-2.1/">
                    <include name="ant-${ant-version}.jar" />
                    <include name="${project.artifactId}.jar" />
                    <include name="core-${eclipse-compiler-version}.jar" />
                  </fileset>
                </delete>
              </tasks>
            </configuration>
          </execution>
          <execution>
            <id>export
            <phase>generate-sources
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <ant antfile="checkout.xml" target="extract-src">
                  <property name="glassfish.tag" value="${glassfish.version.tag}" />
                </ant>
              </tasks>
              <sourceRoot>${project.build.directory}/generated-sources/main/java
            </configuration>
          </execution>
          <execution>
            <id>copyjar
            <phase>install
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <copy failonerror="false" file="target/${project.artifactId}-${project.version}.${project.packaging}" tofile="../../lib/jsp-2.1/${project.artifactId}.${project.packaging}" />
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo
        <artifactId>dependency-maven-plugin
        <executions>
          <execution>
            <phase>install
            <goals>
              <goal>copy
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>ant
                  <artifactId>ant
                  <version>${ant-version}
                </artifactItem>
               <artifactItem>
                  <groupId>org.eclipse.jdt
                  <artifactId>core
                  <version>${eclipse-compiler-version}
                </artifactItem>
              </artifactItems>
              <outputDirectory>${basedir}/../../lib/jsp-2.1
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.felix
        <artifactId>maven-bundle-plugin
        <version>${maven-bundle-plugin-version}
        <extensions>true
        <executions>
          <execution>
            <goals>
              <goal>manifest
            </goals>
            <configuration>
              <instructions>
                <Bundle-RequiredExecutionEnvironment>J2SE-1.5
                <Import-Package>!com.sun.appserv.*,!com.sun.common.util.*,!com.sun.el.*,!com.sun.enterprise.web.*,!com.sun.org.apache.commons.*,!org.apache.jasper.*,*
              </instructions>
            </configuration>
           </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins
        <artifactId>maven-jar-plugin
        <version>${maven-jar-plugin-version}
        <configuration>
          <archive>
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.eclipse.jdt
      <artifactId>core
      <version>${eclipse-compiler-version}
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jetty-util
      <version>${project.version}
      <scope>provided
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jsp-api-2.1
      <version>${project.version}
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>servlet-api-2.5
      <version>${project.version}
      <scope>provided
    </dependency>
    <dependency>
      <groupId>ant
      <artifactId>ant
    </dependency>
  </dependencies>
  <properties>
     <glassfish.version.tag>SJSAS-9_1-B58G-FCS-08_Sept_2007
     <eclipse-compiler-version>3.1.1
  </properties>
</project>

Other Jetty examples (source code examples)

Here is a short list of links related to this Jetty pom.xml source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.