rack-server-base
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.proofpoint.platform</groupId>
<artifactId>rack-server-base</artifactId>
<version>1.07</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<artifactId>rack-server-base</artifactId>
<packaging>pom</packaging>
<name>rack-server-base</name>
<description>Proofpoint Platform Rack Server base POM</description>
<url>http://github.com/proofpoint/platform</url>
<parent>
<groupId>com.proofpoint.platform</groupId>
<artifactId>platform-rack</artifactId>
<version>1.07</version>
</parent>
<inceptionYear>2010</inceptionYear>
<organization>
<name>Proofpoint, Inc.</name>
<url>http://www.proofpoint.com</url>
</organization>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers />
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<scm>
<connection>scm:git:git://github.com/proofpoint/platform.git</connection>
<developerConnection>scm:git:git@github.com:proofpoint/platform.git</developerConnection>
<url>http://github.com/proofpoint/platform/tree/master</url>
<tag>1.07</tag>
</scm>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>com.proofpoint.platform</groupId>
<artifactId>rack</artifactId>
<version>1.07</version>
</dependency>
<dependency>
<groupId>com.proofpoint.platform</groupId>
<artifactId>rack-launcher</artifactId>
<version>1.07</version>
<classifier>bin</classifier>
<type>tar.gz</type>
</dependency>
</dependencies>
<profiles>
<profile>
<id>child-project-profile</id>
<!-- Activate profile in child projects, but not this project -->
<activation>
<file>
<missing>profile-activate-72946194395.do.not.remove</missing>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules combine.children="append">
<requireProperty>
<property>main-class</property>
<message>The main-class property must be specified when building a platform tarball.</message>
<regex>.+</regex>
<regexMessage>The main-class property can not be empty.</regexMessage>
</requireProperty>
</rules>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>bundle-gems</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="Bundle gems">
<!--<fail message="Gem sources must use the https protocol">-->
<!--<condition>-->
<!--<resourcecontains-->
<!--resource="${project.basedir}/Gemfile"-->
<!--substring="http://"-->
<!--casesensitive="no"-->
<!-- />-->
<!--</condition>-->
<!--</fail>-->
<concat destfile="${project.basedir}/Gemfile.build" fixlastline="yes">
<path path="${project.basedir}/Gemfile" />
<filterchain>
<linecontainsregexp negate="true">
<regexp pattern="^\s*gem\s+['"]rake['"]" />
</linecontainsregexp>
</filterchain>
<footer trim="yes" filtering="no">
gem "rake", "10.0.4"
</footer>
</concat>
<copy file="${project.basedir}/Gemfile.lock" tofile="${project.basedir}/Gemfile.build.lock" />
<exec dir="${project.basedir}" executable="bundle" failonerror="true">
<arg value="install" />
<arg value="--standalone" />
<arg value="--binstubs" />
<arg value="--gemfile=${project.basedir}/Gemfile.build" />
</exec>
</target>
</configuration>
</execution>
<!-- TODO: devise a better approach to handling assets -->
<execution>
<id>precompile-assets</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="Precompile assets">
<exec executable="sh" dir="${project.basedir}" failonerror="true">
<env key="RAILS_ENV" value="production" />
<env key="RAILS_GROUPS" value="production,assets" />
<arg value="-c" />
<arg value="if [ -d app/assets ]; then bundle exec rake assets:precompile; fi" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<attach>false</attach>
<descriptorRefs>
<descriptorRef>distribution</descriptorRef>
</descriptorRefs>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
<dependencies>
<dependency>
<groupId>com.proofpoint.platform</groupId>
<artifactId>rack-packaging</artifactId>
<version>1.07</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>package</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-distribution-tar.gz</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/${project.artifactId}-${project.version}-distribution.tar.gz</file>
<type>tar.gz</type>
</artifact>
</artifacts>
</configuration>
</execution>
<execution>
<id>attach-readme</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>README.txt</file>
<type>txt</type>
<classifier>readme</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>