Last active
August 29, 2015 14:01
-
-
Save subchen/03ef33ca6aef4ab3f59e to your computer and use it in GitHub Desktop.
jetbrick-all-pom.xml (maven aggregate project) - using maven-assembly-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 | |
http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | |
<id>all-in-one</id> | |
<formats> | |
<format>jar</format> | |
</formats> | |
<includeBaseDirectory>false</includeBaseDirectory> | |
<moduleSets> | |
<moduleSet> | |
<includeSubModules>true</includeSubModules> | |
<binaries> | |
<unpack>true</unpack> | |
<unpackOptions> | |
<excludes> | |
<exclude>META-INF/**</exclude> | |
</excludes> | |
</unpackOptions> | |
<includeDependencies>false</includeDependencies> | |
</binaries> | |
</moduleSet> | |
</moduleSets> | |
<fileSets> | |
<fileSet> | |
<directory>${project.basedir}</directory> | |
<outputDirectory>/META-INF/maven.com.github.subchen.jetbrick-all</outputDirectory> | |
<includes> | |
<include>pom.xml</include> | |
</includes> | |
</fileSet> | |
</fileSets> | |
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.github.subchen</groupId> | |
<artifactId>jetbrick-all</artifactId> | |
<version>1.0.0</version> | |
<packaging>pom</packaging> | |
<name>jetbrick-all</name> | |
<description>a full-stack framework written with java.</description> | |
<modules> | |
<module>jetbrick-commons</module> | |
<module>jetbrick-ioc</module> | |
<module>jetbrick-webmvc</module> | |
</modules> | |
<properties> | |
<!-- compiler --> | |
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding> | |
<maven.compiler.source>1.6</maven.compiler.source> | |
<maven.compiler.target>1.6</maven.compiler.target> | |
<maven.compiler.debug>true</maven.compiler.debug> | |
<!-- javadoc --> | |
<project.reporting.outputEncoding>utf-8</project.reporting.outputEncoding> | |
<maven.javadoc.failOnError>false</maven.javadoc.failOnError> | |
</properties> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.1</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.4</version> | |
<configuration> | |
<archive> | |
<addMavenDescriptor>true</addMavenDescriptor> | |
<manifest> | |
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> | |
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
</manifest> | |
</archive> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
<version>2.2.1</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>2.9.1</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-gpg-plugin</artifactId> | |
<version>1.5</version> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>make-assembly</id> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
<phase>package</phase> | |
<configuration> | |
<appendAssemblyId>false</appendAssemblyId> | |
<attach>true</attach> | |
<descriptors> | |
<descriptor>jetbrick-all-jar.xml</descriptor> | |
</descriptors> | |
<archive> | |
<addMavenDescriptor>true</addMavenDescriptor> | |
<manifest> | |
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> | |
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
</manifest> | |
</archive> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-source-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>attach-sources</id> | |
<goals> | |
<goal>aggregate</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>attach-javadocs</id> | |
<goals> | |
<goal>aggregate-jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
<version>1.7.5</version> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.11</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment