This won't help when compiling though. The best way is to get them into
an internal repo...something like Nexus. You can just upload it directly
via the ui and it will make the pom for you if you don't want to. (I
believe the others can do it as well)

-----Original Message-----
From: David C. Hicks [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 28, 2008 3:54 PM
To: Maven Users List
Subject: Re: Third party jars

Sure.  The attached assembly.xml is used by the following profile.  The
profile just makes sure that the assembly plugin runs during the
"package" phase and includes all attached artifacts.  The real work is
in the attached assembly.xml.

Dave

        <profile>
            <id>release_assembly</id>
            <build>
                <plugins>
                    <plugin>
                        
<artifactId>maven-assembly-plugin</artifactId>               
                        <configuration>
                            <descriptor>assembly.xml</descriptor>
                        </configuration>
                        <executions>
                            <execution>
                                <id>make-assembly</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>attached</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>


[EMAIL PROTECTED] wrote:
> Excellent - do you happen to have a pom extract to, say, include the 
> contents of ./lib on the compile path?
>
>   
>> -----Original Message-----
>> From: David C. Hicks [mailto:[EMAIL PROTECTED]
>> Sent: 28 November 2008 20:45
>> To: Maven Users List
>> Subject: Re: Third party jars
>>
>> The assembly plugin can add arbitrary files to your package.
>>
>>
>> [EMAIL PROTECTED] wrote:
>>     
>>> Hi,
>>>
>>> Is there any way to get the maven build process to include a set of 
>>> jars when compiling/packaging that are not in the
>>>       
>> repository?  I have
>>     
>>> some vendor jars and I don't fancy packing them all up and placing 
>>> them into the repository - I just want to point maven at a
>>>       
>> lib directory?
>>     
>>> Thanks,
>>>
>>>
>>> john
>>> _______________________________________________
>>>
>>> This e-mail may contain information that is confidential,
>>>       
>> privileged or otherwise protected from disclosure. If you are not an 
>> intended recipient of this e-mail, do not duplicate or redistribute 
>> it by any means. Please delete it and any attachments and notify the 
>> sender that you have received it in error. Unless specifically 
>> indicated, this e-mail is not an offer to buy or sell or a 
>> solicitation to buy or sell any securities, investment products or 
>> other financial product or service, an official confirmation of any 
>> transaction, or an official statement of Barclays. Any views or 
>> opinions presented are solely those of the author and do not 
>> necessarily represent those of Barclays. This e-mail is subject to 
>> terms available at the following link:
>> www.barcap.com/emaildisclaimer. By messaging with Barclays you 
>> consent to the foregoing.  Barclays Capital is the investment banking

>> division of Barclays Bank PLC, a company registered in England 
>> (number 1026167) with its registered office at 1 Churchill Place, 
>> London, E14 5HP.  This email may relate to or be sent from other 
>> members of the Barclays Group.
>>     
>>> _______________________________________________
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>>     
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>   
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>     
> _______________________________________________
>
> This e-mail may contain information that is confidential, privileged
or otherwise protected from disclosure. If you are not an intended
recipient of this e-mail, do not duplicate or redistribute it by any
means. Please delete it and any attachments and notify the sender that
you have received it in error. Unless specifically indicated, this
e-mail is not an offer to buy or sell or a solicitation to buy or sell
any securities, investment products or other financial product or
service, an official confirmation of any transaction, or an official
statement of Barclays. Any views or opinions presented are solely those
of the author and do not necessarily represent those of Barclays. This
e-mail is subject to terms available at the following link:
www.barcap.com/emaildisclaimer. By messaging with Barclays you consent
to the foregoing.  Barclays Capital is the investment banking division
of Barclays Bank PLC, a company registered in England (number 1026167)
with its registered office at 1 Churchill Place, London, E14 5HP.  This
email may relate to or be sent from other members of the Barclays Group.
> _______________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   

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

Reply via email to