Guys,
Thanks so much for your explanations. I understand a lot better now.
However, I am still not sure how the packages are resolved. I am using this:
String spec = "@MERLIN-IMPL-SPEC@";
Artifact artifact = Artifact.createArtifact( spec );
Builder builder = context.newBuilder( artifact );
But I am getting this error:
org.apache.avalon.repository.RepositoryException: Unable to retrieve the
metadata for the artifact
:artifact:jar:@MERLIN-IMPL-SPEC@/@MERLIN-IMPL-SPEC@
at
org.apache.avalon.repository.impl.DefaultRepository.getAttributes(Unknown
Source)
at org.apache.avalon.repository.main.DefaultBuilder.<init>(Unknown Source)
at org.apache.avalon.repository.main.DefaultBuilder.<init>(Unknown Source)
at
org.apache.avalon.repository.main.DefaultInitialContext.newBuilder(Unknown
Source)
at
com.konova.expedition.db.splitter.avalon.KFileSplitterComponentTest.testFile
Splitter(KFileSplitterComponentTest.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:421)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:305)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:186)
Caused by: org.apache.avalon.repository.RepositoryException: Unknown
artifact: [artifact:jar:@MERLIN-IMPL-SPEC@/@[EMAIL PROTECTED]
at org.apache.avalon.repository.util.LoaderUtils.getResource(Unknown
Source)
at org.apache.avalon.repository.impl.DefaultRepository.getResource(Unknown
Source)
... 20 more
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]