rich7420 commented on PR #3981:
URL: https://github.com/apache/ambari/pull/3981#issuecomment-2808773962
1. According to the WARN it occured :
```
[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o 'commons-collections:commons-collections'
o 'commons-configuration:commons-configuration'
```
So I removed them.
2. Though skipping unit test, I built ambari successfully. But the error
comes out when I didn't skip test. like this:
```
[ERROR] Errors:
[ERROR]
AvoidTransactionalOnPrivateMethodsCheckTest.transactionalOnPrivateMethod:42->AbstractModuleTestSupport.verify:220->AbstractModuleTestSupport.createChecker:118->AbstractModuleTestSupport.createChecker:137
» NoClassDefFound org/apache/commons/collections/FastHashMap
[ERROR]
AmbariSwaggerReaderTest.swaggerApiThatIsBothTopLevelAndNestedIsCountedAsTopLevel:172
NullPointer Cannot invoke "java.util.Map.keySet()" because the return value of
"io.swagger.models.Swagger.getPaths()" is null
[ERROR] AmbariSwaggerReaderTest.swaggerBasicCase:70 » NoClassDefFound
com/sun/jersey/api/core/InjectParam
[ERROR] AmbariSwaggerReaderTest.swaggerConflictingNestedApis:85 »
NoClassDefFound com/sun/jersey/api/core/InjectParam
[ERROR]
AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithBadPreferredParent:139
» NoClassDefFound com/sun/jersey/api/core/InjectParam
[ERROR]
AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithPreferredParent:102 »
NoClassDefFound com/sun/jersey/api/core/InjectParam
[ERROR]
AmbariSwaggerReaderTest.swaggerConflictingNestedApisWithSamePreferredParent:120
» NoClassDefFound com/sun/jersey/api/core/InjectParam
[ERROR] AmbariSwaggerReaderTest.swaggerNestedApisWithOverwrite:158
NullPointer Cannot invoke "java.util.Map.keySet()" because the return value of
"io.swagger.models.Swagger.getPaths()" is null
```
The reason why it comes is we removed commons-collections3.2.2. It seems
from`AbstractModuleTestSupport `for `checkstyle package` because
`AbstractModuleTestSupport` depends on `FastHashMap`(from
commons-collections3.2.2).
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]