Updated to latest Protocol Version
This commit is contained in:
@@ -96,6 +96,18 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.13.0</version>
|
||||||
|
<configuration>
|
||||||
|
<compilerArgs>
|
||||||
|
<arg>--add-exports</arg>
|
||||||
|
<arg>java.base/sun.security.x509=ALL-UNNAMED</arg>
|
||||||
|
<arg>--add-exports</arg>
|
||||||
|
<arg>java.base/sun.security.util=ALL-UNNAMED</arg>
|
||||||
|
</compilerArgs>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
|
|||||||
17
pom.xml
17
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.openautonomousconnection</groupId>
|
<groupId>org.openautonomousconnection</groupId>
|
||||||
<artifactId>INSServer</artifactId>
|
<artifactId>INSServer</artifactId>
|
||||||
<version>1.0.0-BETA.1.2</version>
|
<version>1.0.0-BETA.1.3</version>
|
||||||
<organization>
|
<organization>
|
||||||
<name>Open Autonomous Connection</name>
|
<name>Open Autonomous Connection</name>
|
||||||
<url>https://open-autonomous-connection.org/</url>
|
<url>https://open-autonomous-connection.org/</url>
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.openautonomousconnection</groupId>
|
<groupId>org.openautonomousconnection</groupId>
|
||||||
<artifactId>Protocol</artifactId>
|
<artifactId>Protocol</artifactId>
|
||||||
<version>1.0.0-BETA.6.1</version>
|
<version>1.0.0-BETA.7.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
@@ -136,6 +136,19 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.13.0</version>
|
||||||
|
<configuration>
|
||||||
|
<compilerArgs>
|
||||||
|
<arg>--add-exports</arg>
|
||||||
|
<arg>java.base/sun.security.x509=ALL-UNNAMED</arg>
|
||||||
|
<arg>--add-exports</arg>
|
||||||
|
<arg>java.base/sun.security.util=ALL-UNNAMED</arg>
|
||||||
|
</compilerArgs>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ public final class DatabaseINSServer extends ProtocolINSServer {
|
|||||||
* @throws IOException If the base server initialization fails.
|
* @throws IOException If the base server initialization fails.
|
||||||
* @throws CertificateException If required certificate files are missing or invalid.
|
* @throws CertificateException If required certificate files are missing or invalid.
|
||||||
*/
|
*/
|
||||||
public DatabaseINSServer(String insInfoSite, String insFrontendSite, int tcpPort, int udpPort, String jdbcUrl, String jdbcUser, String jdbcPassword) throws Exception {
|
public DatabaseINSServer(String insInfoSite, String insFrontendSite, String jdbcUrl, String jdbcUser, String jdbcPassword) throws Exception {
|
||||||
super(insInfoSite, insFrontendSite, tcpPort, udpPort);
|
super(insInfoSite, insFrontendSite);
|
||||||
|
|
||||||
this.jdbcUrl = jdbcUrl;
|
this.jdbcUrl = jdbcUrl;
|
||||||
this.jdbcUser = jdbcUser;
|
this.jdbcUser = jdbcUser;
|
||||||
|
|||||||
@@ -31,7 +31,11 @@ public class Main {
|
|||||||
values = new ProtocolValues();
|
values = new ProtocolValues();
|
||||||
values.packetHandler = new PacketHandler();
|
values.packetHandler = new PacketHandler();
|
||||||
values.eventManager = new EventManager();
|
values.eventManager = new EventManager();
|
||||||
values.eventManager.registerListener(Listener.class);
|
values.eventManager.registerListener(new Listener());
|
||||||
|
|
||||||
|
if (!new File("config.properties").exists()) {
|
||||||
|
new File("config.properties").createNewFile();
|
||||||
|
}
|
||||||
|
|
||||||
ConfigurationManager config = new ConfigurationManager(new File("config.properties"));
|
ConfigurationManager config = new ConfigurationManager(new File("config.properties"));
|
||||||
config.loadProperties();
|
config.loadProperties();
|
||||||
@@ -84,9 +88,9 @@ public class Main {
|
|||||||
String info = config.getString("ins.info");
|
String info = config.getString("ins.info");
|
||||||
String frontend = config.getString("ins.frontend");
|
String frontend = config.getString("ins.frontend");
|
||||||
|
|
||||||
DatabaseINSServer server = new DatabaseINSServer(info, frontend, tcpPort, udpPort, url, user, password);
|
DatabaseINSServer server = new DatabaseINSServer(info, frontend, url, user, password);
|
||||||
protocolBridge = new ProtocolBridge(server, values, ProtocolVersion.PV_1_0_0_BETA, new File("logs"));
|
protocolBridge = new ProtocolBridge(server, values, ProtocolVersion.PV_1_0_0_BETA, new File("logs"));
|
||||||
server.getNetwork().start();
|
server.start(tcpPort);
|
||||||
|
|
||||||
commandManager = new CommandManager(values.eventManager);
|
commandManager = new CommandManager(values.eventManager);
|
||||||
commandManager.registerCommand(StopCommand.class);
|
commandManager.registerCommand(StopCommand.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user