Maven Postman plugin failing to email report
Hi,
I am having some trouble getting the Maven Postman plugin to mail my surefire test report. I'm a beginner so there is likely an obvious mistake here. I will post my POM file below in case it shows any obvious cause. I have tried running clean, site, deploy and, although the report is generated, it does not get mailed. I'm not clear which maven goal I should be running to get the report generated. Any help much appreciated.
- <?xml version="1.0" encoding="UTF-8"?>
- <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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>TrustOne</groupId>
- <artifactId>TrustOne</artifactId>
- <version>1.0</version>
- <dependencies>
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-java</artifactId>
- <version>2.34.0</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.11</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.surefire</groupId>
- <artifactId>surefire</artifactId>
- <version>2.15</version>
- <type>pom</type>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>1.7</source>
- <target>1.7</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.0-beta-3</version>
- </plugin>
- <plugin>
- <groupId>ch.fortysix</groupId>
- <artifactId>maven-postman-plugin</artifactId>
- <version>0.1.6</version>
- <executions>
- <execution>
- <id>send_an_email</id>
- <phase>deploy</phase>
- <goals>
- <goal>send-mail</goal>
- </goals>
- <inherited>true</inherited>
- <configuration>
- <mailhost>smtp.gmail.com</mailhost>
- <mailport>995</mailport>
- <mailssl>true</mailssl>
- <mailAltConfig>true</mailAltConfig>
- <mailuser>myemail@gmail.com</mailuser>
- <mailpassword>password1</mailpassword>
- <from<davidjsmithers</from>
- <receivers>
- <receiver>myemail@gmail.com</receiver>
- <receiver>myemail@gmail.com</receiver>
- </receivers>
- <subject>Property Integrity Report</subject>
- <failonerror>false</failonerror>
- <htmlMessage>
- <![CDATA[
- <p>This is a report,testing</p>
- <br>
- <p>testing.</p>
- ]]>
- </htmlMessage>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- <version>2.15</version>
- </plugin>
- </plugins>
- </reporting>
- </project>
请先登录再写评论。
POM: