upravy pom pro kompilaci
parent
5c3c6300a3
commit
1b8f0f26ba
|
|
@ -13,7 +13,7 @@
|
|||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
|
|
@ -42,8 +42,9 @@
|
|||
<shadedArtifactAttached>false</shadedArtifactAttached>
|
||||
<shadedClassifierName>null</shadedClassifierName>
|
||||
<transformers>
|
||||
<transformer />
|
||||
<transformer>
|
||||
<mainClass>${exec.mainClass}</mainClass>
|
||||
<mainClass>jnet.server.Server</mainClass>
|
||||
</transformer>
|
||||
</transformers>
|
||||
<filters>
|
||||
|
|
@ -55,6 +56,23 @@
|
|||
<exclude>META-INF/*.RSA</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>jnet:jNetServer</artifact>
|
||||
<excludes>
|
||||
<exclude>db/**</exclude>
|
||||
<exclude>assets/**</exclude>
|
||||
<exclude>**/*.properties</exclude>
|
||||
<exclude>**/*.dtd</exclude>
|
||||
<exclude>**/*.md</exclude>
|
||||
<exclude>**/*.service</exclude>
|
||||
<exclude>**/LICENSE</exclude>
|
||||
<exclude>**/README</exclude>
|
||||
<exclude>**/navod</exclude>
|
||||
<exclude>**/INFO_BIN</exclude>
|
||||
<exclude>**/INFO_SRC</exclude>
|
||||
<exclude>**/CONTRIBUTING.md</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
</filters>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
|||
59
log
59
log
|
|
@ -1,12 +1,47 @@
|
|||
26.08.26 15:15:41 I ---------------------------------------------
|
||||
26.08.26 15:15:41 I jNet Server
|
||||
26.08.26 15:15:41 I Version: 3 (Tue Aug 25 22:22:02 CEST 2026)
|
||||
26.08.26 15:15:41 I ---------------------------------------------
|
||||
26.08.26 15:15:41 I
|
||||
26.08.26 15:15:41 I Loading config ...
|
||||
26.08.26 15:15:41 I successfully
|
||||
26.08.26 15:15:41 D Debug mode on
|
||||
26.08.26 15:15:41 I Ugrade database ...
|
||||
26.08.26 15:15:43 I Number of migrations performed: 1
|
||||
26.08.26 15:15:43 I Connecting to database ...
|
||||
26.08.26 15:15:43 I successfully
|
||||
27.08.26 18:29:21 I ---------------------------------------------
|
||||
27.08.26 18:29:21 I jNet Server
|
||||
27.08.26 18:29:21 I Version: 3 (Thu Aug 27 16:59:16 CEST 2026)
|
||||
27.08.26 18:29:21 I ---------------------------------------------
|
||||
27.08.26 18:29:21 I
|
||||
27.08.26 18:29:21 I Loading config ...
|
||||
27.08.26 18:29:21 I successfully
|
||||
27.08.26 18:29:21 D Debug mode on
|
||||
27.08.26 18:29:21 I Ugrade database ...
|
||||
27.08.26 18:29:22 I Number of migrations performed: 0
|
||||
27.08.26 18:29:22 I Connecting to database ...
|
||||
27.08.26 18:29:22 I successfully
|
||||
27.08.26 18:29:22 I Loading user list ...
|
||||
27.08.26 18:29:22 I load 4 user(s)
|
||||
27.08.26 18:29:22 I Loading node icon ...
|
||||
27.08.26 18:29:22 I load 10 icon(s)
|
||||
27.08.26 18:29:22 I Loading map and object list ...
|
||||
27.08.26 18:29:22 I load 8 maps
|
||||
27.08.26 18:29:22 I Loading events list ...
|
||||
27.08.26 18:29:22 I load 436 events
|
||||
27.08.26 18:29:22 I Loading SNMP profile list ...
|
||||
27.08.26 18:29:22 I load 5 profile(s)
|
||||
27.08.26 18:29:22 I Loading SNMP template list ...
|
||||
27.08.26 18:29:22 I load 4 templates(s)
|
||||
27.08.26 18:29:22 I Loading SNMP template value map list ...
|
||||
27.08.26 18:29:22 I load 1 value map(s)
|
||||
27.08.26 18:29:22 I Spoustim SNMP monitor (dotaz=5000ms, davka=2000ms)
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=3
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=5
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=6
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=7
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=8
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=9
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=10
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=11
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=12
|
||||
27.08.26 18:29:22 I SNMP zarizeni pridano: ID=14
|
||||
27.08.26 18:29:22 I Nacteno 10 monitoru, preskoceno 2
|
||||
27.08.26 18:29:23 I Monitor spusten, interval=5000ms, zarizeni=10
|
||||
27.08.26 18:29:23 I TrafficBatchDispatcher spusten, interval=2000ms
|
||||
27.08.26 18:29:23 I SNMP monitor spusten, zarizeni=10
|
||||
27.08.26 18:29:28 I Ping probe starting...
|
||||
27.08.26 18:29:28 I Loaded 16 targets.
|
||||
27.08.26 18:29:28 I OS is Windows - using PingEngine (subprocess ping)
|
||||
27.08.26 18:29:28 I Targets set.
|
||||
27.08.26 18:29:28 I Starting engine...
|
||||
27.08.26 18:29:28 I Engine started successfully.
|
||||
|
|
|
|||
42
pom.xml
42
pom.xml
|
|
@ -47,14 +47,11 @@
|
|||
<version>5.14.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- Flyway core -->
|
||||
<dependency>
|
||||
<groupId>org.flywaydb</groupId>
|
||||
<artifactId>flyway-core</artifactId>
|
||||
<version>10.15.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Flyway podpora pro MySQL (dialekt) -->
|
||||
<dependency>
|
||||
<groupId>org.flywaydb</groupId>
|
||||
<artifactId>flyway-mysql</artifactId>
|
||||
|
|
@ -63,14 +60,15 @@
|
|||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- Zakážeme standardní kopírování resources do JARu -->
|
||||
<!-- Zakážeme standardní kopírování resources do target/classes -->
|
||||
<resources>
|
||||
<!-- prázdné -->
|
||||
</resources>
|
||||
<!-- Nastavení názvu výsledného JAR -->
|
||||
|
||||
<finalName>jNetServer</finalName>
|
||||
|
||||
<plugins>
|
||||
<!-- Kopírování resources do target/ (vedle JARu) -->
|
||||
<!-- Kopírování resources do target/ (vedle JARu) včetně podsložek -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
|
|
@ -78,7 +76,7 @@
|
|||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<phase>package</phase>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
|
|
@ -95,7 +93,7 @@
|
|||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Shade plugin – vytvoří fat JAR a nastaví Main-Class -->
|
||||
<!-- Shade plugin – vytvoří fat JAR a vyloučí naše resources -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
|
|
@ -107,17 +105,16 @@
|
|||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<!-- Potlačí vytvoření original- JARu -->
|
||||
<shadedArtifactAttached>false</shadedArtifactAttached>
|
||||
<shadedClassifierName>null</shadedClassifierName>
|
||||
|
||||
<transformers>
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<mainClass>${exec.mainClass}</mainClass>
|
||||
<mainClass>jnet.server.Server</mainClass>
|
||||
</transformer>
|
||||
</transformers>
|
||||
<!-- Vyřazení bezpečnostních podpisů (aby se předešlo konfliktům) -->
|
||||
<filters>
|
||||
<!-- Vyřazení bezpečnostních podpisů ze všech artifactů -->
|
||||
<filter>
|
||||
<artifact>*:*</artifact>
|
||||
<excludes>
|
||||
|
|
@ -126,6 +123,27 @@
|
|||
<exclude>META-INF/*.RSA</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<!-- Vyloučení veškerých resources z našeho vlastního artifactu -->
|
||||
<filter>
|
||||
<artifact>jnet:jNetServer</artifact>
|
||||
<excludes>
|
||||
<!-- Celé složky -->
|
||||
<exclude>db/**</exclude>
|
||||
<exclude>assets/**</exclude>
|
||||
<!-- Konkrétní soubory (a všechny s danou příponou) -->
|
||||
<exclude>**/*.properties</exclude>
|
||||
<exclude>**/*.dtd</exclude>
|
||||
<exclude>**/*.md</exclude>
|
||||
<exclude>**/*.service</exclude>
|
||||
<exclude>**/LICENSE</exclude>
|
||||
<exclude>**/README</exclude>
|
||||
<exclude>**/navod</exclude>
|
||||
<exclude>**/INFO_BIN</exclude>
|
||||
<exclude>**/INFO_SRC</exclude>
|
||||
<exclude>**/CONTRIBUTING.md</exclude>
|
||||
<!-- Pokud máte další soubory, přidejte je sem -->
|
||||
</excludes>
|
||||
</filter>
|
||||
</filters>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
package jnet.server;
|
||||
|
||||
import static java.lang.System.exit;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.TimeZone;
|
||||
|
|
@ -93,7 +92,6 @@ public class Server {
|
|||
config.getString("mysql_password")
|
||||
);
|
||||
|
||||
System.exit(0);
|
||||
|
||||
// nacteni uzivatelu
|
||||
LogFile.printInfo("Loading user list ...");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#mysql_server=192.168.122.245
|
||||
#mysql_port=3306
|
||||
mysql_server=10.5.5.171
|
||||
mysql_server=192.168.122.245
|
||||
mysql_port=3306
|
||||
#mysql_server=10.2.4.141
|
||||
#mysql_port=3360
|
||||
mysql_user=jnet
|
||||
mysql_password=Michal2407
|
||||
mysql_database=jnet
|
||||
|
|
|
|||
Loading…
Reference in New Issue