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

bartel, bay, bay, consulting, consulting, default, jdk, jdk, jetty, plugin, plugin, use, utf-8

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>maven-jetty-plugin
  <packaging>maven-plugin
  <name>Maven Jetty Plugin
  <developers>
    <developer>
      <id>janb
      <name>Jan Bartel
      <email>janb@apache.org
      <organization>Mort Bay Consulting
      <organizationUrl>http://www.mortbay.com
    </developer>
  </developers>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin
        <configuration>
          <skip>true
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jetty
      <version>${project.version}
    </dependency>
    <dependency>
      <groupId>org.apache.maven
      <artifactId>maven-project
      <version>2.0.3
    </dependency>
    <dependency>
      <groupId>org.apache.maven
      <artifactId>maven-plugin-api
      <version>2.0.3
    </dependency>
    <dependency>
      <groupId>org.apache.maven
      <artifactId>maven-artifact
      <version>2.0.3
    </dependency>
    <dependency>
      <groupId>org.apache.maven
      <artifactId>maven-plugin-tools-api
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jetty-plus
      <version>${project.version}
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jetty-naming
      <version>${project.version}
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty
      <artifactId>jetty-management
      <version>${project.version}
    </dependency>
  </dependencies>
  <!-- reporting>
    <plugins>
      <plugin>
        <artifactId>maven-project-info-reports-plugin
        <reportSets>
          <reportSet>
            <reports>
              <report>project-team
              <report>mailing-list
              <report>issue-tracking
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting -->

  <profiles>
    <profile>
      <id>jdk1.4
      <!-- Default, use JSP-2.0 and use slf4j logging. -->
      <activation>
        <activeByDefault>true
      </activation>
      <dependencies>
        <dependency>
          <groupId>org.mortbay.jetty
          <artifactId>jsp-2.0
          <version>${project.version}
          <type>pom
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>jdk1.4-noslf4j
      <!-- Use JSP-2.0 but turn off slf4j by excluding the deps-->
      <activation>
        <property>slf4jfalse
      </activation>
      <dependencies>
        <dependency>
          <groupId>org.mortbay.jetty
          <artifactId>jsp-2.0
          <version>${project.version}
          <type>pom
          <exclusions>
            <exclusion>
              <groupId>org.slf4j
              <artifactId>slf4j-simple
            </exclusion>
           <exclusion>
             <groupId>org.slf4j
             <artifactId>jcl104-over-slf4j
           </exclusion>
          </exclusions>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>jdk1.5
      <!-- activated on JDK 5 and above -->
      <activation>
        <jdk>!1.4
      </activation>
      <dependencies>
        <dependency>
          <groupId>org.mortbay.jetty
          <artifactId>jsp-2.1
          <version>${project.version}
        </dependency>
        <dependency>
          <groupId>org.mortbay.jetty
          <artifactId>jetty-annotations
          <version>${project.version}
        </dependency>
        <dependency>
          <groupId>org.mortbay.jetty
          <artifactId>start
          <version>${project.version}
        </dependency>        
      </dependencies>
    </profile>
  </profiles>
</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.