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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]