You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ovidio Mallo <ov...@student.ethz.ch> on 2006/06/17 15:29:03 UTC

assembly as a dependency

Hi everyone,

when I install an assembly into my local repository, how can I reference it
via a <dependency> in my POM file? E.g. I have the Maven embedder assembly at

~/.m2/repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/maven-embedder-2.1-SNAPSHOT-dep.jar

in my local repository. The embedder assembly descriptor has its <id> set to
"dep" which gets included into the filename in the repository. So, do I need
to specify this ID in my <dependency> declaration somehow to allow Maven to
find the file?

Thanks a lot for any help!

Cheers,
   Ovidio

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


Re: assembly as a dependency

Posted by Ovidio Mallo <ov...@student.ethz.ch>.
Stephen Duncan wrote:
> I think you add <classifier>dep</classifier> to the dependency declaration.
That worked fine :-). Thanks for the fast help!

Cheers,
   Ovidio

> 
> -Stephen
> 
> On 6/17/06, Ovidio Mallo <ov...@student.ethz.ch> wrote:
> 
>> Hi everyone,
>>
>> when I install an assembly into my local repository, how can I 
>> reference it
>> via a <dependency> in my POM file? E.g. I have the Maven embedder 
>> assembly at
>>
>> ~/.m2/repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/maven-embedder-2.1-SNAPSHOT-dep.jar 
>>
>>
>> in my local repository. The embedder assembly descriptor has its <id> 
>> set to
>> "dep" which gets included into the filename in the repository. So, do 
>> I need
>> to specify this ID in my <dependency> declaration somehow to allow 
>> Maven to
>> find the file?
>>
>> Thanks a lot for any help!
>>
>> Cheers,
>>    Ovidio
>>
>> ---------------------------------------------------------------------
>> 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


Re: assembly as a dependency

Posted by Stephen Duncan <st...@gmail.com>.
I think you add <classifier>dep</classifier> to the dependency declaration.

-Stephen

On 6/17/06, Ovidio Mallo <ov...@student.ethz.ch> wrote:
> Hi everyone,
>
> when I install an assembly into my local repository, how can I reference it
> via a <dependency> in my POM file? E.g. I have the Maven embedder assembly at
>
> ~/.m2/repository/org/apache/maven/maven-embedder/2.1-SNAPSHOT/maven-embedder-2.1-SNAPSHOT-dep.jar
>
> in my local repository. The embedder assembly descriptor has its <id> set to
> "dep" which gets included into the filename in the repository. So, do I need
> to specify this ID in my <dependency> declaration somehow to allow Maven to
> find the file?
>
> Thanks a lot for any help!
>
> Cheers,
>    Ovidio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Stephen Duncan Jr
www.stephenduncanjr.com

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