Skip to content
Advertisement

Tag: pom.xml

Maven error Cannot access defaults field of Properties

I use the newest version of Java -> 16. When I run mvn clean, I am getting Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer error. I read that adding maven-war-plugin can be a solution, but it didn’t work for me. When I run mvn install, the following error occurs: Error injecting constructor, java.lang.ExceptionInInitializerError: Cannot access defaults field of Properties at org.apache.maven.plugin.war.WarMojo.(Unknown Source)

How to fix No processor claimed any of these annotations: org.apache.avro.specific.AvroGenerated?

I’m having this error: No processor claimed any of these annotations: org.apache.avro.specific.AvroGenerated How I got the error: I was trying to implement an Avro serialize and deserialize. So, I generated an Avro Class out of .avsc file using an sbt-avro plugin. The generated Avro Class has an annotation above @org.apache.avro.specific.AvroGenerated. I tried commenting it out, it didn’t solve the issue,

SLF4J: Class path contains multiple SLF4J bindings warning

I’ve seen in other questions that usually the solution to this warning is to exclude slf4j from the dependency that causes this conflict, but I can’t spot the problem in my project. I run mvn dependency:tree command and this is the output: Answer You can solve the issue by adding the following exclusion in the dependencies (of pom.xml) that caused

Maven Package Command Failure

I am new with maven and package command for my project is failing but I have not been able to figure out what the error is from the generated log. Below is the output of the mvn clean package -X This is pom.xml Also, I am using jenv to toggle between different java versions, since I have another project that

Location variables in the pom.xml file do not work on Ubuntu

I’m using Ubuntu 18.04 and Eclipse Oxygem March 2018. I have a project on a ntfs partition. My pom.xml is in this directory: /media/gustavo/Novo volume/GIT/sistemas/Comuns/commons/pom.xml I am using the variable ${basedir} (I also tested the ${project.basedir} variable) to find this location. These variables should contain the following directory: /media/gustavo/Novo volume/GIT/sistemas/Comuns/commons/ (It works in Windows 10) But, on Ubuntu 18.04, it

Advertisement