Skip to content

Commit 7accc5b

Browse files
committed
EXM-40634 Mavenized the CGM plugin.
1 parent 1bc6d52 commit 7accc5b

File tree

3 files changed

+130
-1
lines changed

3 files changed

+130
-1
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
target/
12
.project
2-
.settings/
3+
.classpath
4+
.settings

assembly.xml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!-- This is an assembly file used for all the sample plugins. -->
2+
3+
<assembly
4+
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
7+
<id>plugin</id>
8+
<formats>
9+
<format>jar</format>
10+
</formats>
11+
12+
<fileSets>
13+
<fileSet>
14+
<directory>web</directory>
15+
<outputDirectory>web</outputDirectory>
16+
<includes>
17+
<include>**/*</include>
18+
</includes>
19+
</fileSet>
20+
21+
<fileSet>
22+
<directory>lib</directory>
23+
<outputDirectory>lib</outputDirectory>
24+
<includes>
25+
<include>**/*</include>
26+
</includes>
27+
</fileSet>
28+
</fileSets>
29+
30+
<files>
31+
<file>
32+
<source>plugin.xml</source>
33+
<filtered>true</filtered>
34+
</file>
35+
<file>
36+
<source>addon.xml</source>
37+
</file>
38+
<file>
39+
<source>LICENSE</source>
40+
</file>
41+
<file>
42+
<source>README.md</source>
43+
</file>
44+
<file>
45+
<source>wsAccess.js</source>
46+
</file>
47+
</files>
48+
</assembly>

pom.xml

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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

Comments
 (0)