|
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-test <packaging>war <name>Jetty Test Webapp <url>http://jetty.mortbay.org <build> <defaultGoal>install <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="../../webapps/test/" includes="**" /> </delete> <delete failonerror="false" includeemptydirs="true"> <fileset dir="../../contexts/test.d/" includes="**" /> </delete> <delete failonerror="false" file="../../contexts/test.xml"/> </tasks> </configuration> </execution> <execution> <phase>install <goals> <goal>run </goals> <configuration> <tasks> <delete quiet="true" dir="../../webapps/test/" /> <copy failonerror="false" todir="../../webapps/test" > <fileset dir="target/${project.artifactId}-${project.version}" includes="**" /> </copy> <copy failonerror="false" todir="../../contexts"> <fileset dir="src/main/configuration" includes="**" /> </copy> <chmod dir="../../webapps/test/cgi-bin" perm="ugo+rx" includes="**/*.sh" /> <touch file="../../contexts/test.xml" mkdirs="true"/> </tasks> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins <artifactId>maven-surefire-plugin <executions> <execution> <id>test <phase>test </execution> </executions> <configuration> <excludes> <exclude>**/WebAppTest.java </excludes> </configuration> </plugin> <plugin> <groupId>org.mortbay.jetty <artifactId>maven-jetty-plugin <version>${project.version} <configuration> <stopPort>8087 <stopKey>foo <scanIntervalSeconds>1 <!-- contextPath>/test <webAppConfig> <contextPath>/test <tempDirectory>${project.build.directory}/work <sessionHandler implementation="org.mortbay.jetty.servlet.SessionHandler"> <sessionManager implementation="org.mortbay.jetty.servlet.HashSessionManager"> <storeDirectory>${basedir}/target/sessions <!-- savePeriod>5 </sessionManager> </sessionHandler> </webAppConfig> <userRealms> <userRealm implementation="org.mortbay.jetty.security.HashUserRealm"> <name>Test Realm <config>../../etc/realm.properties </userRealm> </userRealms> </configuration> </plugin> <!-- uncomment to precompile jsps --> <!-- plugin> <groupId>org.mortbay.jetty <artifactId>maven-jetty-jspc-plugin <version>${project.version} <executions> <execution> <id>jspc <goals> <goal>jspc </goals> <configuration> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins <artifactId>maven-war-plugin <configuration> <webXml>${basedir}/target/web.xml </configuration> </plugin --> </plugins> </build> <dependencies> <dependency> <groupId>org.mortbay.jetty <artifactId>jetty-util <version>${project.version} <scope>provided </dependency> <dependency> <groupId>org.mortbay.jetty <artifactId>servlet-api-2.5 <version>${project.version} <scope>provided </dependency> <dependency> <groupId>org.mortbay.jetty <artifactId>jsp-api-2.1 <version>${project.version} <scope>provided </dependency> <dependency> <groupId>junit <artifactId>junit <scope>test </dependency> <dependency> <groupId>org.mortbay.jetty <artifactId>jetty <version>${project.version} <scope>test </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: |
... 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.