|
| 1 | +<?xml version="1.0"?> |
| 2 | +<project |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| 4 | + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + <groupId>com.oxygenxml</groupId> |
| 7 | + <version>20.0-SNAPSHOT</version> |
| 8 | + <artifactId>oxygen-cgm-support-plugin</artifactId> |
| 9 | + <name>Oxygen CGM Support Plugin</name> |
| 10 | + <description>Oxygen plugin that adds cgm images rendering support</description> |
| 11 | + |
| 12 | + <properties> |
| 13 | + <oxygen.sdk.version>20.0-SNAPSHOT</oxygen.sdk.version> |
| 14 | + </properties> |
| 15 | + |
| 16 | + <repositories> |
| 17 | + <repository> |
| 18 | + <id>oxygenxml</id> |
| 19 | + <name>oXygen XML SDK Maven Repository</name> |
| 20 | + <url>http://oxygenxml.com/maven/</url> |
| 21 | + </repository> |
| 22 | + </repositories> |
| 23 | + |
| 24 | + <build> |
| 25 | + <finalName>${project.artifactId}-${project.nosnapshot.version}</finalName> |
| 26 | + <plugins> |
| 27 | + <!-- remove the -SNAPSHOT from packaged plugin --> |
| 28 | + <plugin> |
| 29 | + <groupId>org.codehaus.mojo</groupId> |
| 30 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 31 | + <version>1.10</version> |
| 32 | + <executions> |
| 33 | + <execution> |
| 34 | + <id>set-version-no-snapshot</id> |
| 35 | + <goals> |
| 36 | + <goal>regex-property</goal> |
| 37 | + </goals> |
| 38 | + <configuration> |
| 39 | + <name>project.nosnapshot.version</name> |
| 40 | + <value>${project.version}</value> |
| 41 | + <regex>-SNAPSHOT</regex> |
| 42 | + <replacement></replacement> |
| 43 | + <failIfNoMatch>false</failIfNoMatch> |
| 44 | + </configuration> |
| 45 | + </execution> |
| 46 | + </executions> |
| 47 | + </plugin> |
| 48 | + <plugin> |
| 49 | + <groupId>org.apache.maven.plugins</groupId> |
| 50 | + <artifactId>maven-jar-plugin</artifactId> |
| 51 | + <version>2.2</version> |
| 52 | + <configuration> |
| 53 | + <!-- We only want the final JAR package in the target folder so that |
| 54 | + it's easier for users to identify it.--> |
| 55 | + <outputDirectory>${project.build.directory}/build</outputDirectory> |
| 56 | + </configuration> |
| 57 | + </plugin> |
| 58 | + <plugin> |
| 59 | + <artifactId>maven-assembly-plugin</artifactId> |
| 60 | + <version>2.4</version> |
| 61 | + <executions> |
| 62 | + <execution> |
| 63 | + <id>make-assembly</id> |
| 64 | + <phase>package</phase> |
| 65 | + <goals> |
| 66 | + <goal>single</goal> |
| 67 | + </goals> |
| 68 | + <configuration> |
| 69 | + <archiveBaseDirectory>${project.basedir}</archiveBaseDirectory> |
| 70 | + <descriptors> |
| 71 | + <descriptor>assembly.xml</descriptor> |
| 72 | + </descriptors> |
| 73 | + </configuration> |
| 74 | + </execution> |
| 75 | + </executions> |
| 76 | + </plugin> |
| 77 | + </plugins> |
| 78 | + </build> |
| 79 | +</project> |
0 commit comments