alvinalexander.com | 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

headers, headers, linux, linux, setuid, setuid

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-setuid
    <name>Jetty SetUID
    <url>http://jetty.mortbay.org
    <packaging>pom

    <build>
        <defaultGoal>install
        <plugins>
            <plugin>
                <artifactId>maven-antrun-plugin
                <executions>
                    <execution>
                        <id>clean
                        <phase>clean
                        <goals>
                            <goal>run
                        </goals>
                        <configuration>
                            <tasks>
                                <delete failonerror="false" file="../../lib/ext/jetty-setuid-${project.version}.jar"/>
                                <delete failonerror="false" file="../../lib/ext/libsetuid.so"/>
                                <delete failonerror="false" file="../../etc/jetty-setuid.xml"/>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>


    <profiles>

        <profile>
            <id>env-linux
            <activation>
                <os>
                    <name>Linux
                </os>
            </activation>
            <modules>
                <module>modules/java
                <module>modules/native
            </modules>
            <properties>
                <jetty-setuid-linkerStartOption>-shared -lc -ldl
                <jetty-setuid-linkerEndOption>target/libsetuid.so
            </properties>
        </profile>


        <profile>
            <id>env-SunOs
            <activation>
                <os>
                    <name>SunOS
                </os>
            </activation>
            <modules>
                <module>modules/java
                <module>modules/native
            </modules>
            <properties>
                <jetty-setuid-linkerStartOption>-lc -ldl
                <jetty-setuid-linkerEndOption>target/libsetuid.so
            </properties>
        </profile>

         <profile>
            <id>env-unix
            <activation>
                <os>
                    <family>unix
                    <name>!Linux
                </os>
            </activation>
            <modules>
                <module>modules/java
                <module>modules/native
            </modules>
            <properties>
                <jetty-setuid-linkerStartOption>-lc -ldl
                <jetty-setuid-linkerEndOption>target/libsetuid.so
            </properties>
        </profile>

        <profile>
            <id>env-mac
            <activation>
                <os>
                    <family>mac
                </os>
            </activation>
            <modules>
                <module>modules/java
                <module>modules/native
            </modules>
            <properties>
                <jetty-setuid-linkerStartOption>-lc -ldl -dynamiclib -undefined dynamic_lookup -single_module
                <jetty-setuid-linkerEndOption>target/libsetuid.so
            </properties>
            <build>
              <pluginManagement>
                <plugins>
                  <plugin>
                    <groupId>org.codehaus.mojo
                    <artifactId>native-maven-plugin
                    <configuration>
                      <javahOS>mac
                      <jdkIncludePath>${java.home}/../Headers
                    </configuration>
                  </plugin>
                </plugins>
              </pluginManagement>
            </build>
        </profile>

        <profile>
            <id>env-dos
            <activation>
              <os>
                 <family>dos
              </os>
            </activation>
            <modules>
            </modules>
         </profile>

        <profile>
            <id>env-windows
            <activation>
              <os>
                 <family>windows
              </os>
            </activation>
            <modules>
            </modules>
         </profile>

        <profile>
            <id>env-windows
            <activation>
              <os>
                 <family>win9x
              </os>
            </activation>
            <modules>
            </modules>
         </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

 

new blog posts

 

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.