Travis sonar scanner install third party plugin - travis-ci

I need to activate the plugin https://github.com/racodond/sonar-css-plugin
to lint css files on my project.
You can see the full source code here:
https://github.com/meilleur-monde/wp-quotes-widget
I don't know how to activate this plugin.
do I have to activate it on the server via https://sonarcloud.io or from travis by downloading the jar and install it but where ?

Related

Robot framework plugin doesn't appear in post build step in Jenkins

I have Jenkins 2.150.3 installed. I have installed the Robot Framework plugin for test reports publishing. But it does not appear in the post build step.
I have installed all the dependency plugins too. Can some one help what could be wrong.
First, double-check the dependencies of the JENKINS/Robot Framework Plugin: you have installed those, but check their versions.
Second, check if robotframework itself is correctly installed.
Check if the type of job can change whether or not you do see it in the post build steps.
The src/test/java/hudson/plugins/robot/RobotProjectActionTest.java shows that plugin used in a Freestyle project, as a build step (not post-build).
See if that robot is available as a build step then.

Hyperledger SDK for Java chaincode (shim-client-1.0)

I tried to compile chaincode sample and write my own one (https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample)
However, I can't get a shim-client-1.0. Do you have plans to make java sdk public?
I hope that “shim-client-1.0.jar” will be added to maven repository soon, nevertheless you can try to compile it using source code in “github.com/hyperledger/fabric/core/chaincode/shim/java”.
gradle build
and "shim-client-1.0.jar" will be available in github.com/hyperledger/fabric/core/chaincode/shim/java/build/lib folder.

How to build the plugin with ant on mac

I found a salesforce plugin for intellij IDEA (link), and now trying to install it. The problem is, i've never done this before. So according to instruction:
How to build and install
Until the plugin is released into the IntelliJ plugins repository, you
can following these instructions for manually building and installing
the plugin from GitHub:
Update the ANT script salesforce-plugin-xml with the location of your IntelliJ IDEA install
<!--property name="idea.path" value="C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.0.2"/-->
<property name="idea.path" value="/Applications/IntelliJ IDEA 13.app"/>
Execute the 'package' target of the ANT script - this will create a salesforce-plugin-#.#.zip file in the out directory
Go into IntelliJ IDEA settings under Plugins and select "Install plugin from disk". Select the zip file and click Ok.
I downloaded a project from github, added path to idea to salesforce-plugin.xml. Then i realized that i don't have an ant to build it. I installed homebrew, installed ant, checked the version (ant appeared, ok).
Then i stuck. I tried different combinations, how to package the plugin, The last attempt is when i changed salesforce-plugin.xml to build.xml and wrote in terminal:
ant package build.xml
got:
Buildfile: /Users/cooler/Downloads/salesforce-plugin-master/build.xml
BUILD FAILED
/Users/cooler/Downloads/salesforce-plugin-master/build.xml:36: taskdef
class com.intellij.ant.Javac2 cannot be found using the classloader
AntClassLoader[]
Can you help me please to do this in right way!?
BTW, i use Mavericks
On a Mac, you need to add /Contents to the root path of the IDEA installation. For example:
<property name="idea.path" value="/Applications/IntelliJ IDEA 14.app/Contents"/>
When generating ant build scripts:
build -> generate ant build
-> check "use current idea instance for idea.home property"
Re-generate the ant build scripts. Now the build should work propertly.

How can I compile a primefaces source?

In the download section of primefaces there are 3 links:
binary
bundle
sources
I use primefaces 3.4.2 and would like to recompile one java class to fulfill my needs.
I downloaded the sources. Now I would like to recompile this class, but I don't know how to achieve that. How can I compile a primefaces source?
From primefaces site:
http://code.google.com/p/primefaces/wiki/BuildingFromSource
PrimeFaces uses maven as the build tool. There's a custom maven plugin to generate jsf artifacts. To begin you might need to check out and build PrimeFaces maven-jsf-plugin in case the version used is not available in Prime Repository.
svn checkout http://primefaces.googlecode.com/svn/maven/trunk/maven-jsf-plugin/ build
cd to the build and do a maven install
cd build
mvn install
Next thing to do is to build PrimeFaces itself, checkout the code with;
svn checkout http://primefaces.googlecode.com/svn/primefaces/trunk
cd to the primefaces folder and run maven build.
cd primefaces
mvn install
Component Development
PrimeFaces JSF plugin generates the necessary artifacts including component sources, faces-config.xml, and facelets taglib. Component developers only need to implement the Renderer classes of the components. Component metadata files are defined under src/main/resources-maven-jsf folder.
Checkout sources from repo. It is maven project, so build it with maven.

Manually install the maven plugin for offline mode operation

How to manually install the maven plugin since I have enabled offline mode in settings.xml?
For example I downloaded maven-clean-plugin-2.4.1.jar. But I dont know where to place it and how to install it.
Tried http://maven.apache.org/plugins/maven-install-plugin/usage.html but I am not able to install. Please help me.
Here is the similar question.
Hope this may help you out for installing plugins for maven offlnely.
Maven: How to install a plugin in offline mode
I would recommend to go online once and run
mvn dependency:go-offline
The go-offline goal of the dependency plugin will "resolve all project dependencies, including plugins and reports and their dependencies."

Resources