Johan Vandeweerd

Greenhorn
+ Follow
since Mar 12, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Johan Vandeweerd

Hello
I have maven 2.0.4 and eclipse 3.1.2 with the maven plugin 0.0.7 (http://m2eclipse.codehaus.org/). I'm trying to build a very basic project with 2 modules with maven and eclipse.

I have a project named example (=artifact) and it's groupid is com.mycompany.example. This project is made out of 2 modules:

API
groupid: com.mycompany.example.api
artifactid: example-api

CORE
groupid: com.mycompany.example.core
artifactid: example-core

where core depends on api.

I start with creating the parent:
mvn archetype:create -DgroupId=com.mycompany.example -DartifactId=example
Then I edit the pom.xml in the example-dir and change packaging to pom afterwards I go to the example dir (cd example) and create the 2 modules
mvn archetype:create -DgroupId=com.mycompany.example.api -DartifactId=example-api
mvn archetype:create -DgroupId=com.mycompany.example.core -DartifactId=example-core
I add the dependency of example-api to example-core (see pom.xml below).

example/pom.xml (=parent)


example/example-api/pom.xml (=module api)


example/example-core/pom.xml (=module core)


I install the project and modules in the local repository by running mvn install in the example dir (where the parent pom is located).
The install succeeds and the jar are installed in my local repository.
I run mvn eclipse:eclipse and import the module/projects into eclipse. I enable the projects for maven2 and then I recieve the following message in eclipse console:

19/05/06 17:58:57 CEST: Missing:
----------
1) com.mycompany.example.api:example-api:jar:1.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.mycompany.example.api -DartifactId=example-api \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Path to dependency:
1) com.mycompany.example.core:example-core:jar:1.0-SNAPSHOT
2) com.mycompany.example.api:example-api:jar:1.0-SNAPSHOT

----------
1 required artifact is missing.

for artifact: com.mycompany.example.core:example-core-1.0-SNAPSHOT.jar

But the artifact is in the repository and I can't find a solution. Anyone any suggestions? What am I doing wrong?
17 years ago
Hi,

I have a project that uses Hibernate. I want ALL (=DEBUG) the logs (mine and those of Hibernate) sent to console and I want only the INFO logs of Hibernate sent to a file.
Can anyone help me with the log4j.properties file?

This is what I have, but isn't doing what I want: