MCPcopy Index your code
hub / github.com/apache/maven-surefire

github.com/apache/maven-surefire @surefire-3.6.0-M1

Chat with this repo
repository ↗ · DeepWiki ↗ · release surefire-3.6.0-M1 ↗ · + Follow
8,162 symbols 29,767 edges 1,260 files 944 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Maven

Contributing to Apache Maven Surefire

Maven Central Apache License, Version 2.0, January 2004

CI Jenkins Build Jenkins Tests

Verify Reproducible Builds

The Maven Community

slack forks

Project Documentation

Maven 3.0 Plugin API

Usage of maven-surefire-plugin, maven-failsafe-plugin, maven-surefire-report-plugin

Development Information

Build the Surefire project using Maven 3.6.3+ and JDK 8+.

  • In order to run tests for a release check during the Vote, the following memory requirements are needed:

On Linux/Unix: export MAVEN_OPTS="-server -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true" On Windows: set MAVEN_OPTS="-server -Xmx256m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true"

  • In order to build and run the tests: mvn install site site:stage -P reporting,run-its

  • To set up the project in Eclipse IDE or IntelliJ IDEA, please follow these steps:

  • Build module surefire-shared-utils with profile ide-development and install it into the local maven repository using this Maven command: mvn install -P ide-development -f surefire-shared-utils/pom.xml

  • In Eclipse, select File > Import ... > Maven Project

    • Select all projects (poms) except surefire-shared-utils, enter profile ide-development in Advanced -> Profiles
    • In IntelliJ, select Maven > Profiles and check ide-development

Deploying web site

See http://maven.apache.org/developers/website/deploy-component-reference-documentation.html

Built with Maven

Extension points exported contracts — how you extend this code

EventHandler (Interface)
Handler of events. @param generic type of the event object [12 implementers]
surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/EventHandler.java
NotifiableTestStream (Interface)
Remote interface of forked JVM with command methods. Implemented by TestProvidingInputStream and {@link Tes [9 implementers]
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/NotifiableTestStream.java
TestFilter (Interface)
Generic interface of test filter. @param test class, or null if not mandatory @param test method, or null [8 implementers]
surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestFilter.java
ConsoleLogger (Interface)
Allows providers to write console messages on the running maven process. This output is associated with the entire [22 …
surefire-logger-api/src/main/java/org/apache/maven/plugin/surefire/log/api/ConsoleLogger.java
KeyValueSource (Interface)
A key-value source obeying the geneal constrains of java.util.Properties. [4 implementers]
surefire-booter/src/main/java/org/apache/maven/surefire/booter/KeyValueSource.java
MasterProcessChannelProcessorFactory (Interface)
The SPI interface, a factory of an encoder and a decoder. [4 implementers]
surefire-extensions-spi/src/main/java/org/apache/maven/surefire/spi/MasterProcessChannelProcessorFactory.java
RunModeSetter (Interface)
Sets the run mode in a listener, reflects the run mode of testset execution. @since 3.0.0-M6 [2 implementers]
surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/RunModeSetter.java
SomeInterface (Interface)
(no doc) [3 implementers]
surefire-its/src/test/resources/maven-multimodule-project-with-jpms/com.foo.api/src/main/java/com/foo/api/SomeInterface.java

Core symbols most depended-on inside this repo

getName
called by 518
surefire-api/src/main/java/org/apache/maven/surefire/api/report/ReportEntry.java
println
called by 432
surefire-api/src/main/java/org/apache/maven/surefire/api/report/ConsoleOutputCapture.java
add
called by 299
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java
isEmpty
called by 276
surefire-api/src/main/java/org/apache/maven/surefire/api/testset/GenericTestPattern.java
getClass
called by 264
surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
append
called by 242
surefire-api/src/main/java/org/apache/maven/surefire/api/util/DefaultScanResult.java
getProperty
called by 233
surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java
put
called by 224
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireProperties.java

Shape

Method 6,699
Class 1,369
Interface 73
Enum 21

Languages

Java100%

Modules by API surface

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java261 symbols
maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/AbstractSurefireMojoTest.java133 symbols
surefire-providers/surefire-junit-platform/src/test/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProviderTest.java117 symbols
maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/MojoMocklessTest.java93 symbols
maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/AbstractSurefireMojoJava7PlusTest.java83 symbols
maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java83 symbols
maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefireMojo.java79 symbols
maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/ForkedProcessEventNotifierTest.java73 symbols
surefire-its/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java69 symbols
surefire-its/src/test/java/org/apache/maven/surefire/its/JUnit447ParallelIT.java61 symbols
maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClientTest.java61 symbols
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java58 symbols

For agents

$ claude mcp add maven-surefire \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page