You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jansen Werner <We...@eon-is.com> on 2007/05/21 16:30:26 UTC

How to install library into repository?

Hi everybody,

we would like to use jcalendar (http://www.toedter.com/en/jcalendar/) in
our project. But it isn't available from the central repository. 

Maven suggests adding it to the local repository:

"Then, install it using the command: 
    mvn install:install-file -DgroupId=com.toedter.calendar
-DartifactId=jcalendar \
        -Dversion=1.3.2 -Dpackaging=jar -Dfile=jcalendar-1.3.2.jar"


But I don't want to install it in every developer's local repository.
How can I add this library to our site-local repository in a maven way?

Regards,

Werner

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


Re: How to install library into repository?

Posted by jesseliu <je...@ecvision.com>.
You should install(deploy) the jar file into your company repository which 
is shared with your team. 
maven deploy command line seems like:(assuming on Windows OS)
mvn deploy:deploy-file -DgroupId=com.toedter.calendar
 -DartifactId=jcalendar -Dversion=1.3.2 -Dpackaging=jar -
Dfile=c:\path\to\jar\jcalendar-1.3.2.jar" -Durl=\\192.168.1.10
\path\to\company\repository

In case your team member add the company repository to the maven config 
file, maven can automatically download the jcalendar-1.3.2.jar into local 
repository from company repository.




On Mon, 21 May 2007 16:30:26 +0200, Jansen Werner wrote
> Hi everybody,
> 
> we would like to use jcalendar (http://www.toedter.com/en/jcalendar/)
>  in our project. But it isn't available from the central repository.
> 
> Maven suggests adding it to the local repository:
> 
> "Then, install it using the command: 
>     mvn install:install-file -DgroupId=com.toedter.calendar
> -DartifactId=jcalendar \
>         -Dversion=1.3.2 -Dpackaging=jar -Dfile=jcalendar-1.3.2.jar"
> 
> But I don't want to install it in every developer's local repository.
> How can I add this library to our site-local repository in a maven way?
> 
> Regards,
> 
> Werner
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


--
Powered By Open WebMail Project (http://openwebmail.org)


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


Re: How to install library into repository?

Posted by Wayne Fay <wa...@gmail.com>.
This is well documented on the Maven site:
http://maven.apache.org/guides/mini/guide-deploying-3rd-party-jars.html

Wayne

On 5/21/07, Jansen Werner <We...@eon-is.com> wrote:
> Hi everybody,
>
> we would like to use jcalendar (http://www.toedter.com/en/jcalendar/) in
> our project. But it isn't available from the central repository.
>
> Maven suggests adding it to the local repository:
>
> "Then, install it using the command:
>     mvn install:install-file -DgroupId=com.toedter.calendar
> -DartifactId=jcalendar \
>         -Dversion=1.3.2 -Dpackaging=jar -Dfile=jcalendar-1.3.2.jar"
>
>
> But I don't want to install it in every developer's local repository.
> How can I add this library to our site-local repository in a maven way?
>
> Regards,
>
> Werner
>
> ---------------------------------------------------------------------
> 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