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> |
Remigiusz Janeczek | 9689831 | 2020-02-26 12:34:08 +0100 | [diff] [blame] | 59 | <createDependencyReducedPom>false</createDependencyReducedPom> |
| 60 | <filters> |
| 61 | <filter> |
| 62 | <artifact>*:*</artifact> |
| 63 | <excludes> |
| 64 | <exclude>META-INF/*.SF</exclude> |
| 65 | <exclude>META-INF/*.DSA</exclude> |
| 66 | <exclude>META-INF/*.RSA</exclude> |
| 67 | </excludes> |
| 68 | </filter> |
| 69 | </filters> |
Joanna Jeremicz | 272a9a9 | 2020-02-20 14:52:01 +0100 | [diff] [blame] | 70 | <transformers> |
| 71 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
kjaniak | c45f39c | 2020-02-19 16:42:38 +0100 | [diff] [blame] | 72 | <mainClass>org.onap.aaf.certservice.client.MainApp</mainClass> |
Joanna Jeremicz | 272a9a9 | 2020-02-20 14:52:01 +0100 | [diff] [blame] | 73 | </transformer> |
| 74 | </transformers> |
| 75 | </configuration> |
| 76 | </execution> |
| 77 | </executions> |
| 78 | </plugin> |
| 79 | <plugin> |
Joanna Jeremicz | acae402 | 2020-02-20 08:47:25 +0100 | [diff] [blame] | 80 | <groupId>io.fabric8</groupId> |
| 81 | <artifactId>docker-maven-plugin</artifactId> |
| 82 | <version>${docker-maven-plugin.version}</version> |
| 83 | <executions> |
| 84 | <execution> |
| 85 | <id>docker-build-image</id> |
| 86 | <phase>package</phase> |
| 87 | <goals> |
| 88 | <goal>build</goal> |
| 89 | </goals> |
| 90 | </execution> |
| 91 | <execution> |
| 92 | <id>docker-push-image</id> |
| 93 | <phase>deploy</phase> |
| 94 | <goals> |
| 95 | <goal>push</goal> |
| 96 | </goals> |
| 97 | </execution> |
| 98 | </executions> |
| 99 | <configuration> |
| 100 | <skipPush>${skipDockerPush}</skipPush> |
| 101 | <verbose>true</verbose> |
| 102 | <imagePullPolicy>IfNotPresent</imagePullPolicy> |
| 103 | <images> |
| 104 | <image> |
| 105 | <alias>${project.artifactId}</alias> |
| 106 | <name>${docker-image.namespace}/${docker-image.name} |
| 107 | </name> |
| 108 | <registry>${docker-image.registry}</registry> |
| 109 | <build> |
| 110 | <dockerFileDir>${project.basedir}</dockerFileDir> |
| 111 | <tags> |
| 112 | <tag>${project.version}-${maven.build.timestamp}Z</tag> |
| 113 | <tag>${project.version}</tag> |
| 114 | <tag>${docker-image.latest}</tag> |
| 115 | </tags> |
| 116 | </build> |
| 117 | </image> |
| 118 | </images> |
| 119 | </configuration> |
| 120 | </plugin> |
| 121 | </plugins> |
| 122 | </build> |
| 123 | </profile> |
| 124 | </profiles> |
| 125 | |
| 126 | <distributionManagement> |
| 127 | <repository> |
| 128 | <id>ecomp-releases</id> |
| 129 | <name>AAF Release Repository</name> |
| 130 | <url>${nexusproxy}${releaseNexusPath}</url> |
| 131 | </repository> |
| 132 | <snapshotRepository> |
| 133 | <id>ecomp-snapshots</id> |
| 134 | <name>AAF Snapshot Repository</name> |
| 135 | <url>${nexusproxy}${snapshotNexusPath}</url> |
| 136 | </snapshotRepository> |
| 137 | <site> |
| 138 | <id>ecomp-site</id> |
| 139 | <url>dav:${nexusproxy}${sitePath}</url> |
| 140 | </site> |
| 141 | </distributionManagement> |
| 142 | |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 143 | <dependencies> |
kjaniak | 3a1f830 | 2020-02-18 13:25:43 +0100 | [diff] [blame] | 144 | <dependency> |
kjaniak | c45f39c | 2020-02-19 16:42:38 +0100 | [diff] [blame] | 145 | <groupId>org.bouncycastle</groupId> |
| 146 | <artifactId>bcpkix-jdk15on</artifactId> |
kjaniak | 3a1f830 | 2020-02-18 13:25:43 +0100 | [diff] [blame] | 147 | </dependency> |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 148 | <dependency> |
kjaniak | c45f39c | 2020-02-19 16:42:38 +0100 | [diff] [blame] | 149 | <groupId>org.assertj</groupId> |
| 150 | <artifactId>assertj-core</artifactId> |
pwielebs | 102a411 | 2020-02-17 12:43:31 +0100 | [diff] [blame] | 151 | </dependency> |
| 152 | <dependency> |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 153 | <groupId>org.junit.jupiter</groupId> |
| 154 | <artifactId>junit-jupiter-engine</artifactId> |
| 155 | </dependency> |
| 156 | <dependency> |
kjaniak | 6e2234c | 2020-02-17 23:04:25 +0100 | [diff] [blame] | 157 | <groupId>org.junit.jupiter</groupId> |
| 158 | <artifactId>junit-jupiter-api</artifactId> |
| 159 | </dependency> |
| 160 | <dependency> |
kjaniak | 7e02d16 | 2020-02-18 16:13:54 +0100 | [diff] [blame] | 161 | <groupId>org.mockito</groupId> |
| 162 | <artifactId>mockito-core</artifactId> |
| 163 | </dependency> |
| 164 | <dependency> |
| 165 | <groupId>org.mockito</groupId> |
| 166 | <artifactId>mockito-junit-jupiter</artifactId> |
| 167 | </dependency> |
| 168 | <dependency> |
kjaniak | c45f39c | 2020-02-19 16:42:38 +0100 | [diff] [blame] | 169 | <groupId>org.slf4j</groupId> |
| 170 | <artifactId>slf4j-api</artifactId> |
| 171 | </dependency> |
| 172 | <dependency> |
kjaniak | 7e02d16 | 2020-02-18 16:13:54 +0100 | [diff] [blame] | 173 | <groupId>org.springframework.boot</groupId> |
| 174 | <artifactId>spring-boot-starter-log4j2</artifactId> |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 175 | </dependency> |
Tomasz Wrobel | e78bfe1 | 2020-02-20 16:45:12 +0100 | [diff] [blame^] | 176 | <dependency> |
| 177 | <groupId>com.google.code.gson</groupId> |
| 178 | <artifactId>gson</artifactId> |
| 179 | </dependency> |
| 180 | <dependency> |
| 181 | <groupId>org.apache.httpcomponents</groupId> |
| 182 | <artifactId>httpclient</artifactId> |
| 183 | </dependency> |
kjaniak | 85022a8 | 2020-02-14 16:27:00 +0100 | [diff] [blame] | 184 | </dependencies> |
| 185 | |
kjaniak | 8209f7c | 2020-02-14 14:33:27 +0100 | [diff] [blame] | 186 | </project> |