亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

搜索
eclipse - 如何尋找一個java文件的所有import的java,把這些所有java都打到一個jar包,自動化?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-04-17 16:46:11
[Java討論組]
PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證0級講師

全部回復(fù)(8)
大家講道理

最終是自己寫了個小程序搞定的

ringa_lee

你都把maven當(dāng)做標(biāo)簽了 為啥不用maven呢?

黃舟

可以使用Maven的maven-assembly-plugin插件或maven-shade-plugin插件,打成的jar包會帶有所有依賴。可以參考我的一篇博客:http://xxgblog.com/2015/08/07/maven-create-executable-jar/

巴扎黑

使用ant構(gòu)建工具,可以配置自動化編譯的。

天蓬老師

可以直接使用maven 我之前些工具包就是用的maven

天蓬老師

給你一個參考

<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <build>
        <finalName>greys-core</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                    <encoding>UTF-8</encoding>
                    <showDeprecation>true</showDeprecation>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>attached</goal>
                        </goals>
                        <phase>package</phase>
                        <configuration>
                            <descriptorRefs>
                                <descriptorRef>jar-with-dependencies</descriptorRef>
                            </descriptorRefs>
                            <archive>
                                <manifest>
                                    <mainClass>com.github.ompc.greys.core.GreysLauncher</mainClass>
                                </manifest>
                            </archive>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>


</project>         
高洛峰

maven挺好用的啊

PHPz

發(fā)現(xiàn)個博文不錯,分享下:https://segmentfault.com/a/1190000005155826

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板
關(guān)于我們 免責(zé)申明 意見反饋 講師合作 廣告合作 最新更新
php中文網(wǎng):公益在線php培訓(xùn),幫助PHP學(xué)習(xí)者快速成長!
關(guān)注服務(wù)號 技術(shù)交流群
PHP中文網(wǎng)訂閱號
每天精選資源文章推送
PHP中文網(wǎng)APP
隨時隨地碎片化學(xué)習(xí)
PHP中文網(wǎng)抖音號
發(fā)現(xiàn)有趣的

Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號