Skip to content

Instantly share code, notes, and snippets.

View eddumelendez's full-sized avatar
😬
Just doing my best!

Eddú Meléndez Gonzales eddumelendez

😬
Just doing my best!
View GitHub Profile
@eddumelendez
eddumelendez / build.gradle
Created November 2, 2014 04:01
Gradle script to upload java components into Repository Manager
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'distribution'
archivesBaseName = 'my-component'
group = 'io.eddumelendez.gradle'
version = '1.0'
sourceCompatibility = 1.7
task sourcesJar(type: Jar) {
@eddumelendez
eddumelendez / gist:8183469
Created December 30, 2013 15:30
set maven compiler
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<target>${java-version}</target>
<source>${java-version}</source>
</configuration>
<ldap:config name="ldapConf" url="${ldap.url}" authDn="${ldap.user}"
authPassword="${ldap.password}" authentication="simple">
<ldap:extended-configuration>
<ldap:extended-configuration key="java.naming.ldap.factory.socket">org.mule.module.ldap.security.BypassTrustSSLSocketFactory
</ldap:extended-configuration>
<ldap:extended-configuration key="java.naming.security.protocol">ssl
</ldap:extended-configuration>
</ldap:extended-configuration>
</ldap:config>
@eddumelendez
eddumelendez / deploy-bat.bat
Last active December 18, 2015 02:09
jboss-as-maven-plugin
mvn jboss-as:deploy -Dhostname=127.0.0.1 -Dport=9999 -Dversion=7.1.0.Final -Dserver.group=cluster_name
@eddumelendez
eddumelendez / pom.xml
Created September 18, 2012 05:37
maven-antrun-plugin
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<profiles>
<profile>
<id>prod</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
@eddumelendez
eddumelendez / generatorConfig.xml
Last active October 9, 2015 00:07
mybatis generator
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" >
<generatorConfiguration>
<!-- Ubicación del JAR JDBC del gestor de Base de datos a usar -->
<classPathEntry location="ojdbc5-11.2.0.3.jar" />
<context id="context1">
<!-- No generamos los comentarios -->
@eddumelendez
eddumelendez / pom.xml
Created June 9, 2012 23:31
sonar dependency
<dependency>
<groupId>org.codehaus.sonar.plugins</groupId>
<artifactId>sonar-plugin-cobertura</artifactId>
<version>1.5M3</version>
</dependency>