teamcity-ci-plugin-build
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.hpe.adm.octane.ciplugins</groupId> <artifactId>teamcity-ci-plugin-build</artifactId> <version>1.4.8</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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>teamcity-ci-plugin-suite</artifactId> <groupId>com.hpe.adm.octane.ciplugins</groupId> <version>1.4.8</version> </parent> <artifactId>teamcity-ci-plugin-build</artifactId> <packaging>pom</packaging> <properties> <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format> <teamcity.plugin.version>${version}</teamcity.plugin.version> <teamcity.plugin.vendorName>Plugin vendor name</teamcity.plugin.vendorName> <teamcity.plugin.vendorUrl>https://www.microfocus.com/opentext</teamcity.plugin.vendorUrl> <!--zip.location>${project.parent.basedir}/target/teamcity-ci-plugin.zip</zip.location--> <zip.location>../target/hp-lifecycle-management-teamcity-ci-plugin.zip</zip.location> <extraction.folder>${project.build.directory}/extracted</extraction.folder> <temp.target>${project.build.directory}/temp</temp.target> <!--jar.folder>${extraction.folder}/server/</jar.folder--> <jar.folder>server</jar.folder> </properties> <dependencies> <dependency> <groupId>com.hpe.adm.octane.ciplugins</groupId> <artifactId>teamcity-ci-plugin</artifactId> <version>${project.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>com.google.code.maven-replacer-plugin</groupId> <artifactId>replacer</artifactId> <version>1.5.2</version> <executions> <execution> <phase>process-sources</phase> <goals> <goal>replace</goal> </goals> </execution> </executions> <configuration> <file>${basedir}/../teamcity-plugin.xml</file> <outputFile>${basedir}/target/teamcity-plugin.xml</outputFile> <replacements> <replacement> <token>@Version@</token> <value>${teamcity.plugin.version}</value> </replacement> <replacement> <token>@VendorName@</token> <value>${teamcity.plugin.vendorName}</value> </replacement> <replacement> <token>@VendorURL@</token> <value>${teamcity.plugin.vendorUrl}</value> </replacement> </replacements> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.6</version> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <finalName>teamcity-ci-plugin</finalName> <outputDirectory>${project.parent.build.directory}</outputDirectory> <appendAssemblyId>false</appendAssemblyId> <descriptors> <descriptor>plugin-assembly.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>deployPluginDevEnv</id> <activation> <property> <name>deployTeamCityPlugin</name> <value>true</value> </property> </activation> <build> <plugins> <plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> <executions> <execution><!-- Run our version calculation script --> <phase>package</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>${basedir}/../misc/scripts/deployPlugin.bat</executable> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>jar-signing</id> <build> <defaultGoal>install</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>default-cli</id> <phase>pre-integration-test</phase> <goals> <goal>run</goal> </goals> <configuration> <target name="Sign"> <echo message="Signing JAR"/> <exec executable="/bin/bash" failonerror="true"> <arg value="../../scripts/Sign/signJarsInZip.sh"/> <arg value="${zip.location}"/> <arg value="${jar.folder}"/> </exec> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>build-deployment</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> </plugins> </build> </profile> <profile> <id>sign</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> </plugin> </plugins> </build> </profile> </profiles> </project>