AW: installing sources to local repository by means of install plugin

2006-08-24 Thread Gunzenreiner Simon
Hi allan

I tried to use install:install-file like this:

mvn install:install-file -DgeneratePom=true -Dpackaging=jar -DgroupId=myGroupId 
-Dversion=myVersion -DartifactId=myArtifactId -Dclassifier=sources 
-Dfile=myArtifactId-myVersion-sources.jar

but it didn't install my sources.jar correctly - the binary jar file was simply 
replaces. It looks to me like the classifier option is not really supported ..

Thanks
Simon


-Ursprüngliche Nachricht-
Von: Allan Ramirez [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 24. August 2006 02:48
An: Maven Users List
Betreff: Re: installing sources to local repository by means of install
plugin


Hi Simon,

classifier is also supported for the install:install-file goal, so it 
should do the same with the deploy:deploy-file goal.

allan

Gunzenreiner Simon wrote:
 Hi all

 I am missing documentation about how to install sources packed by the source 
 plugin into the local repository. I want to avoid file copying because I 
 assume I should be able to do it with the install plugin. I assume that the 
 sources postfix is a dependency classifier, so I was hoping to be able to 
 use a classifier argument to the install:install-file plugin, as it is 
 possible with the deploy:deploy-file plugin.

 Any hints appreciatet,
 Simon


   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: installing sources to local repository by means of install plugin

2006-08-24 Thread Jochen Wiedmann

Gunzenreiner Simon wrote:


I tried to use install:install-file like this:

mvn install:install-file -DgeneratePom=true -Dpackaging=jar -DgroupId=myGroupId 
-Dversion=myVersion -DartifactId=myArtifactId -Dclassifier=sources 
-Dfile=myArtifactId-myVersion-sources.jar

but it didn't install my sources.jar correctly - the binary jar file was simply 
replaces. It looks to me like the classifier option is not really supported ..


Classifier works, believe me. I'd guess that the generatePom=true is a 
 problem.



Jochen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AW: installing sources to local repository by means of install plugin

2006-08-24 Thread Gunzenreiner Simon
Hi Jochen

sorry for bugging you but I also tried it out without the generatePom=true 
option, and it always turns my myArtifactId-myVersion-sources.jar into 
myArtifactId-myVersion.jar once I import it into the repository as described 
below (without generatePom) ...

Simon

-Ursprüngliche Nachricht-
Von: Jochen Wiedmann [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 24. August 2006 11:24
An: Maven Users List
Betreff: Re: AW: installing sources to local repository by means of
install plugin


Gunzenreiner Simon wrote:

 I tried to use install:install-file like this:
 
 mvn install:install-file -DgeneratePom=true -Dpackaging=jar 
 -DgroupId=myGroupId -Dversion=myVersion -DartifactId=myArtifactId 
 -Dclassifier=sources -Dfile=myArtifactId-myVersion-sources.jar
 
 but it didn't install my sources.jar correctly - the binary jar file was 
 simply replaces. It looks to me like the classifier option is not really 
 supported ..

Classifier works, believe me. I'd guess that the generatePom=true is a 
  problem.


Jochen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: installing sources to local repository by means of install plugin

2006-08-24 Thread Allan Ramirez
What version of install plugin you are using? Im not sure if this 
feature is already released. Try to build the install plugin from source.


allan

Gunzenreiner Simon wrote:

Hi Jochen

sorry for bugging you but I also tried it out without the generatePom=true option, and it always 
turns my myArtifactId-myVersion-sources.jar into myArtifactId-myVersion.jar 
once I import it into the repository as described below (without generatePom) ...

Simon

-Ursprüngliche Nachricht-
Von: Jochen Wiedmann [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 24. August 2006 11:24
An: Maven Users List
Betreff: Re: AW: installing sources to local repository by means of
install plugin


Gunzenreiner Simon wrote:

  

I tried to use install:install-file like this:

mvn install:install-file -DgeneratePom=true -Dpackaging=jar -DgroupId=myGroupId 
-Dversion=myVersion -DartifactId=myArtifactId -Dclassifier=sources 
-Dfile=myArtifactId-myVersion-sources.jar

but it didn't install my sources.jar correctly - the binary jar file was simply 
replaces. It looks to me like the classifier option is not really supported ..



Classifier works, believe me. I'd guess that the generatePom=true is a 
  problem.



Jochen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]