Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support usage in mojos that do not require a MavenProject #6

Open
eskatos opened this Issue · 2 comments

2 participants

@eskatos

Sometimes we need to write mojo goals that do not require a MavenProject. The install-file goal form the maven-install-plugin is a good example.

For now we cannot use mojo-executor in such goals because ExecutionEnvironment requires a non-null MavenProject.

I'm not sure it's even feasible but would be very nice.

@TimMoore
Owner

I think it is feasible. We only need the MavenProject in order to look for remote plugin repositories.

As a workaround, it should be possible to construct an empty MavenProject and pass that in.

I'll leave this open for now and look at improving the API and adding some tests in the future.

@eskatos

Looking forward to it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.