1 we do not have a common repository , so every user who wants to work with
the project must do the same , and workaround does not include system
scope jar into war file , please help with any other workaround
Nick Stolwijk-4 wrote:
>
> Install[1]/deploy[2] the jar files in your local or company repository
> and add a dependency. A workaround is to add a dependency with scope
> system and set a path like this:
>
> <dependency>
> <groupId>tubin.gen</groupId>
> <artifactId>your-jar-name</artifactId>
> <version>1.0</version>
> <scope>system</scope>
> <systemPath>${project.basedir}/lib/your-jar.jar</systemPath>
> </dependency>
>
> [1]
> http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
> [2]
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> On Thu, May 7, 2009 at 8:51 PM, tubin gen <[email protected]> wrote:
>> I have some jar files inside my project folder , and I want maven to
>> include them inside WEB-INF/lib , I know one way to include is to
>> create a
>> custom ant task but the problem is maven creates a version number
>> inside
>> target ,my project is audit and when I see the target folder I see
>> audit-1
>> , in this case how can I specifically write ant tasks to include these
>> jar files inside WEB-INF/lib with out knowing what the root folder is
>> and
>> moreover i do not know when compile happens , and when is WEB-INF folder
>> is
>> created etc please suggest me how to write ant task to update the
>> war
>> file generated by maven install ,
>>
>> if there is any other way with out maven-antrun-plugin please tell me
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/adding-jars-from-project-folder-into-my-war-file-tp23432996p23433735.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]