Skip to content

Commit

Permalink
Complete rewrite - Maven, WebDriverManager, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
allquixotic committed Oct 21, 2018
1 parent d264ed0 commit 46f05e1
Show file tree
Hide file tree
Showing 49 changed files with 445 additions and 630 deletions.
80 changes: 35 additions & 45 deletions .classpath
@@ -1,48 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<!-- <classpathentry kind="lib" path="third_party/apache-mime4j-0.6.jar"/>
<classpathentry kind="lib" path="third_party/bsh-1.3.0.jar"/>
<classpathentry kind="lib" path="third_party/cglib-nodep-2.1_3.jar"/>
<classpathentry kind="lib" path="third_party/commons-codec-1.6.jar"/>
<classpathentry kind="lib" path="third_party/commons-collections-3.2.1.jar"/>
<classpathentry kind="lib" path="third_party/commons-exec-1.1.jar"/>
<classpathentry kind="lib" path="third_party/commons-io-2.2.jar"/>
<classpathentry kind="lib" path="third_party/commons-jxpath-1.3.jar"/>
<classpathentry kind="lib" path="third_party/commons-lang3-3.1.jar"/>
<classpathentry kind="lib" path="third_party/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="third_party/cssparser-0.9.9.jar"/>
<classpathentry kind="lib" path="third_party/guava-14.0.jar"/>
<classpathentry kind="lib" path="third_party/hamcrest-core-1.3.jar"/>
<classpathentry kind="lib" path="third_party/hamcrest-library-1.3.jar"/>
<classpathentry kind="lib" path="third_party/htmlunit-2.12.jar"/>
<classpathentry kind="lib" path="third_party/htmlunit-core-js-2.12.jar"/>
<classpathentry kind="lib" path="third_party/httpclient-4.2.1.jar"/>
<classpathentry kind="lib" path="third_party/httpcore-4.2.1.jar"/>
<classpathentry kind="lib" path="third_party/httpmime-4.2.1.jar"/>
<classpathentry kind="lib" path="third_party/ini4j-0.5.2.jar"/>
<classpathentry kind="lib" path="third_party/jcommander-1.29.jar"/>
<classpathentry kind="lib" path="third_party/jetty-websocket-8.1.8.jar"/>
<classpathentry kind="lib" path="third_party/jna-3.4.0.jar"/>
<classpathentry kind="lib" path="third_party/jna-platform-3.4.0.jar"/>
<classpathentry kind="lib" path="third_party/json-20080701.jar"/>
<classpathentry kind="lib" path="third_party/junit-dep-4.11.jar"/>
<classpathentry kind="lib" path="third_party/nekohtml-1.9.17.jar"/>
<classpathentry kind="lib" path="third_party/netty-3.5.7.Final.jar"/>
<classpathentry kind="lib" path="third_party/operadriver-1.3.jar"/>
<classpathentry kind="lib" path="third_party/phantomjsdriver-1.0.4.jar"/>
<classpathentry kind="lib" path="third_party/protobuf-java-2.4.1.jar"/>
<classpathentry kind="lib" path="third_party/sac-1.3.jar"/>
<classpathentry kind="lib" path="third_party/serializer-2.7.1.jar"/>
<classpathentry kind="lib" path="third_party/testng-6.8.5.jar"/>
<classpathentry kind="lib" path="third_party/xalan-2.7.1.jar"/>
<classpathentry kind="lib" path="third_party/xercesImpl-2.10.0.jar"/>
<classpathentry kind="lib" path="third_party/xml-apis-1.4.01.jar"/>
<classpathentry kind="lib" path="third_party/commons-cli-1.2.jar"/>
<classpathentry kind="lib" path="third_party/selenium-java-2.35.0.jar"/>
-->
<classpathentry kind="lib" path="third_party/selenium-custom.jar"/>

<classpathentry kind="output" path="bin"/>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-10">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
93 changes: 91 additions & 2 deletions .gitignore
@@ -1,4 +1,93 @@
bin
#Runner
*.sh

# Compiled class file
*.class
~*

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
*.exe
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar

.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# CDT-specific (C/C++ Development Tooling)
.cproject

# CDT- autotools
.autotools

# Java annotation processor (APT)
.factorypath

# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

# Annotation Processing
.apt_generated/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
8 changes: 7 additions & 1 deletion .project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>so-chatbot-driver</name>
<name>su-chatbot</name>
<comment></comment>
<projects>
</projects>
Expand All @@ -10,8 +10,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
68 changes: 0 additions & 68 deletions build.xml

This file was deleted.

93 changes: 93 additions & 0 deletions pom.xml
@@ -0,0 +1,93 @@
<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>
<groupId>com.superuser</groupId>
<artifactId>su-chatbot</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>SuperUser ChatBot Driver</name>

<properties>
<maven.compiler.source>10</maven.compiler.source>
<maven.compiler.target>10</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>3.0.0</version>
<exclusions>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.14.0</version>
</dependency>
<dependency>
<groupId>com.codeborne</groupId>
<artifactId>selenide</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.0-jre</version>
</dependency>
<dependency>
<groupId>com.github.pcj</groupId>
<artifactId>google-options</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.superuser.cavil.Driver</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.18.2.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>delombok</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>com.superuser.cavil.Driver</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 46f05e1

Please sign in to comment.