Skip to content

Commit

Permalink
Changed the pacakge to my personal namespace. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcustenborder authored Feb 13, 2017
1 parent d546e02 commit 99e157d
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 127 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!groovy
@Library('jenkins-pipeline') import com.github.jcustenborder.jenkins.pipeline.MavenCentralPipeline

def pipe = new MavenCentralPipeline()
pipe.execute()
80 changes: 10 additions & 70 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<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/xsd/maven-4.0.0.xsd">
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>io.confluent.maven</groupId>
<groupId>com.github.jcustenborder.kafka.connect</groupId>
<artifactId>kafka-connect-quickstart</artifactId>
<version>0.10.0.0</version>
<packaging>jar</packaging>

<version>0.10.1.0-cp1</version>
<name>kafka-connect-archtype</name>
<description>A quickstart for building Kafka Connect connectors.</description>
<url>https://github.com/jcustenborder/kafka-connect-archtype</url>

<inceptionYear>2017</inceptionYear>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<id>jcustenborder</id>
Expand All @@ -26,72 +25,13 @@
<timezone>America/Chicago</timezone>
</developer>
</developers>

<scm>
<url>https://github.com/jcustenborder/kafka-connect-archtype</url>
<connection>scm:git:git://github.com/jcustenborder/kafka-connect-archtype.git</connection>
<connection>scm:git:https://github.com/jcustenborder/kafka-connect-archtype.git</connection>
<developerConnection>scm:git:[email protected]:jcustenborder/kafka-connect-archtype.git</developerConnection>
<url>https://github.com/jcustenborder/kafka-connect-archtype</url>
</scm>

<issueManagement>
<system>github</system>
<url>https://github.com/jcustenborder/kafka-connect-archtype/issues</url>
<system>GitHub Issues</system>
</issueManagement>
<profiles>
<profile>
<id>maven-central</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>oss.sonatype.org</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
</configuration>
<executions>
<execution>
<id>deploy-to-sonatype</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
<goal>release</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles>
</project>
3 changes: 1 addition & 2 deletions src/main/resources/META-INF/maven/archetype.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
</sources>
<resources>
<resource>src/main/assembly/package.xml</resource>
<resource>config/connect-avro-docker.properties</resource>
<resource>config/MySinkConnector.properties</resource>
<resource>config/MySourceConnector.properties</resource>
<resource>README.md</resource>
<resource>docker-compose.yml</resource>
<resource>connect/connect-avro-docker.properties</resource>
<resource>bin/debug.sh</resource>
<resource>bin/suspend.sh</resource>
<resource>src/test/resources/logback.xml</resource>
</resources>
<testSources>
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/archetype-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ Start the connector with debugging enabled.
Start the connector with debugging enabled. This will wait for a debugger to attach.

```
./bin/suspend.sh
export SUSPEND='y'
./bin/debug.sh
```
26 changes: 7 additions & 19 deletions src/main/resources/archetype-resources/bin/debug.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
#!/usr/bin/env bash
#
# Copyright (C) 2016 Jeremy Custenborder ([email protected])
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

mvn clean package
: ${SUSPEND:='n'}

set -e

export KAFKA_JMX_OPTS='-Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005'
export CLASSPATH="$(find `pwd`/target/kafka-*-package/share/java/ -type f -name '*.jar' | tr '\n' ':')"
mvn clean package
export KAFKA_JMX_OPTS="-Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=${SUSPEND},address=5005"
export CLASSPATH="$(find target/kafka-connect-target/usr/share/java -type f -name '*.jar' | tr '\n' ':')"

$CONFLUENT_HOME/bin/connect-standalone connect/connect-avro-docker.properties config/MySinkConnector.properties config/MySourceConnector.properties
connect-standalone config/connect-avro-docker.properties config/MySinkConnector.properties config/MySourceConnector.properties
23 changes: 0 additions & 23 deletions src/main/resources/archetype-resources/bin/suspend.sh

This file was deleted.

30 changes: 19 additions & 11 deletions src/main/resources/archetype-resources/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
version: "2"
services:
zookeeper:
image: confluent/zookeeper
ports:
- "2181:2181"
image: confluentinc/cp-zookeeper:3.1.1-1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
zk_id: "1"
network_mode: "host"
kafka:
image: confluent/kafka
depends_on:
hostname: kafka
image: confluentinc/cp-kafka:3.1.1-1
links:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: "confluent:2181"
network_mode: "host"
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://:9092"
schema-registry:
image: confluent/schema-registry
depends_on:
image: confluentinc/cp-schema-registry:3.1.1-1
links:
- kafka
- zookeeper
ports:
- "8081:8081"
environment:
SR_KAFKASTORE_CONNECTION_URL: "confluent:2181"
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: "zookeeper:2181"
SCHEMA_REGISTRY_HOST_NAME: schema-registry
splunk:
image: outcoldman/splunk:latest
environment:
SPLUNK_START_ARGS: --accept-license --answer-yes --no-prompt
SPLUNK_CMD_1: http-event-collector create -auth admin:changeme -uri https://localhost:8089 -name myapp
ports:
- 8000:8000
- 8088:8088
network_mode: "host"
2 changes: 1 addition & 1 deletion src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<description>A Kafka Connect Connector for ${artifactId}</description>

<properties>
<kafka.version>0.10.0.0-cp1</kafka.version>
<kafka.version>0.10.1.0-cp1</kafka.version>
</properties>

<repositories>
Expand Down

0 comments on commit 99e157d

Please sign in to comment.