You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Graham Leggett <mi...@sharp.fm> on 2006/07/06 22:30:39 UTC
How to install:install an artifact produced with ant?
Hi all,
I have an ant task that generates a Jboss HAR file in addition to the
original artifact type, an EJB.
How do I ask the install plugin to deploy this HAR artifact as well as
the EJB artifact into the repository?
(The install plugin is undocumented, thus the question).
Regards,
Graham
--
Re: install:install-file fails to insert third-party native library directly into local repository
Posted by jerome lacoste <je...@gmail.com>.
> How can I verify which version of the plugin is being used?
>
> Brad
try mvn -X and check the logs
Jerome
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: install:install-file fails to insert third-party native library directly into local repository
Posted by Brad Harper <br...@epsiia.com>.
I moved the 'maven-install-plugin' into a new 'plugins' module and
placed the cited pom.xml file there.
The local 'maven-install-plugin' built and installed, but attempting
to run
% mvn install:install-file ...
gives me the same 'Failed to resolve artifact.' error.
Brad
-----Original Message-----
From: dan tran [mailto:dantran@gmail.com]
Sent: Friday, July 07, 2006 12:56 PM
To: Maven Users List
Subject: Re: install:install-file fails to insert third-party native
library directly into local repository
then you need http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml
as well
On 7/7/06, Brad Harper <br...@epsiia.com> wrote:
>
> I'm having *no* success building 'maven-install-plugin' from source.
>
> I downloaded from
>
> http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/
>
> Running 'mvn install' in the new project directory gets me to
>
> [ERROR] FATAL ERROR
> [INFO] ----...
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-plugins
> Version: 2-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
> org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2)
>
> It acts like this version of the plugin has a dependency
> on another (maven-plugins) that can't be satisfied.
>
> Brad
>
> -----Original Message-----
> From: dan tran [mailto:dantran@gmail.com]
> Sent: Friday, July 07, 2006 9:42 AM
> To: Maven Users List
> Subject: Re: install:install-file fails to insert third-party native
> library directly into local repository
>
>
> One work around is to build the latest install plugin from source, which
> will force
> maven to use your snapshot build
>
>
>
>
> On 7/7/06, Brad Harper <br...@epsiia.com> wrote:
> >
> > Allan:
> >
> > Per content at .../guide-testing-development-plugins.html, added
> >
> > <pluginRepositories>
> > <pluginRepository>
> > <id>snapshots</id>
> > <url>http://svn.apache.org/maven-snapshot-repository</url>
> > </pluginRepository>
> > </pluginRepositories>
> >
> > to POM.
> >
> > I don't declare use of maven-install-plugin in any POM, i.e. plugin
> > version is not specified. Tried the install-file goal with -U,
> >
> > $ mvn -U install:install-file ...
> >
> > from the project (directory) with POM containing </pluginRepositories>,
> > above.
> >
> > I do see
> >
> > [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \
> > checking for updates from central
> >
> > Maven does not report downloading an update for the plugin and I get
> > the same error.
> >
> > How can I verify which version of the plugin is being used?
> >
> > Brad
> >
> > -----Original Message-----
> > From: Allan Ramirez [mailto:aramirez@exist.com]
> > Sent: Friday, July 07, 2006 11:45 AM
> > To: Maven Users List
> > Subject: Re: install:install-file fails to insert third-party native
> > library directly into local repository
> >
> >
> > It seems that the parameters are still readonly from the 2.1 version of
> > install plugin in ibiblio..
> >
> > Content in the plugin.xml:
> > <parameter>
> > <name>artifactId</name>
> > <type>java.lang.String</type>
> > <required>true</required>
> > <editable>false</editable> <---- still not editable
> > <description></description>
> > </parameter>
> >
> > Brad,
> >
> > try this link
> >
> >
>
>
http://maven.apache.org/guides/development/guide-testing-development-plugins
> > .html
> >
> > dan tran wrote:
> > > strange the code shows artifactId is overridable but your log shows it
> > is
> > > read only field.
> > >
> > > -D
> > >
> > >
> > > On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> > >>
> > >> Same error.
> > >>
> > >> Brad
> > >>
> > >> -----Original Message-----
> > >> From: dan tran [mailto:dantran@gmail.com]
> > >> Sent: Thursday, July 06, 2006 4:50 PM
> > >> To: Maven Users List
> > >> Subject: Re: install:install-file fails to insert third-party native
> > >> library directly into local repository
> > >>
> > >>
> > >> looks like you are using an older version install plugin, try with
> > >> mvn -U
> > >>
> > >> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> > >> >
> > >> > Hello All:
> > >> >
> > >> > I'm using native-maven-plugin and I want to install a third-party
> > >> > native library in the local repository (defined in settings.xml). I
> > >> > intend to specify a dependency in one of my own native project's
> > >> > POM.
> > >> >
> > >> > % mvn
install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc\
> > >> > -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
> > >> > -Dversion=2.0SP1 -Dpackaging=lib
> > >> >
> > >> > [This is nearly identical to an example from BBWM, page 249.]
> > >> >
> > >> > I see the error
> > >> >
> > >> > [ERROR] BUILD ERROR
> > >> > [INFO] --------------...
> > >> > [INFO] Error configuring:
> > >> org.apache.maven.plugnis:maven-install-plugin.
> > >> > Reason: ERROR: Cannot override read-only parameter: artifactId in
> > >> goal
> > >> > install:install-file
> > >> >
> > >> > I'm trying to insert this library manually into the repository. The
> > >> > library does not have a corresponding project/module in my maven
> > >> project
> > >> > hierarchy -- and therefore doesn't have a previously defined
> > >> artifactId.
> > >> >
> > >> > Any thoughts?
> > >> >
> > >> > Brad
> > >> >
> > >> >
> > >> >
> ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > >> >
> > >> >
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> For additional commands, e-mail: users-help@maven.apache.org
> > >>
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: install:install-file fails to insert third-party native library directly into local repository
Posted by dan tran <da...@gmail.com>.
then you need http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml
as well
On 7/7/06, Brad Harper <br...@epsiia.com> wrote:
>
> I'm having *no* success building 'maven-install-plugin' from source.
>
> I downloaded from
>
> http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/
>
> Running 'mvn install' in the new project directory gets me to
>
> [ERROR] FATAL ERROR
> [INFO] ----...
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-plugins
> Version: 2-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
> org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2)
>
> It acts like this version of the plugin has a dependency
> on another (maven-plugins) that can't be satisfied.
>
> Brad
>
> -----Original Message-----
> From: dan tran [mailto:dantran@gmail.com]
> Sent: Friday, July 07, 2006 9:42 AM
> To: Maven Users List
> Subject: Re: install:install-file fails to insert third-party native
> library directly into local repository
>
>
> One work around is to build the latest install plugin from source, which
> will force
> maven to use your snapshot build
>
>
>
>
> On 7/7/06, Brad Harper <br...@epsiia.com> wrote:
> >
> > Allan:
> >
> > Per content at .../guide-testing-development-plugins.html, added
> >
> > <pluginRepositories>
> > <pluginRepository>
> > <id>snapshots</id>
> > <url>http://svn.apache.org/maven-snapshot-repository</url>
> > </pluginRepository>
> > </pluginRepositories>
> >
> > to POM.
> >
> > I don't declare use of maven-install-plugin in any POM, i.e. plugin
> > version is not specified. Tried the install-file goal with -U,
> >
> > $ mvn -U install:install-file ...
> >
> > from the project (directory) with POM containing </pluginRepositories>,
> > above.
> >
> > I do see
> >
> > [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \
> > checking for updates from central
> >
> > Maven does not report downloading an update for the plugin and I get
> > the same error.
> >
> > How can I verify which version of the plugin is being used?
> >
> > Brad
> >
> > -----Original Message-----
> > From: Allan Ramirez [mailto:aramirez@exist.com]
> > Sent: Friday, July 07, 2006 11:45 AM
> > To: Maven Users List
> > Subject: Re: install:install-file fails to insert third-party native
> > library directly into local repository
> >
> >
> > It seems that the parameters are still readonly from the 2.1 version of
> > install plugin in ibiblio..
> >
> > Content in the plugin.xml:
> > <parameter>
> > <name>artifactId</name>
> > <type>java.lang.String</type>
> > <required>true</required>
> > <editable>false</editable> <---- still not editable
> > <description></description>
> > </parameter>
> >
> > Brad,
> >
> > try this link
> >
> >
>
> http://maven.apache.org/guides/development/guide-testing-development-plugins
> > .html
> >
> > dan tran wrote:
> > > strange the code shows artifactId is overridable but your log shows it
> > is
> > > read only field.
> > >
> > > -D
> > >
> > >
> > > On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> > >>
> > >> Same error.
> > >>
> > >> Brad
> > >>
> > >> -----Original Message-----
> > >> From: dan tran [mailto:dantran@gmail.com]
> > >> Sent: Thursday, July 06, 2006 4:50 PM
> > >> To: Maven Users List
> > >> Subject: Re: install:install-file fails to insert third-party native
> > >> library directly into local repository
> > >>
> > >>
> > >> looks like you are using an older version install plugin, try with
> > >> mvn -U
> > >>
> > >> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> > >> >
> > >> > Hello All:
> > >> >
> > >> > I'm using native-maven-plugin and I want to install a third-party
> > >> > native library in the local repository (defined in settings.xml). I
> > >> > intend to specify a dependency in one of my own native project's
> > >> > POM.
> > >> >
> > >> > % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc\
> > >> > -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
> > >> > -Dversion=2.0SP1 -Dpackaging=lib
> > >> >
> > >> > [This is nearly identical to an example from BBWM, page 249.]
> > >> >
> > >> > I see the error
> > >> >
> > >> > [ERROR] BUILD ERROR
> > >> > [INFO] --------------...
> > >> > [INFO] Error configuring:
> > >> org.apache.maven.plugnis:maven-install-plugin.
> > >> > Reason: ERROR: Cannot override read-only parameter: artifactId in
> > >> goal
> > >> > install:install-file
> > >> >
> > >> > I'm trying to insert this library manually into the repository. The
> > >> > library does not have a corresponding project/module in my maven
> > >> project
> > >> > hierarchy -- and therefore doesn't have a previously defined
> > >> artifactId.
> > >> >
> > >> > Any thoughts?
> > >> >
> > >> > Brad
> > >> >
> > >> >
> > >> >
> ---------------------------------------------------------------------
> > >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> > For additional commands, e-mail: users-help@maven.apache.org
> > >> >
> > >> >
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> For additional commands, e-mail: users-help@maven.apache.org
> > >>
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: install:install-file fails to insert third-party native library directly into local repository
Posted by Brad Harper <br...@epsiia.com>.
I'm having *no* success building 'maven-install-plugin' from source.
I downloaded from
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/
Running 'mvn install' in the new project directory gets me to
[ERROR] FATAL ERROR
[INFO] ----...
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins
ArtifactId: maven-plugins
Version: 2-SNAPSHOT
Reason: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
It acts like this version of the plugin has a dependency
on another (maven-plugins) that can't be satisfied.
Brad
-----Original Message-----
From: dan tran [mailto:dantran@gmail.com]
Sent: Friday, July 07, 2006 9:42 AM
To: Maven Users List
Subject: Re: install:install-file fails to insert third-party native
library directly into local repository
One work around is to build the latest install plugin from source, which
will force
maven to use your snapshot build
On 7/7/06, Brad Harper <br...@epsiia.com> wrote:
>
> Allan:
>
> Per content at .../guide-testing-development-plugins.html, added
>
> <pluginRepositories>
> <pluginRepository>
> <id>snapshots</id>
> <url>http://svn.apache.org/maven-snapshot-repository</url>
> </pluginRepository>
> </pluginRepositories>
>
> to POM.
>
> I don't declare use of maven-install-plugin in any POM, i.e. plugin
> version is not specified. Tried the install-file goal with -U,
>
> $ mvn -U install:install-file ...
>
> from the project (directory) with POM containing </pluginRepositories>,
> above.
>
> I do see
>
> [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \
> checking for updates from central
>
> Maven does not report downloading an update for the plugin and I get
> the same error.
>
> How can I verify which version of the plugin is being used?
>
> Brad
>
> -----Original Message-----
> From: Allan Ramirez [mailto:aramirez@exist.com]
> Sent: Friday, July 07, 2006 11:45 AM
> To: Maven Users List
> Subject: Re: install:install-file fails to insert third-party native
> library directly into local repository
>
>
> It seems that the parameters are still readonly from the 2.1 version of
> install plugin in ibiblio..
>
> Content in the plugin.xml:
> <parameter>
> <name>artifactId</name>
> <type>java.lang.String</type>
> <required>true</required>
> <editable>false</editable> <---- still not editable
> <description></description>
> </parameter>
>
> Brad,
>
> try this link
>
>
http://maven.apache.org/guides/development/guide-testing-development-plugins
> .html
>
> dan tran wrote:
> > strange the code shows artifactId is overridable but your log shows it
> is
> > read only field.
> >
> > -D
> >
> >
> > On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> >>
> >> Same error.
> >>
> >> Brad
> >>
> >> -----Original Message-----
> >> From: dan tran [mailto:dantran@gmail.com]
> >> Sent: Thursday, July 06, 2006 4:50 PM
> >> To: Maven Users List
> >> Subject: Re: install:install-file fails to insert third-party native
> >> library directly into local repository
> >>
> >>
> >> looks like you are using an older version install plugin, try with
> >> mvn -U
> >>
> >> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> >> >
> >> > Hello All:
> >> >
> >> > I'm using native-maven-plugin and I want to install a third-party
> >> > native library in the local repository (defined in settings.xml). I
> >> > intend to specify a dependency in one of my own native project's
> >> > POM.
> >> >
> >> > % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \
> >> > -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
> >> > -Dversion=2.0SP1 -Dpackaging=lib
> >> >
> >> > [This is nearly identical to an example from BBWM, page 249.]
> >> >
> >> > I see the error
> >> >
> >> > [ERROR] BUILD ERROR
> >> > [INFO] --------------...
> >> > [INFO] Error configuring:
> >> org.apache.maven.plugnis:maven-install-plugin.
> >> > Reason: ERROR: Cannot override read-only parameter: artifactId in
> >> goal
> >> > install:install-file
> >> >
> >> > I'm trying to insert this library manually into the repository. The
> >> > library does not have a corresponding project/module in my maven
> >> project
> >> > hierarchy -- and therefore doesn't have a previously defined
> >> artifactId.
> >> >
> >> > Any thoughts?
> >> >
> >> > Brad
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: install:install-file fails to insert third-party native library directly into local repository
Posted by dan tran <da...@gmail.com>.
One work around is to build the latest install plugin from source, which
will force
maven to use your snapshot build
On 7/7/06, Brad Harper <br...@epsiia.com> wrote:
>
> Allan:
>
> Per content at .../guide-testing-development-plugins.html, added
>
> <pluginRepositories>
> <pluginRepository>
> <id>snapshots</id>
> <url>http://svn.apache.org/maven-snapshot-repository</url>
> </pluginRepository>
> </pluginRepositories>
>
> to POM.
>
> I don't declare use of maven-install-plugin in any POM, i.e. plugin
> version is not specified. Tried the install-file goal with -U,
>
> $ mvn -U install:install-file ...
>
> from the project (directory) with POM containing </pluginRepositories>,
> above.
>
> I do see
>
> [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \
> checking for updates from central
>
> Maven does not report downloading an update for the plugin and I get
> the same error.
>
> How can I verify which version of the plugin is being used?
>
> Brad
>
> -----Original Message-----
> From: Allan Ramirez [mailto:aramirez@exist.com]
> Sent: Friday, July 07, 2006 11:45 AM
> To: Maven Users List
> Subject: Re: install:install-file fails to insert third-party native
> library directly into local repository
>
>
> It seems that the parameters are still readonly from the 2.1 version of
> install plugin in ibiblio..
>
> Content in the plugin.xml:
> <parameter>
> <name>artifactId</name>
> <type>java.lang.String</type>
> <required>true</required>
> <editable>false</editable> <---- still not editable
> <description></description>
> </parameter>
>
> Brad,
>
> try this link
>
> http://maven.apache.org/guides/development/guide-testing-development-plugins
> .html
>
> dan tran wrote:
> > strange the code shows artifactId is overridable but your log shows it
> is
> > read only field.
> >
> > -D
> >
> >
> > On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> >>
> >> Same error.
> >>
> >> Brad
> >>
> >> -----Original Message-----
> >> From: dan tran [mailto:dantran@gmail.com]
> >> Sent: Thursday, July 06, 2006 4:50 PM
> >> To: Maven Users List
> >> Subject: Re: install:install-file fails to insert third-party native
> >> library directly into local repository
> >>
> >>
> >> looks like you are using an older version install plugin, try with
> >> mvn -U
> >>
> >> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> >> >
> >> > Hello All:
> >> >
> >> > I'm using native-maven-plugin and I want to install a third-party
> >> > native library in the local repository (defined in settings.xml). I
> >> > intend to specify a dependency in one of my own native project's
> >> > POM.
> >> >
> >> > % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \
> >> > -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
> >> > -Dversion=2.0SP1 -Dpackaging=lib
> >> >
> >> > [This is nearly identical to an example from BBWM, page 249.]
> >> >
> >> > I see the error
> >> >
> >> > [ERROR] BUILD ERROR
> >> > [INFO] --------------...
> >> > [INFO] Error configuring:
> >> org.apache.maven.plugnis:maven-install-plugin.
> >> > Reason: ERROR: Cannot override read-only parameter: artifactId in
> >> goal
> >> > install:install-file
> >> >
> >> > I'm trying to insert this library manually into the repository. The
> >> > library does not have a corresponding project/module in my maven
> >> project
> >> > hierarchy -- and therefore doesn't have a previously defined
> >> artifactId.
> >> >
> >> > Any thoughts?
> >> >
> >> > Brad
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: install:install-file fails to insert third-party native library directly into local repository
Posted by Brad Harper <br...@epsiia.com>.
Allan:
Per content at .../guide-testing-development-plugins.html, added
<pluginRepositories>
<pluginRepository>
<id>snapshots</id>
<url>http://svn.apache.org/maven-snapshot-repository</url>
</pluginRepository>
</pluginRepositories>
to POM.
I don't declare use of maven-install-plugin in any POM, i.e. plugin
version is not specified. Tried the install-file goal with -U,
$ mvn -U install:install-file ...
from the project (directory) with POM containing </pluginRepositories>,
above.
I do see
[INFO] artifact org.apache.maven.plugins:maven-install-pluging: \
checking for updates from central
Maven does not report downloading an update for the plugin and I get
the same error.
How can I verify which version of the plugin is being used?
Brad
-----Original Message-----
From: Allan Ramirez [mailto:aramirez@exist.com]
Sent: Friday, July 07, 2006 11:45 AM
To: Maven Users List
Subject: Re: install:install-file fails to insert third-party native
library directly into local repository
It seems that the parameters are still readonly from the 2.1 version of
install plugin in ibiblio..
Content in the plugin.xml:
<parameter>
<name>artifactId</name>
<type>java.lang.String</type>
<required>true</required>
<editable>false</editable> <---- still not editable
<description></description>
</parameter>
Brad,
try this link
http://maven.apache.org/guides/development/guide-testing-development-plugins
.html
dan tran wrote:
> strange the code shows artifactId is overridable but your log shows it is
> read only field.
>
> -D
>
>
> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
>>
>> Same error.
>>
>> Brad
>>
>> -----Original Message-----
>> From: dan tran [mailto:dantran@gmail.com]
>> Sent: Thursday, July 06, 2006 4:50 PM
>> To: Maven Users List
>> Subject: Re: install:install-file fails to insert third-party native
>> library directly into local repository
>>
>>
>> looks like you are using an older version install plugin, try with
>> mvn -U
>>
>> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
>> >
>> > Hello All:
>> >
>> > I'm using native-maven-plugin and I want to install a third-party
>> > native library in the local repository (defined in settings.xml). I
>> > intend to specify a dependency in one of my own native project's
>> > POM.
>> >
>> > % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \
>> > -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
>> > -Dversion=2.0SP1 -Dpackaging=lib
>> >
>> > [This is nearly identical to an example from BBWM, page 249.]
>> >
>> > I see the error
>> >
>> > [ERROR] BUILD ERROR
>> > [INFO] --------------...
>> > [INFO] Error configuring:
>> org.apache.maven.plugnis:maven-install-plugin.
>> > Reason: ERROR: Cannot override read-only parameter: artifactId in
>> goal
>> > install:install-file
>> >
>> > I'm trying to insert this library manually into the repository. The
>> > library does not have a corresponding project/module in my maven
>> project
>> > hierarchy -- and therefore doesn't have a previously defined
>> artifactId.
>> >
>> > Any thoughts?
>> >
>> > Brad
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: install:install-file fails to insert third-party native library
directly into local repository
Posted by Allan Ramirez <ar...@exist.com>.
It seems that the parameters are still readonly from the 2.1 version of
install plugin in ibiblio..
Content in the plugin.xml:
<parameter>
<name>artifactId</name>
<type>java.lang.String</type>
<required>true</required>
<editable>false</editable> <---- still not editable
<description></description>
</parameter>
Brad,
try this link
http://maven.apache.org/guides/development/guide-testing-development-plugins.html
dan tran wrote:
> strange the code shows artifactId is overridable but your log shows it is
> read only field.
>
> -D
>
>
> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
>>
>> Same error.
>>
>> Brad
>>
>> -----Original Message-----
>> From: dan tran [mailto:dantran@gmail.com]
>> Sent: Thursday, July 06, 2006 4:50 PM
>> To: Maven Users List
>> Subject: Re: install:install-file fails to insert third-party native
>> library directly into local repository
>>
>>
>> looks like you are using an older version install plugin, try with
>> mvn -U
>>
>> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
>> >
>> > Hello All:
>> >
>> > I'm using native-maven-plugin and I want to install a third-party
>> > native library in the local repository (defined in settings.xml). I
>> > intend to specify a dependency in one of my own native project's
>> > POM.
>> >
>> > % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \
>> > -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
>> > -Dversion=2.0SP1 -Dpackaging=lib
>> >
>> > [This is nearly identical to an example from BBWM, page 249.]
>> >
>> > I see the error
>> >
>> > [ERROR] BUILD ERROR
>> > [INFO] --------------...
>> > [INFO] Error configuring:
>> org.apache.maven.plugnis:maven-install-plugin.
>> > Reason: ERROR: Cannot override read-only parameter: artifactId in
>> goal
>> > install:install-file
>> >
>> > I'm trying to insert this library manually into the repository. The
>> > library does not have a corresponding project/module in my maven
>> project
>> > hierarchy -- and therefore doesn't have a previously defined
>> artifactId.
>> >
>> > Any thoughts?
>> >
>> > Brad
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: install:install-file fails to insert third-party native library directly into local repository
Posted by dan tran <da...@gmail.com>.
strange the code shows artifactId is overridable but your log shows it is
read only field.
-D
On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
>
> Same error.
>
> Brad
>
> -----Original Message-----
> From: dan tran [mailto:dantran@gmail.com]
> Sent: Thursday, July 06, 2006 4:50 PM
> To: Maven Users List
> Subject: Re: install:install-file fails to insert third-party native
> library directly into local repository
>
>
> looks like you are using an older version install plugin, try with mvn -U
>
> On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
> >
> > Hello All:
> >
> > I'm using native-maven-plugin and I want to install a third-party
> > native library in the local repository (defined in settings.xml). I
> > intend to specify a dependency in one of my own native project's
> > POM.
> >
> > % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \
> > -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
> > -Dversion=2.0SP1 -Dpackaging=lib
> >
> > [This is nearly identical to an example from BBWM, page 249.]
> >
> > I see the error
> >
> > [ERROR] BUILD ERROR
> > [INFO] --------------...
> > [INFO] Error configuring:
> org.apache.maven.plugnis:maven-install-plugin.
> > Reason: ERROR: Cannot override read-only parameter: artifactId in goal
> > install:install-file
> >
> > I'm trying to insert this library manually into the repository. The
> > library does not have a corresponding project/module in my maven project
> > hierarchy -- and therefore doesn't have a previously defined artifactId.
> >
> > Any thoughts?
> >
> > Brad
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: install:install-file fails to insert third-party native library directly into local repository
Posted by Brad Harper <br...@epsiia.com>.
Same error.
Brad
-----Original Message-----
From: dan tran [mailto:dantran@gmail.com]
Sent: Thursday, July 06, 2006 4:50 PM
To: Maven Users List
Subject: Re: install:install-file fails to insert third-party native
library directly into local repository
looks like you are using an older version install plugin, try with mvn -U
On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
>
> Hello All:
>
> I'm using native-maven-plugin and I want to install a third-party
> native library in the local repository (defined in settings.xml). I
> intend to specify a dependency in one of my own native project's
> POM.
>
> % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \
> -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
> -Dversion=2.0SP1 -Dpackaging=lib
>
> [This is nearly identical to an example from BBWM, page 249.]
>
> I see the error
>
> [ERROR] BUILD ERROR
> [INFO] --------------...
> [INFO] Error configuring: org.apache.maven.plugnis:maven-install-plugin.
> Reason: ERROR: Cannot override read-only parameter: artifactId in goal
> install:install-file
>
> I'm trying to insert this library manually into the repository. The
> library does not have a corresponding project/module in my maven project
> hierarchy -- and therefore doesn't have a previously defined artifactId.
>
> Any thoughts?
>
> Brad
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: install:install-file fails to insert third-party native library directly into local repository
Posted by dan tran <da...@gmail.com>.
looks like you are using an older version install plugin, try with mvn -U
On 7/6/06, Brad Harper <br...@epsiia.com> wrote:
>
> Hello All:
>
> I'm using native-maven-plugin and I want to install a third-party
> native library in the local repository (defined in settings.xml). I
> intend to specify a dependency in one of my own native project's
> POM.
>
> % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \
> -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
> -Dversion=2.0SP1 -Dpackaging=lib
>
> [This is nearly identical to an example from BBWM, page 249.]
>
> I see the error
>
> [ERROR] BUILD ERROR
> [INFO] --------------...
> [INFO] Error configuring: org.apache.maven.plugnis:maven-install-plugin.
> Reason: ERROR: Cannot override read-only parameter: artifactId in goal
> install:install-file
>
> I'm trying to insert this library manually into the repository. The
> library does not have a corresponding project/module in my maven project
> hierarchy -- and therefore doesn't have a previously defined artifactId.
>
> Any thoughts?
>
> Brad
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: How to install:install an artifact produced with ant?
Posted by Graham Leggett <mi...@sharp.fm>.
dan tran wrote:
> how did you create your HAR and EJB artifact via antrun-plugin?
The EJB is built natively, the HAR is built with antrun-plugin.
> Take a look at build-helper-maven-plugin
This looks like exactly what I need, thank you! :)
Regards,
Graham
--
install:install-file fails to insert third-party native library directly into local repository
Posted by Brad Harper <br...@epsiia.com>.
Hello All:
I'm using native-maven-plugin and I want to install a third-party
native library in the local repository (defined in settings.xml). I
intend to specify a dependency in one of my own native project's
POM.
% mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \
-DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \
-Dversion=2.0SP1 -Dpackaging=lib
[This is nearly identical to an example from BBWM, page 249.]
I see the error
[ERROR] BUILD ERROR
[INFO] --------------...
[INFO] Error configuring: org.apache.maven.plugnis:maven-install-plugin.
Reason: ERROR: Cannot override read-only parameter: artifactId in goal
install:install-file
I'm trying to insert this library manually into the repository. The
library does not have a corresponding project/module in my maven project
hierarchy -- and therefore doesn't have a previously defined artifactId.
Any thoughts?
Brad
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to install:install an artifact produced with ant?
Posted by dan tran <da...@gmail.com>.
how did you create your HAR and EJB artifact via antrun-plugin?
Take a look at build-helper-maven-plugin
-D
On 7/6/06, Graham Leggett <mi...@sharp.fm> wrote:
>
> Hi all,
>
> I have an ant task that generates a Jboss HAR file in addition to the
> original artifact type, an EJB.
>
> How do I ask the install plugin to deploy this HAR artifact as well as
> the EJB artifact into the repository?
>
> (The install plugin is undocumented, thus the question).
>
> Regards,
> Graham
> --
>
>
>