Bug fixes
This commit is contained in:
121
dependency-reduced-pom.xml
Normal file
121
dependency-reduced-pom.xml
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<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/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.openautonomousconnection</groupId>
|
||||||
|
<artifactId>INSServer</artifactId>
|
||||||
|
<version>1.0-BETA</version>
|
||||||
|
<description>The default INS-Server</description>
|
||||||
|
<url>https://open-autonomous-connection.org/</url>
|
||||||
|
<issueManagement>
|
||||||
|
<system>Issue Tracker</system>
|
||||||
|
<url>https://repo.open-autonomous-connection.org/open-autonomous-connection/INSServer/issues</url>
|
||||||
|
</issueManagement>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<name>UnlegitDqrk</name>
|
||||||
|
<url>https://unlegitdqrk.dev/</url>
|
||||||
|
<organization>Open Autonomous Connection</organization>
|
||||||
|
<organizationUrl>https://open-autonomous-connection.org/</organizationUrl>
|
||||||
|
<roles>
|
||||||
|
<role>Owner</role>
|
||||||
|
<role>Head Developer</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<name>Maple</name>
|
||||||
|
<url>https://niumaple.carrd.co/</url>
|
||||||
|
<organization>Open Autonomous Connection</organization>
|
||||||
|
<organizationUrl>https://open-autonomous-connection.org/</organizationUrl>
|
||||||
|
<roles>
|
||||||
|
<role>Owner</role>
|
||||||
|
<role>Head Developer</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Open Autonomous Public License (OAPL)</name>
|
||||||
|
<url>https://open-autonomous-connection.org/license.html</url>
|
||||||
|
</license>
|
||||||
|
<license>
|
||||||
|
<name>GNU General Public License v3.0</name>
|
||||||
|
<url>https://www.gnu.org/licenses/gpl-3.0.html</url>
|
||||||
|
<comments>Default license: Applies to all users and projects unless an explicit alternative license has been granted.</comments>
|
||||||
|
</license>
|
||||||
|
<license>
|
||||||
|
<name>LPGL 3</name>
|
||||||
|
<url>https://www.gnu.org/licenses/lgpl-3.0.html#license-text</url>
|
||||||
|
</license>
|
||||||
|
<license>
|
||||||
|
<name>LPGL 2.1</name>
|
||||||
|
<url>https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.en#SEC1</url>
|
||||||
|
</license>
|
||||||
|
<license>
|
||||||
|
<name>WTPL License</name>
|
||||||
|
<url>https://github.com/ronmamo/reflections/tree/master?tab=WTFPL-1-ov-file</url>
|
||||||
|
</license>
|
||||||
|
<license>
|
||||||
|
<name>Apache License 2.0</name>
|
||||||
|
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
</license>
|
||||||
|
<license>
|
||||||
|
<name>MIT License</name>
|
||||||
|
<url>https://opensource.org/license/mit</url>
|
||||||
|
</license>
|
||||||
|
<license>
|
||||||
|
<name>javassist</name>
|
||||||
|
<url>https://github.com/jboss-javassist/javassist/blob/master/License.html</url>
|
||||||
|
</license>
|
||||||
|
<license>
|
||||||
|
<name>projectlombok</name>
|
||||||
|
<url>https://github.com/projectlombok/lombok?tab=License-1-ov-file</url>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<organization>
|
||||||
|
<name>Open Autonomous Connection</name>
|
||||||
|
<url>https://open-autonomous-connection.org/</url>
|
||||||
|
</organization>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
<version>3.6.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>shade</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<transformers>
|
||||||
|
<transformer>
|
||||||
|
<mainClass>org.openautonomousconnection.insserver.Main</mainClass>
|
||||||
|
</transformer>
|
||||||
|
</transformers>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<snapshots />
|
||||||
|
<id>oac</id>
|
||||||
|
<url>https://repo.open-autonomous-connection.org/api/packages/open-autonomous-connection/maven</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>1.18.38</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.compiler.target>23</maven.compiler.target>
|
||||||
|
<maven.compiler.source>23</maven.compiler.source>
|
||||||
|
</properties>
|
||||||
|
</project>
|
||||||
2
pom.xml
2
pom.xml
@@ -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.5</version>
|
<version>1.0.0-BETA.5.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ public final class DatabaseINSServer extends ProtocolINSServer {
|
|||||||
configurationManager.saveProperties();
|
configurationManager.saveProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
Main.getProtocolBridge().getProtocolSettings().port = configurationManager.getInt("db.port");
|
|
||||||
|
|
||||||
jdbcUrl = configurationManager.getString("db.url");
|
jdbcUrl = configurationManager.getString("db.url");
|
||||||
jdbcUser = configurationManager.getString("db.user");
|
jdbcUser = configurationManager.getString("db.user");
|
||||||
jdbcPassword = configurationManager.getString("db.password");
|
jdbcPassword = configurationManager.getString("db.password");
|
||||||
|
|||||||
@@ -15,14 +15,17 @@ import java.util.Scanner;
|
|||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
private static final CommandPermission PERMISSION_ALL = new CommandPermission("all", 1);
|
private static final CommandPermission PERMISSION_ALL = new CommandPermission("all", 1);
|
||||||
private static final CommandExecutor commandExecutor = new CommandExecutor("DNS", PERMISSION_ALL) {};
|
private static final CommandExecutor commandExecutor = new CommandExecutor("INS", PERMISSION_ALL) {};
|
||||||
private static CommandManager commandManager;
|
private static CommandManager commandManager;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private static ProtocolBridge protocolBridge;
|
private static ProtocolBridge protocolBridge;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
private static ProtocolSettings settings;
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
ProtocolSettings settings = new ProtocolSettings();
|
settings = new ProtocolSettings();
|
||||||
settings.packetHandler = new PacketHandler();
|
settings.packetHandler = new PacketHandler();
|
||||||
settings.eventManager = new EventManager();
|
settings.eventManager = new EventManager();
|
||||||
settings.eventManager.registerListener(Listener.class);
|
settings.eventManager.registerListener(Listener.class);
|
||||||
@@ -34,7 +37,7 @@ public class Main {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
System.out.println(commandExecutor.getName() + "> ");
|
System.out.println(commandExecutor.getName() + "> ");
|
||||||
String line = scanner.nextLine();
|
String line = scanner.next();
|
||||||
commandManager.execute(commandExecutor, line);
|
commandManager.execute(commandExecutor, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user