All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources.keygen.pom.xml Maven / Gradle / Ivy

<?xml version='1.0'?>
<!--
  - Copyright (C) 2005 - 2019 Schlichtherle IT Services.
  - All rights reserved. Use is subject to license terms.
  -->
#set($dollar = '$')
<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>$groupId</groupId>
        <artifactId>$rootArtifactId</artifactId>
        <version>$version</version>
    </parent>

    <artifactId>$artifactId</artifactId>

#if($artifactName != "-")
    <name>$artifactName Key Generator</name>
#end
    <description>The license vendor application alias license key tool.</description>

    <properties>
        <mainClass>${package}.keygen.Main</mainClass>
    </properties>

    <dependencies>
        <dependency>
            <groupId>global.namespace.truelicense</groupId>
            <artifactId>${dollar}{trueLicenseArtifactId}</artifactId>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>generate-private-key-store</id>
            <activation>
                <file>
                    <missing>${dollar}{basedir}/src/main/resources/${privateKeyStoreFile}</missing>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.soebes.maven.plugins</groupId>
                        <artifactId>iterator-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>generate-resources</phase>
                                <goals>
                                    <goal>iterator</goal>
                                </goals>
                                <configuration>
                                    <content>${dollar}{editions}</content>
                                    <pluginExecutors>
                                        <pluginExecutor>
                                            <plugin>
                                                <groupId>org.codehaus.mojo</groupId>
                                                <artifactId>keytool-maven-plugin</artifactId>
                                            </plugin>
                                            <goal>generateKeyPair</goal>
                                            <configuration>
                                                <alias>${dollar}{@item@KeyEntryAlias}</alias>
                                                <dname>${dollar}{distinguishedName}</dname>
#if($keyPairAlgorithm != "auto")
                                                <keyalg>${dollar}{keyPairAlgorithm}</keyalg>
#end
                                                <keypass>${dollar}{@item@KeyEntryPassword}</keypass>
#if($keyPairSize != 0)
                                                <keysize>${dollar}{keyPairSize}</keysize>
#end
                                                <keystore>${dollar}{basedir}/src/main/resources/${dollar}{privateKeyStoreFile}</keystore>
#if($signatureAlgorithm != "auto")
                                                <sigalg>${dollar}{signatureAlgorithm}</sigalg>
#end
                                                <storepass>${dollar}{privateKeyStorePassword}</storepass>
                                                <storetype>${dollar}{privateKeyStoreType}</storetype>
                                                <validity>365</validity>
                                            </configuration>
                                        </pluginExecutor>
                                    </pluginExecutors>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy