Add intellij_forms dependency & dependency plugins

This ensures that the Java swing application can be ran from the jar
without missing dependencies and UI code
main
Hammy 3 years ago
parent f7a38da31e
commit 201aca6d67

@ -6,13 +6,13 @@
<groupId>me.goudham</groupId> <groupId>me.goudham</groupId>
<artifactId>MyClipboard</artifactId> <artifactId>MyClipboard</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
<name>MyClipboard</name> <name>MyClipboard</name>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>15</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>
@ -30,54 +30,56 @@
<dependency> <dependency>
<groupId>org.jetbrains</groupId> <groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId> <artifactId>annotations</artifactId>
<version>RELEASE</version> <version>21.0.1</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>com.intellij</groupId>
<artifactId>forms_rt</artifactId>
<version>7.0.3</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <plugins>
<plugins> <plugin>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> <groupId>org.apache.maven.plugins</groupId>
<plugin> <artifactId>maven-surefire-plugin</artifactId>
<artifactId>maven-clean-plugin</artifactId> <version>3.0.0-M5</version>
<version>3.1.0</version> </plugin>
</plugin> <plugin>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> <groupId>org.apache.maven.plugins</groupId>
<plugin> <artifactId>maven-jar-plugin</artifactId>
<artifactId>maven-resources-plugin</artifactId> <version>2.4</version>
<version>3.0.2</version> <configuration>
</plugin> <archive>
<plugin> <manifest>
<artifactId>maven-compiler-plugin</artifactId> <addClasspath>true</addClasspath>
<version>3.8.0</version> <mainClass>me.goudham.Main</mainClass>
</plugin> <classpathPrefix>dependency-jars/</classpathPrefix>
<plugin> </manifest>
<artifactId>maven-surefire-plugin</artifactId> </archive>
<version>2.22.1</version> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-jar-plugin</artifactId> <groupId>org.apache.maven.plugins</groupId>
<version>3.0.2</version> <artifactId>maven-dependency-plugin</artifactId>
</plugin> <version>2.5.1</version>
<plugin> <executions>
<artifactId>maven-install-plugin</artifactId> <execution>
<version>2.5.2</version> <id>copy-dependencies</id>
</plugin> <phase>package</phase>
<plugin> <goals>
<artifactId>maven-deploy-plugin</artifactId> <goal>copy-dependencies</goal>
<version>2.8.2</version> </goals>
</plugin> <configuration>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> <outputDirectory>
<plugin> ${project.build.directory}/dependency-jars/
<artifactId>maven-site-plugin</artifactId> </outputDirectory>
<version>3.7.1</version> </configuration>
</plugin> </execution>
<plugin> </executions>
<artifactId>maven-project-info-reports-plugin</artifactId> </plugin>
<version>3.0.0</version> </plugins>
</plugin> </build>
</plugins>
</pluginManagement>
</build>
</project> </project>

Loading…
Cancel
Save