Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
ba78cf44
Commit
ba78cf44
authored
7 years ago
by
Ivan Bessonov
Browse files
Options
Download
Email Patches
Plain Diff
EA-123204 maven - wrap "invalid uri" error in maven 2 artifact resolver
parent
59b08fa6
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/maven/maven2-server-impl/src/org/jetbrains/idea/maven/server/embedder/CustomWagonManager.java
+17
-10
...brains/idea/maven/server/embedder/CustomWagonManager.java
with
17 additions
and
10 deletions
+17
-10
plugins/maven/maven2-server-impl/src/org/jetbrains/idea/maven/server/embedder/CustomWagonManager.java
+
17
-
10
View file @
ba78cf44
...
...
@@ -74,19 +74,26 @@ public class CustomWagonManager extends DefaultWagonManager {
@Override
public
void
getArtifact
(
Artifact
artifact
,
ArtifactRepository
repository
)
throws
TransferFailedException
,
ResourceDoesNotExistException
{
if
(
myInBatchResolve
.
get
()
==
Boolean
.
TRUE
)
{
super
.
getArtifact
(
artifact
,
repository
);
return
;
}
if
(!
takeFromCache
(
artifact
))
{
try
{
try
{
if
(
myInBatchResolve
.
get
()
==
Boolean
.
TRUE
)
{
super
.
getArtifact
(
artifact
,
repository
);
return
;
}
if
(!
takeFromCache
(
artifact
))
{
try
{
super
.
getArtifact
(
artifact
,
repository
);
}
catch
(
WagonException
ignore
)
{
}
cache
(
artifact
);
myUnresolvedCollector
.
collectAndSetResolved
(
artifact
);
}
catch
(
WagonException
ignore
)
{
}
catch
(
IllegalArgumentException
e
)
{
if
(
e
.
getMessage
()
!=
null
&&
e
.
getMessage
().
startsWith
(
"Invalid uri"
))
{
throw
new
ResourceDoesNotExistException
(
e
.
getMessage
(),
e
);
}
cache
(
artifact
);
myUnresolvedCollector
.
collectAndSetResolved
(
artifact
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help