Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using maven for perl projects

We have seen Maven perform very well for our Java-based projects. I see from this question that non-java projects can also be retrofit as maven modules, albeit they will only be using the maven-exec-plugin for different goals. On googling, I saw maven-perl-plugin but it is still a 1.0-SNAPSHOT with sporadic updates, but certainly looks very promising. Has anyone used this one or any other competitor which will relieve me of writing non-interesting pom boiler-plate?

EDIT: Actually the major part of the project is the n-tiered Java modules and there is a very small perl/python component (for backend parsing) and I am looking for a place to fit it into this ecosystem. I get advantages like using maven-release-plugin to do tag/branch creation and release processes and having it as a part of the same codebase gives me version number consistency. So while I don't intend to use dependency retrieval means of maven for perl modules (sorry that I didn't research enough on the maven-perl-plugin boy), I wanted to know what are the points to be kept in mind when doing such a thing (or if such a thing doesn't make sense) e.g. what should be the module name (topLevelModuleName-perl?) and the structure beneath src/main/perl and src/test/perl. I know I might be going down a slippery slope trying to shoehorn one thing to the other, but doesn't hurt to ask :)

like image 377
Kilokahn Avatar asked Nov 04 '22 20:11

Kilokahn


1 Answers

That's crazy. Use something sane like Module::Build and for dependencies use CPAN (or cpanm). Seriously, for anything that's not Java you have to write load of XML for load of crazy plugins. With Module::Build (or any script) you program your build and you can use any library that's available for the language (you just need to get them with cpanm before).

like image 100
woky Avatar answered Nov 10 '22 15:11

woky