Thank you Colin, that was very helpful and I appreciate it.
For benefit of anyone searching the archives in the future, this works.
Add this to your project.properties file:
maven.jar.override=on
maven.jar.something=${basedir}/src/webapp/WEB-INF/lib/something.jar
(where you substitute the name of your jar for "something")
You still need to specify the dependency in your project.xml, such as
<dependency>
<id>something</id>
<version>1.0</version>
<jar>something.jar</jar>
</dependency>
On Mon, 10 Feb 2003 14:16:48 -0500, "Colin Sampaleanu"
<[EMAIL PROTECTED]> said:
> This should generally be a short-term solution
> though, it's a lot nicer to have jars in the repository...
The repository is a nice feature. But I'm making a web app example that
inexperienced developers can use. Maven raises the bar very high: it is
still in beta, it is riddled with undocumented features (see above), and
the repository feature makes use impractical for developers at the bottom
of a dial-up connection (I got 28MB on disk with no warning how much disk
space I'd need or how long the process would take -- I'm glad I have
broadband!). *I* want to use Maven (because I can generate documentation,
javadocs, and test reports at one go -- thank you!) but I can't expect
everyone to install Maven just to build a simple web app. Ant will do for
that.
Daniel
[EMAIL PROTECTED]
> Daniel Kehoe wrote:
>
> >>"Daniel Kehoe" <[EMAIL PROTECTED]> wrote on 09/02/2003 06:15:49 PM:
> >>Is there no possibility for obtaining jars from src/webapp/WEB-INF/lib?
> >>That way I can use either ant or maven with the same directory layout.
> >>
> >>
> >
> >On Sun, 9 Feb 2003 18:43:07 +1100, [EMAIL PROTECTED] said:
> >
> >
> >>Sure, place them in src/webapp/WEB-INF/lib, and list them as dependencies
> >>in your project.xml.
> >>
> >>
> >
> >dIon, could you clarify?
> >
> >I tried adding this to project.xml but it didn't work (I get "package
> >does not exist" compile errors):
> ><dependency>
> > <id>something</id>
> > <version>1.0</version>
> > <jar>something.jar</jar>
> > <url>file://./src/webapp/WEB-INF/lib/</url>
> ></dependency>
> >
> >I'd really like maven to use the jars I've got in src/webapp/WEB-INF/lib/
> >rather than setting up a separate repository.
> >
> >
> You need to use a jar override, so maven doesn't look in the repo, but
> in the override location. These is a sample of this in the touchstone
> build in the source... This should generally be a short-term solution
> though, it's a lot nicer to have jars in the repository...
>
--
Daniel
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]