|
|
|
@ -25,7 +25,7 @@ |
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
|
|
|
<httpcompontents.version>4.5.2</httpcompontents.version> |
|
|
|
<telegrambots.version>v2.3.3.1</telegrambots.version> |
|
|
|
<telegrambots.version>v2.3.3.2-alpha-2</telegrambots.version> |
|
|
|
<json.version>20160212</json.version> |
|
|
|
<mysql.version>5.1.39</mysql.version> |
|
|
|
</properties> |
|
|
|
@ -74,44 +74,87 @@ |
|
|
|
<finalName>${project.artifactId}-${project.version}</finalName> |
|
|
|
<testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory> |
|
|
|
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory> |
|
|
|
<plugins> |
|
|
|
<plugin> |
|
|
|
<artifactId>maven-clean-plugin</artifactId> |
|
|
|
<version>3.0.0</version> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>clean-project</id> |
|
|
|
<phase>clean</phase> |
|
|
|
<goals> |
|
|
|
<goal>clean</goal> |
|
|
|
</goals> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<artifactId>maven-assembly-plugin</artifactId> |
|
|
|
<version>2.6</version> |
|
|
|
<configuration> |
|
|
|
<archive> |
|
|
|
<manifest> |
|
|
|
<mainClass>org.telegram.Main</mainClass> |
|
|
|
</manifest> |
|
|
|
</archive> |
|
|
|
<descriptorRefs> |
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef> |
|
|
|
</descriptorRefs> |
|
|
|
</configuration> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>make-assembly</id> <!-- this is used for inheritance merges --> |
|
|
|
<phase>package</phase> <!-- bind to the packaging phase --> |
|
|
|
<goals> |
|
|
|
<goal>single</goal> |
|
|
|
</goals> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-source-plugin</artifactId> |
|
|
|
<version>3.0.0</version> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>attach-sources</id> |
|
|
|
<phase>verify</phase> |
|
|
|
<goals> |
|
|
|
<goal>jar-no-fork</goal> |
|
|
|
</goals> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-jar-plugin</artifactId> |
|
|
|
<version>2.4</version> |
|
|
|
<configuration> |
|
|
|
<archive> |
|
|
|
<manifest> |
|
|
|
<addClasspath>true</addClasspath> |
|
|
|
<mainClass>org.telegram.Main</mainClass> |
|
|
|
</manifest> |
|
|
|
</archive> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-javadoc-plugin</artifactId> |
|
|
|
<version>2.10.3</version> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>attach-javadocs</id> |
|
|
|
<phase>site</phase> |
|
|
|
<goals> |
|
|
|
<goal>javadoc-no-fork</goal> |
|
|
|
</goals> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
</plugins> |
|
|
|
<pluginManagement> |
|
|
|
<plugins> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-jar-plugin</artifactId> |
|
|
|
<version>2.4</version> |
|
|
|
<configuration> |
|
|
|
<archive> |
|
|
|
<manifest> |
|
|
|
<addClasspath>true</addClasspath> |
|
|
|
<classpathPrefix>lib/</classpathPrefix> |
|
|
|
<mainClass>org.telegram.Main</mainClass> |
|
|
|
</manifest> |
|
|
|
</archive> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<artifactId>maven-assembly-plugin</artifactId> |
|
|
|
<configuration> |
|
|
|
<archive> |
|
|
|
<manifest> |
|
|
|
<mainClass>org.telegram.Main</mainClass> |
|
|
|
</manifest> |
|
|
|
</archive> |
|
|
|
<descriptorRefs> |
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef> |
|
|
|
</descriptorRefs> |
|
|
|
</configuration> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>make-assembly</id> <!-- this is used for inheritance merges --> |
|
|
|
<phase>package</phase> <!-- bind to the packaging phase --> |
|
|
|
<goals> |
|
|
|
<goal>single</goal> |
|
|
|
</goals> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-dependency-plugin</artifactId> |
|
|
|
@ -132,9 +175,6 @@ |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<artifactId>maven-clean-plugin</artifactId> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-compiler-plugin</artifactId> |
|
|
|
|