Building the sample with maven

Hi,

http://code.google.com/p/axonframework/wiki/SampleInstallation

I checked out the code and tried to build with maven. But what should be the maven repository location for this project?
I see that for snapshot releases it is the Sonatype repository.
http://code.google.com/p/axonframework/wiki/Downloads?tm=2

Build error message is:
[INFO] Unable to find resource ‘org.axonframework.samples:axon-samples:pom:0.7-SNAPSHOT’ in repository

Thanks.
Bahadır Konu

I added Sonatype repository, I am able to compile axon-core.
But here is the result of mvn:compile for "sample" :

[INFO] Building Axon Address Book Sample - Application Core

Downloading: http://oss.sonatype.org/content/groups/public/org/axonframework/axon-core/0.7-SNAPSHOT/axon-core-0.7-SNAPSHOT.jar

[INFO] Compilation failure

C:\axon\sample\addressbook\app\src\main\java\org\axonframework\sample
\app\command\Contact.java:[19,31] cannot find symbol
symbol : class AggregateIdentifier
location: package org.axonframework.domain

Maybe Sample app is not compiling with 0.7-SNAPSHOT ? What should we
do to build it?

Thanks..
Bahadır

Did you locally installed the axon-core-0.7-SNAPSHOT.jar in the by running mvn install in the axon-core project?

2010/9/21 Bahadır Konu <bahadir.konu.axon@gmail.com>

Hi Bahadir,

building Axon and installing it locally using mvn install will help. The problem is that the 0.7 snapshot version in the sonatype repository was not completely up-to-date with the code in the svn repository. I updated the last snapshot, so it should be working now.

If not, please try mvn install on the framework core.

Cheers,

Allard

2010/9/21 Daan van Berkel <daan.v.berkel.1980@gmail.com>

Hi,

It is working now. Thank you.

Cheers…
Bahadır

21 Eylül 2010 15:34 tarihinde Allard Buijze <buijze@gmail.com> yazdı: