Skip to content

Commit

Permalink
tweaked maven plugin (eclipse integration) see #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fredszaq committed Jul 14, 2013
1 parent 4d382c1 commit b430aec
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 19 deletions.
15 changes: 12 additions & 3 deletions rezenerator-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,38 @@
<artifactId>rezenerator-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>rezenerator-maven-plugin Maven Mojo</name>
<properties>
<maven.version>3.0.4</maven.version>
<maven.annotations.version>3.2</maven.annotations.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.0.5</version>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.2</version>
<version>${maven.annotations.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.tlorrain.android.rezenerator</groupId>
<artifactId>rezenerator-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.2</version>
<version>${maven.annotations.version}</version>
<configuration>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>true</runOnIncremental>
<runOnConfiguration>false</runOnConfiguration>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>true</runOnIncremental>
<runOnConfiguration>true</runOnConfiguration>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>

0 comments on commit b430aec

Please sign in to comment.