|
| 1 | +<?xml version="1.0" ?> |
| 2 | +<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/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>surefire</groupId> |
| 5 | + <artifactId>junit-cucumber</artifactId> |
| 6 | + <version>0.0.1</version> |
| 7 | + <packaging>jar</packaging> |
| 8 | + <name>Junit-Cucumber</name> |
| 9 | + <properties> |
| 10 | + <cucumber.bom.version>7.0.0</cucumber.bom.version> |
| 11 | + <java.version>1.8</java.version> |
| 12 | + <junit.bom.version>5.8.1</junit.bom.version> |
| 13 | + <maven.compiler.version>3.8.1</maven.compiler.version> |
| 14 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | + <surefire.version>3.0.0-M5</surefire.version> |
| 16 | + </properties> |
| 17 | + <dependencyManagement> |
| 18 | + <dependencies> |
| 19 | + <dependency> |
| 20 | + <groupId>org.junit</groupId> |
| 21 | + <artifactId>junit-bom</artifactId> |
| 22 | + <version>${junit.bom.version}</version> |
| 23 | + <type>pom</type> |
| 24 | + <scope>import</scope> |
| 25 | + </dependency> |
| 26 | + <dependency> |
| 27 | + <groupId>io.cucumber</groupId> |
| 28 | + <artifactId>cucumber-bom</artifactId> |
| 29 | + <version>${cucumber.bom.version}</version> |
| 30 | + <type>pom</type> |
| 31 | + <scope>import</scope> |
| 32 | + </dependency> |
| 33 | + </dependencies> |
| 34 | + </dependencyManagement> |
| 35 | + <dependencies> |
| 36 | + <dependency> |
| 37 | + <groupId>io.cucumber</groupId> |
| 38 | + <artifactId>cucumber-java</artifactId> |
| 39 | + <scope>test</scope> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>io.cucumber</groupId> |
| 43 | + <artifactId>cucumber-junit-platform-engine</artifactId> |
| 44 | + <scope>test</scope> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>org.junit.platform</groupId> |
| 48 | + <artifactId>junit-platform-suite</artifactId> |
| 49 | + <scope>test</scope> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.junit.jupiter</groupId> |
| 53 | + <artifactId>junit-jupiter</artifactId> |
| 54 | + <scope>test</scope> |
| 55 | + </dependency> |
| 56 | + </dependencies> |
| 57 | + <build> |
| 58 | + <plugins> |
| 59 | + <plugin> |
| 60 | + <groupId>org.apache.maven.plugins</groupId> |
| 61 | + <artifactId>maven-compiler-plugin</artifactId> |
| 62 | + <version>${maven.compiler.version}</version> |
| 63 | + <configuration> |
| 64 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 65 | + <source>${java.version}</source> |
| 66 | + <target>${java.version}</target> |
| 67 | + </configuration> |
| 68 | + </plugin> |
| 69 | + <plugin> |
| 70 | + <groupId>org.apache.maven.plugins</groupId> |
| 71 | + <artifactId>maven-surefire-plugin</artifactId> |
| 72 | + <version>${surefire.version}</version> |
| 73 | + <configuration> |
| 74 | + <properties> |
| 75 | + <configurationParameters> cucumber.plugin=pretty,html:target/site/cucumber-pretty.html cucumber.publish.quiet=true cucumber.publish.enabled=false </configurationParameters> |
| 76 | + </properties> |
| 77 | + </configuration> |
| 78 | + </plugin> |
| 79 | + <plugin> |
| 80 | + <groupId>org.codehaus.mojo</groupId> |
| 81 | + <artifactId>findbugs-maven-plugin</artifactId> |
| 82 | + <version>3.0.5</version> |
| 83 | + <configuration> |
| 84 | + <effort>Max</effort> |
| 85 | + <failOnError>false</failOnError> |
| 86 | + <threshold>Low</threshold> |
| 87 | + <xmlOutput>true</xmlOutput> |
| 88 | + <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory> |
| 89 | + </configuration> |
| 90 | + <executions> |
| 91 | + <execution> |
| 92 | + <id>analysis-compile</id> |
| 93 | + <phase>compile</phase> |
| 94 | + <goals> |
| 95 | + <goal>check</goal> |
| 96 | + </goals> |
| 97 | + </execution> |
| 98 | + </executions> |
| 99 | + </plugin> |
| 100 | + <plugin> |
| 101 | + <groupId>org.codehaus.mojo</groupId> |
| 102 | + <artifactId>xml-maven-plugin</artifactId> |
| 103 | + <version>1.0</version> |
| 104 | + <configuration> |
| 105 | + <transformationSets> |
| 106 | + <transformationSet> |
| 107 | + <dir>${project.build.directory}/findbugs</dir> |
| 108 | + <outputDir>${project.build.directory}/findbugs</outputDir> |
| 109 | + <stylesheet>default.xsl</stylesheet> |
| 110 | + <fileMappers> |
| 111 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper"> |
| 112 | + <targetExtension>.html</targetExtension> |
| 113 | + </fileMapper> |
| 114 | + </fileMappers> |
| 115 | + </transformationSet> |
| 116 | + </transformationSets> |
| 117 | + </configuration> |
| 118 | + <executions> |
| 119 | + <execution> |
| 120 | + <id>transform-compile</id> |
| 121 | + <phase>compile</phase> |
| 122 | + <goals> |
| 123 | + <goal>transform</goal> |
| 124 | + </goals> |
| 125 | + </execution> |
| 126 | + </executions> |
| 127 | + <dependencies> |
| 128 | + <dependency> |
| 129 | + <groupId>com.google.code.findbugs</groupId> |
| 130 | + <artifactId>findbugs</artifactId> |
| 131 | + <version>2.0.1</version> |
| 132 | + </dependency> |
| 133 | + </dependencies> |
| 134 | + </plugin> |
| 135 | + </plugins> |
| 136 | + </build> |
| 137 | +</project> |
0 commit comments