sidewinder-cluster-dist
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.srotya.sidewinder</groupId> <artifactId>sidewinder-cluster-dist</artifactId> <version>0.0.32</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> <parent> <groupId>com.srotya.sidewinder</groupId> <artifactId>dist</artifactId> <version>0.0.32</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>sidewinder-cluster-dist</artifactId> <name>cluster</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>com.srotya.sidewinder</groupId> <artifactId>sidewinder-cluster</artifactId> <version>${project.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.3</version> <configuration> <createDependencyReducedPom>false</createDependencyReducedPom> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> </configuration> <executions> <execution> <goals> <goal>shade</goal> </goals> <phase>package</phase> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> </transformers> </configuration> </execution> </executions> </plugin> </plugins> <extensions> <extension> <groupId>kr.motd.maven</groupId> <artifactId>os-maven-plugin</artifactId> <version>1.4.1.Final</version> </extension> </extensions> </build> <profiles> <profile> <activation> <os> <family>!windows</family> </os> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rpm-maven-plugin</artifactId> <version>2.1.4</version> <configuration> <name>${project.artifactId}</name> <version>${project.version}</version> <targetOS>linux</targetOS> <license>Apache 2.0</license> <distribution>${distributor.name}</distribution> <group>Application/Collectors</group> <packager>${distributor.name}</packager> <defaultUsername>root</defaultUsername> <defaultGroupname>root</defaultGroupname> <defineStatements> <defineStatement>_unpackaged_files_terminate_build 0</defineStatement> </defineStatements> <mappings> <mapping> <directory>/usr/sidewinder/lib/</directory> <filemode>755</filemode> <username>sidewinder</username> <sources> <source> <location>target/${project.artifactId}-${project.version}.jar</location> </source> </sources> </mapping> <mapping> <directory>/etc/sidewinder</directory> <filemode>755</filemode> <sources> <source> <location>src/main/resources/configs</location> </source> </sources> </mapping> <mapping> <directory>/usr/sidewinder/bin/</directory> <filemode>755</filemode> <username>sidewinder</username> <sources> <source> <location>src/main/resources/install</location> </source> </sources> </mapping> </mappings> <preinstallScriptlet> <script>useradd sidewinder</script> <script>mkdir -p /usr/sidewinder/lib</script> <script>mkdir -p /usr/sidewinder/bin</script> <script>mkdir -p /etc/sidewinder</script> <script>sysctl -w vm.max_map_count=262144</script> </preinstallScriptlet> <postinstallScriptlet> <script>chmod +x /usr/sidewinder/bin/sidewinder</script> <script>chmod +x /etc/sidewinder/jq</script> <script>cp /usr/sidewinder/bin/sidewinder /etc/init.d/</script> </postinstallScriptlet> </configuration> <executions> <execution> <id>build-rpm</id> <goals> <goal>attached-rpm</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.vafer</groupId> <artifactId>jdeb</artifactId> <version>1.5</version> <executions> <execution> <goals> <goal>jdeb</goal> </goals> <phase>package</phase> <configuration> <controlDir>${basedir}/src/main/resources/deb/control</controlDir> <dataSet> <data> <src>${project.build.directory}/${project.build.finalName}.jar</src> <type>file</type> <mapper> <type>perm</type> <prefix>/usr/sidewinder/lib/</prefix> </mapper> </data> <data> <src>src/main/resources/configs</src> <type>directory</type> <mapper> <type>perm</type> <prefix>/etc/sidewinder/</prefix> </mapper> </data> <data> <src>src/main/resources/install</src> <type>directory</type> <mapper> <type>perm</type> <prefix>/usr/sidewinder/bin/</prefix> </mapper> </data> </dataSet> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>