Leo Breuss commented on Bug MOJO-1968

Example that worked for me:

    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>native-maven-plugin</artifactId>
        <extensions>true</extensions>

        <executions>
            <execution>
                <id>generate-headers</id>
                <phase>process-classes</phase>
                <goals>
                    <goal>javah</goal>
                </goals>
                <configuration>
                    <javahClassNames>
                        <javahClassName>com.acme.MyJNI</javahClassName>
                    </javahClassNames>
                    <javahVerbose>true</javahVerbose>
                </configuration>
            </execution>

            <execution>
                <id>generate-includezip</id>
                <phase>package</phase>
                <goals>
                    <goal>inczip</goal>
                </goals>
                <configuration>
                    <sources>
                        <source>
                            <!-- Declare all files in /native/javah as includes (not possible on a per file level) -->
                            <directory>${project.build.directory}/native/javah</directory>
                            <!-- mark them as deployable by an inczip. This includes them in the inczip artifact. -->
                            <deployable>true</deployable>
                        </source>
                    </sources>
                </configuration>
            </execution>
        </executions>
    </plugin>
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to