Update:
I used the maven-antrun-plugin to zip the folder contents, as it was far
simpler than the exec plugin.
<build>
<plugins>
<plugin>
<artifactId>*maven-antrun-plugin*</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
*<zip
destfile="${project.build.directory}/artifact-name-${project.version}.zip"
basedir="parentdir/contentdir" />*
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
On Fri, Nov 7, 2014 at 12:10 PM, Chamila De Alwis <[email protected]> wrote:
> Hi,
>
> I have a python module that should be integrated in to the rest of the
> Java code in a project with Maven. The production code folder in this
> module should be zipped up and moved to the target folder when maven
> install is run.
>
> The only option I've found so far is to map actions in Python's setuptools
> to Maven through exec-maven-plugin[1]. However my requirement seems simpler
> than writing a setup.py file.
>
> Are there any other methods to approach this?
>
>
> [1] - http://shiningpanda.com/python-java-unified-build-process-14.html
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev