You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rahul <ra...@xtra.co.nz> on 2005/06/28 11:56:14 UTC

Re: Getting startet, dependency problem

Hi,

I don't see Log4J 1.2.9 distributed on Ibiblio repository. Is this installed
in your local repository ?

If not, then you will need to install/deploy it to your local repository.

I think this might help you install log4j 1.2.9 in local repo
http://maven.apache.org/maven2/plugins/maven-install-plugin/install-file-mojo.html

HTH,

Rahul





----- Original Message ----- 
From: "Christian Schlaefcke" <cs...@wms-network.de>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Tuesday, June 28, 2005 9:15 PM
Subject: M2: Getting startet, dependency problem


> Hi Folks,
>
> still try to get my own project under maven2 control. I tried "m2 install"
> in the project folder, but it seems leike there is an dependency missing:
> [INFO] BUILD FAILURE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Reason: Compilation failure
> [INFO] ----------------------------------------------------------------------------
> [INFO] no more tokens - could not parse error message:
> D:\maven\mcat_OPCInterface\src\main\java\com\raconti\mcat\opc\msg\MessageDispatcher.java:15:
> package org.apache.log4j does not exist
> import org.apache.log4j.Logger;
>                        ^
> I tried to tell the project that it needs log4j:
> <project>
>  <modelVersion>4.0.0</modelVersion>
>  <groupId>com.raconti.mcat.opc</groupId>
>  <artifactId>mcat_OPCInterface</artifactId>
>  <packaging>jar</packaging>
>  <version>1.0-SNAPSHOT</version>
>  <name>MCAT OPC Interface</name>
>  <url>http://myurl</url>
>  <dependencies>
>    <dependency>
>      <groupId>junit</groupId>
>      <artifactId>junit</artifactId>
>      <version>3.8.1</version>
>      <scope>test</scope>
>    </dependency>
>    <dependency>
>      <groupId>log4j</groupId>
>      <artifactId>log4j</artifactId>
>      <version>1.2.9</version>
>      <scope>runbtime</scope>
>    </dependency>
>  </dependencies>
> </project>
>
> But this is also not solving the problem. SO how do I tell m2 that my
> project needs log4j and that it is located in the lib directory of my
> projekt folder? Or do I have to put it in src/main/resources folder
> somehow (tried that, also not working)?
>
> Thanks & Regards,
>
> Christian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org