Skip to content

Commit

Permalink
Update pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyouchao committed Apr 26, 2015
1 parent 062939c commit ac52eb2
Showing 1 changed file with 38 additions and 40 deletions.
78 changes: 38 additions & 40 deletions pom.xml
Expand Up @@ -7,8 +7,9 @@
<version>1.0.0</version>
<packaging>jar</packaging>

<name>crawler</name>
<url>http://maven.apache.org</url>
<name>fucksocks</name>
<description>A Java library for SOCKS5 client and SOCKS5 server</description>
<url>http://fengyouchao.github.io/fucksocks/</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -18,7 +19,6 @@

<dependencies>

<!-- log -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
Expand All @@ -43,9 +43,9 @@
<build>

<finalName>fucksocks</finalName>

<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -54,46 +54,44 @@
<target>1.7</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>fucksocks.server.TestProxyServer</mainClass>
</manifest>
</archive>
</configuration>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- 把依赖的jar包拷到lib目录下 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>


<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>install</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>

</build>

<developers>
<developer>
<name>fengyouchao</name>
<timezone>UTC+8</timezone>
</developer>
</developers>


</project>

0 comments on commit ac52eb2

Please sign in to comment.