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

It would be helpful if the examples showed how to access the project #4

Open
justin-calleja opened this issue May 1, 2015 · 3 comments

Comments

@justin-calleja
Copy link

In Scala example:

println("I'm Scala running during the verify phase. The ec passed in allows me to access the project")

I haven't looked for too long into how to access the project (and haven't done any Maven plugins - just normal Maven usage), but didn't manage. I got to printing out ec which tells me it's a org.sonatype.maven.polyglot.plugin.ExecuteMojo, but see no way to access the private MavenProject.

@jvanzyl
Copy link

jvanzyl commented May 1, 2015

It is not exposed currently, but we can easily expose it.

@jvanzyl
Copy link

jvanzyl commented May 1, 2015

I will make an example of getting it from the execution context, I don't think you need to retrieve it from the ExecuteMojo.

@justin-calleja
Copy link
Author

@jvanzyl an example would be awesome. Thanks!

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

No branches or pull requests

2 participants