blob: 793627716d67df19cb8ca5fc578a377457948412 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
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.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.mina</groupId>
<artifactId>mina-parent</artifactId>
<version>2.1.9-SNAPSHOT</version>
</parent>
<artifactId>mina-integration-xbean</artifactId>
<name>Apache MINA XBean Integration</name>
<description>
This module generates an XML scheme file for the MINA Spring configuration
namespace. This XSD is referenced by Spring configuration files using MINA
components to have a much less verbose configuration. When used with the
XBean application context loader the same old Spring ApplictionContext is
generated from this more intuitive and terse configuration file.
</description>
<url>https://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mina-integration-beans</artifactId>
<version>${project.version}</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mina-core</artifactId>
<version>${project.version}</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mina-core</artifactId>
<version>${project.version}</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</dependency>
<dependency>
<groupId>org.apache.xbean</groupId>
<artifactId>xbean-spring</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<inherited>true</inherited>
<extensions>true</extensions>
<configuration>
<manifestLocation>META-INF</manifestLocation>
<instructions>
<Bundle-SymbolicName>${project.groupId}.integration.xbeans</Bundle-SymbolicName>
<Export-Package>
org.apache.mina.integration.xbean;version=${project.version};-noimport:=true
</Export-Package>
<Import-Package>
org.apache.mina.integration.beans;version=${project.version},
org.apache.mina.transport.vmpipe;version=${project.version},
org.springframework.beans;version=${version.springframework}
</Import-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.xbean</groupId>
<artifactId>maven-xbean-plugin</artifactId>
<executions>
<execution>
<configuration>
<namespace>http://mina.apache.org/config/1.0</namespace>
<schema>target/xbean/${project.artifactId}.xsd</schema>
</configuration>
<goals>
<goal>mapping</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- lets ensure that the XSD gets deployed -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${basedir}/target/xbean/${project.artifactId}.xsd</file>
<type>xsd</type>
</artifact>
<artifact>
<file>${basedir}/target/xbean/${project.artifactId}.xsd.html</file>
<type>xsd.html</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>