且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在全新安装中将多个jar文件发布到Maven

更新时间:2021-10-26 02:33:09

非常感谢Pascal, 这也是我添加的配置,也可以正常使用..

Thanks a lot Pascal, This thing really works. Here is a the configuration that i have added too make it work..

    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.5</version>
        <executions>
          <execution>
            <id>abc</id>
            <phase>package</phase>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <file>src/main/assembly/flight-assembly.xml</file>
                  <type>xml</type>
                  <classifier>flight</classifier>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
  </plugin>