Java 缺少清单属性

Java Manifest attribute missing

我用 maven 编译了标准的 vaadin "selfmade component template"。

mvn clean install

当我尝试将目标中的 .zip 文件夹上传到 vaadin 目录时出现错误:"Upload failed: Missing attribute Implementation-Vendor in the manifest file of test-0.1.jar."

我的 java 清单如下所示:

Manifest-Version: 1.0
Vaadin-Package-Version: 1
Vaadin-Addon: test-0.1.jar
Vaadin-License-Title: Apache License 2.0
Implementation-Vendor: ${project.organization.name}
Implementation-Title: MyComponent Add-on
Implementation-Version: 0.1

${...} 是什么意思?它是路径变量吗?如果是,如何在使用 maven 编译期间设置它?

这意味着您要么必须在 pom.properties 文件中为此设置一个值,要么只需在 pom.xml 中将 ${project.organization.name} 替换为您想要的供应商。例如,它可以是 com.cryp71x.test.

只要有值,符合格式即可。

希望对您有所帮助!