Maven integration

If you are using maven2 for your project management you have just do two things to integrate ploinMailFactory. At first your have to add the ploinMailFactory dependency to your pom.xml:

<dependency>
      <groupId>org.ploin.pmf</groupId>
      <artifactId>ploinMailFactory</artifactId>
      <version>1.3.1</version>
      <scope>compile</scope>
</dependency>
        

And in step two you have to add the ploinMailFactory mirror to your ~/.m2/settings.xml

<mirror>
  <id>ploinRep</id>
  <name>PLOIN Repository</name>
  <url>http://www.ploin-m2.de/nexus/content/groups/ploinRep/</url>
  <mirrorOf>ploinRep</mirrorOf>
</mirror>
        

Example

your pom.xml could look like this:

<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>
  <groupId>org.ploin.project</groupId>
  <artifactId>project</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>project Maven Webapp</name>
  <url>http://maven.apache.org</url>

  <dependencies>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.ploin.pmf</groupId>
      <artifactId>ploinMailFactory</artifactId>
      <version>1.3.1</version>
      <scope>compile</scope>
    </dependency>
                
  </dependencies>
                
  <build>
    <finalName>project</finalName>
  </build>
</project>
            

And your ~/.m2/settings.xml could look like this:

<?xml version="1.0"?>
<settings>
  <mirrors>

    <mirror>
      <id>ibiblio.org</id>
      <name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>
      <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>

    <mirror>
      <id>ploinRep</id>
      <name>PLOIN Repository</name>
      <url>http://www.ploin-m2.de/nexus/content/groups/ploinRep/</url>
      <mirrorOf>ploinRep</mirrorOf>
    </mirror>

  </mirrors>
</settings>