[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-22 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-577358114
 
 
   @michael-o I think it's safer to special-case UnknownHostException. I 
confirmed that the integration tests pass. Would you take a look at this change?


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-21 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-576905166
 
 
   Memo for myself:
   
   Non-existent artifact (guava:30.0 below) causes mvn command failure but 
checksum verification failure doesn't. They both seem to go the same code path 
around this `ArtifactResolutionException`  now with this PR; IGNORE_MISSING was 
true. I guess the latter (checksum verification failure) did not go `return 
null` before this PR. Isn't the code in this PR supposed to throw 
`ArtifactDescriptorException` upon the missing artifact case? Isn't the 
IGNORE_MISSING flag controlling whether the build should fail or not?  
   
   ```
 
   
 com.google.guava
 guava
 30.0 
   
   
 
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-21 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-576899245
 
 
   @michael-o  Now I can debug it with IntelliJ. Thank you.
   
   ```
   
suztomo@suxtomo24:~/maven-integration-testing/core-it-suite/target/test-classes/mng-3470$
 
/usr/local/google/home/suztomo/app/maven/apache-maven-3.7.0-SNAPSHOT/bin/mvnDebug
 validate --settings settings.xml
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-21 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-576865200
 
 
   @michael-o I cannot set breakpoint in IntelliJ to look at the values at line 
250 of DefaultArtifactDescriptorReader.java somehow. Would you share how you 
setup debugger and your IDE/editor?


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-21 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-576735266
 
 
   Memo for myself:
   Invoking the test via IntelliJ did not fail the test somehow. Command-line 
worked:
   
   ```
   suztomo-macbookpro44:maven-integration-testing suztomo$ mvn clean install 
-Prun-its -Dmaven.repo.local=`pwd`/repo 
-DmavenDistro=$HOME/maven/apache-maven/target/apache-maven-3.7.0-SNAPSHOT-bin.zip
 -Dtest=MavenITmng3470StrictCheckumVerificationOfDependencyPomTest 
-DfailIfNoTests=false 
   ...
   [INFO] Running 
org.apache.maven.it.MavenITmng3470StrictCheckumVerificationOfDependencyPomTest
   mng3470StrictCheckumVerificationOfDependencyPom(it).FAILURE (6.6 s)
   [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
6.746 s <<< FAILURE! - in 
org.apache.maven.it.MavenITmng3470StrictCheckumVerificationOfDependencyPomTest
   [ERROR] 
testit(org.apache.maven.it.MavenITmng3470StrictCheckumVerificationOfDependencyPomTest)
  Time elapsed: 6.641 s  <<< FAILURE!
   junit.framework.AssertionFailedError: Build did not fail despite broken 
checksum of dependency POM.
at 
org.apache.maven.it.MavenITmng3470StrictCheckumVerificationOfDependencyPomTest.testit(MavenITmng3470StrictCheckumVerificationOfDependencyPomTest.java:63)
   ```
   
   Maybe try `export 
MAVEN_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005'`
 to debug.
   
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-17 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-575817970
 
 
   How about adding if statement for IGNORE_INVALID? (I'll do experiment next 
week)


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-17 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-575798128
 
 
   > I believe that the current code is broken and your PR simply reveals this 
bug.
   
   I agree. The policy for the artifact should not have 
ArtifactDescriptorPolicy.IGNORE_MISSING. I see dependency setup is very normal. 
 If the artifact is missing, the build should fail.
   
https://github.com/apache/maven-integration-testing/blob/master/core-it-suite/src/test/resources/mng-3470/pom.xml#L37
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-17 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-575769439
 
 
   Thank you, then I'll wait for the integration test updated.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-17 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-575720544
 
 
   Using https://github.com/apache/maven-integration-testing, I confirmed test 
failure > testmng5175_ReadTimeOutFromSettings
   
   > Better to copy it and adjust the mavenranges for both.
   
   I'll follow that.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-16 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-575467785
 
 
   Let me check tomorrow. (I thought I checked “mvn test -Prun-its”, but maybe 
I forgot)


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-14 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-574320340
 
 
   Sure.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2020-01-14 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-574252589
 
 
   @michael-o Did you get a chance to check this?


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2019-08-16 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-522156022
 
 
   Sure, let me think how to test this.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [maven] suztomo commented on issue #277: [MNG-6732] - DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon ArtifactTransferException

2019-08-15 Thread GitBox
suztomo commented on issue #277: [MNG-6732] - 
DefaultArtifactDescriptorReader.loadPom to check IGNORE_MISSING policy upon 
ArtifactTransferException
URL: https://github.com/apache/maven/pull/277#issuecomment-521734958
 
 
   @eolivelli  Thank you for question.
   
   
   > Isn't ArtifactTransferException a temporary failure?
   
   
[ArtifactTransferException](https://maven.apache.org/resolver/apidocs/org/eclipse/aether/transfer/ArtifactTransferException.html)
 does not specify that. ArtifactTransferException can be a permanent failure 
from a retired repository (such as http://repository.codehaus.org/ ) as well as 
a temporary repository failure.
   
   > Will this change add unpredictable behavior to builds?
   
   No, it does not add unpredictable behavior (as far as I know). Thinking of 
two cases:
   
   - When all Maven repositories involved are alive
 No error. No unpredictable behavior.
   
   - When a Maven repository is temporarily down
 1. `DefaultRepositorySystem.collectDependencies` builds a partial 
dependency graph, rather than failing here (new behavior).
 1. The dependency graph is transformed via Maven's dependency mediation 
(no change)
   In [my example](https://github.com/suztomo/maven-missing-artifact), 
`artifact-to-be-removed:1.0` is removed from graph in favor of 
`artifact-to-be-removed:2.0`.
 1. `DefaultRepositorySystem.resolveDependencies` tries to resolve 
dependencies. (no change)
 **Maven fails** to resolve dependencies if the graph contains an 
artifact hosted in the temporarily-down repository.
 **Maven succeeds** if the graph does not contain missing artifact, 
resulting in the same graph as the case of "When a live repository is alive"
   
   
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services