authzforce-ce-server-dist
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.ow2.authzforce</groupId> <artifactId>authzforce-ce-server-dist</artifactId> <version>12.0.1</version> </dependency>
<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>org.ow2.authzforce</groupId> <artifactId>authzforce-ce-server</artifactId> <version>12.0.1</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>authzforce-ce-server-dist</artifactId> <!-- If using 'pom' packaging, jdeb refuses to execute. --> <packaging>jar</packaging> <name>${project.groupId}:${project.artifactId}</name> <description>AuthzForce CE server distribution (zip and deb)</description> <url>https://github.com/authzforce/server/dist</url> <scm> <connection>scm:git:${git.url.base}.git</connection> <developerConnection>scm:git:${git.url.base}.git</developerConnection> <tag>HEAD</tag> <url>${git.url.base}/dist</url> </scm> <dependencies> <dependency> <groupId>${project.groupId}</groupId> <artifactId>${project.parent.artifactId}-webapp</artifactId> <version>${project.parent.version}</version> <type>war</type> </dependency> </dependencies> <build> <finalName>${productId}-${project.version}</finalName> <plugins> <plugin> <!-- Compute timestamp to be used in debian/changes.jdeb.txt We cannot use Maven property 'maven.build.timestamp.format' because already used to compute 'currentYear' property inherited from authzforce-ce-parent, with a different format, so we use a plugin. --> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>jdeb-changelog-timestamp-property</id> <phase>process-sources</phase> <goals> <goal>timestamp-property</goal> </goals> <configuration> <name>jdeb.changelog.timestamp</name> <locale>en_US</locale> <pattern>HH:mm dd.MM.yyyy</pattern> </configuration> </execution> <execution> <!-- Set timestamp property to be used in debian/changelog --> <id>debian-changelog-timestamp-property</id> <phase>process-sources</phase> <goals> <goal>timestamp-property</goal> </goals> <configuration> <name>debian.changelog.timestamp</name> <locale>en,US</locale> <pattern>E, dd MMM yyyy HH:mm:ss Z</pattern> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <escapeString>\</escapeString> </configuration> <executions> <execution> <id>replace-product-metadata</id> <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> <!-- Replace variable 'productId' and 'project.version' in some source files. --> <configuration> <outputDirectory>${project.build.outputDirectory}</outputDirectory> <resources> <resource> <directory>src</directory> <filtering>true</filtering> <includes> <include>webapp-context.xml</include> <include>debian/changelog</include> <include>debian/changes.jdeb.txt</include> <include>tar/README.md</include> <!-- <include>docker/Dockerfile.tmpl</include> <include>docker/release.sh.tmpl</include> --> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.coderplus.maven.plugins</groupId> <artifactId>copy-rename-maven-plugin</artifactId> <version>1.0.1</version> <executions> <execution> <id>copy-dockerfile-and-release-script</id> <phase>process-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <!-- project.build.directory: target project.build.outputDirectory: target/classes --> <fileSets> <fileSet> <!--<sourceFile>${project.build.outputDirectory}/docker/Dockerfile.tmpl</sourceFile>--> <sourceFile>src/docker/Dockerfile</sourceFile> <destinationFile>${project.build.directory}/Dockerfile</destinationFile> </fileSet> <fileSet> <!--<sourceFile>${project.build.outputDirectory}/docker/release.sh.tmpl</sourceFile>--> <sourceFile>src/docker/release.sh</sourceFile> <destinationFile>${project.build.directory}/release.sh</destinationFile> </fileSet> </fileSets> </configuration> </execution> <execution> <id>rename-release-script</id> <phase>process-resources</phase> <goals> <goal>rename</goal> </goals> <configuration> <sourceFile>${project.build.directory}/release.sh</sourceFile> <destinationFile>${project.build.directory}/release-docker.sh</destinationFile> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.ruleoftech</groupId> <artifactId>markdown-page-generator-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> <configuration> <headerHtmlFile>${project.basedir}/html/header.html</headerHtmlFile> <footerHtmlFile>${project.basedir}/html/footer.html</footerHtmlFile> <!-- <copyDirectories>css,js</copyDirectories> --> <inputDirectory>${project.build.outputDirectory}/tar</inputDirectory> <outputDirectory>${project.build.directory}/html/tar</outputDirectory> <inputEncoding>UTF-8</inputEncoding> <outputEncoding>UTF-8</outputEncoding> <pegdownExtensions>SMARTS,QUOTES,ANCHORLINKS,FENCED_CODE_BLOCKS,AUTOLINKS</pegdownExtensions> </configuration> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>distro-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <!-- Authzforce webapp + configuration files --> <descriptor>src/webapp-assembly.xml</descriptor> </descriptors> <appendAssemblyId>false</appendAssemblyId> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>jdeb</artifactId> <groupId>org.vafer</groupId> <version>1.10</version> <executions> <execution> <phase>package</phase> <goals> <goal>jdeb</goal> </goals> <configuration> <verbose>true</verbose> <snapshotExpand>true</snapshotExpand> <deb>${project.build.directory}/${productId}_${project.version}-0ubuntu1_all.deb</deb> <changesIn>${project.build.outputDirectory}/debian/changes.jdeb.txt</changesIn> <changesOut>${project.build.directory}/${productId}_${project.version}_all.changes</changesOut> <!-- expand "SNAPSHOT" to what is in the "USER" env variable. Expanded to timestamp by default. --> <!-- <snapshotEnv>USER</snapshotEnv> --> <!-- In control files, you can use any variable defined by initializeVariableResolver(...) method in https://github.com/tcurdt/jdeb/blob/master/src/main/java/org/vafer/jdeb/maven/DebMojo.java Surround the variable name with double square brackets "[[" "]]" to have it replaced by the variable value. --> <controlDir>${project.basedir}/src/debian/control</controlDir> <dataSet> <data> <!-- lintian will complain changelog-not-compressed-with-max-compression . Fix to come: https://github.com/tcurdt/jdeb/issues/157 --> <src>${project.build.outputDirectory}/debian/changelog</src> <dst>/usr/share/doc/${productId}/changelog</dst> <type>file</type> </data> <data> <src>${project.basedir}/src/debian/copyright</src> <dst>/usr/share/doc/${productId}/copyright</dst> <type>file</type> </data> <data> <!-- Configuration directory --> <src>${project.basedir}/src/conf</src> <type>directory</type> <conffile>true</conffile> <mapper> <type>perm</type> <!-- Starting '.' necessary to get absolute paths, otherwise lintian complains "relative-conffile" --> <prefix>./opt/${productId}/conf</prefix> <user>root</user> <group>tomcat</group> </mapper> </data> <data> <!-- Webapp-specific context for Tomcat, after replacing 'productId' (see previous <resources> tag), therefore take it from target/classes, i.e. ${project.build.outputDirectory} --> <src>${project.build.outputDirectory}/webapp-context.xml</src> <dst>/etc/tomcat10/Catalina/localhost/authzforce-ce.xml</dst> <type>file</type> <conffile>true</conffile> </data> <data> <!-- WAR deployed to Tomcat --> <src>${project.build.directory}/${project.build.finalName}.tar.gz</src> <type>archive</type> <includes>${project.build.finalName}/webapp/**</includes> <missingSrc>fail</missingSrc> <mapper> <type>perm</type> <prefix>./opt/${productId}/webapp</prefix> <user>root</user> <group>tomcat</group> <!-- filemode/dirmode set to 000 by default. Issue: https://github.com/tcurdt/jdeb/issues/55 --> <filemode>644</filemode> <dirmode>755</dirmode> <strip>2</strip> </mapper> </data> <data> <!-- Systemd config override to allow writing to other non-official Tomcat directories. More info: https://salsa.debian.org/java-team/tomcat10/blob/master/debian/README.Debian --> <src>${project.basedir}/src/debian/systemd-tomcat10-override.conf</src> <dst>/etc/systemd/system/tomcat10.service.d/override.conf</dst> <type>file</type> <conffile>true</conffile> </data> <data> <!-- Configuration directory --> <src>${project.basedir}/src/data/domains</src> <type>directory</type> <mapper> <type>perm</type> <prefix>./opt/${productId}/data/domains</prefix> <user>tomcat</user> <group>tomcat</group> </mapper> </data> </dataSet> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>