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

copy, copy, dir, jpackage, jpackage, make, rpm, snapshots, snapshots, source, source, src-rpm, version

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"> 
  <modelVersion>4.0.0
  <groupId>org.mortbay.jetty
  <artifactId>rpms
  <version>6.1
  <name>Jetty SRC-RPM
  <packaging>pom
  
  <repositories>
    <repository>
      <id>Codehaus Snapshots
      <url>http://snapshots.repository.codehaus.org/
      <snapshots>
        <enabled>true
      </snapshots>
      <releases>
        <enabled>false
      </releases>
    </repository>
  </repositories>
  
  <pluginRepositories>
    <pluginRepository>
      <id>Codehaus Snapshots
      <url>http://snapshots.repository.codehaus.org/
      <snapshots>
        <enabled>true
      </snapshots>
      <releases>
        <enabled>false
      </releases>
    </pluginRepository>
    
  </pluginRepositories>

  <build>
    <defaultGoal>install
        <plugins>
            <plugin>
                <artifactId>maven-antrun-plugin
                <executions>
                  <execution>
                    <id>genarate-rpm-sources
                    <phase>generate-sources
                    <goals>
                      <goal>run
                    </goals>
                    <configuration>
                      <tasks>
                      
                        <!-- Make JPackage RPM Source Dir -->
                        <mkdir dir="${project.build.directory}/rpm"/>
                        <mkdir dir="${project.build.directory}/rpm/BUILD"/>
                        <mkdir dir="${project.build.directory}/rpm/RPMS"/>
                        <mkdir dir="${project.build.directory}/rpm/RPMS/i386"/>
                        <mkdir dir="${project.build.directory}/rpm/RPMS/i586"/>
                        <mkdir dir="${project.build.directory}/rpm/RPMS/noarch"/>
                        <mkdir dir="${project.build.directory}/rpm/SOURCES"/>
                        <mkdir dir="${project.build.directory}/rpm/SPECS"/>
                        <mkdir dir="${project.build.directory}/rpm/SRPMS"/>
                        <mkdir dir="${project.build.directory}/rpm/tmp"/>
                        
                        
                        
                        <!-- Copy .rpmmacros -->
                        <copy file="src/rpmmacros" tofile="${project.build.directory}/.rpmmacros"/>
                        
                        <!-- Copy files -->
                        <copy file="src/jetty6.spec" todir="${project.build.directory}/rpm/SPECS"/>
                        <copy file="src/jetty6-settings.xml" todir="${project.build.directory}/rpm/SOURCES"/>
                        <copy file="src/jetty6-jpp-depmap.xml" todir="${project.build.directory}/rpm/SOURCES"/>
                        <copy file="src/start.config" todir="${project.build.directory}/rpm/SOURCES"/>
                        <copy file="src/jetty.conf" todir="${project.build.directory}/rpm/SOURCES"/>
                        <copy file="src/jetty6.patch" todir="${project.build.directory}/rpm/SOURCES"/>

			<!-- set version -->
                        <replace file="${project.build.directory}/rpm/SPECS/jetty6.spec" token="@@@VERSION@@@" value="${project.version}"/>
                        
                        <!-- zip source code -->
                        <ant antfile="anttasks.xml" target="zip-if-not-found">
                            <property name="project.build.directory" value="${project.build.directory}" />
                            <property name="project.groupId" value="${project.groupId}" />
                            <property name="project.artifactId" value="${project.artifactId}" />
                            <property name="project.version" value="${project.version}" />
                        </ant>
                        
                      </tasks>
                    </configuration>
                  </execution>	
                  
                  <execution>
                    <id>tar-gz
                    <phase>install
                    <goals>
                      <goal>run
                    </goals>
                    <configuration>
                      <tasks>
                        <tar 
                            tarfile="${project.build.directory}/jetty-source-rpm.tar" 
                            basedir="${project.build.directory}"
                            excludes="jetty-source-rpm.tar, jetty-source-rpm.tar.gz"
                        />
                        <gzip 
                            zipfile="${project.build.directory}/jetty-source-rpm.tar.gz" 
                            src="${project.build.directory}/jetty-source-rpm.tar"
                        />
                        
                      </tasks>
                    </configuration>
                  </execution>	
                  
                </executions>
            </plugin>
            
    </plugins>
  </build>
  
  
    
  
</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.