-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SUREFIRE-1972] Use current version of surefire-shared-utils #443
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,12 +266,12 @@ | |
<postBuildHookScript>verify</postBuildHookScript> | ||
<settingsFile>src/it/settings.xml</settingsFile> | ||
<skipInvocation>${skipTests}</skipInvocation> | ||
<streamLogs>true</streamLogs> | ||
<showErrors>true</showErrors> | ||
<properties> | ||
<integration-test-port>${failsafe-integration-test-port}</integration-test-port> | ||
<integration-test-stop-port>${failsafe-integration-test-stop-port}</integration-test-stop-port> | ||
</properties> | ||
<debug>true</debug> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this needed ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sometimes I need to have debug logs if I investigate a problem. For instance failures of downloading artifacts of plugin parameters, etc. |
||
</configuration> | ||
</execution> | ||
</executions> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ | |
</contributors> | ||
|
||
<modules> | ||
<module>surefire-shared-utils</module> | ||
<module>surefire-logger-api</module> | ||
<module>surefire-api</module> | ||
<module>surefire-extensions-api</module> | ||
|
@@ -62,7 +63,6 @@ | |
<module>maven-failsafe-plugin</module> | ||
<module>maven-surefire-report-plugin</module> | ||
<module>surefire-its</module> | ||
<module>surefire-shared-utils</module> | ||
</modules> | ||
|
||
<scm> | ||
|
@@ -101,6 +101,7 @@ | |
<powermockVersion>2.0.9</powermockVersion> | ||
<mavenPluginToolsVersion>3.6.2</mavenPluginToolsVersion> | ||
<jacocoVersion>0.8.7</jacocoVersion> | ||
<surefire-shared-utils.version>${project.version}</surefire-shared-utils.version> | ||
<maven.surefire.scm.devConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-surefire.git</maven.surefire.scm.devConnection> | ||
<maven.site.path>surefire-archives/surefire-LATEST</maven.site.path> | ||
<maven.compiler.testSource>1.${javaVersion}</maven.compiler.testSource> | ||
|
@@ -687,7 +688,17 @@ | |
</reporting> | ||
|
||
<profiles> | ||
|
||
<profile> | ||
<!-- First, install the project without tests -> mvn install -DskipTests | ||
This is a workaround for IntelliJ IDEA, see https://youtrack.jetbrains.com/issue/IDEA-148573 | ||
IDEA is able to recognize external artifacts with classifiers. But IDEA expects modules and their artifacts | ||
without classifier. If the version differs from project, the idea would understand it as external artifact. | ||
--> | ||
<id>ide-development</id> | ||
<properties> | ||
<surefire-shared-utils.version>3-SNAPSHOT</surefire-shared-utils.version> | ||
</properties> | ||
</profile> | ||
Comment on lines
+691
to
+701
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose that nobody will not install project with special profile ... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @slawekjaranowski |
||
<profile> | ||
<id>jdk9+</id> | ||
<activation> | ||
|
@@ -697,7 +708,6 @@ | |
<jvm9ArgsTests>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.util.regex=ALL-UNNAMED --add-opens java.base/java.nio.channels.spi=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED --add-opens java.base/sun.nio.cs=ALL-UNNAMED --add-opens java.base/java.nio.file=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED</jvm9ArgsTests> | ||
</properties> | ||
</profile> | ||
|
||
<profile> | ||
<id>reporting</id> | ||
<reporting> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,11 +115,12 @@ | |
</plugin> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.0.0-M3</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we using this older version "3.0.0-M3" ? what's the reasoning about choosing this one ? could it be 2.x ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can try with 2.22.2. Let's see what happens... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @eolivelli |
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.maven.surefire</groupId> | ||
<artifactId>surefire-shadefire</artifactId> | ||
<version>3.0.0-M4</version> <!-- ${shadedVersion}, but resolved due to https://issues.apache.org/jira/browse/MRELEASE-799 --> | ||
<version>3.0.0-M3</version> <!-- ${shadedVersion}, but resolved due to https://issues.apache.org/jira/browse/MRELEASE-799 --> | ||
</dependency> | ||
</dependencies> | ||
<configuration> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,9 @@ | |
|
||
<artifactId>surefire-shared-utils</artifactId> | ||
<name>Surefire Shared Utils</name> | ||
<description>Relocated Java packages of maven-shared-utils in Surefire</description> | ||
<description> | ||
Relocated Java packages of maven-shared-utils and several Apache Commons utilities in Surefire. | ||
</description> | ||
|
||
<licenses> | ||
<license> | ||
|
@@ -100,5 +102,35 @@ | |
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<!-- First, install the project without tests -> mvn install -DskipTests | ||
This is a workaround for IntelliJ IDEA, see https://youtrack.jetbrains.com/issue/IDEA-148573 | ||
IDEA is able to recognize external artifacts with classifiers. But IDEA expects modules and their artifacts | ||
without classifier. If the version differs from project, the idea would understand it as external artifact. | ||
--> | ||
<id>ide-development</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-install-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>install-devel-jar</id> | ||
<phase>install</phase> | ||
<goals> | ||
<goal>install-file</goal> | ||
</goals> | ||
<configuration> | ||
<artifactId>surefire-shared-utils</artifactId> | ||
<version>3-SNAPSHOT</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why 3-SNAPSHOT ? is this a random name ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because this version is not used in deployment or elsewhere. Basically the number also does not matter ;-) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @eoliveli I can change this number. Let me know pls. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose that nobody will not install project with special profile ... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @slawekjaranowski |
||
<file>target/${project.build.finalName}.jar</file> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we changing this line ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the info logs do not help. And debug logs cannot be read in the main logs.
Several days ago we fixed logs archives and so these logs of this module can be downloaded as a zip.