Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Get rid of surefire warning #965

Merged
merged 1 commit into from
Jan 25, 2023
Merged

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Jan 25, 2023

As POM uses deprecated configuration.

As POM uses deprecated configuration.
@cstamas cstamas self-assigned this Jan 25, 2023
@cstamas cstamas marked this pull request as ready for review January 25, 2023 13:47
@cstamas cstamas merged commit 36f02c9 into apache:maven-3.9.x Jan 25, 2023
@cstamas cstamas deleted the get-rid-of-warning branch January 25, 2023 13:56
Copy link
Member

@slawekjaranowski slawekjaranowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

systemPropertyVariables is a Map, should be

<systemPropertyVariables>
 <basedir>...</basedir>
</systemPropertyVariables>

please verify

@slawekjaranowski
Copy link
Member

@cstamas please verify my comments

@cstamas
Copy link
Member Author

cstamas commented Jan 25, 2023

Yup, this is wrong, damn it. -X shows nicely

@cstamas
Copy link
Member Author

cstamas commented Jan 25, 2023

diff --git a/apache-maven/pom.xml b/apache-maven/pom.xml
index 855bb7758..08d5f5274 100644
--- a/apache-maven/pom.xml
+++ b/apache-maven/pom.xml
@@ -160,10 +160,7 @@ under the License.
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
           <systemPropertyVariables>
-            <property>
-              <name>basedir</name>
-              <value>${basedir}</value>
-            </property>
+            <basedir>${basedir}</basedir>
           </systemPropertyVariables>
         </configuration>
         <executions>

Is the correct change.

@slawekjaranowski
Copy link
Member

interesting why tests pass ...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants