This would work, but only on YOUR machine... In team-projects this will cause 
lots of problems. The best solution would be to deploy it to the repository 
(like I said in my previous post).
Or, in case of some special JARs (in my case GlassFish and JBoss), you could 
define a variable '${JAR_HOME}/domainmodel.jar', so that all other developers 
can tell their Maven their locations with 'mvn -DJAR_HOME=/path/to/dir'


On Friday 13 April 2007 16:05, Cristian D. Romanescu wrote:
> You may try adding this to your pom.xml
>
> <dependencies>
>       ...
>      <dependency>
>        <groupId>myjar</groupId>
>        <artifactId>myjar</artifactId>
>        <version>10.1.2</version>
>        <scope>system</scope>
>        <systemPath>C:/myproject/lib/domainmodel.jar</systemPath>
>      </dependency>
>       ...
>
> You must specify the absolute path. I don't know why, but I would like to
> know ... if someone would enlight me :)
>
>
> Cheers,
> Cristian.
>
> Vinit N wrote:
> > I am getting compilation error when I am using custom jar file,
> > for eg:
> > My web project is depend on domainmodel.jar how can I use this ?
> > And also how can I do also compile, build this jar then reffer this jar
> > and compile and build my web applications.
> > As this jar is used by multiple webapps.
> >
> > Thanks,
> >
> > Vinit N
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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

Reply via email to