You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by serafettin senturk <se...@hotmail.com> on 2006/12/20 12:11:10 UTC

Maven install:install-file problem

Hello,

When I write the following statement :

mvn install:install-file -DgroupId=org.andromda.cartridges 
-DartifactId=andromda-spring-cartridge  -Dversion=${andromda.version} 
-Dpackaging=jar -Dfile=C:\Documents and Settings\XXX\.m2 
\repository\org\andromda\cartridges\andromda-spring-cartridge\3.2-SNAPSHOT\andromda-spring-cartridge-3.2-SNAPSHOT.jar

I just get this error:

[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Invalid task 'and': you must specify a valid lifecycle phase, or a 
goal i
n the format plugin:goal or 
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Dec 19 15:57:12 EET 2006
[INFO] Final Memory: 1M/4M
[INFO] 
------------------------------------------------------------------------

what can be the problem?

should I define the install goal?

Thanks in advance..






<html><DIV><FONT color=#330099>
<P>Serafettin Senturk&nbsp;<BR><BR>Computer Engineer (BSc) 
<BR><BR>MSc&nbsp;in Software Technology - Stuttgart Uni. of Applied Sciences 
<BR><BR>Tel. (0532)&nbsp;4037784 <BR><BR>Address.&nbsp;Haci Hesna Hatun Mah. 
Yeni Dunya Sok. Derya&nbsp;Apt. 21/4 Üsküdar</P></FONT>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P></DIV></html>

_________________________________________________________________
Hava durumunu bizden ögrenin ve evden öyle çikin! 
http://www.msn.com.tr/havadurumu/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven install:install-file problem

Posted by serafettin senturk <se...@hotmail.com>.
ok, when I quote the path, I don't get the "install" problem any more. But 
now, I get the following:

[INFO] Building Odabul Reservation System
[INFO]    task-segment: [install:install-file] (aggregator-style)
[INFO] 
-------------------------------------------------------------------------
---
[INFO] [install:install-file]
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Cannot install artifact. Artifact is already in the local repository.

File in question is: C:\Documents and 
Settings\XXX\.m2\repository\org\andromda\c
artridges\andromda-spring-cartridge\3.2-SNAPSHOT\andromda-spring-cartridge-3.2-S
NAPSHOT.jar

[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Dec 20 14:51:17 EET 2006
[INFO] Final Memory: 2M/4M


But even before, when I wrote only "mvn install", I was getting the 
following error:

2) org.andromda.cartridges:andromda-spring-cartridge:jar:${andromda.version}

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.andromda.cartridges 
-DartifactId=an
dromda-spring-cartridge \
          -Dversion=${andromda.version} -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) odabul:odabul-mda:pom:1.0-SNAPSHOT
        2) 
org.andromda.cartridges:andromda-spring-cartridge:jar:${andromda.vers
ion}


What should I do to fix this problem?

Thanks a lot..



<html><DIV><FONT color=#330099>
<P>Serafettin Senturk&nbsp;<BR><BR>Computer Engineer (BSc) 
<BR><BR>MSc&nbsp;in Software Technology - Stuttgart Uni. of Applied Sciences 
<BR><BR>Tel. (0532)&nbsp;4037784 <BR><BR>Address.&nbsp;Haci Hesna Hatun Mah. 
Yeni Dunya Sok. Derya&nbsp;Apt. 21/4 Üsküdar</P></FONT>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P></DIV></html>





>From: <bj...@accenture.com>
>Reply-To: "Maven Users List" <us...@maven.apache.org>
>To: <us...@maven.apache.org>
>Subject: RE: Maven install:install-file problem
>Date: Wed, 20 Dec 2006 13:00:13 +0100
>
>Quote the path
>
>-----Original Message-----
>From: serafettin senturk [mailto:senturkserafettin@hotmail.com]
>Sent: woensdag 20 december 2006 12:11
>To: users@maven.apache.org
>Subject: Maven install:install-file problem
>
>
>Hello,
>
>When I write the following statement :
>
>mvn install:install-file -DgroupId=org.andromda.cartridges
>-DartifactId=andromda-spring-cartridge  -Dversion=${andromda.version}
>-Dpackaging=jar -Dfile=C:\Documents and Settings\XXX\.m2
>\repository\org\andromda\cartridges\andromda-spring-cartridge\3.2-SNAPSHOT\andromda-spring-cartridge-3.2-SNAPSHOT.jar
>
>I just get this error:
>
>[INFO] Searching repository for plugin with prefix: 'install'.
>[INFO]
>------------------------------------------------------------------------
>[ERROR] BUILD FAILURE
>[INFO]
>------------------------------------------------------------------------
>[INFO] Invalid task 'and': you must specify a valid lifecycle phase, or a
>goal i
>n the format plugin:goal or
>pluginGroupId:pluginArtifactId:pluginVersion:goal
>[INFO]
>------------------------------------------------------------------------
>[INFO] For more information, run Maven with the -e switch
>[INFO]
>------------------------------------------------------------------------
>[INFO] Total time: 1 second
>[INFO] Finished at: Tue Dec 19 15:57:12 EET 2006
>[INFO] Final Memory: 1M/4M
>[INFO]
>------------------------------------------------------------------------
>
>what can be the problem?
>
>should I define the install goal?
>
>Thanks in advance..
>
>
>
>
>
>
><html><DIV><FONT color=#330099>
><P>Serafettin Senturk&nbsp;<BR><BR>Computer Engineer (BSc)
><BR><BR>MSc&nbsp;in Software Technology - Stuttgart Uni. of Applied 
>Sciences
><BR><BR>Tel. (0532)&nbsp;4037784 <BR><BR>Address.&nbsp;Haci Hesna Hatun 
>Mah.
>Yeni Dunya Sok. Derya&nbsp;Apt. 21/4 Üsküdar</P></FONT>
><P>&nbsp;</P>
><P>&nbsp;</P>
><P>&nbsp;</P></DIV></html>
>
>_________________________________________________________________
>Hava durumunu bizden ögrenin ve evden öyle çikin!
>http://www.msn.com.tr/havadurumu/
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>This message is for the designated recipient only and may contain 
>privileged, proprietary, or otherwise private information.  If you have 
>received it in error, please notify the sender immediately and delete the 
>original.  Any other use of the email by you is prohibited.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>

_________________________________________________________________
Sadece sohbet ile yetinmeyin - eglneceye de doymak için Messenger'i tercih 
edin! http://messenger.msn.com/?mkt=tr&DI=3490&XAPID=2584


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven install:install-file problem

Posted by bj...@accenture.com.
Quote the path

-----Original Message-----
From: serafettin senturk [mailto:senturkserafettin@hotmail.com] 
Sent: woensdag 20 december 2006 12:11
To: users@maven.apache.org
Subject: Maven install:install-file problem


Hello,

When I write the following statement :

mvn install:install-file -DgroupId=org.andromda.cartridges 
-DartifactId=andromda-spring-cartridge  -Dversion=${andromda.version} 
-Dpackaging=jar -Dfile=C:\Documents and Settings\XXX\.m2 
\repository\org\andromda\cartridges\andromda-spring-cartridge\3.2-SNAPSHOT\andromda-spring-cartridge-3.2-SNAPSHOT.jar

I just get this error:

[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Invalid task 'and': you must specify a valid lifecycle phase, or a 
goal i
n the format plugin:goal or 
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Dec 19 15:57:12 EET 2006
[INFO] Final Memory: 1M/4M
[INFO] 
------------------------------------------------------------------------

what can be the problem?

should I define the install goal?

Thanks in advance..






<html><DIV><FONT color=#330099>
<P>Serafettin Senturk&nbsp;<BR><BR>Computer Engineer (BSc) 
<BR><BR>MSc&nbsp;in Software Technology - Stuttgart Uni. of Applied Sciences 
<BR><BR>Tel. (0532)&nbsp;4037784 <BR><BR>Address.&nbsp;Haci Hesna Hatun Mah. 
Yeni Dunya Sok. Derya&nbsp;Apt. 21/4 Üsküdar</P></FONT>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P></DIV></html>

_________________________________________________________________
Hava durumunu bizden ögrenin ve evden öyle çikin! 
http://www.msn.com.tr/havadurumu/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org