|
Jetty example source code file (pom.xml)
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
<groupId>org.mortbay.jetty
<artifactId>jetty-naming
<name>Jetty Naming
<description>JNDI spi impl for java namespace
<url>http://jetty.mortbay.org
<build>
<defaultGoal>install
<resources>
<resource>
<directory>src/main/resources
<includes>
<include>**
</includes>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources
<includes>
<include>**
</includes>
</testResource>
</testResources>
<plugins>
<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" includes="naming/**" />
</delete>
</tasks>
</configuration>
</execution>
<execution>
<phase>install
<goals>
<goal>run
</goals>
<configuration>
<tasks>
<copy file="target/${project.artifactId}-${project.version}.${project.packaging}" tofile="../../lib/naming/${project.artifactId}-${project.version}.${project.packaging}" />
</tasks>
</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-RequiredExcutionEnvironment>J2SE-1.4
<Import-Package>!org.mortbay.naming.*,*
<Bundle-SymbolicName>org.mortbay.naming
<Bundle-DocURL>http://jetty.mortbay.org
</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>
<plugin>
<groupId>org.codehaus.mojo
<artifactId>dependency-maven-plugin
<executions>
<execution>
<id>copy-deps
<phase>install
<goals>
<goal>copy
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>javax.mail
<artifactId>mail
<version>${mail-version}
</artifactItem>
</artifactItems>
<outputDirectory>../../lib/naming
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit
<artifactId>junit
<scope>test
</dependency>
<dependency>
<groupId>org.mortbay.jetty
<artifactId>jetty
<version>${project.version}
<scope>provided
</dependency>
<dependency>
<groupId>javax.mail
<artifactId>mail
<version>${mail-version}
<exclusions>
<exclusion>
<groupId>javax.activation
<artifactId>activation
</exclusion>
</exclusions>
</dependency>
</dependencies>
<profiles>
<profile>
<id>below-jdk1.6
<activation>
<jdk>!1.6
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo
<artifactId>dependency-maven-plugin
<executions>
<execution>
<id>copy-deps-below1.6
<phase>install
<goals>
<goal>copy
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>javax.activation
<artifactId>activation
<version>${activation-version}
</artifactItem>
</artifactItems>
<outputDirectory>../../lib/naming
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.activation
<artifactId>activation
<version>${activation-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: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 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.