You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Enrique Gaona <eg...@us.ibm.com> on 2007/04/27 19:42:15 UTC

Compile and runtime dependency on the same jar file


Hi,
I have a project that has a compile dependency to a jar file
(tpmclient.jar) and at the same time it needs to be packaged into the final
war.    My questions, what's the elegant or right way of solving this
problem wihtout having to copy the tpmclient.jar into my project directory?
The tpmclient.jar is already installed in my maven repository and I don't
really want to copy the same jarfile into my project directory.   Thanks in
advance.

Enrique

Re: Compile and runtime dependency on the same jar file

Posted by Wayne Fay <wa...@gmail.com>.
Read the M2 scope document again... Compile scoped artifacts are
packaged just like runtime. The only difference is that runtime
artifacts are not available in the compile-time classpath.

Wayne

On 4/27/07, Enrique Gaona <eg...@us.ibm.com> wrote:
>
>
> Hi,
> I have a project that has a compile dependency to a jar file
> (tpmclient.jar) and at the same time it needs to be packaged into the final
> war.    My questions, what's the elegant or right way of solving this
> problem wihtout having to copy the tpmclient.jar into my project directory?
> The tpmclient.jar is already installed in my maven repository and I don't
> really want to copy the same jarfile into my project directory.   Thanks in
> advance.
>
> Enrique
>

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