You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Mathias P.W Nilsson" <ma...@snyltarna.se> on 2007/08/19 18:20:47 UTC
Dependcy to maven build
How can I make a dependecy to my own jar file in another maven project?
Both projects are created using maven but I need a reference to my api jar
in the other maven project.
--
View this message in context: http://www.nabble.com/Dependcy-to-maven-build-tf4294023s177.html#a12223648
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Dependcy to maven build
Posted by Tim Kettler <ti...@udo.edu>.
Hi,
just as you would with any other dependency: Add it with the correct
groupId, artifactId and version to the <dependencies/> section of your
project's pom.
For the dependency resolution to work both projects must either be in
the same multi-project build or the artifact you depend on needs to be
installed in your local repository or preferable depolyed to a
internal/corporate remote repository.
-Tim
Mathias P.W Nilsson schrieb:
> How can I make a dependecy to my own jar file in another maven project?
> Both projects are created using maven but I need a reference to my api jar
> in the other maven project.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org