You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Trollchik <an...@mail.ru> on 2009/01/14 10:16:01 UTC
install file
Hi
i have the following script:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.2</version>
<extensions>true</extensions>
<inherited>false</inherited>
<executions>
<execution>
<id>start</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>commapp</groupId>
<artifactId>commappblock</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/comappblock.jar</file>
<groupId>commons-io</groupId>
<artifactId>commons</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/commons-io-1.2.jar</file>
<groupId>commons-log</groupId>
<artifactId>commons</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/commons-logging-1.1.jar</file>
<groupId>jax-qname</groupId>
<artifactId>jax</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jax-qname.jar</file>
<groupId>jaxb-api</groupId>
<artifactId>jaxb</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jaxb-api.jar</file>
<groupId>jaxb-impl</groupId>
<artifactId>jaxb</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jaxb-impl.jar</file>
<groupId>jaxp-api</groupId>
<artifactId>jaxp</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jaxp-api.jar</file>
<groupId>jaxp-api</groupId>
<artifactId>jaxp</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jaxp-api.jar</file>
<groupId>namespace</groupId>
<artifactId>name</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/namespace.jar</file>
<groupId>relaxngDatatype</groupId>
<artifactId>relaxng</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/relaxngDatatype.jar</file>
<groupId>xsdlib</groupId>
<artifactId>xsdl</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/xsdlib.jar</file>
<groupId>dwr</groupId>
<artifactId>dwrId</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/dwr.jar</file>
<groupId>contactsprotocol</groupId>
<artifactId>contactsprotocol</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/contactsprotocol.jar</file>
<groupId>concurrent</groupId>
<artifactId>concur</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/concurrent.jar</file>
<groupId>jboss-common</groupId>
<artifactId>jboss</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jboss-common.jar</file>
<groupId>jboss-jmx</groupId>
<artifactId>jboss</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jboss-jmx.jar</file>
<groupId>jboss-system</groupId>
<artifactId>jboss</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jboss-system.jar</file>
<groupId>jboss-xml-binding</groupId>
<artifactId>jboss</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jboss-xml-binding.jar</file>
<groupId>kvlistbinding</groupId>
<artifactId>kvlist</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/kvlistbinding.jar</file>
<groupId>kvlists</groupId>
<artifactId>kvlist</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/kvlists.jar</file>
<groupId>managementprotocol</groupId>
<artifactId>management</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/managementprotocol.jar</file>
<groupId>outboundprotocol</groupId>
<artifactId>outbound</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/outboundprotocol.jar</file>
<groupId>reportingprotocol</groupId>
<artifactId>reporting</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/reportingprotocol.jar</file>
<groupId>system</groupId>
<artifactId>sys</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/system.jar</file>
<groupId>warmstandbyappblock</groupId>
<artifactId>warmstan</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/warmstandbyappblock.jar</file>
<groupId>webmediaprotocol</groupId>
<artifactId>webmedia</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/webmediaprotocol.jar</file>
<groupId>commons</groupId>
<artifactId>comm</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/commons.jar</file>
<groupId>protocol</groupId>
<artifactId>prot</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/protocol.jar</file>
<groupId>voiceprotocol</groupId>
<artifactId>voice</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/voiceprotocol.jar</file>
<groupId>standard</groupId>
<artifactId>stand</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/standard.jar</file>
<groupId>jstl</groupId>
<artifactId>jst</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/jstl.jar</file>
<groupId>servlet-api</groupId>
<artifactId>servlet</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/servlet-api.jar</file>
<groupId>messagebrokerappblock</groupId>
<artifactId>messagebroker</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/messagebrokerappblock.jar</file>
<groupId>openmediaprotocol</groupId>
<artifactId>openmedia</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/openmediaprotocol.jar</file>
<groupId>configurationprotocol</groupId>
<artifactId>configuration</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/configurationprotocol.jar</file>
<groupId>connection</groupId>
<artifactId>connect</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<file>src/main/webapp/WEB-INF/lib/connection.jar</file>
</configuration>
</execution>
</executions>
</plugin>
but when i run maven, it install only last file (connection.jar)!!! What's
wrong? How can i install a set of jars???
--
View this message in context: http://www.nabble.com/install-file-tp21452404p21452404.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: install file
Posted by Wayne Fay <wa...@gmail.com>.
> I have a similar requirement. I am trying to migrate my project from Maven 1
> to Maven 2 and I have several jars that I need to install and/or deploy.
Do you know about the "legacy" layout configuration for repositories
in M2? This is configured in settings.xml.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: install file
Posted by Pavitra <pa...@gmail.com>.
I have a similar requirement. I am trying to migrate my project from Maven 1
to Maven 2 and I have several jars that I need to install and/or deploy.
Did you find a solution?
Trollchik wrote:
>
> Hi
> i have the following script:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-install-plugin</artifactId>
> <version>2.2</version>
> <extensions>true</extensions>
> <inherited>false</inherited>
> <executions>
> <execution>
> <id>start</id>
> <phase>install</phase>
> <goals>
> <goal>install-file</goal>
> </goals>
> <configuration>
> <groupId>commapp</groupId>
> <artifactId>commappblock</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/comappblock.jar</file>
> <groupId>commons-io</groupId>
> <artifactId>commons</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/commons-io-1.2.jar</file>
> <groupId>commons-log</groupId>
> <artifactId>commons</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/commons-logging-1.1.jar</file>
> <groupId>jax-qname</groupId>
> <artifactId>jax</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jax-qname.jar</file>
> <groupId>jaxb-api</groupId>
> <artifactId>jaxb</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jaxb-api.jar</file>
> <groupId>jaxb-impl</groupId>
> <artifactId>jaxb</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jaxb-impl.jar</file>
> <groupId>jaxp-api</groupId>
> <artifactId>jaxp</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jaxp-api.jar</file>
> <groupId>jaxp-api</groupId>
> <artifactId>jaxp</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jaxp-api.jar</file>
> <groupId>namespace</groupId>
> <artifactId>name</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/namespace.jar</file>
> <groupId>relaxngDatatype</groupId>
> <artifactId>relaxng</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/relaxngDatatype.jar</file>
> <groupId>xsdlib</groupId>
> <artifactId>xsdl</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/xsdlib.jar</file>
> <groupId>dwr</groupId>
> <artifactId>dwrId</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/dwr.jar</file>
> <groupId>contactsprotocol</groupId>
> <artifactId>contactsprotocol</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/contactsprotocol.jar</file>
> <groupId>concurrent</groupId>
> <artifactId>concur</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/concurrent.jar</file>
> <groupId>jboss-common</groupId>
> <artifactId>jboss</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jboss-common.jar</file>
> <groupId>jboss-jmx</groupId>
> <artifactId>jboss</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jboss-jmx.jar</file>
> <groupId>jboss-system</groupId>
> <artifactId>jboss</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jboss-system.jar</file>
> <groupId>jboss-xml-binding</groupId>
> <artifactId>jboss</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/jboss-xml-binding.jar</file>
> <groupId>kvlistbinding</groupId>
> <artifactId>kvlist</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/kvlistbinding.jar</file>
> <groupId>kvlists</groupId>
> <artifactId>kvlist</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/kvlists.jar</file>
> <groupId>managementprotocol</groupId>
> <artifactId>management</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/managementprotocol.jar</file>
> <groupId>outboundprotocol</groupId>
> <artifactId>outbound</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/outboundprotocol.jar</file>
> <groupId>reportingprotocol</groupId>
> <artifactId>reporting</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/reportingprotocol.jar</file>
> <groupId>system</groupId>
> <artifactId>sys</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/system.jar</file>
> <groupId>warmstandbyappblock</groupId>
> <artifactId>warmstan</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/warmstandbyappblock.jar</file>
> <groupId>webmediaprotocol</groupId>
> <artifactId>webmedia</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/webmediaprotocol.jar</file>
> <groupId>commons</groupId>
> <artifactId>comm</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/commons.jar</file>
> <groupId>protocol</groupId>
> <artifactId>prot</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/protocol.jar</file>
> <groupId>voiceprotocol</groupId>
> <artifactId>voice</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/voiceprotocol.jar</file>
> <groupId>standard</groupId>
> <artifactId>stand</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/standard.jar</file>
> <groupId>jstl</groupId>
> <artifactId>jst</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/jstl.jar</file>
> <groupId>servlet-api</groupId>
> <artifactId>servlet</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/servlet-api.jar</file>
> <groupId>messagebrokerappblock</groupId>
> <artifactId>messagebroker</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/messagebrokerappblock.jar</file>
> <groupId>openmediaprotocol</groupId>
> <artifactId>openmedia</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/openmediaprotocol.jar</file>
> <groupId>configurationprotocol</groupId>
> <artifactId>configuration</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
>
> <file>src/main/webapp/WEB-INF/lib/configurationprotocol.jar</file>
> <groupId>connection</groupId>
> <artifactId>connect</artifactId>
> <version>1.0</version>
> <packaging>jar</packaging>
> <file>src/main/webapp/WEB-INF/lib/connection.jar</file>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
>
> but when i run maven, it install only last file (connection.jar)!!! What's
> wrong? How can i install a set of jars???
>
--
View this message in context: http://www.nabble.com/install-file-tp21452404p21921580.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: install file
Posted by Wayne Fay <wa...@gmail.com>.
> but when i run maven, it install only last file (connection.jar)!!! What's
> wrong? How can i install a set of jars???
1. Installing this many jars is probably something you're going to do
once. Why are you possibly trying to "script" this? Why not just use
"mvn install:install-file ..." directly on the command line a dozen
times?
2. All those tags are overwriting each other. So the XML really only
"sees" one entry.
What are you really trying to do here? Explain it in plain English and
someone will surely have a better suggestion than the route you have
pursued thus far.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org