Jaxb2 Maven Plugin protocol version fatal error - jaxb

Plugin org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:jar:0.13.2: Could not transfer artifact org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:pom:0.13.2 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
Seeing the above error with Java v7 but not with Java v8

Related

Issues with compiling thingsboard in ubuntu

[INFO] Compiling 601 source files to /usr/master/thingsboard-master/application/target/classes
compiler message file broken: key=compiler.misc.msg.bug arguments=11.0.2, {1}, {2}, {3}, {4}, {5}, {6}, {7}
[INFO] ThingsBoard Server Application ..................... FAILURE [ 9.617 s]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
I want to know how to solve this problem please help me

issue on Maven dependency in Azure pipeline

I have upgraded the log4j to 2.17 in my client machine azure pipeline, after that i am getting the error as below. Can anyone help me how to solve it.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Test_Automation: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 -> org.codehaus.plexus:plexus-container-default:jar:1.5.5 -> org.apache.xbean:xbean-reflect:jar:3.4 -> log4j:log4j:jar:1.2.12: Failed to read artifact descriptor for log4j:log4j:jar:1.2.12: Could not transfer artifact log4j:log4j:pom:1.2.12 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR]
Seems SSL issue you have 2 options
configure ssl
use non https url for maven repository
For second option you may use:
<repository>
<id>maven</id>
<name>maven</name>
<url>http://repo1.maven.org/maven2</url>
</repository>

Azure Maven Plugin - Deployment Fails with wired error

mvn azure-functions:deploy fails with this wired error. Can you help me decipher the error.
[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.10.0:deploy (default-cli) on project function-sample-azure:
Unknown error with status code 403: Unrecognized field "evaluationDetails" (class com.microsoft.azure.PolicyViolationErrorInfo),
ot marked as ignorable (13 known properties: "policyDefinitionId", "policyDefinitionReferenceId", "policyDefinitionDisplayName", "policyAssignmentParameters",
"policyAssignmentName", "policySetDefinitionName", "policyDefinitionName", "policyAssignmentScope", "policyDefinitionEffect", "policyAssignmentId", "policySetDefinitionId",
"policySetDefinitionDisplayName", "policyAssignmentDisplayName"])
[ERROR] at [Source: (String)"{"policyDefinitionDisplayName":"STORAGE - Deny Storage account Version 1",
"policySetDefinitionDisplayName":"Storage-initiative-npd","evaluationDetails":{"evaluatedExpressions":
[{"result":"True","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Storage/storageAccounts",
"targetValue":"Microsoft.Storage/storageAccounts","operator":"Equals"},{"result":"True","expressionKind":"Field","expression":"kind","path":"kind","expressionValue":"Storage",
"targetValue":"Sto"[truncated 911 chars]; line: 1, column: 154]
(through reference chain: com.microsoft.azure.CloudError["additionalInfo"]->java.util.ArrayList[0]->com.microsoft.azure.PolicyViolationErrorInfo["evaluationDetails"])
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.10.0:deploy
(default-cli) on project function-sample-azure: Unknown error with status code 403
Below are the properties and plugin configuration I am using. I also have an enterprise requirement to not create a new storage account with this deployment; but rather use an existing one is there are way to configure this.
<properties>
<java.version>1.8</java.version>
<functionAppName>12345600SampleFunctionApp</functionAppName>
<functionAppRegion>eastus2</functionAppRegion>
<region>eastus2</region>
<functionResourceGroup>myFunctionResourceGroup</functionResourceGroup>
<stagingDirectory>${project.build.directory}/azure-functions/${functionAppName}</stagingDirectory>
<start-class>com.wi.prdc.azure.sample.function.Main</start-class>
<azure.functions.java.library.version>1.4.2</azure.functions.java.library.version>
<azure.functions.maven.plugin.version>1.10.0</azure.functions.maven.plugin.version>
<wrapper.version>1.0.23.RELEASE</wrapper.version>
<appServicePlanName>myfunctionAppServicPlan</appServicePlanName>
</properties>
thanks for raising this issue. We will bump default version to v2 in the upcoming maven plugin releases.

invalid END header (bad central directory offset) -> [Help 1] [ERROR]

When I try to build cucumber-report from GitHub https://github.com/mkolisnyk/cucumber-reports using eclipse maven install, I am getting:
[ERROR] Failed to parse plugin descriptor for
org.apache.maven.plugins:maven-checkstyle-plugin:2.10
(C:\maven2\repository\org\apache\maven\plugins\maven-checkstyle-plugin\2.10\maven-checkstyle-plugin-2.10.jar):
invalid END header (bad central directory offset) -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch. [ERROR] Re-run Maven using the -X switch to enable full
debug logging. [ERROR] [ERROR] For more information about the errors
and possible solutions, please read the following articles: [ERROR]
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginDescriptorParsingException

cannot invoke tomcat manager:network unreachable

i am using maven to deploy in tomcat 6
url is http://localhst:8080/manager
the error is shown below i ma usisng eclipse
Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project strutsandhibernte: Cannot invoke Tomcat manager: Network is unreachable: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Try
http://localhost:8080/manager/html

Resources