I had created a project (my-project-1) in SonarQube(http://localhost:9000/) and linked to Eclipse by
mvn sonar:sonar \
-Dsonar.projectKey=my-project-1 \
-Dsonar.host.url=http://localhost:9000 \
-Dsonar.login=9ccaa3df53e5261c5fc9a7e941d24a684c98c553
When I build the project in Eclipse, and then I can see the analysis in SonarQube with quality gate passed
But After two weeks, I had created a new project (my-project-2) in SonarQube(http://localhost:9000/).
Now it has 2 projects in SonarQube.
my-project-1
my-project-2
New project is working fine means quality gate passed.
But when I try to build the old project (my-project-1),
But its quality gate failed.
Then I delete the project from SonarQube and added the same project (my-project-1) again and updated the token in eclipse. Now its working fine.
I am using sonarqube-7.6
Every time I have to delete the project and create it again. This is
the issue. Any solution for this?
Related
I am try to use maven in eclipse (luna,mars and neon),I configure maven settings.xml mirror with maven repository url.and then I configure eclipse about maven,such as settings file path ,local repo path ,unchecked auto build project and so on. but times I want to create maven-archetype-webapp project,it blocked at creating maven-archetype-webapp with 99% schedule more than 1 hour,then I use git bash archetype:generate command create a maven-archetype-wenapp project , and import to eclipse , when I update project (or use Alt+F5),it blocked at updating maven project . so how to create webapp archetype without block,or how to update without block?thanks!!!
I have a Maven Project that creates a table in AWS DynamoDB and push few values to it. This project is built in Eclipse. But when I try to do a Maven build of same project in Jenkins, the Build Status is successful. But no table is getting created in DynamoDB. Is it because the created .jar file after build in Jenkins is not getting executed? In that case, I tried to add a batch command to execute the created .jar file as java -jar "samples-1.0.0.jar". Then, I am getting an error as no main manifest attribute, in samples-1.0.0.jar. Why is this not happening in Jenkins while it works fine with Eclipse ?
When starting a new project using JBoss Forge, the project is creating with a Maven build system by default. How do I take advantage of Forge 2.*'s Gradle AddOn to create the project using Gradle instead of Maven?
% forge
Using Forge at /usr/local/Cellar/jboss-forge/2.12.2.Final/libexec
…
[ForgePlaygroundGradle]$ new-project --name ForgePlaygroundGradle --topLevelPackage com.kedges.forgegradle --porjectFolder . **???**;
What you need here are two things:
1) After you start Forge, make sure you have installed the Gradle addon (it does not come with the core distribution):
addon-install --coordinate org.jboss.forge.addon:gradle,2.12.2.Final
2) Then you can use the --buildSystem option of the project-new command:
project-new --named ForgePlaygroundGradle --topLevelPackage com.kedges.forgegradle
Please note that the latter command may take some time to execute the first time. The reason for this is the downloading of the dependencies for a decent Java EE web project. Same happens with Maven projects when you create them with an empty local ~/.m2/repository folder.
If you don't need a web project, then consider the other project types provided by the --type option.
I have a project with jUnit tests that I created on a school computer with Netbeans 7.3. The
unit tests run great there. I have it committed to a github repository. At home I have Netbeans 7.4. I used Team->Git->Clone to clone the project down to my home computer. The project was created just fine, but all of my unit tests are flagged as "Duplicate Class."
If it works on one computer but not another, how do I trouble-shoot this?
I used Netbeans to initialize the Git Repository. Committed and pushed all my code to git hub. The GitHub repository has a copy of the nbproject folder. Both the school and home computer have junit4 installed. What am I missing?
The repo is here for anyone that wants to look: https://github.com/mmeier/Java113.git
UPDATE
Unit tests run just fine on the home computer. However the IDE is still displaying errors. Clearly a configuration issue, but I'm not sure where to look.
Not sure what was causing the problem but here's how I finally resolved it.
Uninstall/Reinstall NetBeans
Create new basic Java Application (create new project wizard)
Add new jUnit test for existing class.
When prompted, select to install jUnit 4
Clone project from GitHub as described in question.
Delete temp project created in step 2.
Feels like I'm doing a work-around. But for some reason cloning the project and then installing jUnit 4 didn't appear to work.
I downloaded spring-social-facebook and spring-social-linked in and built the sources as per the README of the github repo for the projects
After I did ./gradlew eclipse and nce I have imported the project into Eclipse, the build path is not set up correctly.
I tried a few manual set up but did not go very far with that.
I am not a gradle user.
I found out that when you do File -> Import -> Existing projects into workspace in Eclipse, I was using the wrong directory to start from.
When you initially clone the git repository, you have a spring-social-linkedin directory created which is the one you then cd to to do the gradlew operations. And then you have a second one which is created : git/spring-social-linkedin/spring-social-linkedin.
This is this second one you need to select as the root directory to look at when you import the project into eclipse and everything will work fine.
Probably obvious for gradle knowledgeable people...