1st. For any dependency not in the public repository, the procedure is
the same, as outlined in
http://maven.apache.org/reference/standard-sun-jar-names.html.
Basically, it involves setting up your own internal repository (I
believe you could just use the local repository Maven sets up for you if
no one else will be building the project), then copying the dependencies
to the locations corresponding to the ids given in the POM. Since
you're a newbie, I'll give an example.
Say your project depends on cooltools-1.0.jar. It's not in ibiblio,
because there's a $1M license fee (which you gladly paid). Take the
cooltools-1.0.jar file and copy it to your local repository under
cooltoolsgroup/jars/cooltools-1.0.jar. (You'll find your local
repository in your home directory under .maven/repository.) Next, add
the dependency to your POM:
...
<dependencies>
...
<dependency>
<groupId>cooltoolsgroup</groupId>
<artifactId>cooltools</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
When you do your next build, Maven will find it. If you need to set up
an internal repository for your development team to get it from, follow
the instructions given in
http://maven.apache.org/reference/internal-repositories.html.
2nd. Once you're getting your dependencies specified correctly, just add
the war.bundle property to each one that needs to go in the war, as
indicated in the war plugin docs.
Hope this helps,
..David..
-----Original Message-----
From: Vinicius Caldeira Carvalho
[mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 1:20 PM
To: [email protected]
Subject: newbie questions
Hello there. I'm creating my first project using maven. I have some good
experience with ant. So far It seems the COOLEST Project management
around.
I have a feel questions, simple ones I believe :D
1st. I have some libs not present on the ibiblio (jta, mail, activation,
concurrent-1.3.4) and my project depends on them, how do I set
dependencies for that?
2nd. When building a war file, how do I specify which aditional libs to
add? Those not found on the REPO?
Thanks and best regards
Vinicius
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]