initial setup for deb generation
This commit is contained in:
parent
a1d0efc2bb
commit
0a3e559ec6
|
@ -0,0 +1,78 @@
|
|||
<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</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.eclipse.jetty.dist</groupId>
|
||||
<artifactId>dist-parent</artifactId>
|
||||
<version>9.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>jetty-deb</artifactId>
|
||||
<name>Jetty :: Unix Distributions :: Debian</name>
|
||||
<packaging>deb</packaging>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.mortbay.jetty.toolchain</groupId>
|
||||
<artifactId>unix-maven-plugin</artifactId>
|
||||
<version>1.0-alpha-6.1</version>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<contact>Jetty Project</contact>
|
||||
<contactEmail>jetty-dev@eclipse.org</contactEmail>
|
||||
<name>Core Jetty ${project.version} Distribution</name>
|
||||
<description>Jetty provides an Web server and javax.servlet
|
||||
container, plus support for Web Sockets, OSGi, JMX, JNDI,
|
||||
JASPI, AJP and many other integrations. These components are
|
||||
open source and available for commercial use and
|
||||
distribution.</description>
|
||||
<deb>
|
||||
<useFakeroot>false</useFakeroot>
|
||||
<priority>optional</priority>
|
||||
<section>java</section>
|
||||
</deb>
|
||||
<packages>
|
||||
<package>
|
||||
<id>jetty-server</id>
|
||||
<assembly>
|
||||
<extractArtifact>
|
||||
<artifact>org.eclipse.jetty:jetty-distribution:zip</artifact>
|
||||
<to>/opt/jetty</to>
|
||||
<pattern>/jetty-distribution-${project.version}(.*)</pattern>
|
||||
<replacement>$1</replacement>
|
||||
<excludes>
|
||||
<include>jetty-distribution-*/contexts/javadoc.xml</include>
|
||||
<exclude>jetty-distribution-*/javadoc</exclude>
|
||||
<exclude>jetty-distribution-*/javadoc/**</exclude>
|
||||
</excludes>
|
||||
</extractArtifact>
|
||||
</assembly>
|
||||
</package>
|
||||
<package>
|
||||
<id>jetty-javadoc</id>
|
||||
<classifier>javadoc</classifier>
|
||||
<assembly>
|
||||
<extractArtifact>
|
||||
<artifact>org.eclipse.jetty:jetty-distribution:zip</artifact>
|
||||
<to>/opt/jetty</to>
|
||||
<pattern>/jetty-distribution-${project.version}(.*)</pattern>
|
||||
<replacement>$1</replacement>
|
||||
<includes>
|
||||
<include>jetty-distribution-*/contexts/javadoc.xml</include>
|
||||
<include>jetty-distribution-*/javadoc/**</include>
|
||||
</includes>
|
||||
</extractArtifact>
|
||||
</assembly>
|
||||
</package>
|
||||
</packages>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-distribution</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>zip</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
cp /opt/jetty/bin/jetty.sh /etc/init.d/jetty
|
||||
chmod 755 /etc/init.d/jetty
|
||||
chmod 755 /opt/jetty/bin/*.sh
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
rm -f /etc/init.d/jetty
|
|
@ -0,0 +1,26 @@
|
|||
<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/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.eclipse.jetty.dist</groupId>
|
||||
<artifactId>dist-parent</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Jetty :: Distribution :: Parent</name>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>linux-packaging</id>
|
||||
<!-- activation>
|
||||
<os>
|
||||
<name>Linux</name>
|
||||
</os>
|
||||
</activation-->
|
||||
<modules>
|
||||
<module>jetty-deb</module>
|
||||
<!--module>jetty-rpm</module-->
|
||||
</modules>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
Loading…
Reference in New Issue