If you see below error add below plugin to the POM.
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
</plugins>
This error may occur when you try to keep the Java version rather taking Eclipse default JDK.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
More info:
http://stackoverflow.com/questions/36427868/failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-12test/36429564
Google Analytics
Wednesday, October 26, 2016
Sonar Qube plugin
Sonar cube plugin is support to Eclipse IDE. It shows code quality errors on the go.
Plugin name : SonarLint
More Details:
http://www.sonarlint.org/eclipse/
Plugin name : SonarLint
More Details:
http://www.sonarlint.org/eclipse/
Sonar Qube Issue Report generate
Sonar qube issue report can be generate using below command. You must start sonar qube server and the sonar runner from the source code path.
sonar-runner -Dsonar.analysis.mode=preview -Dsonar.issuesReport.html.enable=true
More info:
http://docs.sonarqube.org/display/SONARQUBE53/SonarLint+for+Command+Line
sonar-runner -Dsonar.analysis.mode=preview -Dsonar.issuesReport.html.enable=true
More info:
http://docs.sonarqube.org/display/SONARQUBE53/SonarLint+for+Command+Line
Sonar Qube 404 error
If the Sonar runner throw localhost/9000 unreachable with 404 code, try to upgrade the Sonar DB. (Need to up and running Sonar Qube server)
Below is the upgrade url.
http://127.0.0.1:9000/setup
More info:
http://stackoverflow.com/questions/32097414/error-sonar-server-http-localhost9000-can-not-be-reached
Tuesday, October 25, 2016
Eclipse JDK version change
If we want to keep the JAVA_HOME environment variable to a different JDK version than Eclipse, we can change the JDK version of the Eclipse.
Add below entry to the beginning line of eclipse.ini file .
-vm
C:/Program Files/Java/jdk1.7.0_79/bin/javaw.exe
Add below entry to the beginning line of eclipse.ini file .
-vm
C:/Program Files/Java/jdk1.7.0_79/bin/javaw.exe
Subscribe to:
Posts (Atom)