Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there a pip install plugin for maven?

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.

like image 960
user2646177 Avatar asked Aug 12 '13 20:08

user2646177


People also ask

How do I install a Maven plugin?

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.

Is Pip same as Maven?

Pip installs system and project-level Python packages. Maven manages dependencies and the build process for Java projects.

What is Maven build plugin?

"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.

Can we use Maven with Python?

You can use maven-exec-plugin to execute python script using maven.


1 Answers

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

like image 80
drgn Avatar answered Sep 21 '22 20:09

drgn