You can also point to an existing location in maven public repo (
http://repo1.maven.org/maven2/com/oracle/)
When trying to compile, maven will complain not finding the dependecy and
output the command required to install the file in the local repository. The
POM gives the URL to download the jar
You may also deploy it in a corporate/private repository, used as a proxy to
maven repo, so that developpers don't have to wory about where it comes
from.
Nico.
2007/6/2, Michael Meyer <[EMAIL PROTECTED]>:
Hi
you could try adding the dependency with scope "system" [1].
<dependency>
<groupId>oracle</groupId>
<artifactId>oracle</artifactId>
<version>x.x.x</version>
<scope>system</scope>
<systemPath>${basedir}/lib/oracle.jar</systemPath>
</dependency>
Cheers, michael
[1]
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
SiSi'mon schrieb:
> We have a product we wish to deliver that requires compliation. We have
a
> pom.xml file that specifies all the dependencies but there is one
dependency
> (Oracle jdbc jars) for which there is no repository so we must package
the
> .jar files in a /lib/ directory under our application.
>
> Outside of this all dependencies can be handled by Maven2. How do you
> specify the location of the jar or class files on the maven command
line?
> we need to tell maven where the ojdbc jars are when it runs.
>
> thanks
>
> Si'mon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]