Hi, I wonder if there is not some cleaner ways of doing this.
Could you share the exact stack-trace you have? (for license reasons I don't have a windows machine at hand...) With the exact maven goals and maven versions you are running... Previously we choose to not play Dockerized test if a docker environment is not available, and skip these tests with a warning. Maybe working on this would help? Cheers, On 12/7/18 9:01 AM, Garry Hurley wrote: > Bill > > I got past those same errors in cassandra. What I had to do was comment > out the references to 'test' in the pom file of > apache-james-backends-cassandra. I attached it here. Rebuild with this > POM file and you should get past it. The thing is, you don't need to do > that if you build on a Linux box - it is only building on a Windows > machine that sucks. > > <?xml version="1.0" encoding="UTF-8"?> > <!-- > Licensed to the Apache Software Foundation (ASF) under one > or more contributor license agreements. See the NOTICE file > distributed with this work for additional information > regarding copyright ownership. The ASF licenses this file > to you 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. > --> > <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"> > > <modelVersion>4.0.0</modelVersion> > > <parent> > <groupId>org.apache.james</groupId> > <artifactId>james-backends-common</artifactId> > <version>3.3.0-SNAPSHOT</version> > </parent> > > <artifactId>apache-james-backends-cassandra</artifactId> > <name>Apache James Cassandra backend</name> > > <properties> > <cassandra.driver.version>3.5.1</cassandra.driver.version> > </properties> > > <dependencies> > <dependency> > <groupId>${james.groupId}</groupId> > <artifactId>james-core</artifactId> > </dependency> > <dependency> > <groupId>${james.groupId}</groupId> > <artifactId>james-server-lifecycle-api</artifactId> > </dependency> > <dependency> > <groupId>${james.groupId}</groupId> > <artifactId>james-server-task</artifactId> > </dependency> > <dependency> > <groupId>${james.groupId}</groupId> > <artifactId>james-server-util</artifactId> > </dependency> > <!-- <dependency> > <groupId>${james.groupId}</groupId> > <artifactId>james-server-util</artifactId> > <type>test-jar</type> > <scope>test</scope> > </dependency> > <dependency> > <groupId>ch.qos.logback</groupId> > <artifactId>logback-classic</artifactId> > <scope>test</scope> > </dependency> --> > <dependency> > <groupId>com.datastax.cassandra</groupId> > <artifactId>cassandra-driver-core</artifactId> > <version>${cassandra.driver.version}</version> > <classifier>shaded</classifier> > <!-- Because the shaded JAR uses the original POM, you still > need to > exclude this dependency explicitly: --> > <exclusions> > <exclusion> > <groupId>io.netty</groupId> > <artifactId>*</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>com.google.guava</groupId> > <artifactId>guava</artifactId> > </dependency> > <dependency> > <groupId>javax.inject</groupId> > <artifactId>javax.inject</artifactId> > </dependency> > <dependency> > <groupId>net.javacrumbs.future-converter</groupId> > <artifactId>future-converter-java8-guava</artifactId> > <version>0.3.0</version> > <!-- </dependency> > <dependency> > <groupId>nl.jqno.equalsverifier</groupId> > <artifactId>equalsverifier</artifactId> > <scope>test</scope> --> > </dependency> > <dependency> > <groupId>org.apache.commons</groupId> > <artifactId>commons-lang3</artifactId> > </dependency> > <!-- <dependency> > <groupId>org.assertj</groupId> > <artifactId>assertj-core</artifactId> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.hamcrest</groupId> > <artifactId>java-hamcrest</artifactId> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.junit.jupiter</groupId> > <artifactId>junit-jupiter-engine</artifactId> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.junit.platform</groupId> > <artifactId>junit-platform-launcher</artifactId> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.junit.vintage</groupId> > <artifactId>junit-vintage-engine</artifactId> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.mockito</groupId> > <artifactId>mockito-core</artifactId> > <scope>test</scope> > </dependency>--> > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>jcl-over-slf4j</artifactId> > </dependency> > <!-- <dependency> > <groupId>org.testcontainers</groupId> > <artifactId>testcontainers</artifactId> > <scope>test</scope> > </dependency>--> > </dependencies> > > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <reuseForks>true</reuseForks> > </configuration> > </plugin> > </plugins> > </build> > > </project> > > > Again, the build works fine on Linux. I am taking the build issues back > to the developer list to create a record of the issue. > > On Thu, Dec 6, 2018 at 10:17 AM Bill Warner <bill.war...@talentinc.com > <mailto:bill.war...@talentinc.com>> wrote: > > Thank you! I got past my classpath issue; but now I have many cassandra > errors. I'm wondering if there is an existing build and config that is > closer to what I'm looking for, but I will soldier on if there isn't! > > On 12/5/18 6:07 PM, Garry Hurley wrote: > > That is an easy fix. You have to download the MySql Connect driver > and copy the jar file into the <JAMES_HOME>/lib path (or add it to > your classpath manually, but making sure it is in <JAMES_HOME>/lib > makes it more easily portable when you migrate systems and keeps > your files in one place). You can choose to make a symbolic link in > the <JAMES_HOME>/lib folder to point to the jar, but be careful of > permissions. You may still hit the same errors I got after you are > able to connect. Double check the url as > > jdbc://<DB_HOST:PORT>/<DB_NAME>;create=true > > > > > > Sent from my iPhone > > > >> On Dec 5, 2018, at 4:11 PM, Bill Warner > <bill.war...@talentinc.com <mailto:bill.war...@talentinc.com>> wrote: > >> > >> I'm in a similar situation, except I want to keep docker and > docker-compose, but persist with mysql. I changed > james-database.properties, but queries throw a ClassNotFound > exception for com.mysql.jdbc.Driver. > >> > >> Any guidance would be greatly appreciated. > >> > >> Thanks --Bill > >> > >>> On 12/5/18 3:27 PM, Garry Hurley wrote: > >>> Hey, > >>> > >>> Is anyone able to get this application to build or install > without using > >>> Cassandra or Docker? If so, how do you get past the > MailboxAnnotation JPA > >>> failure of trying to create a table with a column named 'KEY' in > a real > >>> database? > >>> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > <mailto:server-user-unsubscr...@james.apache.org> > >> For additional commands, e-mail: > server-user-h...@james.apache.org > <mailto:server-user-h...@james.apache.org> > >> > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > <mailto:server-user-unsubscr...@james.apache.org> > > For additional commands, e-mail: server-user-h...@james.apache.org > <mailto:server-user-h...@james.apache.org> > > > > -- > Bill Warner > Director of Software Engineering, Talent Inc. > Email: bill.war...@talentinc.com <mailto:bill.war...@talentinc.com> > Visit: www.talentinc.com <http://www.talentinc.com> > > Our Brands: TopResume | CVNow > Connect: Twitter | LinkedIn | Facebook > As seen in Business Insider & Inc. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > <mailto:server-user-unsubscr...@james.apache.org> > For additional commands, e-mail: server-user-h...@james.apache.org > <mailto:server-user-h...@james.apache.org> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org