The instructions on the page custom-pom-installation doesn't solve the
problem I'm having ( I'm usin the maven-install-plugin:2.5.2:install-file )

Example 1) Here we must have two files. The artifact jar-file _and_ an
pom.xml file. I see no way of referencing the pom.xml _inside_ the artifact
jar-file. So this I can't use since the pom.xml is bundled inside hte
artifact.jar.

Example 2) This will install the artifact jar-file with the information in
the bundled pom.xml but then it generates a dummy pom.xml and install it.
Why is it not installing the pom.xml it just read !?

Generated POM-file looks like this :-(

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"; xmlns="
http://maven.apache.org/POM/4.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.pop.group</groupId>
  <artifactId>beatles</artifactId>
  <version>1.2.3</version>
  <description>POM was created from install:install-file</description>
</project>

/J

> Hi,
>
> this is supported since version 2.5.
> Read
>
http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html
>
> for the details.
>
> thanks,
> Robert
>
> Op Mon, 13 Oct 2014 13:56:26 +0200 schreef Johan Ekesparr
> <johan....@gmail.com>:
>
> > Is there any way of installing the pom.xml file from inside an existing
> > artifact using the maven-install-plugin ?
> >
> > Currently when we have an artifact created in a maven build the artifact
> > includes the pom.xml file. Using the goal install:install-file we can
> > install the arrtifact(jar-file) and the install plugin will read the
> > pom.xml insiden the artifact to get the groupId and name of the artifact
> > during the installation.
> > We would like the installer to also be able to extract and install the
> > pom.xml file from the artifact at the same time. I find it odd that it's
> > not done during the installation of the artifact since it's already
> > reading
> > the pom.xml the logical step from my point of view is to also install
it.
> >
> > Currently I'm forced to create a small ant-script to extract the pom.xml
> > file and install it separatly.
> >
> > So is it possible to do this with the current tool that I have missed or
> > could someone suggest a way to get this into the suggested improvment
> > list
> > for the project ?
> >
> > /J
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to