123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Copyright (c) 2019 Of Him Code Technology Studio
- Jpom is licensed under Mulan PSL v2.
- You can use this software according to the terms and conditions of the Mulan PSL v2.
- You may obtain a copy of Mulan PSL v2 at:
- http://license.coscl.org.cn/MulanPSL2
- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
- See the Mulan PSL v2 for more details.
- -->
- <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">
- <parent>
- <artifactId>jpom-plugins-parent</artifactId>
- <groupId>org.dromara.jpom.plugins</groupId>
- <version>2.11.11.4</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>email</artifactId>
- <name>plugin-email</name>
- <properties>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.dromara.jpom</groupId>
- <artifactId>common</artifactId>
- <scope>provided</scope>
- <version>${project.version}</version>
- </dependency>
- <!--邮件-->
- <dependency>
- <groupId>com.sun.mail</groupId>
- <artifactId>javax.mail</artifactId>
- <version>1.6.2</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>3.1.1</version>
- <configuration>
- <archive>
- <manifest>
- <!-- 是否指定项目classpath下的依赖 -->
- <addClasspath>true</addClasspath>
- <!-- 指定依赖的时候声明前缀 -->
- <classpathPrefix>./</classpathPrefix>
- </manifest>
- <manifestEntries>
- <!-- 项目版本号 -->
- <Jpom-Project-Version>${project.version}</Jpom-Project-Version>
- <!-- 打包时间 -->
- <Jpom-Timestamp>${maven.build.timestamp}</Jpom-Timestamp>
- <Jpom-Type>${project.artifactId}</Jpom-Type>
- <Implementation-URL>https://gitee.com/dromara/Jpom</Implementation-URL>
- </manifestEntries>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <!--这里要替换成jar包main方法所在类 -->
- </manifest>
- </archive>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>script/release.xml</descriptor>
- </descriptors>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id> <!-- this is used for inheritance merges -->
- <phase>package</phase> <!-- 指定在打包节点执行jar包合并操作 -->
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|