简体   繁体   English

如何在 AKS 中部署 ff4j 服务器?

[英]How to deploy ff4j server in AKS?

I have created ff4j server with name - "ff4j-feature-toggle-server" as a maven java project.我创建了名称为“ff4j-feature-toggle-server”的 ff4j 服务器作为 maven java 项目。 Trying to deploy this on AKS.试图在 AKS 上部署它。 I get the below in my logs -我在我的日志中得到以下信息 -

"no main manifest attribute, in ff4j-feature-toggle-server.jar" “在 ff4j-feature-toggle-server.jar 中没有主要清单属性”

I have checked my deployment files and the name is correct and the server runs perfectly in my local machine - but I am unable to deploy on AKS.我检查了我的部署文件并且名称正确,并且服务器在我的本地计算机上完美运行 - 但我无法在 AKS 上进行部署。 Can't find anything online regarding ff4j aks deployment as well.在网上也找不到有关 ff4j aks 部署的任何信息。

Am I missing something??我错过了什么吗?

No error were mentioned to the ff4j team before regarding AKS deployments.在 AKS 部署之前,ff4j 团队没有提到任何错误。 ASK expect an executable JAR i guess.问我猜是一个可执行的 JAR。

You might get this error when Main-Class entry is missing in MANIFEST.MF file.当 MANIFEST.MF 文件中缺少 Main-Class 条目时,您可能会收到此错误。 You can put maven-jar-plugin plugin in pom.xml to fix it.您可以将 maven-jar-plugin 插件放入 pom.xml 来修复它。

<build>
<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.1.0</version>
        <configuration>
            <archive>
                <manifest>
                    <mainClass>org.yourapp.Main</mainClass>
                </manifest>
            </archive>
        </configuration>
    </plugin>
</plugins>

source: https://java2blog.com/no-main-manifest-attribute/来源: https://java2blog.com/no-main-manifest-attribute/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM