Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Maven Assemebly的Plugin有问题 #50

Open
friddle opened this issue Mar 30, 2017 · 2 comments
Open

Maven Assemebly的Plugin有问题 #50

friddle opened this issue Mar 30, 2017 · 2 comments

Comments

@friddle
Copy link

friddle commented Mar 30, 2017

主分支克隆后。执行命令mvn assembly:assembly
配置好配置后发现:

Failed to find Premain-Class manifest attribute in /home/friddle/bin/tprofiler.jar
解压Jar果断发现META-INF/MANIFEST.MF

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Built-By: friddle
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_111

并没有Premain-Class属性。

系统:Linux friddle 4.4.0-3-deepin-amd64 #1 SMP Deepin 4.4.30-2 (2016-12-01) x86_64 GNU/Linux
java版本:
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
maven版本:
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-3-deepin-amd64", arch: "amd64", family: "unix"

@friddle
Copy link
Author

friddle commented Mar 30, 2017

下载1.0版本的代码后可以编译通过。有Premain属性。

@mccxj
Copy link

mccxj commented Dec 17, 2017

这个在1.0之后被修改了,需要看pkg/TProfiler/lib下面的jar包了,在target下面的是没有Premain-Class的。
这个改动很容易误导人。

整个打包过程其实都可以在maven中处理。参考https://github.com/mccxj/TProfiler/blob/master/pom.xml

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants