<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>info.istlab.ServerTester</groupId> <artifactId>ServerTester</artifactId> <packaging>jar</packaging> <version>1.0</version> <name>ServerTester</name> <url>http://maven.apache.org</url> <properties> <jdk.version>11</jdk.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.targetEncoding>UTF-8</project.build.targetEncoding> <!-- <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> --> </properties> <dependencies> <dependency> <groupId>com.fifesoft</groupId> <artifactId>autocomplete</artifactId> <version>3.2.0</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.java-websocket</groupId> <artifactId>Java-WebSocket</artifactId> <version>1.5.7</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-nop</artifactId> <version>2.0.6</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <release>11</release> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <goals> <goal>exec</goal> </goals> </execution> </executions> <configuration> <executable>java</executable> <arguments> <argument>-cp</argument> <classpath/> <argument>info.istlab.ServerTester.ServerTesterApp</argument> </arguments> </configuration> </plugin> <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.0.0</version> <configuration> <mainClass>info.istlab.ServerTester.App</mainClass> </configuration> </plugin> --> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <!-- 成果物の名前にassemblyがidを振ってしまうのを無効にする --> <!-- <appendAssemblyId>false</appendAssemblyId> --> <!-- <descriptors> include/excludeなどの設定は外部ファイルに記述する <descriptor>assembly.xml</descriptor> </descriptors> --> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <finalName>${project.artifactId}-${project.version}-JARfile</finalName> <appendAssemblyId>false</appendAssemblyId> <archive> <manifest> <mainClass>info.istlab.ServerTester.ServerTesterApp</mainClass> </manifest> <manifestEntries> <Permissions>all-permissions</Permissions> <Class-Path>.</Class-Path> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> </project>