You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by AndreaKinn <ki...@hotmail.it> on 2017/09/14 18:02:17 UTC

Re: Cassandra Connector Problem (Possible Guava Conflict?)

Hi,
I have the same problem but trying your solution so substituting this:

<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-shade-plugin</artifactId>
						<version>2.4.1</version>
						<executions>
							<execution>
							   	<phase>package</phase>
								<goals>
									<goal>shade</goal>
								</goals>
								<configuration>
									<artifactSet>
										<excludes combine.self="override"></excludes>
									</artifactSet>
								</configuration>
							</execution>
						</executions>
					</plugin>

with :

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>2.4.1</version>
                <executions>
                    
                    <execution>
                        <id>shade-flink</id>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration combine.self="override">
                            <artifactSet>
                                <includes>
                                   
<include>com.datastax.cassandra:cassandra-driver-core</include>
                                   
<include>com.datastax.cassandra:cassandra-driver-mapping</include>
                                   
<include>com.google.guava:guava</include>
                                </includes>
                            </artifactSet>
                            <relocations>
                                <relocation>
                                    <pattern>com.google</pattern>
                                   
<shadedPattern>org.apache.flink.cassandra.shaded.com.google</shadedPattern>
                                    <excludes>
                                       
<exclude>com.google.protobuf.**</exclude>
                                       
<exclude>com.google.inject.**</exclude>
                                    </excludes>
                                </relocation>
                            </relocations>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Eclipse shows me a non specified error:                         
<configuration combine.self="override">




--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/