`
ldsjdy
  • 浏览: 151578 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Maven-Jar-Plugin

阅读更多
Maven build 可执行jar
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                                  <addMavenDescriptor>false</addMavenDescriptor>
                        <manifest>
                                  <mainClass>com.jtkj.Test.Main</mainClass>
                        </manifest>
                    </archive>

              </configuration>

</plugin>
分享到:
评论
1 楼 ldsjdy 2011-07-25  
<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <configuration>
        <appendAssemblyId>false</appendAssemblyId>
        <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
        </descriptorRefs>
        <archive>
            <manifest>
                <mainClass>cn.vsp.TestMain</mainClass>
            </manifest>
        </archive>
    </configuration>
    <executions>
        <execution>
            <id>make-assembly</id>
            <phase>package</phase>
            <goals>
                <goal>assembly</goal>
            </goals>
        </execution>
    </executions>
</plugin>

相关推荐

Global site tag (gtag.js) - Google Analytics