CopyPastor

Detecting plagiarism made easy.

Score: 0.8061328530311584; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2024-11-06
by Ashwani Kumar Dwivedi

Original Post

Original - Posted on 2011-06-16
by Andrew White



            
Present in both answers; Present only in the new answer; Present only in the old answer;

<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.2.5</version> <dependencies> <dependency> <groupId>org.apache.maven.surefire</groupId> <artifactId>surefire-junit47</artifactId> <version>3.2.5</version> </dependency> </dependencies> <configuration> <includes> <include>TestRunner.java</include> </includes> </configuration> </plugin>
<plugin> <groupId>net.masterthought</groupId> <artifactId>maven-cucumber-reporting</artifactId> <version>5.7.5</version> <executions> <execution> <id>execution</id> <phase>verify</phase> <goals> <goal>generate</goal> </goals> <configuration> <projectName>ProjectName</projectName> <outputDirectory>CucumberReport</outputDirectory> <inputDirectory>target</inputDirectory> <jsonFiles> <param>**/*.json</param> </jsonFiles> </configuration> </execution> </executions> </plugin> </plugins> </build>
Update this in the pom.xml file. Also include your TestRunner.xml file. After that execute the below code in the terminal
> mvn clean install
It will execute all the cucumber tests included in the TestRunner.xml and automatically generate the Cucumber Report.
What a mess. I don't remember where I found this but I had to add the following to get M2Eclipse to be happy. Even more sad is that it isn't exactly easy to understand why this tag is needed.
<!-- language: xml -->
<build> ... various plugins ...
<pluginManagement> <plugins> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <versionRange>[1.0,)</versionRange> <goals> <goal>test-compile</goal> <goal>compile</goal> </goals> </pluginExecutionFilter> <action> <execute /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build>
There were a number of other issues with the M2Eclipse plug-in that simply didn't work with Spring Data. In the end I disabled M2Eclipse in favor of the [Apache Eclipse plug-in][1].

[1]: http://maven.apache.org/plugins/maven-eclipse-plugin/

        
Present in both answers; Present only in the new answer; Present only in the old answer;