appassembler-maven-plugin插件

 

 

项目中使用了maven的jar包生成sh。bat功能。主要是用到appassembler-maven-plugin插件

 

 

 <build>
  	<plugins>
  		<plugin> 
                 <groupId>org.codehaus.mojo</groupId> 
                 <artifactId>appassembler-maven-plugin</artifactId> 
                 <version>1.1.1</version>
                 <executions>
					<execution>
						<id>make-assembly</id>
						<phase>package</phase>
						<goals>
							<goal>assemble</goal>
						</goals>
					</execution>
				</executions>
                 <configuration> 
                 	<configurationDirectory>conf</configurationDirectory>
                	<configurationSourceDirectory>src/main/config</configurationSourceDirectory>
                	<copyConfigurationDirectory>true</copyConfigurationDirectory>
              		<includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
              		<repositoryLayout>flat</repositoryLayout>  
                 	<repositoryName>lib</repositoryName>
	                <binFileExtensions>
	                	<unix>.sh</unix>
	                </binFileExtensions>
                 	<assembleDirectory>C:\xxx-RELEASE</assembleDirectory>
                    <programs> 
                      <program> 
                       <mainClass>xxx.xxx.Main</mainClass> 
                       <name>start</name> 
                      </program> 
                    </programs> 
                  </configuration> 
   		</plugin>   
  	</plugins>
  </build>

你可能感兴趣的:(plugin)