How to install only pom with Maven install-plugin with minimal configuration -
i using maven (2.2.1) install-plugin (2.5.2) install third party dependencies not available in repository.
when dependency has both jar , pom, install-plugin reads pom file , sets packaging, groupid, artifactid, , version don't need specify them:
<execution> <id>1</id> <phase>validate</phase> <goals> <goal>install-file</goal> </goals> <configuration> <file>si/odm/jrules-engine/8.5.1/jrules-engine-8.5.1.jar</file> <pomfile>si/odm/jrules-engine/8.5.1/jrules-engine-8.5.1.pom</pomfile> </configuration> </execution>
however, when dependency has pom file, forces me specify packaging, groupid, etc. manually:
<execution> <id>2</id> <phase>validate</phase> <goals> <goal>install-file</goal> </goals> <configuration> <packaging>pom</packaging> <groupid>odm</groupid> <artifactid>jrules-otherthing</artifactid> <version>8.5.1</version> <file>si/odm/jrules-otherthing/8.5.1/jrules-otherthing-8.5.1.pom</file> </configuration> </execution>
is possible configure install-plugin read pom file when file being installed?
being able make configuration great deal shorter , more readable.
i tried specifying pom file in <pomfile>
element without <file>
element, install-plugin insists must have <file>
. assume isn't possible, wanted ask here in case missed something.
Comments
Post a Comment