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

[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants