maven multipart project manage

来源:互联网 发布:网络广告费用预算 编辑:程序博客网 时间:2024/06/03 09:30
app-parent:<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>org.study</groupId>    <artifactId>app-parent</artifactId>    <version>0.0.1-SNAPSHOT</version>    <packaging>pom</packaging>    <name>app-parent</name>    <properties>        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>        <java-version>1.7</java-version>        <org.springframework-version>4.1.6.RELEASE</org.springframework-version>        <org.aspectj-version>1.8.5</org.aspectj-version>        <org.slf4j-version>1.6.6</org.slf4j-version>        <log4j-version>1.2.15</log4j-version>        <servlet-api-version>3.1.0</servlet-api-version>        <jsp-api-version>2.1</jsp-api-version>        <jstl-version>1.2</jstl-version>        <junit-version>4.7</junit-version>        <maven-eclipse-plugin-version>2.9</maven-eclipse-plugin-version>        <maven-compiler-plugin-version>2.5.1</maven-compiler-plugin-version>        <exec-maven-plugin-version>1.2.1</exec-maven-plugin-version>        <tomcat7-maven-plugin-version>2.1</tomcat7-maven-plugin-version>        <jetty-version>9.2.11.v20150529</jetty-version>        <apche-shiro-version>1.2.3</apche-shiro-version>        <commons-io-version>2.4</commons-io-version>        <commons-fileupload-version>1.3.1</commons-fileupload-version>        <org.apache.poi-version>3.9</org.apache.poi-version>        <jxl-version>2.6.12</jxl-version>        <org.quartz-scheduler-version>2.2.1</org.quartz-scheduler-version>        <sitemesh-version>3.0.0</sitemesh-version>    </properties>    <dependencyManagement>        <dependencies>            <!-- import child project -->            <dependency>                <groupId>org.study</groupId>                <artifactId>app-services</artifactId>                <version>${project.version}</version>            </dependency>            <dependency>                <groupId>org.study</groupId>                <artifactId>app-models</artifactId>                <version>${project.version}</version>            </dependency>            <dependency>                <groupId>org.study</groupId>                <artifactId>app-mappers</artifactId>                <version>${project.version}</version>            </dependency>            <dependency>                <groupId>org.study</groupId>                <artifactId>app-utils</artifactId>                <version>${project.version}</version>            </dependency>            <dependency>                <groupId>org.study</groupId>                <artifactId>app-web</artifactId>                <version>${project.version}</version>            </dependency>            <dependency>                <groupId>org.quartz-scheduler</groupId>                <artifactId>quartz</artifactId>                <version>${org.quartz-scheduler-version}</version>            </dependency>            <dependency>                <groupId>net.sourceforge.jexcelapi</groupId>                <artifactId>jxl</artifactId>                <version>2.6.12</version>            </dependency>            <dependency>                <groupId>org.apache.poi</groupId>                <artifactId>poi</artifactId>                <version>${org.apache.poi-version}</version>            </dependency>            <dependency>                <groupId>javax.websocket</groupId>                <artifactId>javax.websocket-api</artifactId>                <version>1.0</version>            </dependency>            <dependency>                <groupId>cn.jpush.api</groupId>                <artifactId>jpush-client</artifactId>                <version>3.2.7</version>            </dependency>            <dependency>                <groupId>commons-httpclient</groupId>                <artifactId>commons-httpclient</artifactId>                <version>3.1</version>            </dependency>            <dependency>                <groupId>dom4j</groupId>                <artifactId>dom4j</artifactId>                <version>1.6.1</version>            </dependency>            <dependency>                <groupId>javax.mail</groupId>                <artifactId>mail</artifactId>                <version>1.4.7</version>            </dependency>            <dependency>                <groupId>commons-io</groupId>                <artifactId>commons-io</artifactId>                <version>${commons-io-version}</version>            </dependency>            <dependency>                <groupId>commons-fileupload</groupId>                <artifactId>commons-fileupload</artifactId>                <version>${commons-fileupload-version}</version>            </dependency>            <dependency>                <groupId>org.apache.shiro</groupId>                <artifactId>shiro-core</artifactId>                <version>${apche-shiro-version}</version>            </dependency>            <dependency>                <groupId>org.apache.shiro</groupId>                <artifactId>shiro-web</artifactId>                <version>${apche-shiro-version}</version>            </dependency>            <dependency>                <groupId>org.apache.shiro</groupId>                <artifactId>shiro-spring</artifactId>                <version>${apche-shiro-version}</version>            </dependency>            <dependency>                <groupId>org.apache.shiro</groupId>                <artifactId>shiro-ehcache</artifactId>                <version>${apche-shiro-version}</version>            </dependency>            <dependency>                <groupId>org.springframework</groupId>                <artifactId>spring-core</artifactId>                <version>${org.springframework-version}</version>            </dependency>            <dependency>                <groupId>org.springframework</groupId>                <artifactId>spring-context-support</artifactId>                <version>${org.springframework-version}</version>            </dependency>            <dependency>                <groupId>org.springframework</groupId>                <artifactId>spring-context</artifactId>                <version>${org.springframework-version}</version>                <exclusions>                    <!-- Exclude Commons Logging in favor of SLF4j -->                    <exclusion>                        <groupId>commons-logging</groupId>                        <artifactId>commons-logging</artifactId>                    </exclusion>                </exclusions>            </dependency>            <dependency>                <groupId>org.springframework</groupId>                <artifactId>spring-webmvc</artifactId>                <version>${org.springframework-version}</version>            </dependency>            <dependency>                <groupId>org.springframework</groupId>                <artifactId>spring-tx</artifactId>                <version>${org.springframework-version}</version>            </dependency>            <dependency>                <groupId>org.springframework</groupId>                <artifactId>spring-jdbc</artifactId>                <version>${org.springframework-version}</version>            </dependency>            <dependency>                <groupId>org.mybatis</groupId>                <artifactId>mybatis</artifactId>                <version>3.2.8</version>            </dependency>            <dependency>                <groupId>org.mybatis</groupId>                <artifactId>mybatis-spring</artifactId>                <version>1.2.2</version>            </dependency>            <dependency>                <groupId>com.alibaba</groupId>                <artifactId>druid</artifactId>                <version>1.0.13</version>            </dependency>            <dependency>                <groupId>mysql</groupId>                <artifactId>mysql-connector-java</artifactId>                <version>5.1.34</version>            </dependency>            <dependency>                <groupId>org.aspectj</groupId>                <artifactId>aspectjrt</artifactId>                <version>${org.aspectj-version}</version>            </dependency>            <dependency>                <groupId>org.slf4j</groupId>                <artifactId>slf4j-api</artifactId>                <version>${org.slf4j-version}</version>            </dependency>            <dependency>                <groupId>org.slf4j</groupId>                <artifactId>jcl-over-slf4j</artifactId>                <version>${org.slf4j-version}</version>                <scope>runtime</scope>            </dependency>            <dependency>                <groupId>org.slf4j</groupId>                <artifactId>slf4j-log4j12</artifactId>                <version>${org.slf4j-version}</version>                <scope>runtime</scope>            </dependency>            <dependency>                <groupId>log4j</groupId>                <artifactId>log4j</artifactId>                <version>${log4j-version}</version>                <exclusions>                    <exclusion>                        <groupId>javax.mail</groupId>                        <artifactId>mail</artifactId>                    </exclusion>                    <exclusion>                        <groupId>javax.jms</groupId>                        <artifactId>jms</artifactId>                    </exclusion>                    <exclusion>                        <groupId>com.sun.jdmk</groupId>                        <artifactId>jmxtools</artifactId>                    </exclusion>                    <exclusion>                        <groupId>com.sun.jmx</groupId>                        <artifactId>jmxri</artifactId>                    </exclusion>                </exclusions>                <scope>runtime</scope>            </dependency>            <dependency>                <groupId>javax.inject</groupId>                <artifactId>javax.inject</artifactId>                <version>1</version>            </dependency>            <dependency>                <groupId>javax.servlet</groupId>                <artifactId>javax.servlet-api</artifactId>                <version>3.1.0</version>                <scope>provided</scope>            </dependency>            <dependency>                <groupId>javax.servlet.jsp</groupId>                <artifactId>jsp-api</artifactId>                <version>2.1</version>                <scope>provided</scope>            </dependency>            <dependency>                <groupId>javax.servlet</groupId>                <artifactId>jstl</artifactId>                <version>1.2</version>            </dependency>            <dependency>                <groupId>junit</groupId>                <artifactId>junit</artifactId>                <version>${junit-version}</version>                <scope>test</scope>            </dependency>        </dependencies>    </dependencyManagement>    <build>        <plugins>            <plugin>                <artifactId>maven-eclipse-plugin</artifactId>                <version>${maven-eclipse-plugin-version}</version>                <configuration>                    <additionalProjectnatures>                        <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>                    </additionalProjectnatures>                    <additionalBuildcommands>                        <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>                    </additionalBuildcommands>                    <downloadSources>true</downloadSources>                    <downloadJavadocs>true</downloadJavadocs>                </configuration>            </plugin>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-compiler-plugin</artifactId>                <version>${maven-compiler-plugin-version}</version>                <configuration>                    <source>${java-version}</source>                    <target>${java-version}</target>                    <encoding>UTF-8</encoding>                    <compilerArgument>-Xlint:all</compilerArgument>                    <showWarnings>true</showWarnings>                    <showDeprecation>true</showDeprecation>                </configuration>            </plugin>            <plugin>                <groupId>org.codehaus.mojo</groupId>                <artifactId>exec-maven-plugin</artifactId>                <version>${exec-maven-plugin-version}</version>                <configuration>                    <mainClass>org.test.int1.Main</mainClass>                </configuration>            </plugin>            <plugin>                <groupId>org.apache.tomcat.maven</groupId>                <artifactId>tomcat7-maven-plugin</artifactId>                <version>${tomcat7-maven-plugin-version}</version>                <configuration>                    <url>http://localhost:8080/manager/html</url>                    <uriEncoding>UTF-8</uriEncoding>                    <server>tomcat7</server>                </configuration>            </plugin>            <plugin>                <groupId>org.eclipse.jetty</groupId>                <artifactId>jetty-maven-plugin</artifactId>                <version>${jetty-version}</version>                <configuration>                    <httpConnector>                        <port>8081</port>                    </httpConnector>                    <stopKey>shutdown</stopKey>                    <stopPort>9966</stopPort>                    <scanIntervalSeconds>2</scanIntervalSeconds>                    <!-- <reload>manual</reload> -->                    <dumpOnStart>true</dumpOnStart>                    <webApp>                        <contextPath>/${project.artifactId}</contextPath>                        <!-- <resourceBases> <resourceBase>${project.basedir}/src/main/webapp</resourceBase>                             <resourceBase>${project.basedir}/commons</resourceBase> </resourceBases> -->                    </webApp>                    <requestLog implementation="org.eclipse.jetty.server.NCSARequestLog">                        <filename>target/access-yyyy_mm_dd.log</filename>                        <filenameDateFormat>yyyy_MM_dd</filenameDateFormat>                        <logDateFormat>yyyy-MM-dd HH:mm:ss</logDateFormat>                        <logTimeZone>GMT+8:00</logTimeZone>                        <append>true</append>                        <logServer>true</logServer>                        <retainDays>120</retainDays>                        <logCookies>true</logCookies>                    </requestLog>                </configuration>            </plugin>        </plugins>    </build>    <modules>        <module>app-web</module>        <module>app-models</module>        <module>app-services</module>        <module>app-mappers</module>        <module>app-utils</module>    </modules></project>
app-web:<?xml version="1.0"?><project    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <modelVersion>4.0.0</modelVersion>    <parent>        <groupId>org.study</groupId>        <artifactId>app-parent</artifactId>        <version>0.0.1-SNAPSHOT</version>        <relativePath>../pom.xml</relativePath>    </parent>    <artifactId>app-web</artifactId>    <packaging>war</packaging>    <dependencies>        <!-- import child project -->        <dependency>            <groupId>org.study</groupId>            <artifactId>app-services</artifactId>        </dependency>        <dependency>            <groupId>org.study</groupId>            <artifactId>app-models</artifactId>        </dependency>        <dependency>            <groupId>org.quartz-scheduler</groupId>            <artifactId>quartz</artifactId>        </dependency>        <dependency>            <groupId>cn.jpush.api</groupId>            <artifactId>jpush-client</artifactId>        </dependency>        <dependency>            <groupId>commons-httpclient</groupId>            <artifactId>commons-httpclient</artifactId>        </dependency>        <dependency>            <groupId>dom4j</groupId>            <artifactId>dom4j</artifactId>        </dependency>        <dependency>            <groupId>commons-io</groupId>            <artifactId>commons-io</artifactId>        </dependency>        <dependency>            <groupId>commons-fileupload</groupId>            <artifactId>commons-fileupload</artifactId>        </dependency>        <dependency>            <groupId>org.apache.shiro</groupId>            <artifactId>shiro-core</artifactId>        </dependency>        <dependency>            <groupId>org.apache.shiro</groupId>            <artifactId>shiro-web</artifactId>        </dependency>        <dependency>            <groupId>org.apache.shiro</groupId>            <artifactId>shiro-spring</artifactId>        </dependency>        <dependency>            <groupId>org.apache.shiro</groupId>            <artifactId>shiro-ehcache</artifactId>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-core</artifactId>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-context-support</artifactId>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-context</artifactId>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-webmvc</artifactId>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-tx</artifactId>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-jdbc</artifactId>        </dependency>        <dependency>            <groupId>org.mybatis</groupId>            <artifactId>mybatis</artifactId>        </dependency>        <dependency>            <groupId>org.mybatis</groupId>            <artifactId>mybatis-spring</artifactId>        </dependency>        <dependency>            <groupId>com.alibaba</groupId>            <artifactId>druid</artifactId>        </dependency>        <dependency>            <groupId>mysql</groupId>            <artifactId>mysql-connector-java</artifactId>        </dependency>        <dependency>            <groupId>org.aspectj</groupId>            <artifactId>aspectjrt</artifactId>        </dependency>        <dependency>            <groupId>org.slf4j</groupId>            <artifactId>slf4j-api</artifactId>        </dependency>        <dependency>            <groupId>org.slf4j</groupId>            <artifactId>jcl-over-slf4j</artifactId>        </dependency>        <dependency>            <groupId>org.slf4j</groupId>            <artifactId>slf4j-log4j12</artifactId>        </dependency>        <dependency>            <groupId>log4j</groupId>            <artifactId>log4j</artifactId>        </dependency>        <dependency>            <groupId>javax.inject</groupId>            <artifactId>javax.inject</artifactId>        </dependency>        <dependency>            <groupId>javax.servlet</groupId>            <artifactId>javax.servlet-api</artifactId>        </dependency>        <dependency>            <groupId>javax.servlet.jsp</groupId>            <artifactId>jsp-api</artifactId>        </dependency>        <dependency>            <groupId>javax.servlet</groupId>            <artifactId>jstl</artifactId>        </dependency>        <dependency>            <groupId>junit</groupId>            <artifactId>junit</artifactId>        </dependency>    </dependencies>    <build>        <finalName>app-web</finalName>    </build></project>
app-services:<?xml version="1.0"?><project    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <modelVersion>4.0.0</modelVersion>    <parent>        <groupId>org.study</groupId>        <artifactId>app-parent</artifactId>        <version>0.0.1-SNAPSHOT</version>        <relativePath>../pom.xml</relativePath>    </parent>    <artifactId>app-services</artifactId>    <name>app-services</name>    <url>http://maven.apache.org</url>    <properties>        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    </properties>    <dependencies>        <dependency>            <groupId>org.study</groupId>            <artifactId>app-mappers</artifactId>        </dependency>        <dependency>            <groupId>org.study</groupId>            <artifactId>app-models</artifactId>        </dependency>        <dependency>            <groupId>org.study</groupId>            <artifactId>app-utils</artifactId>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-context</artifactId>        </dependency>        <dependency>            <groupId>org.aspectj</groupId>            <artifactId>aspectjrt</artifactId>        </dependency>        <dependency>            <groupId>org.slf4j</groupId>            <artifactId>slf4j-api</artifactId>        </dependency>        <dependency>            <groupId>org.slf4j</groupId>            <artifactId>jcl-over-slf4j</artifactId>        </dependency>        <dependency>            <groupId>org.slf4j</groupId>            <artifactId>slf4j-log4j12</artifactId>        </dependency>        <dependency>            <groupId>log4j</groupId>            <artifactId>log4j</artifactId>        </dependency>        <dependency>            <groupId>junit</groupId>            <artifactId>junit</artifactId>            <scope>test</scope>        </dependency>    </dependencies></project>
app-models:<?xml version="1.0"?><project    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <modelVersion>4.0.0</modelVersion>    <parent>        <groupId>org.study</groupId>        <artifactId>app-parent</artifactId>        <version>0.0.1-SNAPSHOT</version>    </parent>    <artifactId>app-models</artifactId>    <name>app-models</name>    <properties>        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    </properties>    <dependencies>        <dependency>            <groupId>junit</groupId>            <artifactId>junit</artifactId>            <scope>test</scope>        </dependency>    </dependencies></project>
0 0