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

annotations, java_tmp_dir, java_tmp_dir, test, test, utf-8, utf-8, web-inf, web-inf/classes, webapp, webapp

The Jetty pom.xml source code

<?xml version="1.0" encoding="UTF-8"?>
  <parent>
    <artifactId>project
    <groupId>org.mortbay.jetty
    <version>6.1.9
    <relativePath>../../pom.xml
  </parent>
  <modelVersion>4.0.0
  <groupId>org.mortbay.jetty
  <artifactId>jetty-test-annotations
  <packaging>war
  <name>Jetty Annotations Test Webapp
  <url>http://jetty.mortbay.org
  <build>
    <defaultGoal>install
    <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="../../contexts/">
                    <include name="test-annotations.d/**"/>
                    <include name="test-annotations.xml"/>
                  </fileset>
                </delete>
              </tasks>
            </configuration>
          </execution>
          <execution>
            <id>mkconfig
            <phase>process-sources
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <filter filtersfile="src/templates/filter.properties"/>
                <filter token="JAVA_TMP_DIR" value="${java.io.tmpdir}"/>
                <copy file="src/templates/annotations-context.xml" todir="target/config" filtering="true" overwrite="true"/>
                <copy file="src/templates/jetty-env.xml" todir="target/${project.artifactId}-${project.version}/WEB-INF" filtering="true" overwrite="true"/>
                
                <copy file="src/templates/jta.properties" todir="target/${project.artifactId}-${project.version}/WEB-INF/classes" filtering="true" overwrite="true"/>
              </tasks>
            </configuration>
          </execution>
          <execution>
            <id>install
            <phase>install
            <goals>
              <goal>run
            </goals>
            <configuration>
              <tasks>
                <unjar src="target/${project.artifactId}-${project.version}.${project.packaging}" dest="../../contexts/test-annotations.d/">
                <copy file="target/config/annotations-context.xml" tofile="../../contexts/test-annotations.xml" overwrite="true"/>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.mortbay.jetty
        <artifactId>maven-jetty-plugin
        <version>${project.version}
        <configuration>
          <scanIntervalSeconds>10
          <useTestClasspath>true
          <jettyEnvXml>src/templates/jetty-plugin-env.xml
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>geronimo-spec
      <artifactId>geronimo-spec-jta
      <scope>provided
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jetty
      <version>${project.version}
      <scope>provided
    </dependency>
    <dependency>
      <groupId>javax.mail
      <artifactId>mail
      <scope>provided
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs
      <artifactId>geronimo-annotation_1.0_spec
      <version>1.0
      <scope>provided
    </dependency>
  </dependencies>
</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.