Hi Jörg,

if i use test-jar it doesnt work.but classifier picks up the file from local
repository and puts file into my web-inf/lib.

Though test jar is identified by classifier and put in web-inf/lib ,non test
jar gets ignored and not put in web-inf/lib
because  maven finds the test  xyz-1.0-SNAPSHOTS-tests.jar based on
classifier but puts it under web-inf/lib as  xyz-1.0-SNAPSHOTS.jar and not
with original name.



Regards
Raju





Jörg Schaible wrote:
> 
> 
> Hi Raju,
> 
> use type "test-jar" and omit the classifier here.
> 
> - Jörg
> 
> raju wrote on Wednesday, April 04, 2007 11:08 AM:
> 
>> Hi,
>> 
>> I have to include 2 jars say xyz-1.0-SNAPSHOTS.jar and
>> xyz-1.0-SNAPSHOTS-tests.jar as dependencies while building a war.
>> As both are installed with the same groupid and artifact id in the
>> local-repositorys as part of build that builds them,say:
>>   <groupid>com.example<groupid> <artifactid>xyz</artifactid>
>> 
>> Now if i use the following as dependencies while building my
>> war only the
>> test jar gets included in web-inf/lib with the name
>> xyz-1.0-SNAPSHOTS.jar and the orgininal non test jar
>>                      xyz-1.0-SNAPSHOTS.jar gets ignored : <dependency>
>>                      <groupId>com.example</groupId> 
>> <artifactId>xyz</artifactId>
>>                      <version>1.0-SNAPSHOT</version>
>>                      <scope>runtime</scope>
>>              </dependency>
>> <dependency>
>>                      <groupId>com.example</groupId>
>>                      <artifactId>xyz</artifactId>
>>                      <version>1.0-SNAPSHOT</version>
>>                      <classifier>tests</classifier>
>>                      <scope>runtime</scope>
>>              </dependency>
>> 
>> Regards
>> Raju
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%3Ctype%3E-to-include-test-jar-dependencies-not-working-tf3524698s177.html#a9834827
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to