I now understand what is happening. After installing merlin you have everything you need in the ${merlin.home}/system directory, however, the abstract unit test does not assume that merlin is installed and looks for content in the maven repository. As you off-line this information if not found. Specifically - the error that you are seeing is the attempt by the avalon-repository bootstrapper to retrieve the meta-data about the repository implementation to establish which is contained in the file avalon-repository-impl-1.3-SNAPSHOT.jar.meta.


Thinking about this some more - there is no reason why we cannot add the merlin system repository as an available remote repository - however this does not address the issue of people using the unit test classes in the scenario of (a) no merlin installation and and at the same time (b) running in offline mode.

Stephen.


Yura Ivanov wrote:


I have merlin-plugin-3.3-SNAPSHOT and avalon-meta-plugin-1.3.2 in the maven
plugins.
When I try to compile jar with command - maven jar
then all sources compiles ok, but when maven execute testcases it fails with
error message, that it can't find
avalon-repository:avalon-repository-impl;1.3-SNAPSHOT

And the same with executing any merlin testcase with maven, when I am
offline.
In merlin 3.0 it was working.


Testcase: testServiceResolution took 5.578 sec
Caused an ERROR
---- exception
report ----------------------------------------------------------
Exception: org.apache.avalon.repository.RepositoryException
Message: None of the repositories
[http://dpml.net/,http://ibiblio.org/maven,] contained the metadata
properties for [jar: avalon-repository:avalon-repository-impl;1.3-SNAPSHOT]
---- cause ---------------------------------------------------------------------
Exception: java.net.UnknownHostException
Message: ibiblio.org
---- stack
trace ---------------------------------------------------------------



----- Original Message ----- From: "Stephen McConnell" <[EMAIL PROTECTED]>
To: "Avalon framework users" <[EMAIL PROTECTED]>
Sent: Tuesday, February 03, 2004 1:42 PM
Subject: Re: problem with offline compile tutorial




Yura Ivanov wrote:


I have a problem when I try to compile hello tutorial with command:

maven jar

Have you installed the avalon-meta plugin and the merlin plugin? If yes - what specifically is the problem?

Steve.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to