maven - Failed to execute cargo:start

非 Y 不嫁゛ 提交于 2019-12-02 04:49:55

According to the documentation "deployer" element can not contain "deployables" child element. To make things work you should place "deployables" under "configuration" element

<configuration>
      <container>
        [...]
      </container>
      <configuration>
        <type>standalone</type>
        [...]
      </configuration>
      <deployables>
        <deployable>
          <groupId>my.war.groupId</groupId>
          <artifactId>my-war</artifactId>
          <type>war</type>
        </deployable>
      </deployables>
    </configuration>

I noted that you write

How ${groupId} and ${artifactId} would be resolved ?!! Please try with static groupId and artifactId for the war app

 <deployer>
        <type>remote</type>
        <deployables>
            <deployable>
                <groupId>${groupId}</groupId>
                <artifactId>${artifactId}</artifactId>
                <type>war</type>
                <properties>
                    <context>latest</context>
                </properties>
            </deployable>
        </deployables>
    </deployer>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!