Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6.  
  7. <!-- Information !-->
  8. <groupId>com.crashitor</groupId>
  9. <artifactId>Crashitor</artifactId>
  10. <packaging>jar</packaging>
  11. <version>1.0</version>
  12.  
  13. <!-- Compiler settings !-->
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <maven.compiler.source>12</maven.compiler.source> <!-- JDK 12 !-->
  17. <maven.compiler.target>12</maven.compiler.target> <!-- JDK 12 !-->
  18. </properties>
  19.  
  20. <!-- External Jars !-->
  21. <dependencies>
  22. <!-- JTattoo.jar !-->
  23. <dependency>
  24. <groupId>com.jtattoo</groupId>
  25. <artifactId>JTattoo</artifactId>
  26. <version>1.6.1</version>
  27. <scope>system</scope>
  28. <systemPath>${basedir}/src/main/resources/JTattoo-1.6.11.jar</systemPath>
  29. </dependency>
  30.  
  31. <!-- javax.json !-->
  32. <dependency>
  33. <groupId>org.glassfish</groupId>
  34. <artifactId>javax.json</artifactId>
  35. <version>1.1.4</version>
  36. <scope>system</scope>
  37. <systemPath>${basedir}/src/main/resources/javax.json-1.1.4.jar</systemPath>
  38. </dependency>
  39. </dependencies>
  40.  
  41. <!-- Build settings !-->
  42. <build>
  43. <plugins>
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-jar-plugin</artifactId>
  47. <version>2.4</version>
  48. <configuration>
  49. <archive>
  50. <manifest>
  51. <mainClass>com.crashitor.Core</mainClass>
  52. </manifest>
  53. </archive>
  54. </configuration>
  55. </plugin>
  56.  
  57. <!-- Compiler !-->
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-compiler-plugin</artifactId>
  61. <version>3.6.2</version>
  62. <configuration>
  63. <release>12</release>
  64. </configuration>
  65. </plugin>
  66. </plugins>
  67. </build>
  68. </project>
  69.  
  70. mvn clean package
  71. java -jar target/Crashitor-1.0.jar
  72.  
  73. output: Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/json/Json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement