This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"policy_chain":[ | |
{ | |
"name":"default_credentials", | |
"version":"builtin", | |
"configuration":{ | |
"auth_type":"user_key", | |
"user_key":"83009ff737e5d800a32044e23f46ebe7" | |
} | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In order to install Maven 3.3.x manually on Travis (doesn't supported yet) | |
before_install: | |
- wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip | |
- unzip -qq apache-maven-3.3.9-bin.zip | |
- export M2_HOME=$PWD/apache-maven-3.3.9 | |
- export PATH=$M2_HOME/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using IntelliJ IDEA and Gradle 3.3, the following error can be raised importing a Scala based project (i.e. Apache Kafka) with Gradle : | |
Unable to build Scala project configuration | |
Details: groovy.lang.MissingPropertyException: No such property: daemonServer for class: org.gradle.api.tasks.scala.ScalaCompileOptions | |
To fix it, you can add following lines to the build.gradle file | |
ScalaCompileOptions.metaClass.daemonServer = true | |
ScalaCompileOptions.metaClass.fork = true | |
ScalaCompileOptions.metaClass.useAnt = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It could happen that with your Docker installation you don't have the following configuration file : | |
/etc/sysconfig/docker | |
Without it, the Docker daemon started as a service (i.e. with systemd so using "sudo systemctl start docker" or | |
"sudo systemctl enable docker" to start at OS startup) gets the configuration from following file : | |
/usr/lib/systemd/system/docker.service | |
You can ovveride this configuration in the following way : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ppatierno | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import com.fasterxml.jackson.databind.node.{ArrayNode, ObjectNode} | |
import com.fasterxml.jackson.module.scala.DefaultScalaModule | |
/** | |
* Created by ppatiern on 02/08/16. | |
*/ | |
object JsonTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Three ways to create an executable and fat JAR with Maven : | |
maven-jar-plugin (it doesn't add dependencies inside the final JAR, they have to be in the classpath) | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<configuration> | |
<archive> | |
<manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Name=Eclipse | |
Comment=Eclipse Integrated Development Environment | |
Icon=/opt/eclipse/icon.xpm | |
Exec=/opt/eclipse/eclipse | |
Terminal=false | |
Categories=Development;IDE;Java |