在此工件包含过滤器中从未触发以下模式:o 'com.alibaba:dubbo

The following patterns were never triggered in this artifact inclusion filter: o 'com.alibaba:dubbo

以下是 assembly.xml

的内容
<assembly>
<id>jar-with-dependencies</id>
<formats>
    <format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
    <dependencySet>
        <unpack>true</unpack>
  <unpackOptions>
    <excludes>
        <exclude>META-INF/**</exclude>
        <exclude>META-INF/**</exclude>
    </excludes>
  </unpackOptions>
        <includes>
            <include>com.alibaba:dubbo</include>
            <include>commons-codec:commons-codec</include> 
             <include>org.apache.httpcomponents:httpclient</include>                               
             <include>org.apache.httpcomponents:httpcore</include>
             <include>org.apache.commons:commons-csv</include>
        </includes>
    </dependencySet>
</dependencySets>

我已将以下依赖项添加到 pom.xml -

<!-- Dubbo -->
    <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>dubbo</artifactId>
        <version>2.5.9</version>
        <scope>provided</scope>
    </dependency>
   <build>
    <plugins>
        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
                <execution>
                    <id>prod-jar</id>
                    <phase>package</phase>
                    <goals>
                        <goal>single</goal>
                    </goals>
                    <configuration>
                        <descriptors>
                            <descriptor>assembly.xml</descriptor>
                        </descriptors>
                    </configuration>
                </execution>
                <execution>
                    <id>jar-for-testcase</id>
                    <phase>package</phase>
                    <goals>
                        <goal>single</goal>
                    </goals>
                    <configuration>
                        <descriptors>
                            <descriptor>assembly_test.xml</descriptor>
                        </descriptors>
                    </configuration>
                </execution>
                <execution>
                    <id>pkg</id>
                    <phase>package</phase>
                    <goals>
                        <goal>single</goal>
                    </goals>
                    <configuration>
                        <appendAssemblyId>false</appendAssemblyId>
                        <descriptors>
                            <descriptor>pkg_assembly.xml</descriptor>
                        </descriptors>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

当我 运行 安装 maven 时,我收到警告并且我的代码不起作用。但是如果我直接 运行 代码而不创建 jar 那么它就可以正常工作。所以创建的 jar 有问题。调试这个,我遇到了这个警告。但是我无法理解我在做什么错。根据我的理解,include 标签应该包含 group-id:artifact-id。我正在这样做,但我仍然收到警告。有人可以说明我在这里缺少什么吗?

通过以下替换解决了警告

 <include>com.alibaba:dubbo:jar:</include>

仅供参考,下面是长模式groupId:artifactId:type:classifier