You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Muri Josef (KCDA 12)" <jo...@credit-suisse.com> on 2005/12/16 13:34:07 UTC
Dependency in Maven2
Hi all,
Is there any mechanism in m2 so I can reference dependencies that do not
match the pattern <artifact>-<version>.jar
I have quite a few jars that follow the conventions
<name>_<version>.jar.
Within Maven 1 I could define it in the <jar> tag. I could not do so in
Maven2.
<dependency>
<groupId>mygroup</groupId>
<artifactId>Update_1_classes</artifactId>
<jar>Update_1_classes.jar</jar>
<type>jar</type>
</dependency>
thanx
josef
Re: Dependency in Maven2
Posted by Allan Ramirez <ar...@exist.com>.
Hi there,
You can use the install-file goal to install your jar in the local repo
with m2 format of dependencies.
Please refer to this page
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIinstallafileinmylocalrepositoryalongwithagenericPOM
-allan
Muri Josef (KCDA 12) wrote:
>Hi all,
>
>Is there any mechanism in m2 so I can reference dependencies that do not
>match the pattern <artifact>-<version>.jar
>I have quite a few jars that follow the conventions
><name>_<version>.jar.
>
>Within Maven 1 I could define it in the <jar> tag. I could not do so in
>Maven2.
>
> <dependency>
> <groupId>mygroup</groupId>
> <artifactId>Update_1_classes</artifactId>
> <jar>Update_1_classes.jar</jar>
> <type>jar</type>
> </dependency>
>
>
>thanx
>josef
>
>
>
>
>
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date: 12/14/2005
>
>
>