On Wed, 2002-10-09 at 16:15, [EMAIL PROTECTED] wrote:
> Hi,
>
> I looked through the documentation, but haven't found the answer to my
> question.
>
> My question is how can I specify jar files needed at build time? I looked
> at the jars tag element inside the build element and found that the jar
> element seems to be what I was looking for. The schema says it is of type String
> and I just specified an absolute path to a jar file there, but with absolutely
> no effect to the compilation.
>
the name of the .jar file is actually derived from the id of the
dependency tag and the version (betteer to use version than the <jar>
tag). Then, it is looked for in your local repository, if it is not
there, in the remote repository (default www.ibiblio.org/maven - browse
there to find the newest jars, if you are using some of them).
so
<dependency>
<id>log4j</id>
<version>1.2.6</version>
</dependency>
Would resolve to : log4j-1.2.6.jar. That is looked for in:
$MAVEN_HOME/repository/log4j/jars/log4j-1.2.6.jar, and if that not
exists, maven will attempt to download it from
http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.6.jar.
> Is there any sample project.xml file? I read on the website that the
> turbine projects are build with maven so I downloaded a couple of them (torque and
> turbine and something else I forgot), but haven't found a project.xml file
> in there.
Checking out the whole project from cvs, you should see the project.xml
file in the top folder.
>
> Is there any other place to look for documentation besides the getting
> started and users guide (where I didn't find an answer to my question)?
>
> It is quite possible that I am missing the whole point about maven. Is it
> targeted at new projects starting from the scratch to adhere special rules on
> how the file system is layed out and the jars are stored?
>
you can use maven with quite a lot of layouts, just specify your
dependencies (so it will not look into your lib/ folder, you have to
move or download your jars to the local repository) and specify the
source folder.
> Would it be possible to just use the rendering mechanism of jdepend
> without converting the whole project to maven?`
>
> Cheers,
> Mariano
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
/peter
_____________________________________________________
Gratis e-mail resten av livet p� www.yahoo.se/mail
Busenkelt!
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>