Describe the bug
When building Maven projects, the following error throws:
ERROR org.apache.maven.cli.MavenCli - Internal error: java.lang.RuntimeException: Unable to load build info properties from file: <project_workspace>@tmp/artifactory/buildInfo5975272843518464698.properties: Illegal key size -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Unable to load build info properties from file: <project_workspace>@tmp/artifactory/buildInfo5975272843518464698.properties
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
[...]
Caused by: java.lang.RuntimeException: Unable to load build info properties from file: /opt/jenkins/workspace/AF_HerramientasEstandares/hello-world/hello-world-maven/HelloWorld_PREPRO@tmp/artifactory/buildInfo5975272843518464698.properties
at org.jfrog.build.extractor.BuildInfoExtractorUtils.searchAdditionalPropertiesFile (BuildInfoExtractorUtils.java:118)
at org.jfrog.build.extractor.BuildInfoExtractorUtils.mergePropertiesWithSystemAndPropertyFile (BuildInfoExtractorUtils.java:70)
at org.jfrog.build.extractor.maven.resolver.ResolutionHelper.init (ResolutionHelper.java:31)
at org.jfrog.build.extractor.maven.ArtifactoryProjectBuilder.build (ArtifactoryProjectBuilder.java:37)
[...]
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm (Cipher.java:1039)
at javax.crypto.Cipher.implInit (Cipher.java:805)
at javax.crypto.Cipher.chooseProvider (Cipher.java:864)
at javax.crypto.Cipher.init (Cipher.java:1396)
at javax.crypto.Cipher.init (Cipher.java:1327)
at org.jfrog.build.extractor.clientConfiguration.util.encryption.Encryptor.decrypt (Encryptor.java:29)
at org.jfrog.build.extractor.clientConfiguration.util.encryption.PropertyEncryptor.decryptProperties (PropertyEncryptor.java:50)
at org.jfrog.build.extractor.clientConfiguration.util.encryption.PropertyEncryptor.decryptPropertiesFromFile (PropertyEncryptor.java:39)
at org.jfrog.build.extractor.BuildInfoExtractorUtils.searchAdditionalPropertiesFile (BuildInfoExtractorUtils.java:110)
at org.jfrog.build.extractor.BuildInfoExtractorUtils.mergePropertiesWithSystemAndPropertyFile (BuildInfoExtractorUtils.java:70)
at org.jfrog.build.extractor.maven.resolver.ResolutionHelper.init (ResolutionHelper.java:31)
at org.jfrog.build.extractor.maven.ArtifactoryProjectBuilder.build (ArtifactoryProjectBuilder.java:37)
[...]
Expected behavior
It should execute Maven goals, produce its artifacts and capture build info without errors.
Versions
Jenkins Artifactory plugin version: I've tried versions 4.0.3 and 4.0.6 and both produce the error. It works in version 4.0.0. Probably won't work in versions>=4.0.1.
Jenkins operating system: CentOS7
Maven version: 3.5.4
Java version: 1.8.112
Additional context
Because of the exception thrown, my guess is that this error is caused by this feature introduced in version 4.0.1: https://github.com/jfrog/build-info/pull/766
Describe the bug When building Maven projects, the following error throws:
To Reproduce Launch maven build like this:
Expected behavior It should execute Maven goals, produce its artifacts and capture build info without errors.
Versions
Additional context Because of the exception thrown, my guess is that this error is caused by this feature introduced in version 4.0.1: https://github.com/jfrog/build-info/pull/766