【问题标题】:Wildfly Maven Plugin error: deploy-artifact must specify the artifactIdWildfly Maven 插件错误:deploy-artifact 必须指定 artifactId
【发布时间】:2014-10-11 16:22:04
【问题描述】:

我的 POM 文件中有此依赖项和 artifact-deploy 目标配置:

....
<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>9.3-1102-jdbc41</version>
    <scope>provided</scope>
</dependency>
....
....
<plugin>
    <groupId>org.wildfly.plugins</groupId>
    <artifactId>wildfly-maven-plugin</artifactId>
    <version>1.0.2.Final</version>
    <configuration>
        <hostname>127.0.0.1</hostname>
        <port>9991</port>
        <username>xxxx</username>
        <password>xxxx</password>
        <name>App.war</name>
    </configuration>
    <executions>
        ....
        <execution>
            <id>deploy-artifact</id>
            <phase>install</phase>
            <goals>
                <goal>deploy-artifact</goal>
            </goals>
            <configuration>
                <groupId>org.postgresql</groupId>
                <artifactId>postgresql</artifactId>
                <name>postgresql-9.3-1102-jdbc41.jar</name>
            </configuration>
        </execution>
        ....
    </executions>
</plugin>
....

但如果我运行:mvn wildfly:deploy-artifact 我会收到此错误消息:

Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:deploy-artifact (default-cli) on project Zeus: deploy-artifact must specify the artifactId -> [Help 1]

似乎在执行目标时没有读取配置部分!我哪里错了?有人可以帮帮我吗?

【问题讨论】:

    标签: wildfly wildfly-8


    【解决方案1】:

    您已在执行中定义了配置。当您执行特定目标时,它使用插件上定义的配置,而不是定义的任何执行。

    您需要将配置移至基本插件,执行安装阶段或创建可以触发的配置文件。

    【讨论】:

      猜你喜欢
      • 2018-05-11
      • 2021-04-12
      • 1970-01-01
      • 1970-01-01
      • 2015-07-14
      • 2017-04-10
      • 2011-04-15
      • 2020-06-21
      • 2015-06-22
      相关资源
      最近更新 更多