| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <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> |
| <groupId>org.apache.james</groupId> |
| <artifactId>james-server</artifactId> |
| <version>3.4.0-SNAPSHOT</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>mock-smtp-server</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>Apache James :: Server :: Mailet :: Mock SMTP Server</name> |
| <description> |
| Provide a standalone mock SMTP server that could be configured over HTTP. |
| Dockerized it can be used for advanced error testing for SMTP clients. |
| </description> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${james.groupId}</groupId> |
| <artifactId>james-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${james.groupId}</groupId> |
| <artifactId>james-server-jetty</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${james.groupId}</groupId> |
| <artifactId>james-server-util</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${james.groupId}</groupId> |
| <artifactId>james-server-testing</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.datatype</groupId> |
| <artifactId>jackson-datatype-guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.datatype</groupId> |
| <artifactId>jackson-datatype-jdk8</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.rest-assured</groupId> |
| <artifactId>rest-assured</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>net.javacrumbs.json-unit</groupId> |
| <artifactId>json-unit-assertj</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>nl.jqno.equalsverifier</groupId> |
| <artifactId>equalsverifier</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.platform</groupId> |
| <artifactId>junit-platform-launcher</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.assertj</groupId> |
| <artifactId>assertj-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.awaitility</groupId> |
| <artifactId>awaitility</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.subethamail</groupId> |
| <artifactId>subethasmtp</artifactId> |
| <version>3.1.7</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.google.cloud.tools</groupId> |
| <artifactId>jib-maven-plugin</artifactId> |
| <configuration> |
| <from> |
| <image>openjdk:8u222-jre</image> |
| </from> |
| <to> |
| <image>linagora/mock-smtp-server</image> |
| <tags> |
| <tag>latest</tag> |
| </tags> |
| </to> |
| <container> |
| <mainClass>org.apache.james.mock.smtp.server.MockSMTPServerMain</mainClass> |
| <ports> |
| <port>25</port> |
| <port>8000</port> |
| </ports> |
| </container> |
| </configuration> |
| <executions> |
| <execution> |
| <id>docker packaging</id> |
| <phase>package</phase> |
| <goals> |
| <goal>buildTar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.coderplus.maven.plugins</groupId> |
| <artifactId>copy-rename-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-file</id> |
| <phase>package</phase> |
| <goals> |
| <goal>rename</goal> |
| </goals> |
| <configuration> |
| <sourceFile>${basedir}/target/jib-image.tar</sourceFile> |
| <destinationFile>${basedir}/target/jib-mock-smtp-server.tar</destinationFile> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |