Local repositories are inaccessible when JONAS_BASE is set to a relative path
When JONAS_BASE variable is set to a relative path (eg. '.'), JOnAS ignores the content of the local repositories ($JONAS_BASE/repositories/maven2-internal, etc). It works well if an absolute path is set.
The bug is located in the org.ow2.jonas.services.bootstrap.repository.JOnASRepositories.addRepository() method. In the extract below, we can see that a '/' is put in front of all relative paths which cause the issue.
String locationWithAppendingSlash; if (location.startsWith("/")) { locationWithAppendingSlash = location; } else { locationWithAppendingSlash = '/' + location; } repository.setUrl("file:" + locationWithAppendingSlash);