So recently I was given a maven project I need to compile, but there seems to be some compatibility issues with wr04j and the most recent version of Java I have installed on my Mac.
Execution {redacted} of goal ro.isdc.wro4j:wro4j-maven-plugin:1.8.0:run failed: An API incompatibility was encountered while executing ro.isdc.wro4j:wro4j-maven-plugin:1.8.0:run: java.lang.ExceptionInInitializerError: null
Upon further research I found a Java version manager similar to nvm with node. I followed all of the steps I could find to download prior versions of Java hoping to find the one that worked. One issue arrived that caskroom and homebrew don't appear to host versions of Java older than Java11.
Is there something I am missing? I run these lines in my command line
brew tap caskroom/versions
brew search java
The only versions that show up after doing this are
java
java-beta
java11
java6
All of the instructions list versions 6-11 as available. Maybe they were removed? Maybe I'm doing something wrong? Any direction would be much appreciated.
I was unable to find a version of Java before 11 on homebrew other than Java6, but found this fix for anyone receiving the same error.
<plugin> section for wr04j in the pom.xml
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>2.18.0</version>
</dependency>
</dependencies>
Related
This java package work fine on my Windows machine, but when I run this on my Mac machine it create conflict with maven; both machine have same version of maven. Can you tell me why it's happening, and can you give me the solution to this error?
Note: I already tried spark-excel_2.11 but same problem still.
<dependency>
<groupId>com.crealytics</groupId>
<artifactId>spark-excel_2.10</artifactId>
<version>0.8.3</version>
</dependency>
I use Intellij 2018.1 and when i add to my project a serenity-cucumber dependency with latest versions, the run and debug button doesn't work anymore. (It's strange that maven it's able to run the tests with no problem).
I tried and built the simplest project with hello world and just with that dependency. No success, same situation. When i've gone to version 1.9.8(maybe there are newer versions that could work, i will try), the intellij started to work normal.
Also tried to change project sdk and project language level.
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-cucumber</artifactId>
<version>1.9.35</version>
<dependency>
Now the program works with that older version, but it doesn't generate the report well. Maybe i will find a solution to run the tests with intellij with debug mode using last version.
I am trying to configure PMD into a legacy application that needs to run in java 1.6 (this is mandatory). I am trying to find a version of pmd-plugin that was build at least again java 1.6. If I use maven-pmd-plugin it complains not being binary compatible with jre 1.6.
The problem is older version of PMD net.sourceforge.pmd seems to be ignored and maven-pmd-plugin:3.8 always run instead no matter the version I use.
Now I am trying with no lucky with this.
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd</artifactId>
<version>5.0.0</version>
</dependency>
The latest PMD release to be compiled against Java 6 was PMD 5.4.6. (last of the 5.4.x branch). Ever since 5.5.0 PMD has required Java 7.
You can tell the Maven plugin to use whichever version of PMD you require by setting it's dependencies explicitly.
You can see the docs on how to do so here
I get a obscure error meesage, if i want to build my maven project with command "maven clean install":
Internal error in the plugin manager executing goal 'com.samaxes.maven:minify-maven-plugin:1.7:minify': Unable to find the mojo 'minify' (or one of its required components) in the plugin 'com.samaxes.maven:minify-maven-plugin'
com/samaxes/maven/minify/plugin/MinifyMojo : Unsupported major.minor version 51.0**
Was anybody an idea, how i can solve this problem?
//EDIT
It is possible to solve this problem without changing the current JDK 6 to JDK 7 ?
//EDIT again
Ok i could build my maven project. I have done the follwoing step but i´m not sure, if this was a good way of solution:
<plugin>
<groupId>com.samaxes.maven</groupId>
<artifactId>minify-maven-plugin</artifactId>
<version>1.6</version>
</plugin>
I have changed the version from 1.7 to 1.6 and now i can build the maven project. But is that really the best solution?
The plugin is compiled for Java 1.7 and you don't have a JDK7 installed (at least Maven is not running with that JDK)
This plugin was compiled for Java 7 and your system has previous Java version. Hence the problem with running MinifyMojo
As others have mentioned, this plugin is compile for Java 7. You can either upgrade your version of Java or you can check if any of the previous versions of your plugin were compiled with Java 6, or at least were compiled with Java 6 compatibility turned on.
I want to test Sikuli Java API, to be specific http://code.google.com/p/sikuli-api/wiki/SikuliWebDriver . The dependency is added using maven, i.e.
<dependency>
<groupId>org.sikuli</groupId>
<artifactId>sikuli-webdriver</artifactId>
<version>1.0.1</version>
I'm using IntelliJ Idea 11 Community Edition on 64-bit Windows 7. 32-bit JDK 6 is used in project.
I tried to use maven dependencies out of box as it described on the project site (still remembering, that there should be some native .dll installation, which doesn't occure when we use maven depencdencies only). In runtime I've get Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\User\AppData\Local\Temp\javacpp26205597583997\jniopencv_core.dll: Can't find dependent libraries
Then I downloaded sikuli-r930-win32, installed it to C:\SikuliX. then added SIKULI_HOME system variable, setting path to C:\SikuliX. But still get the same error message in runtime.
Please, help! Just ideas what to check.
It was checked with http://DependencyWalker.com that opencv_core240.dll was lost (possibly, a common Windows 7 bug). After it was downloaded from https://code.google.com/p/myrobotlab/source/browse/trunk/myrobotlab/thirdParty/repo/net.sourceforge.opencv/opencv/2.4.0/x86.64.windows/opencv_core240.dll?r=711 and placed to C:\SikuliX\libs\ together with other .dlls, the problem was solved.