diff --git a/rezenerator-maven-plugin/pom.xml b/rezenerator-maven-plugin/pom.xml index 8489395..b6111e3 100644 --- a/rezenerator-maven-plugin/pom.xml +++ b/rezenerator-maven-plugin/pom.xml @@ -11,29 +11,38 @@ rezenerator-maven-plugin maven-plugin rezenerator-maven-plugin Maven Mojo + + 3.0.4 + 3.2 + org.apache.maven maven-plugin-api - 3.0.5 + ${maven.version} org.apache.maven.plugin-tools maven-plugin-annotations - 3.2 + ${maven.annotations.version} provided com.tlorrain.android.rezenerator rezenerator-core + + org.apache.maven + maven-core + ${maven.version} + org.apache.maven.plugins maven-plugin-plugin - 3.2 + ${maven.annotations.version} true diff --git a/rezenerator-maven-plugin/src/main/java/com/tlorrain/android/rezenerator/GenerateMojo.java b/rezenerator-maven-plugin/src/main/java/com/tlorrain/android/rezenerator/GenerateMojo.java index 99b017c..895a605 100644 --- a/rezenerator-maven-plugin/src/main/java/com/tlorrain/android/rezenerator/GenerateMojo.java +++ b/rezenerator-maven-plugin/src/main/java/com/tlorrain/android/rezenerator/GenerateMojo.java @@ -9,6 +9,7 @@ import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; +import org.apache.maven.project.MavenProject; import com.tlorrain.android.rezenerator.core.Configuration; import com.tlorrain.android.rezenerator.core.RezeneratorRunner; @@ -25,7 +26,7 @@ public class GenerateMojo extends AbstractMojo { * Directory containing the source files. * */ - @Parameter(required = true, defaultValue = "${project.build.resources[0].directory}/drawable") + @Parameter(required = true, defaultValue = "${project.basedir}/drawable") private File inputDirectory; /** diff --git a/rezenerator-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml b/rezenerator-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml index 184f405..1008409 100644 --- a/rezenerator-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml +++ b/rezenerator-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml @@ -1,18 +1,18 @@ - - - - - generate - - - - - true - false - - - - + + + + + generate + + + + + true + true + + + +