Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 178 lines (164 sloc) 7.32 kB
da82265 @kabir Initial subsystem archetype commit
kabir authored
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ~ JBoss, Home of Professional Open Source.
4 ~ Copyright 2010, Red Hat, Inc., and individual contributors
5 ~ as indicated by the @author tags. See the copyright.txt file in the
6 ~ distribution for a full listing of individual contributors.
7 ~
8 ~ This is free software; you can redistribute it and/or modify it
9 ~ under the terms of the GNU Lesser General Public License as
10 ~ published by the Free Software Foundation; either version 2.1 of
11 ~ the License, or (at your option) any later version.
12 ~
13 ~ This software is distributed in the hope that it will be useful,
14 ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ~ Lesser General Public License for more details.
17 ~
18 ~ You should have received a copy of the GNU Lesser General Public
19 ~ License along with this software; if not, write to the Free
20 ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
22 -->
23
24 <project xmlns="http://maven.apache.org/POM/4.0.0"
25 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
27 <modelVersion>4.0.0</modelVersion>
28
8ec8ac2 @kabir Don't use the jboss as parent pom, and update the package name in the…
kabir authored
29 <!-- parent>
da82265 @kabir Initial subsystem archetype commit
kabir authored
30 <groupId>org.jboss.as</groupId>
31 <artifactId>jboss-as-parent</artifactId>
8ec8ac2 @kabir Don't use the jboss as parent pom, and update the package name in the…
kabir authored
32 </parent -->
da82265 @kabir Initial subsystem archetype commit
kabir authored
33
34 <groupId>org.jboss.as.archetypes</groupId>
35 <artifactId>jboss-as-subsystem-src</artifactId>
0361b92 @ctomc AS7-4078 - upgrade subsystem example
ctomc authored
36 <version>7.1.1.Final</version>
da82265 @kabir Initial subsystem archetype commit
kabir authored
37
38 <name>JBoss Application Server: Subsystem Artifact</name>
39
40 <packaging>jar</packaging>
8ec8ac2 @kabir Don't use the jboss as parent pom, and update the package name in the…
kabir authored
41
42 <properties>
0361b92 @ctomc AS7-4078 - upgrade subsystem example
ctomc authored
43 <version.jboss.as>7.1.1.Final</version.jboss.as>
8ec8ac2 @kabir Don't use the jboss as parent pom, and update the package name in the…
kabir authored
44 <version.junit>4.8.2</version.junit>
01f0354 @kabir Create the module directory structure
kabir authored
45 <module.name>${module}</module.name>
8ec8ac2 @kabir Don't use the jboss as parent pom, and update the package name in the…
kabir authored
46 </properties>
47
da82265 @kabir Initial subsystem archetype commit
kabir authored
48
49 <build>
8ec8ac2 @kabir Don't use the jboss as parent pom, and update the package name in the…
kabir authored
50 <!-- Maven will append the version to the finalName (which is the name
51 given to the generated war, and hence the context root) -->
52 <finalName>${project.artifactId}</finalName>
53 <plugins>
54 <plugin>
55 <artifactId>maven-compiler-plugin</artifactId>
56 <version>2.3.1</version>
57 <configuration>
58 <source>1.6</source>
59 <target>1.6</target>
60 </configuration>
61 </plugin>
da82265 @kabir Initial subsystem archetype commit
kabir authored
62 <plugin>
63 <groupId>org.apache.maven.plugins</groupId>
64 <artifactId>maven-surefire-plugin</artifactId>
01f0354 @kabir Create the module directory structure
kabir authored
65 <version>2.8.1</version>
da82265 @kabir Initial subsystem archetype commit
kabir authored
66 <configuration>
67 <redirectTestOutputToFile>true</redirectTestOutputToFile>
68 <enableAssertions>true</enableAssertions>
69 <argLine>-Xmx512m</argLine>
70 <systemProperties>
71 <property>
72 <name>jboss.home</name>
73 <value>${jboss.home}</value>
74 </property>
0ad1a7d @kabir Add hooks for doing extra initialization of the parsers, controller a…
kabir authored
75 </systemProperties>
da82265 @kabir Initial subsystem archetype commit
kabir authored
76 <includes>
77 <include>**/*TestCase.java</include>
78 </includes>
79 <forkMode>once</forkMode>
80 </configuration>
81 </plugin>
01f0354 @kabir Create the module directory structure
kabir authored
82 <plugin>
83 <artifactId>maven-assembly-plugin</artifactId>
84 <version>2.2.1</version>
85 <configuration>
86 <filters>
87 <filter>src/assemble/filter.properties</filter>
88 </filters>
89 <descriptors>
90 <descriptor>src/assemble/distribution.xml</descriptor>
91 </descriptors>
92 </configuration>
93 </plugin>
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-antrun-plugin</artifactId>
97 <inherited>false</inherited>
98 <version>1.6</version>
99 <executions>
100 <execution>
101 <id>build-dist</id>
102 <goals>
103 <goal>run</goal>
104 </goals>
105 <phase>package</phase>
106 <configuration>
107 <target>
108 <!-- Replace the '.' in ${module.name} with '/' to get its path -->
109 <tempfile property="temp.file"/>
110 <echo message="${module.name}" file="${temp.file}"/>
111 <replace file="${temp.file}" token="." value="/"/>
112 <loadfile srcfile="${temp.file}" property="module.path"/>
113 <delete file="${temp.file}"/>
114
115 <delete dir="target/module"/>
116 <property name="module.dir" value="target/module/${module.path}/main"/>
117
118 <copy file="src/main/resources/module/main/module.xml" tofile="${module.dir}/module.xml"/>
119 <copy file="target/${project.artifactId}.jar" todir="${module.dir}"/>
120
121 <echo>Module ${module.name} has been created in the target/module directory. Copy to your JBoss AS 7 installation.</echo>
122 </target>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
da82265 @kabir Initial subsystem archetype commit
kabir authored
127 </plugins>
128 </build>
8ec8ac2 @kabir Don't use the jboss as parent pom, and update the package name in the…
kabir authored
129
130 <dependencyManagement>
131 <dependencies>
132 <dependency>
133 <groupId>org.jboss.as</groupId>
134 <artifactId>jboss-as-controller</artifactId>
135 <version>${version.jboss.as}</version>
136 </dependency>
137 <dependency>
138 <groupId>org.jboss.as</groupId>
139 <artifactId>jboss-as-server</artifactId>
140 <version>${version.jboss.as}</version>
141 </dependency>
142 <dependency>
7ed956f @kabir Use AS 7.0.1.Final and use the proper test harness from org.jboss.as:…
kabir authored
143 <groupId>org.jboss.as</groupId>
144 <artifactId>jboss-as-subsystem-test</artifactId>
145 <version>${version.jboss.as}</version>
146 <scope>test</scope>
147 </dependency>
148 <dependency>
8ec8ac2 @kabir Don't use the jboss as parent pom, and update the package name in the…
kabir authored
149 <groupId>junit</groupId>
150 <artifactId>junit</artifactId>
151 <scope>test</scope>
152 <version>${version.junit}</version>
153 </dependency>
154 </dependencies>
155 </dependencyManagement>
da82265 @kabir Initial subsystem archetype commit
kabir authored
156
157 <dependencies>
158 <dependency>
159 <groupId>org.jboss.as</groupId>
160 <artifactId>jboss-as-controller</artifactId>
161 </dependency>
162 <dependency>
163 <groupId>org.jboss.as</groupId>
164 <artifactId>jboss-as-server</artifactId>
165 </dependency>
166 <dependency>
7ed956f @kabir Use AS 7.0.1.Final and use the proper test harness from org.jboss.as:…
kabir authored
167 <groupId>org.jboss.as</groupId>
168 <artifactId>jboss-as-subsystem-test</artifactId>
169 <scope>test</scope>
170 </dependency>
171 <dependency>
da82265 @kabir Initial subsystem archetype commit
kabir authored
172 <groupId>junit</groupId>
173 <artifactId>junit</artifactId>
01f0354 @kabir Create the module directory structure
kabir authored
174 <scope>test</scope>
da82265 @kabir Initial subsystem archetype commit
kabir authored
175 </dependency>
176 </dependencies>
177 </project>
Something went wrong with that request. Please try again.