|
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>jetty-setuid
<groupId>org.mortbay.jetty
<version>6.1.9
<relativePath>../../pom.xml
</parent>
<modelVersion>4.0.0
<groupId>org.mortbay.jetty
<artifactId>libsetuid
<name>Jetty SetUID Native
<url>http://jetty.mortbay.org
<packaging>so
<build>
<finalName>libsetuid
<defaultGoal>install
<plugins>
<plugin>
<artifactId>maven-antrun-plugin
<executions>
<execution>
<id>copy-jni-implementation
<phase>generate-sources
<goals>
<goal>run
</goals>
<configuration>
<tasks>
<copy failonerror="false"
file="src/main/native/org_mortbay_setuid_SetUID.c"
todir="target/generated"/>
</tasks>
</configuration>
</execution>
<execution>
<id>copy-native-library
<phase>package
<goals>
<goal>run
</goals>
<configuration>
<tasks>
<copy failonerror="false"
file="target/libsetuid.so"
todir="../../target"/>
<copy failonerror="false"
file="target/libsetuid.so"
todir="../../../../lib/ext"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo
<artifactId>native-maven-plugin
<extensions>true
<dependencies>
<dependency>
<groupId>org.mortbay.jetty
<artifactId>jetty-setuid-java
<version>${project.version}
</dependency>
</dependencies>
<configuration>
<javahOS>linux
<compilerStartOptions>
<compilerStartOption>-fPIC -O
</compilerStartOptions>
<sources>
<source>
<directory>target/generated
<fileNames>
<fileName>org_mortbay_setuid_SetUID.c
</fileNames>
</source>
</sources>
<linkerStartOptions>
<linkerStartOption>${jetty-setuid-linkerStartOption}
</linkerStartOptions>
<linkerEndOptions>
<linkerEndOptions>-o
${project.build.directory}/libsetuid.so</linkerEndOptions>
</linkerEndOptions>
</configuration>
<executions>
<execution>
<id>javah
<phase>generate-sources
<configuration>
<classNames>
<className>org.mortbay.setuid.SetUID
</classNames>
<outputDirectory>target/generated
</configuration>
<goals>
<goal>javah
</goals>
</execution>
<execution>
<id>compile
<phase>compile
<goals>
<goal>compile
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.mortbay.jetty
<artifactId>jetty-setuid-java
<version>${project.version}
</dependency>
<dependency>
<groupId>junit
<artifactId>junit
<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.