You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EJ Ciramella <ej...@upromise.com> on 2007/08/14 23:38:15 UTC

building and installing a source only jar

Is there any way to build a source only jar and install that to our
internal remote repository?
 
We're trying to get more modular with our builds and would like to still
allow eclipse users to hop to the source of a particular dependency.
 
Even after I'm able to build a source only jar, is there an easy way to
get that down loaded?

Re: building and installing a source only jar

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/15/07, EJ Ciramella <ej...@upromise.com> wrote:
> Yep, I found the source:jar plugin just moments after sending my
> original email.
>
> The problem I have now is when I install to our internal remote
> repository using the following command, I have two problems:
>
> mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
> -Dpackaging=jar -Dversion=1.0-SNAPSHOT
> -Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
> -Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false

Consider configuring <distributionManagement> so that 'mvn deploy ...'
will deploy snapshots without this extra step.

-- 
Wendy

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


Site plugin: internationalization - css and image resource duplication

Posted by Alexander Hars <do...@inventivio.com>.
Hi,

I am trying to use the site plugin with several languages.

Unfortunately, the site plugin copies all its css files and image 
resources into each locale. This is inefficient, furthermore I run into 
a problem when I use my own css files or image resources to override the 
default maven files. I then have to manage some master files (e.g. 
site.css) in the src tree and make sure that I copy them to all locale 
subdirectories in the src tree when I make a change. I also can't see 
why it is important to copy all small maven icons (e.g. ok 
collapsed.gif, expanded.gif, icon_info.gif etc.),  over and over into 
each locale subdirectory.
Is there a way to get around this behavior and have all locales use the 
same .css file and image resources?

Or is there a variable which velocity can access to detect which locale 
we are dealing with? Then I could simply change the velocity template so 
that it points to the topmost css directory always.

Thanks for your help,

 Alexander








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


Re: building and installing a source only jar

Posted by Maria Odea Ching <oc...@exist.com>.
You could do this with the install-file [1] goal of the maven install 
plugin :)

-Deng

[1] 
http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html


EJ Ciramella wrote:
> Ok, maybe I'm wrong - what's the easiest way to install this source jar
> in your local repository?  Say the developer doesn't have the actual
> source from perforce.... 
>
> -----Original Message-----
> From: EJ Ciramella [mailto:ejciramella@upromise.com] 
> Sent: Wednesday, August 15, 2007 10:56 AM
> To: Maven Users List
> Subject: RE: building and installing a source only jar
>
> And use the -DuniqueVersion=false - I'm all set!
>
> Thanks Tim! 
>
> -----Original Message-----
> From: Tim Kettler [mailto:tim.kettler@udo.edu] 
> Sent: Wednesday, August 15, 2007 10:50 AM
> To: Maven Users List
> Subject: Re: building and installing a source only jar
>
> Hi,
>
> try adding the classifier property:
>
> mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
> -Dclassifier=sources -Dpackaging=jar -Dversion=1.0-SNAPSHOT
> -Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
> -Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false
>
> -Tim
>
> EJ Ciramella schrieb:
>   
>> Yep, I found the source:jar plugin just moments after sending my
>> original email.
>>
>> The problem I have now is when I install to our internal remote
>> repository using the following command, I have two problems:
>>
>> mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
>> -Dpackaging=jar -Dversion=1.0-SNAPSHOT
>> -Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
>> -Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false 
>>
>> 1 - It's changing the name of the jar file, I'd like to keep the name
>>     
> as
>   
>> shown above:
>>
>> Uploading:
>>
>>     
> file:\\build.corp.upromise.com\maven2/lty/lty-utils/1.0-SNAPSHOT/lty-uti
>   
>> ls-1.0-20070815.142846-2.jar
>>
>> Why won't it keep "sources" in the name.
>>
>> 2 - How do I control the version number at deploy time?
>>
>>
>> We'd like to do something similar to what repo1 has/does where the
>> sources are sitting next to the actual binary versions.
>>
>> -----Original Message-----
>> From: Maria Odea Ching [mailto:oching@devzuz.com] 
>> Sent: Wednesday, August 15, 2007 2:57 AM
>> To: Maven Users List
>> Subject: Re: building and installing a source only jar
>>
>> EJ Ciramella wrote:
>>     
>>> Is there any way to build a source only jar and install that to our
>>> internal remote repository?
>>>   
>>>       
>> Try 'mvn source:jar install' for this, and..
>>
>>     
>>>  
>>> We're trying to get more modular with our builds and would like to
>>>       
>> still
>>     
>>> allow eclipse users to hop to the source of a particular dependency.
>>>  
>>> Even after I'm able to build a source only jar, is there an easy way
>>>       
>> to
>>     
>>> get that down loaded?
>>>
>>>   
>>>       
>> 'mvn eclipse:eclipse -DdownloadSources=true'
>>
>>
>> HTH,
>> Deng
>>
>> ---------------------------------------------------------------------
>> 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: building and installing a source only jar

Posted by EJ Ciramella <ej...@upromise.com>.
Ok, maybe I'm wrong - what's the easiest way to install this source jar
in your local repository?  Say the developer doesn't have the actual
source from perforce.... 

-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com] 
Sent: Wednesday, August 15, 2007 10:56 AM
To: Maven Users List
Subject: RE: building and installing a source only jar

And use the -DuniqueVersion=false - I'm all set!

Thanks Tim! 

-----Original Message-----
From: Tim Kettler [mailto:tim.kettler@udo.edu] 
Sent: Wednesday, August 15, 2007 10:50 AM
To: Maven Users List
Subject: Re: building and installing a source only jar

Hi,

try adding the classifier property:

mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
-Dclassifier=sources -Dpackaging=jar -Dversion=1.0-SNAPSHOT
-Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
-Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false

-Tim

EJ Ciramella schrieb:
> Yep, I found the source:jar plugin just moments after sending my
> original email.
> 
> The problem I have now is when I install to our internal remote
> repository using the following command, I have two problems:
> 
> mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
> -Dpackaging=jar -Dversion=1.0-SNAPSHOT
> -Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
> -Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false 
> 
> 1 - It's changing the name of the jar file, I'd like to keep the name
as
> shown above:
> 
> Uploading:
>
file:\\build.corp.upromise.com\maven2/lty/lty-utils/1.0-SNAPSHOT/lty-uti
> ls-1.0-20070815.142846-2.jar
> 
> Why won't it keep "sources" in the name.
> 
> 2 - How do I control the version number at deploy time?
> 
> 
> We'd like to do something similar to what repo1 has/does where the
> sources are sitting next to the actual binary versions.
> 
> -----Original Message-----
> From: Maria Odea Ching [mailto:oching@devzuz.com] 
> Sent: Wednesday, August 15, 2007 2:57 AM
> To: Maven Users List
> Subject: Re: building and installing a source only jar
> 
> EJ Ciramella wrote:
>> Is there any way to build a source only jar and install that to our
>> internal remote repository?
>>   
> 
> Try 'mvn source:jar install' for this, and..
> 
>>  
>> We're trying to get more modular with our builds and would like to
> still
>> allow eclipse users to hop to the source of a particular dependency.
>>  
>> Even after I'm able to build a source only jar, is there an easy way
> to
>> get that down loaded?
>>
>>   
> 
> 'mvn eclipse:eclipse -DdownloadSources=true'
> 
> 
> HTH,
> Deng
> 
> ---------------------------------------------------------------------
> 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: building and installing a source only jar

Posted by EJ Ciramella <ej...@upromise.com>.
And use the -DuniqueVersion=false - I'm all set!

Thanks Tim! 

-----Original Message-----
From: Tim Kettler [mailto:tim.kettler@udo.edu] 
Sent: Wednesday, August 15, 2007 10:50 AM
To: Maven Users List
Subject: Re: building and installing a source only jar

Hi,

try adding the classifier property:

mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
-Dclassifier=sources -Dpackaging=jar -Dversion=1.0-SNAPSHOT
-Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
-Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false

-Tim

EJ Ciramella schrieb:
> Yep, I found the source:jar plugin just moments after sending my
> original email.
> 
> The problem I have now is when I install to our internal remote
> repository using the following command, I have two problems:
> 
> mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
> -Dpackaging=jar -Dversion=1.0-SNAPSHOT
> -Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
> -Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false 
> 
> 1 - It's changing the name of the jar file, I'd like to keep the name
as
> shown above:
> 
> Uploading:
>
file:\\build.corp.upromise.com\maven2/lty/lty-utils/1.0-SNAPSHOT/lty-uti
> ls-1.0-20070815.142846-2.jar
> 
> Why won't it keep "sources" in the name.
> 
> 2 - How do I control the version number at deploy time?
> 
> 
> We'd like to do something similar to what repo1 has/does where the
> sources are sitting next to the actual binary versions.
> 
> -----Original Message-----
> From: Maria Odea Ching [mailto:oching@devzuz.com] 
> Sent: Wednesday, August 15, 2007 2:57 AM
> To: Maven Users List
> Subject: Re: building and installing a source only jar
> 
> EJ Ciramella wrote:
>> Is there any way to build a source only jar and install that to our
>> internal remote repository?
>>   
> 
> Try 'mvn source:jar install' for this, and..
> 
>>  
>> We're trying to get more modular with our builds and would like to
> still
>> allow eclipse users to hop to the source of a particular dependency.
>>  
>> Even after I'm able to build a source only jar, is there an easy way
> to
>> get that down loaded?
>>
>>   
> 
> 'mvn eclipse:eclipse -DdownloadSources=true'
> 
> 
> HTH,
> Deng
> 
> ---------------------------------------------------------------------
> 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: building and installing a source only jar

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

try adding the classifier property:

mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
-Dclassifier=sources -Dpackaging=jar -Dversion=1.0-SNAPSHOT
-Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
-Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false

-Tim

EJ Ciramella schrieb:
> Yep, I found the source:jar plugin just moments after sending my
> original email.
> 
> The problem I have now is when I install to our internal remote
> repository using the following command, I have two problems:
> 
> mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
> -Dpackaging=jar -Dversion=1.0-SNAPSHOT
> -Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
> -Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false 
> 
> 1 - It's changing the name of the jar file, I'd like to keep the name as
> shown above:
> 
> Uploading:
> file:\\build.corp.upromise.com\maven2/lty/lty-utils/1.0-SNAPSHOT/lty-uti
> ls-1.0-20070815.142846-2.jar
> 
> Why won't it keep "sources" in the name.
> 
> 2 - How do I control the version number at deploy time?
> 
> 
> We'd like to do something similar to what repo1 has/does where the
> sources are sitting next to the actual binary versions.
> 
> -----Original Message-----
> From: Maria Odea Ching [mailto:oching@devzuz.com] 
> Sent: Wednesday, August 15, 2007 2:57 AM
> To: Maven Users List
> Subject: Re: building and installing a source only jar
> 
> EJ Ciramella wrote:
>> Is there any way to build a source only jar and install that to our
>> internal remote repository?
>>   
> 
> Try 'mvn source:jar install' for this, and..
> 
>>  
>> We're trying to get more modular with our builds and would like to
> still
>> allow eclipse users to hop to the source of a particular dependency.
>>  
>> Even after I'm able to build a source only jar, is there an easy way
> to
>> get that down loaded?
>>
>>   
> 
> 'mvn eclipse:eclipse -DdownloadSources=true'
> 
> 
> HTH,
> Deng
> 
> ---------------------------------------------------------------------
> 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: building and installing a source only jar

Posted by EJ Ciramella <ej...@upromise.com>.
Yep, I found the source:jar plugin just moments after sending my
original email.

The problem I have now is when I install to our internal remote
repository using the following command, I have two problems:

mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
-Dpackaging=jar -Dversion=1.0-SNAPSHOT
-Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
-Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false 

1 - It's changing the name of the jar file, I'd like to keep the name as
shown above:

Uploading:
file:\\build.corp.upromise.com\maven2/lty/lty-utils/1.0-SNAPSHOT/lty-uti
ls-1.0-20070815.142846-2.jar

Why won't it keep "sources" in the name.

2 - How do I control the version number at deploy time?


We'd like to do something similar to what repo1 has/does where the
sources are sitting next to the actual binary versions.

-----Original Message-----
From: Maria Odea Ching [mailto:oching@devzuz.com] 
Sent: Wednesday, August 15, 2007 2:57 AM
To: Maven Users List
Subject: Re: building and installing a source only jar

EJ Ciramella wrote:
> Is there any way to build a source only jar and install that to our
> internal remote repository?
>   

Try 'mvn source:jar install' for this, and..

>  
> We're trying to get more modular with our builds and would like to
still
> allow eclipse users to hop to the source of a particular dependency.
>  
> Even after I'm able to build a source only jar, is there an easy way
to
> get that down loaded?
>
>   

'mvn eclipse:eclipse -DdownloadSources=true'


HTH,
Deng

---------------------------------------------------------------------
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: building and installing a source only jar

Posted by Maria Odea Ching <oc...@devzuz.com>.
EJ Ciramella wrote:
> Is there any way to build a source only jar and install that to our
> internal remote repository?
>   

Try 'mvn source:jar install' for this, and..

>  
> We're trying to get more modular with our builds and would like to still
> allow eclipse users to hop to the source of a particular dependency.
>  
> Even after I'm able to build a source only jar, is there an easy way to
> get that down loaded?
>
>   

'mvn eclipse:eclipse -DdownloadSources=true'


HTH,
Deng

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


Re: building and installing a source only jar

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

have a look at the maven-source-plugin[1] and possibly the 
maven-javadoc-plugin[2] and configure the maven-eclipse-plugin as shown 
here [3].

-Tim

[1] http://maven.apache.org/plugins/maven-source-plugin/
[2] http://maven.apache.org/plugins/maven-javadoc-plugin/
[3] 
http://maven.apache.org/plugins/maven-eclipse-plugin/examples/attach-library-sources.html

EJ Ciramella schrieb:
> Is there any way to build a source only jar and install that to our
> internal remote repository?
>  
> We're trying to get more modular with our builds and would like to still
> allow eclipse users to hop to the source of a particular dependency.
>  
> Even after I'm able to build a source only jar, is there an easy way to
> get that down loaded?
> 


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