In an existing java project that uses python (think python plugin for libre office)
would like to use mvn to install a pypi (Python Package Index). Right now we have the solution to package the tar in mvn and then use maven-dependency-plugin to unpack and maven-antrun-plugin to move the files into the python path (the libre office python path).
Any suggestions on a better way to manage this on Linux and Windows? Ideally it would be as simple as a maven plugin for pypi.
thanks for any input.
From the Tools menu, select Plugins. In the Plugins dialog, click the Available Plugins tab, then type Maven in the Search field. Select the checkbox for the Maven plugin, then click the Install button. Follow the instructions in the NetBeans IDE Installer wizard.
Pip installs system and project-level Python packages. Maven manages dependencies and the build process for Java projects.
"Maven" is really just a core framework for a collection of Maven Plugins. In other words, plugins are where much of the real action is performed, plugins are used to: create jar files, create war files, compile code, unit test code, create project documentation, and on and on.
You can use maven-exec-plugin to execute python script using maven.
I don't know if a maven plugin that can install pip package exist. But what you could do is use the maven-exec plug-in to invoke pip on a specific goal. Here is the documentation on the exec plug-in http://www.mojohaus.org/exec-maven-plugin/usage.html Hope it helped
Edit: Updated link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With