Jelajahi Sumber

spring-boot jar builder

Axel Nordh 3 tahun lalu
induk
melakukan
8a4c9f8468
2 mengubah file dengan 34 tambahan dan 15 penghapusan
  1. 32 11
      Odds/pom.xml
  2. 2 4
      OddsJavaFx/.classpath

+ 32 - 11
Odds/pom.xml

@@ -3,6 +3,8 @@
   <groupId>Odds</groupId>
   <artifactId>Odds</artifactId>
   <version>0.0.1-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
   <build>
     <sourceDirectory>src</sourceDirectory>
     <plugins>
@@ -14,25 +16,44 @@
           <target>18</target>
         </configuration>
       </plugin>
+
+      <plugin>
+          <groupId>org.springframework.boot</groupId>
+          <artifactId>spring-boot-maven-plugin</artifactId>
+          <executions>
+              <execution>
+                  <goals>
+                      <goal>repackage</goal>
+                  </goals>
+                  <configuration>
+                      <classifier>spring-boot</classifier>
+                      <mainClass>
+                        Main
+                      </mainClass>
+                  </configuration>
+              </execution>
+          </executions>
+      </plugin>
+
     </plugins>
   </build>
 
-   <dependencies>
-   <dependency>
-	 <groupId>com.google.guava</groupId>
-	 <artifactId>guava</artifactId>
-	 <version>30.0-jre</version>
+  <dependencies>
+    <dependency>
+	  <groupId>com.google.guava</groupId>
+	  <artifactId>guava</artifactId>
+	  <version>30.0-jre</version>
 	</dependency>
 	<dependency>
  	   <groupId>net.sourceforge.htmlunit</groupId>
-	    <artifactId>htmlunit</artifactId>
-	    <version>2.62.0</version>
+	   <artifactId>htmlunit</artifactId>
+	   <version>2.62.0</version>
 	</dependency>
 	<dependency>
-	    <groupId>com.github.jbytecode</groupId>
-	    <artifactId>RCaller</artifactId>
-	    <version>3.0</version>
+	   <groupId>com.github.jbytecode</groupId>
+	   <artifactId>RCaller</artifactId>
+	   <version>3.0</version>
 	</dependency>
 
-   </dependencies>
+  </dependencies>
 </project>

+ 2 - 4
OddsJavaFx/.classpath

@@ -13,7 +13,7 @@
 	</classpathentry>
 	<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JavaFx"/>
-	<classpathentry kind="src" path="target/generated-sources/annotations">
+	<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
 		<attributes>
 			<attribute name="optional" value="true"/>
 			<attribute name="maven.pomderived" value="true"/>
@@ -21,12 +21,10 @@
 			<attribute name="m2e-apt" value="true"/>
 		</attributes>
 	</classpathentry>
-	<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
+	<classpathentry kind="src" output="target/classes" path="src">
 		<attributes>
 			<attribute name="optional" value="true"/>
 			<attribute name="maven.pomderived" value="true"/>
-			<attribute name="ignore_optional_problems" value="true"/>
-			<attribute name="m2e-apt" value="true"/>
 		</attributes>
 	</classpathentry>
 	<classpathentry kind="output" path="target/classes"/>