Skip to content
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

FLAG-77: Fix unit test execution issue during maven build #70

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

ManojLL
Copy link
Contributor

@ManojLL ManojLL commented Jun 16, 2024

Issue worked on : FLAG-77

pom.xml Outdated
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<argLine>-Xmx512m -Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this argLine?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, we don't need this argLine, I added this to fix the testNG suit issue, but the issue is still there.

pom.xml Outdated
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we use the same version as Java 8?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we use the same version as used in java 8

Copy link
Contributor

Choose a reason for hiding this comment

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

Just so you know, you don't need to state the version here explicitly. You could remove the version here.

@ManojLL ManojLL force-pushed the FLAG-77 branch 2 times, most recently from 82ce39c to 9843f78 Compare June 18, 2024 08:28
@wikumChamith
Copy link
Contributor

Do the tests work for you now?

@ManojLL
Copy link
Contributor Author

ManojLL commented Jun 18, 2024

Do the tests work for you now?

Tests are executing but stills having test suit issue
image

@ManojLL ManojLL marked this pull request as ready for review June 18, 2024 19:26
@wikumChamith
Copy link
Contributor

@ManojLL Can we rename the PR name to reflect what we are achieving from this PR?

pom.xml Outdated
@@ -204,5 +210,24 @@
</properties>
</profile>

<profile>
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be great if we could get this as a different PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we remove this profile section, project build for Java 11 and Java 17 will fail for this PR

Copy link
Contributor

Choose a reason for hiding this comment

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

We could rebase that commit to this pull request. So that won't be a problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

@ManojLL I merged the pull request for Java 17 support.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I debase the branch with java 17 changes

pom.xml Outdated
@@ -119,6 +119,12 @@
<version>${legacyuiVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, this decency is needed for java 17

Copy link
Contributor

Choose a reason for hiding this comment

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

You could also add this to the Java 17 pull request.

@ManojLL ManojLL changed the title FLAG-77: added maven-surface plugin and xstream dependency FLAG-77: Fix unit test execution issue during maven build Jun 19, 2024
@wikumChamith wikumChamith merged commit 338a945 into openmrs:master Jun 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants