Skip to content

Commit

Permalink
Merge pull request #175 from jjYBdx4IL/cppbuild-maven-integration
Browse files Browse the repository at this point in the history
 * Execute the `cppbuild.sh` scripts within the Maven build lifecycle
  • Loading branch information
saudet committed Mar 12, 2016
2 parents 3f0a354 + 819ac46 commit 71902d2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opencv/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,30 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<id>cppbuild</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>${project.basedir}/../cppbuild.sh</executable>
<workingDirectory>${project.basedir}/..</workingDirectory>
<arguments>
<argument>install</argument>
<argument>${project.artifactId}</argument>
<argument>-platform</argument>
<argument>${javacpp.platform}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</pluginManagement>

Expand Down

0 comments on commit 71902d2

Please sign in to comment.