GithubHelp home page GithubHelp logo

Comments (3)

samuraraujo avatar samuraraujo commented on July 20, 2024
4.0.0
<groupId>com.geophy.coredb.core</groupId>
<artifactId>core-kafka</artifactId>
<version>0.0.25-SNAPSHOT</version>
<packaging>jar</packaging>

<name>CoreDB Core Kafka</name>
<url>http://maven.apache.org</url>

<properties>
	<maven.compiler.source>1.8</maven.compiler.source>
	<maven.compiler.target>1.8</maven.compiler.target>
	<java.version>1.8</java.version>
	<java.version.javadoc>http://java.sun.com/javase/8/docs/api/</java.version.javadoc>
	<file.encoding>UTF-8</file.encoding>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	<slf4j-version>1.7.24</slf4j-version>
	<log4j-version>2.8.2</log4j-version>
	<jena-sparql-api-version>3.3.0-1</jena-sparql-api-version>
	<org-apache-jena-version>3.3.0</org-apache-jena-version>
</properties>

<scm>
	<url>scm:git:ssh://[email protected]:9922/coredb/coredb-core-kafka.git</url>
	<connection>scm:git:ssh://[email protected]:9922/coredb/coredb-core-kafka.git</connection>
  <tag>HEAD</tag>
</scm>

<prerequisites>
	<maven>3.0</maven>
</prerequisites>


<dependencies>
	<dependency>
		<groupId>org.elasticsearch</groupId>
		<artifactId>elasticsearch</artifactId>
		<version>2.3.2</version>
        <exclusions>
            <exclusion>
                <groupId>commons-cli</groupId>
                <artifactId>commons-cli</artifactId>
            </exclusion>
            <exclusion>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
            </exclusion>
        </exclusions>
	</dependency>

	<!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
	<dependency>
		<groupId>com.googlecode.json-simple</groupId>
		<artifactId>json-simple</artifactId>
		<version>1.1</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.github.charithe/kafka-junit -->
	<dependency>
		<groupId>com.github.charithe</groupId>
		<artifactId>kafka-junit</artifactId>
		<version>3.0.3</version>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>org.apache.kafka</groupId>
        <artifactId>kafka_2.12</artifactId>
        <version>0.10.2.0</version>
		<scope>compile</scope>
		<exclusions>
            <exclusion>
                <artifactId>junit</artifactId>
                <groupId>junit</groupId>
            </exclusion>
			<exclusion>
				<artifactId>jmxri</artifactId>
				<groupId>com.sun.jmx</groupId>
			</exclusion>
			<exclusion>
				<artifactId>jms</artifactId>
				<groupId>javax.jms</groupId>
			</exclusion>
			<exclusion>
				<artifactId>jmxtools</artifactId>
				<groupId>com.sun.jdmk</groupId>
			</exclusion>
            <exclusion>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
            </exclusion>
		</exclusions>
	</dependency>

	<!-- jena -->
	<dependency>
		<groupId>org.apache.jena</groupId>
		<artifactId>jena-arq</artifactId>
		<version>${org-apache-jena-version}</version>
		<exclusions>
			<exclusion>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
			</exclusion>
			<exclusion>
				<groupId>org.apache.thrift</groupId>
				<artifactId>libthrift</artifactId>
			</exclusion>
		</exclusions>
	</dependency>

	<dependency>
		<groupId>org.apache.thrift</groupId>
		<artifactId>libthrift</artifactId>
		<version>0.9.3</version>
		<exclusions>
			<exclusion>
				<groupId>org.apache.httpcomponents</groupId>
				<artifactId>httpclient</artifactId>
			</exclusion>
			<exclusion>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
			</exclusion>
			<exclusion>
				<groupId>org.apache.httpcomponents</groupId>
				<artifactId>httpcore</artifactId>
			</exclusion>
		</exclusions>
	</dependency>

	<dependency>
		<groupId>org.apache.jena</groupId>
		<artifactId>jena-core</artifactId>
		<version>${org-apache-jena-version}</version>
		<exclusions>
			<exclusion>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
			</exclusion>
			<exclusion>
				<groupId>commons-cli</groupId>
				<artifactId>commons-cli</artifactId>
			</exclusion>
		</exclusions>
	</dependency>


	<!-- Geophy -->
	<dependency>
		<groupId>com.geophy.coredb.core</groupId>
		<artifactId>core-utils-rdf</artifactId>
		<version>0.11</version>
	</dependency>

	<!-- Guava -->
	<dependency>
		<groupId>com.google.guava</groupId>
		<artifactId>guava</artifactId>
		<version>22.0</version>
	</dependency>


	<!-- logging -->
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-api</artifactId>
		<version>${log4j-version}</version>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-core</artifactId>
		<version>${log4j-version}</version>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-slf4j-impl</artifactId>
		<version>${log4j-version}</version>
	</dependency>

	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>${slf4j-version}</version>
		<type>jar</type>
		<scope>compile</scope>
	</dependency>

	<!-- Unit testing -->
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>4.12</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.assertj</groupId>
		<artifactId>assertj-core</artifactId>
		<version>3.8.0</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.mockito</groupId>
		<artifactId>mockito-all</artifactId>
		<version>1.10.19</version>
		<scope>test</scope>
	</dependency>

</dependencies>
<build>
	<plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
			<version>3.6.1</version>
            <configuration>
                <source>${maven.compiler.source}</source>
                <target>${maven.compiler.target}</target>
            </configuration>
        </plugin>
        <plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>appassembler-maven-plugin</artifactId>
			<version>2.0.0</version>
			<configuration>
				<extraJvmArguments>-Xms512M -Xmx2048M</extraJvmArguments>
				<programs>
					<program>
						<mainClass>com.geophy.coredb.core.kafka.producer.StardogTxProducer</mainClass>
						<name>stardog-producer</name>
					</program>

					<program>
						<mainClass>com.geophy.coredb.core.kafka.topicsdistributor.KafkaTopicsDistributorQuadsMsgs</mainClass>
						<name>KafkaTopicsDistributorQuadsMsgs</name>
					</program>

					<program>
						<mainClass>com.geophy.coredb.core.kafka.mozart.queryperformance.MeasureQueryPerformance</mainClass>
						<name>MeasureQueryPerformance</name>
					</program>

					<program>
						<mainClass>com.geophy.coredb.core.kafka.mozart.queryperformance.MeasureIterSelectQueryResults</mainClass>
						<name>MeasureIterSelectQueryResults</name>
					</program>

					<program>
						<mainClass>com.geophy.coredb.core.kafka.multitopics.MultiTopicsProducer</mainClass>
						<name>MultiTopicsProducer</name>
					</program>

					<program>
						<mainClass>com.geophy.coredb.core.kafka.multitopics.MultiTopicsConsumer</mainClass>
						<name>MultiTopicsConsumer</name>
					</program>

					<program>
						<mainClass>com.geophy.coredb.core.kafka.performance.OneMConsumer</mainClass>
						<name>OneMConsumer</name>
					</program>

				</programs>
			</configuration>
		</plugin>

        <!--plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-enforcer-plugin</artifactId>
            <version>1.4.1</version>
            <executions>
                <execution>
                    <id>enforce</id>
                    <configuration>
                        <rules>
                            <dependencyConvergence />
                        </rules>
                    </configuration>
                    <goals>
                        <goal>enforce</goal>
                    </goals>
                </execution>
            </executions>
        </plugin-->

		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-release-plugin</artifactId>
			<version>2.5.3</version>
			<configuration>
				<goals>deploy</goals>
				<autoVersionSubmodules>true</autoVersionSubmodules>
				<useReleaseProfile>true</useReleaseProfile>
				<releaseProfiles>release</releaseProfiles>
				<tagNameFormat>v@{project.version}</tagNameFormat>
			</configuration>
		</plugin>


	</plugins>
</build>


<profiles>
	<profile>
		<id>release</id>
		<build>
			<plugins>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-source-plugin</artifactId>
					<version>3.0.1</version>
					<executions>
						<execution>
							<id>attach-sources</id>
							<phase>install</phase>
							<goals>
								<goal>jar</goal>
							</goals>
						</execution>
					</executions>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>2.10.4</version>
					<configuration>
						<defaultVersion>${project.version}</defaultVersion>
					</configuration>
					<executions>
						<execution>
							<id>attach-javadocs</id>
							<goals>
								<goal>jar</goal>
							</goals>
						</execution>
					</executions>
				</plugin>


			</plugins>
		</build>
	</profile>
	<profile>
		<id>assembly</id>
		<build>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>3.0.0</version>
					<configuration>
						<archive>
							<manifest>
								<mainClass>com.geophy.coredb.core.kafka.producer.StardogTxProducer</mainClass>
							</manifest>
						</archive>
						<descriptorRefs>
							<descriptorRef>jar-with-dependencies</descriptorRef>
						</descriptorRefs>
					</configuration>
					<executions>
						<execution>
							<id>make-assembly</id> <!-- this is used for inheritance merges -->
							<phase>package</phase> <!-- bind to the packaging phase -->
							<goals>
								<goal>single</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>

	<!-- used for calculating code coverage in sonarQube-->
	<profile>
		<id>sonar-coverage</id>
		<activation>
			<activeByDefault>true</activeByDefault>
		</activation>
		<build>
			<pluginManagement>
				<plugins>
					<plugin>
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
						<version>0.7.7.201606060606</version>
					</plugin>
				</plugins>
			</pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.jacoco</groupId>
					<artifactId>jacoco-maven-plugin</artifactId>
					<configuration>
						<append>true</append>
					</configuration>
					<executions>
						<execution>
							<id>agent-for-ut</id>
							<goals>
								<goal>prepare-agent</goal>
							</goals>
						</execution>
						<execution>
							<id>agent-for-it</id>
							<goals>
								<goal>prepare-agent-integration</goal>
							</goals>
						</execution>
						<execution>
							<id>jacoco-site</id>
							<phase>verify</phase>
							<goals>
								<goal>report</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>

	<profile>
		<id>enforcer</id>
		<build>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-enforcer-plugin</artifactId>
					<version>1.4.1</version>
					<executions>
						<execution>
							<id>enforce</id>
							<configuration>
								<rules>
									<dependencyConvergence />
									<requireReleaseDeps>
										<message>No Snapshots Allowed!</message>
									</requireReleaseDeps>
								</rules>
							</configuration>
							<goals>
								<goal>enforce</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>


</profiles>


<repositories>
	<repository>
		<id>geophy-release</id>
		<name>Geophy Release Repository</name>
		<url>https://maven.geophy.com/repository/maven-releases/</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
	</repository>
</repositories>

<distributionManagement>
	<repository>
		<id>geophy-release</id>
		<name>Geophy Release Repository</name>
		<url>https://maven.geophy.com/repository/maven-releases/</url>
	</repository>
</distributionManagement>

from kafka-junit.

charithe avatar charithe commented on July 20, 2024

It sounds like one of your dependencies has a transitive dependency on a version of Curator that is conflicting with the version needed by kafka-junit. My advice is to look at mvn dependency:tree and add an exclusion rule to remove the older Curator version.

from kafka-junit.

nilsmagnus avatar nilsmagnus commented on July 20, 2024

Probably the same solution as this issue: #22 (wrong zookeeper version on test-classpath)

from kafka-junit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.