Is your jar being built in the project, or just being used?
Say it's YourJar.jar
go into $MAVEN_HOME_LOCAL/repository
and create new directories, here's an example:

/repository
|-- yourstuff
     |-- jars
          |-- YourJar.jar

in your dependencies list thems as:
<dependencies>
....
  <dependency>
    <groupId>yourstuff</groupId>
   <artifactid>YourJar</artifactId>
    <jar>YourJar.jar</jar>
  </dependency>
...
</dependencies>

You have to use the <jar>YourJar.jar</jar> if you aren't using a version
number.
If it's YourJar-1.0.jar, replace <jar>YourJar.jar</jar> with
<version>1.0</version>

----- Original Message ----- 
From: "Mirko Novakovic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 6:31 AM
Subject: Ressources To the Repository


Hello,

I try to manage different projects which have the following:

 - Java Sources/Classes
 - Web Ressources (HTML, JSP, JS, ...)
 - Configuration (XML)

Many projects define the web application that I want to build with maven.

Is there a possibility to put the ressources into the central repository and
define a dependency in the POM?
How can I put my own jar into the central repositiory...the documentation of
the Artifact plugin is very short and I don't know what to put in the
project property...

Thank you.

Mirko Novakovic





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

Reply via email to