Picketlink Source Compile Error - java

I am trying to compile picketlink from source but it keeps failing with the same error when running either mvn install or mvn package.
It always fails on 'PicketLink Identity Management API' with the error
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project picketlink-idm-api: Compilation failure
error: java.lang.NullPointerException
I have tried with versions 2.5.0, 2.5.1, 2.5.2, 2.6.0, and 2.6.1.
Whats wrong and how can I fix this?
Thanks

You can try to compile using a web archive (war) package? It also might help to start a new project with just the one dependency. It might help you narrow down the problem.

Related

I keep getting a really annoying error everytime I run mvn clean install

I keep getting a
Failed to execute goal
org.apache.maven.plugins:maven-shade-plugin:2.1:shade (default) on
project PermissionsPlugin: Error creating shaded jar: Error in ASM
processing class net/perms/commands/rank/deleteRank.class" error.
I can't figure out what is happening, as Intellij isn't giving me any errors when I build with it. The reason I build with maven is to shade, in case you were wondering. Any suggestions on how to fix this?
The solution was to update the Maven shade plugin.
I found out my issue. My maven shade plugin wasn't up to date... The error has been fixed by Maven a while ago.

maven project build shows Compilation failure

I am creating a web application using spring mvc with eclipse as my IDE and every time I build my project I keep getting getting the following :- Compilation failure: Compilation failure:
[ERROR] /C:/Users/dev1/project/GeoVision/src/main/java/com/mmi/controllers/GeoJsonToShp.java diamond operator is not supported in -source 1.5
I have changed the java build path and set it to latest JRE and even then the error won't go.
Also, I am able to run the project on server?
Please suggest what is it that I have to change to successfully build my project?
You need to configure the compile level in IDE settings
Or configure the maven file (probably this rather than eclipse)

How to resolve Maven cfx build failure?

I'm pretty new to java and maven and I'm trying to build the apache cxf project. I get an error during the build and I don't have any clue what I'm doing wrong. Can anybody give me some input on what I need to change to run the build properly?
I have been running mvn clean install and got an build error I don't understand. You can find it here: https://pastebin.com/Vdvi4unU
My end goal is to run mvn dependency:tree -DoutputType=tgf -DappendOutput=true -DoutputFile=output.tgf to get all the dependencies of a project.
The pom from apache cfx: https://github.com/apache/cxf/blob/master/pom.xml

Jenkins-Maven-Tomcat-Nexus: compilation failed

I implemented a java project with eclipse environment, i use maven to manage dependencies and inject some jars files in TOMCAT_HOME/lib.
When compile project in jenkins, compilation failed because missing of jars (which in tomcat/lib).
How can I solve this please?

JDK8u20 compilation error with provided dependency

I use maven (3.2.1) to build our project. My project depends on some propretiary libraries that we have in local maven repo. Those libraries are declared with provided scope (because we don't need them in distribution). Our dependencies depends, of course, on some other libs, e.g. apache-scxml lib, but our code don't do anything with any class from apache-scxml. And in JDK8u20 we cannot build our system anymore, it fails with exception:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project <myproject>: Compilation failure
[ERROR] <myclass>.java:[47,45] error: cannot access SCXMLListener
But project builds completely fine with JDK8u5 and JDK8u11.
I tried to find some info and only thing I found is here: https://issues.jboss.org/browse/FORGE-2019
but I don't think its the same, or at least I cannot understand it. Can someone explain to me what can be the reason that it compiles with JDK8u11 and not with u20?

Categories