Skip to content

Commit

Permalink
Merge pull request #24 from wb14123/fix-example
Browse files Browse the repository at this point in the history
Fix the example
  • Loading branch information
TimMoore committed Oct 23, 2014
2 parents a2ec11d + 6398ab5 commit 12374c5
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ executeMojo(
element(name("outputDirectory"), "${project.build.directory}/foo")
),
executionEnvironment(
project,
session,
mavenProject,
mavenSession,
pluginManager
)
);
Expand All @@ -62,30 +62,13 @@ executeMojo(
The project, session, and pluginManager variables should be injected via the normal Mojo injection:

``` java
/**
* The project currently being build.
*
* @parameter expression="${project}"
* @required
* @readonly
*/
@Component
private MavenProject mavenProject;

/**
* The current Maven session.
*
* @parameter expression="${session}"
* @required
* @readonly
*/
@Component
private MavenSession mavenSession;

/**
* The Maven BuildPluginManager component.
*
* @component
* @required
*/
@Component
private BuildPluginManager pluginManager;
```

Expand Down

0 comments on commit 12374c5

Please sign in to comment.