beehive/beehive-jms-control/pom.xml

131 lines
5.7 KiB
XML

<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
$Header:$
-->
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.beehive</groupId>
<artifactId>beehive</artifactId>
<version>1.0.2</version>
</parent>
<artifactId>beehive-jms-control</artifactId>
<name>beehive-jms-control</name>
<properties>
<gensrc.dir>${project.build.directory}/generated-sources</gensrc.dir>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.beehive</groupId>
<artifactId>beehive-controls</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.moparisthebest.aptIn16</groupId>
<artifactId>netui-compiler</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>xmlbeans</groupId>
<artifactId>xbean</artifactId>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-j2ee_1.4_spec</artifactId>
</dependency>
</dependencies>
<build>
<sourceDirectory>../system-controls/src/jms</sourceDirectory>
<resources>
<resource>
<directory>${gensrc.dir}</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>gensrc</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<macrodef name="build-controls">
<attribute name="srcdir"
description="The directory containing controls to build. Required."/>
<attribute name="destdir"
description="The destination directory for compiled class files. Required."/>
<attribute name="tempdir"
description="The temporary directory for generated files. Required."/>
<attribute name="classpathref"
description="The classpath reference for building the controls. Required."/>
<sequential>
<taskdef name="apt"
classname="org.apache.beehive.controls.runtime.generator.AptTask"
classpathref="maven.compile.classpath"
onerror="fail"/>
<apt srcdir="@{srcdir}"
destdir="@{destdir}"
gendir="@{tempdir}"
classpathref="@{classpathref}"
compileByExtension="true"
srcExtensions="*.java,*.jcx,*.jcs,*.jws"
debug="true"
nocompile="true"/>
</sequential>
</macrodef>
<mkdir dir="${gensrc.dir}"/>
<build-controls srcdir="${project.build.sourceDirectory}"
destdir="${gensrc.dir}"
tempdir="${gensrc.dir}"
classpathref="maven.compile.classpath"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${gensrc.dir}</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>