MAVEN builds archetype documents

Source: Internet
Author: User
Knowledge points Supplement build jar exclude configuration file
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId> maven-jar-plugin</artifactid>
                <version>3.0.2</version>
                <configuration>
                    <excludes>
                        <exclude>logback.xml</exclude>
                        <exclude>disconf.properties</ exclude>
                    </excludes>
                </configuration>
                <executions>
                </executions>
            </plugin>
Maven-assembly-plugin Package Please add version number

as follows: 3.0.0
If there's a problem with packing dependencies, I'm not going to find Httpcore. The latest version of horse teacher hit 4.2 In fact, the project relies on 4.5

  <plugin> <artifactId>maven-assembly-plugin</artifactId> <version&gt ;3.0.0</version> <configuration> <appendassemblyid>false</appenda
                    Ssemblyid> <outputDirectory>${project.build.directory}/releases/</outputDirectory> <descriptors> <descriptor>${project.basedir}/src/main/assembly/plugin.
                        Xml</descriptor> </descriptors> <archive>
                        <manifest> <mainClass>com.alibaba.dubbo.container.Main</mainClass>
                </manifest> </archive> </configuration>
                        <executions> <execution> <phase>package</phase> &Lt;goals> <goal>single</goal> </goals> </execution> </executions> </plugin>
website Information

Skeleton Project Self Structure:

Material: http://maven.apache.org/archetype/maven-archetype-plugin/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.