greenmail
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.icegreen</groupId> <artifactId>greenmail</artifactId> <version>2.1.3</version> </dependency>
<?xml version='1.0'?> <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 https://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <name>== GreenMail Core ==</name> <description>GreenMail - Email Test Servers</description> <url>https://greenmail-mail-test.github.io/greenmail/</url> <artifactId>greenmail</artifactId> <packaging>jar</packaging> <version>2.1.3</version> <parent> <groupId>com.icegreen</groupId> <artifactId>greenmail-parent</artifactId> <version>2.1.3</version> <relativePath>../pom.xml</relativePath> </parent> <dependencies> <!-- Compile scope (=default) --> <dependency> <groupId>jakarta.mail</groupId> <artifactId>jakarta.mail-api</artifactId> </dependency> <dependency> <groupId>org.eclipse.angus</groupId> <artifactId>jakarta.mail</artifactId> </dependency> <dependency> <groupId>jakarta.activation</groupId> <artifactId>jakarta.activation-api</artifactId> </dependency> <dependency> <!-- SLF4J Core --> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <!-- Runtime scope --> <dependency> <groupId>org.eclipse.angus</groupId> <artifactId>angus-activation</artifactId> <scope>runtime</scope> </dependency> <!-- We need junit in compile scope since we want to offer Junit specific functionality (e.g. the GreenMailRule) --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>compile</scope> <!-- We only need the API in compile scope. Matchers are needed in test scope --> <exclusions> <exclusion> <groupId>org.hamcrest</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> <!-- Test scope --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> <!-- Transitively by junit:junit, required for running tests --> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-library</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk18on</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk18on</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> </archive> </configuration> </plugin> <plugin> <!-- Requires JDK8+ --> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>de.m3y.maven</groupId> <artifactId>inject-maven-plugin</artifactId> <configuration> <injections> <injection> <value>${project.version}</value> <pointCut>com.icegreen.greenmail.server.BuildInfo.getProjectVersion</pointCut> </injection> </injections> </configuration> <executions> <execution> <phase>process-classes</phase> <goals> <goal>inject</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>keytool-maven-plugin</artifactId> <executions> <!-- delete jks --> <execution> <id>delete-jks</id> <phase>initialize</phase> <goals> <goal>clean</goal> </goals> </execution> <!-- generate jks --> <execution> <id>generate-jks</id> <goals> <goal>generateKeyPair</goal> </goals> <phase>generate-resources</phase> <configuration> <dname>CN=GreenMail selfsigned Test Certificate, OU=GreenMail, O=Icegreen Technologies, C=US</dname> <keypass>changeit</keypass> <storepass>changeit</storepass> <alias>greenmail</alias> <sigalg>SHA256withRSA</sigalg> <keyalg>RSA</keyalg> <keysize>2048</keysize> <validity>825</validity> <storetype>pkcs12</storetype> </configuration> </execution> </executions> <configuration> <keystore>${project.build.outputDirectory}/greenmail.p12</keystore> </configuration> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <configuration> <systemPropertyVariables> <log4j2.configurationFile>file:${project.build.testOutputDirectory}/log4j2-it.xml </log4j2.configurationFile> </systemPropertyVariables> </configuration> </plugin> </plugins> </build> </project>