Wrote my first client server application. I collected it through the IDE. Third-party libraries are not used. Everything works without problems. I decided to redo the application and simplify it using libraries. Started studying Maven. Wrote a pom.xml file. The jar file is generated, but the program does not work. I sin on the correctness of writing pom.xml. The question that has become at the moment. I can not figure out with the architects. I understand these patterns. But how to choose the right, where are their descriptions?
Link to the project: https://github.com/OnlyTarg/WIW-Server
here is my pom.xml:
<?xml version="1.0" encoding="UTF-8"?> <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> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <groupId>ONLYTARG</groupId> <artifactId>WIWServer</artifactId> <packaging>jar</packaging> <version>0.0.1</version> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.2</version> </dependency> </dependencies> </project>
pom.xmlmanually and that's it. - Alex Chermeninpom.xmland project structure - Nikolay