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

[MSHARED-1007] Add MavenHome and MavenExecutable options to InvocationRequest #34

Merged
merged 1 commit into from
Dec 29, 2021

Conversation

slawekjaranowski
Copy link
Member

No description provided.

/**
* Sets the path to the base directory of the Maven installation used to invoke Maven. This parameter may be left
* unspecified to use the default Maven installation which will be discovered by evaluating the system property
* <code>maven.home</code> and the environment variable <code>M2_HOME</code>.
Copy link
Member

Choose a reason for hiding this comment

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

The M2_HOME variable is long dead. Don't use it.

if ( mavenHome == null )
{
String mavenHomeProperty = System.getProperty( "maven.home" );
if ( mavenHomeProperty == null && getSystemEnvVars().getProperty( "M2_HOME" ) != null )
Copy link
Member

Choose a reason for hiding this comment

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

Drop this.

@slawekjaranowski
Copy link
Member Author

There is issue for removing M2_HOME - https://issues.apache.org/jira/browse/MSHARED-577

If it is only this remarks I will merge this PR and in separate change remove all occurrence of M2_HOME
ok? - @michael-o

@michael-o
Copy link
Member

There is issue for removing M2_HOME - https://issues.apache.org/jira/browse/MSHARED-577

If it is only this remarks I will merge this PR and in separate change remove all occurrence of M2_HOME ok? - @michael-o

Go ahead an then remove M2_HOME as part of that other ticket.

@slawekjaranowski slawekjaranowski merged commit 1841a8e into master Dec 29, 2021
@slawekjaranowski slawekjaranowski deleted the MSHARED-1007 branch December 29, 2021 22:58
@slawekjaranowski slawekjaranowski added the enhancement New feature or request label Apr 5, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants