alibaba / alibaba/TProfiler

Maven Assemebly的Plugin有问题

Open
#50 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

主分支克隆后。执行命令`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"

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the build from the reported command, `mvn assembly:assembly`, and inspect `META-INF/MANIFEST.MF` inside the resulting `tprofiler.jar`. Determine why the assembled jar lacks `Premain-Class`; done means the manifest contains that attribute and the reported premain error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.