Tom*_*Tom 10 java eclipse anonymity
假设我在Eclipse中编写Java代码,然后将其保存为可运行的.jar文件.代码是100%自编的,因此不会从其他来源导入.
.jar文件(文件头,...)中的任何内容是否包含有关我的PC或Eclipse版本的私有数据?
And*_*sov 13
是的,可能有一个自动生成清单文件(jar:META-INF/MANIFEST.MF)
这是插件的默认输出
Manifest-Version: 1.0
Built-By: borisov andrey
Build-Jdk: 1.7.0_05
Created-By: Apache Maven
Archiver-Version: Plexus Archiver
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,至少在清单文件中添加了用户名
更新:如果您使用的是maven,则可能需要配置maven jar插件
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin-version}</version>
<inherited>true</inherited>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifestEntries>
<Created-By>${java.version} (${java.vendor})</Created-By>
<Built-By>ME</Built-By>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-URL>SOME URL if you want</Implementation-URL>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor>your company</Implementation-Vendor>
<Implementation-Vendor-Id>your vendore id</Implementation-Vendor-Id>
</manifestEntries>
</archive>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
247 次 |
| 最近记录: |