You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeremy Jones <jj...@corp.fanbox.com> on 2009/09/09 23:59:39 UTC
Including a local jar
Hello,
In my current build from maven, it acts like it does not have classes
included for compilation. When I do a manual install, it doesn't make a
difference. I have also tried adding a dependency tag like so(with
specifics changed):
<dependencyManagement>
<dependencies>
.......
<dependency>
<groupId>etc. </groupId>
<artifactId>etc.</artifactId>
<version>some version</version>
</dependency>
........
</dependencies>
</dependencyManagement>
It still doesn't seem to make a difference. I guess my question is, how
do I have maven include this jar in order to properly compile the code?
Thanks,
Jeremy
Re: Including a local jar
Posted by Sven Preßler <sv...@gmail.com>.
Hi,
There is a difference between dependencies and dependencyManagement, see
[1].
dependencyManagement manages versions of dependencies, it doesn't include
them.
In this case: just discard the <dependencyManagement>-tag and it should
work.
-Sven
[1]
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
2009/9/9 Jeremy Jones <jj...@corp.fanbox.com>
> Hello,
>
>
>
> In my current build from maven, it acts like it does not have classes
> included for compilation. When I do a manual install, it doesn't make a
> difference. I have also tried adding a dependency tag like so(with
> specifics changed):
>
>
>
> <dependencyManagement>
>
> <dependencies>
>
> .......
>
> <dependency>
>
> <groupId>etc. </groupId>
>
> <artifactId>etc.</artifactId>
>
> <version>some version</version>
>
> </dependency>
>
> ........
>
> </dependencies>
>
> </dependencyManagement>
>
>
>
> It still doesn't seem to make a difference. I guess my question is, how
> do I have maven include this jar in order to properly compile the code?
>
>
>
> Thanks,
>
> Jeremy
>
>