Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/org/rascalmpl/uri/file/MavenRepositoryURIResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ private static ISourceLocation inferMavenRepositoryLocation() throws URISyntaxEx
}

/**
* @param input mvn://groupid!artifactId!version/path
* @param input mvn://groupid--artifactId--version/path
* @return a file:/// reference to the jar file that is designated by the authority.
* @throws IOException when the authority does not designate a jar file
*/
private ISourceLocation resolveJar(ISourceLocation input) throws IOException {
String authority = input.getAuthority();

if (authority.isEmpty()) {
throw new IOException("missing mvn://groupid!artifactId!version/ as the authority in " + input);
throw new IOException("missing mvn://groupid--artifactId--version/ as the authority in " + input);
}

var parts = authority.split(GROUP_ARTIFACT_VERSION_SEPARATOR);
Expand All @@ -124,7 +124,7 @@ private ISourceLocation resolveJar(ISourceLocation input) throws IOException {
return URIUtil.getChildLocation(root, jarPath);
}
else {
throw new IOException("Pattern mvn:///groupId!artifactId!version did not match on " + input);
throw new IOException("Pattern mvn://groupId--artifactId--version did not match on " + input);
}
}

Expand Down
Loading