Maven 打一个Jar包

 

<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>  
  <groupId>com.gisTest</groupId>  
  <artifactId>gisTest-jar</artifactId>  
  <version>1.0</version>  
  <packaging>jar</packaging>
  <name>gisTest</name>  
  <build>  
    <finalName>gisTest</finalName>
	<sourceDirectory>org.comm/src</sourceDirectory>	
    <plugins>  
        <plugin>  
            <groupId>org.apache.maven.plugins</groupId>  
            <artifactId>maven-jar-plugin</artifactId>    
			<version>2.3</version>	
        </plugin>  
    </plugins>  
</build> 
</project>   

 mvn package

你可能感兴趣的:(maven)