Bert, thanks for the quick response.

I checked the version in both pom.xml and the dependency entry, it's
1.0.5-SNAPSHOT in both versions.

I figured out a way to solve the problem now though:

Before, I was building everything via 'mvn install' from the main level,
like it says in the quick-start doc. But this only builds the
adl-parser.jar, not the adl-parser-with-dependencies.jar, which is obviously
not enough.
When I go into the adl-parser directory though, and just make a 'mvn
install' for the adl-parser in there, it will build the
adl-parser-with-dependencies.jar. With that, I can then build the
adl-serializer then.

It didn't get clear to me from the quick-start doc, that I have to do it
this way. Or is it supposed to be done like this way at all, or anything
wrong in my way of building it?

Mathias



Bert Verhees wrote:
> 
> Probably is the version information in the pom.xml from adl-parser not the 
> same as the required version in dependencies of pom.xml of adl-serializer,
> or 
> you did not build adl-parser, so the required jar file does not exist on
> your 
> system.
> 
> Please check your pom-files and rebuild the packages.
> 
> Bert
> 
> On Sunday 20 July 2008 13:48:38 Mathias Conradt wrote:
>> I try to build the java-impl project - almost went thru but building the
>> ADL Serializer fails with the message below.
>> (Alternatively I tried to look for the adl-serializer.jar on the project
>> page (http://www.openehr.org/svn/ref_impl_java/TRUNK/docs/download.htm)
>> to
>> download the binary, but couldn't find it there, only the adl-parser is
>> there.)
>>
>> My environment:
>> =============
>> Maven version: 2.0.7
>> Java version: 1.5.0_13
>> OS name: "linux" version: "2.6.24-19-generic" arch: "i386"
>>
>> Stracktrace:
>> =============
>> [INFO] [jar:jar]
>> [INFO]
>> ---------------------------------------------------------------------------
>>- [INFO] Building ADL Serializer
>> [INFO]
>> ---------------------------------------------------------------------------
>>- [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> Downloading:
>> http://repo1.maven.org/maven2/commons-io/commons-io/1.2/commons-io-1.2.pom
>> 6K downloaded
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> Downloading:
>> http://repo1.maven.org/maven2/commons-io/commons-io/1.2/commons-io-1.2.jar
>> 64K downloaded
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) acode:adl-parser:jar:1.0.5-SNAPSHOT
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>       mvn install:install-file -DgroupId=acode -DartifactId=adl-parser \
>>           -Dversion=1.0.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>> Alternatively, if you host your own repository you can deploy the file
>> there:       mvn deploy:deploy-file -DgroupId=acode
>> -DartifactId=adl-parser
>> \
>>           -Dversion=1.0.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
>>            -Durl=[url] -DrepositoryId=[id]
>>
>>   Path to dependency:
>>      1) openehr:adl-serializer:jar:0.1-SNAPSHOT
>>      2) acode:adl-parser:jar:1.0.5-SNAPSHOT
>>
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact:
>>   openehr:adl-serializer:jar:0.1-SNAPSHOT
>>
>> from the specified remote repositories:
>>   central (http://repo1.maven.org/maven2)
> 
> 
> _______________________________________________
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-building-java-impl%3A-missing-acode%3Aadl-parser%3Ajar%3A1.0.5-SNAPSHOT-tp18553502p18554779.html
Sent from the openehr-technical mailing list archive at Nabble.com.


Reply via email to