kjaniak | 8209f7c | 2020-02-14 14:33:27 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <parent> |
| 6 | <artifactId>aaf-certservice</artifactId> |
| 7 | <groupId>org.onap.aaf.certservice</groupId> |
| 8 | <version>1.0.0-SNAPSHOT</version> |
| 9 | </parent> |
| 10 | <modelVersion>4.0.0</modelVersion> |
| 11 | |
| 12 | <artifactId>aaf-certservice-client</artifactId> |
| 13 | <version>1.0.0-SNAPSHOT</version> |
| 14 | <name>aaf-certservice-client</name> |
| 15 | <description>AAF Certification Service Api Client</description> |
| 16 | <packaging>jar</packaging> |
| 17 | |
| 18 | <build> |
kjaniak | 6e2234c | 2020-02-17 23:04:25 +0100 | [diff] [blame] | 19 | <plugins> |
| 20 | <plugin> |
| 21 | <groupId>org.apache.maven.plugins</groupId> |
| 22 | <artifactId>maven-surefire-plugin</artifactId> |
| 23 | </plugin> |
| 24 | </plugins> |
kjaniak | 8209f7c | 2020-02-14 14:33:27 +0100 | [diff] [blame] | 25 | </build> |
| 26 | |
Joanna Jeremicz | acae402 | 2020-02-20 08:47:25 +0100 | [diff] [blame] | 27 | <profiles> |
| 28 | <profile> |
| 29 | <id>docker-staging</id> |
| 30 | <properties> |
| 31 | <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag> |
| 32 | <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag> |
| 33 | </properties> |
| 34 | </profile> |
| 35 | |
| 36 | <profile> |
| 37 | <id>docker</id> |
| 38 | <activation> |
| 39 | <activeByDefault>false</activeByDefault> |
| 40 | </activation> |
| 41 | <properties> |
| 42 | <os.detected.name>linux</os.detected.name> |
| 43 | <os.detected.arch>x86_64</os.detected.arch> |
| 44 | <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier> |
| 45 | </properties> |
| 46 | <build> |
| 47 | <plugins> |
| 48 | <plugin> |
Joanna Jeremicz | 272a9a9 | 2020-02-20 14:52:01 +0100 | [diff] [blame] | 49 | <groupId>org.apache.maven.plugins</groupId> |
| 50 | <artifactId>maven-shade-plugin</artifactId> |
| 51 | <version>${maven-shade-plugin.version}</version> |
| 52 | <executions> |
| 53 | <execution> |
| 54 | <phase>package</phase> |
| 55 | <goals> |
| 56 | <goal>shade</goal> |
| 57 | </goals> |
| 58 | <configuration> |
| 59 | <transformers> |
| 60 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
kjaniak | c45f39c | 2020-02-19 16:42:38 +0100 | [diff] [blame^] | 61 | <mainClass>org.onap.aaf.certservice.client.MainApp</mainClass> |
Joanna Jeremicz | 272a9a9 | 2020-02-20 14:52:01 +0100 | [diff] [blame] | 62 | </transformer> |
| 63 | </transformers> |
| 64 | </configuration> |
| 65 | </execution> |
| 66 | </executions> |
| 67 | </plugin> |
| 68 | <plugin> |
Joanna Jeremicz | acae402 | 2020-02-20 08:47:25 +0100 | [diff] [blame] | 69 | <groupId>io.fabric8</groupId> |
| 70 | <artifactId>docker-maven-plugin</artifactId> |
| 71 | <version>${docker-maven-plugin.version}</version> |
| 72 | <executions> |
| 73 | <execution> |
| 74 | <id>docker-build-image</id> |
| 75 | <phase>package</phase> |
| 76 | <goals> |
| 77 | <goal>build</goal> |
| 78 | </goals> |
| 79 | </execution> |
| 80 | <execution> |
| 81 | <id>docker-push-image</id> |
| 82 | <phase>deploy</phase> |
| 83 | <goals> |
| 84 | <goal>push</goal> |
| 85 | </goals> |
| 86 | </execution> |
| 87 | </executions> |
| 88 | <configuration> |
| 89 | <skipPush>${skipDockerPush}</skipPush> |
| 90 | <verbose>true</verbose> |
| 91 | <imagePullPolicy>IfNotPresent</imagePullPolicy> |
| 92 | <images> |
| 93 | <image> |
| 94 | <alias>${project.artifactId}</alias> |
| 95 | <name>${docker-image.namespace}/${docker-image.name} |
| 96 | </name> |
| 97 | <registry>${docker-image.registry}</registry> |
| 98 | <build> |
| 99 | <dockerFileDir>${project.basedir}</dockerFileDir> |
| 100 | <tags> |
| 101 | <tag>${project.version}-${maven.build.timestamp}Z</tag> |
| 102 | <tag>${project.version}</tag> |
| 103 | <tag>${docker-image.latest}</tag> |
| 104 | </tags> |
| 105 | </build> |
| 106 | </image> |
| 107 | </images> |
| 108 | </configuration> |
| 109 | </plugin> |
| 110 | </plugins> |
| 111 | </build> |
| 112 | </profile> |
| 113 | </profiles> |
| 114 | |
| 115 | <distributionManagement> |
| 116 | <repository> |
| 117 | <id>ecomp-releases</id> |
| 118 | <name>AAF Release Repository</name> |
| 119 | <url>${nexusproxy}${releaseNexusPath}</url> |
| 120 | </repository> |
| 121 | <snapshotRepository> |
| 122 | <id>ecomp-snapshots</id> |
| 123 | <name>AAF Snapshot Repository</name> |
| 124 | <url>${nexusproxy}${snapshotNexusPath}</url> |
| 125 | </snapshotRepository> |
| 126 | <site> |
| 127 | <id>ecomp-site</id> |
| 128 | <url>dav:${nexusproxy}${sitePath}</url> |
| 129 | </site> |
| 130 | </distributionManagement> |
| 131 | |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 132 | <dependencies> |
kjaniak | 3a1f830 | 2020-02-18 13:25:43 +0100 | [diff] [blame] | 133 | <dependency> |
kjaniak | c45f39c | 2020-02-19 16:42:38 +0100 | [diff] [blame^] | 134 | <groupId>org.bouncycastle</groupId> |
| 135 | <artifactId>bcpkix-jdk15on</artifactId> |
kjaniak | 3a1f830 | 2020-02-18 13:25:43 +0100 | [diff] [blame] | 136 | </dependency> |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 137 | <dependency> |
kjaniak | c45f39c | 2020-02-19 16:42:38 +0100 | [diff] [blame^] | 138 | <groupId>org.assertj</groupId> |
| 139 | <artifactId>assertj-core</artifactId> |
pwielebs | 102a411 | 2020-02-17 12:43:31 +0100 | [diff] [blame] | 140 | </dependency> |
| 141 | <dependency> |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 142 | <groupId>org.junit.jupiter</groupId> |
| 143 | <artifactId>junit-jupiter-engine</artifactId> |
| 144 | </dependency> |
| 145 | <dependency> |
kjaniak | 6e2234c | 2020-02-17 23:04:25 +0100 | [diff] [blame] | 146 | <groupId>org.junit.jupiter</groupId> |
| 147 | <artifactId>junit-jupiter-api</artifactId> |
| 148 | </dependency> |
| 149 | <dependency> |
kjaniak | 7e02d16 | 2020-02-18 16:13:54 +0100 | [diff] [blame] | 150 | <groupId>org.mockito</groupId> |
| 151 | <artifactId>mockito-core</artifactId> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>org.mockito</groupId> |
| 155 | <artifactId>mockito-junit-jupiter</artifactId> |
| 156 | </dependency> |
| 157 | <dependency> |
kjaniak | c45f39c | 2020-02-19 16:42:38 +0100 | [diff] [blame^] | 158 | <groupId>org.slf4j</groupId> |
| 159 | <artifactId>slf4j-api</artifactId> |
| 160 | </dependency> |
| 161 | <dependency> |
kjaniak | 7e02d16 | 2020-02-18 16:13:54 +0100 | [diff] [blame] | 162 | <groupId>org.springframework.boot</groupId> |
| 163 | <artifactId>spring-boot-starter-log4j2</artifactId> |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 164 | </dependency> |
| 165 | </dependencies> |
| 166 | |
kjaniak | 8209f7c | 2020-02-14 14:33:27 +0100 | [diff] [blame] | 167 | </project> |