Changeset 2134


Ignore:
Timestamp:
08/22/12 15:22:43 (12 years ago)
Author:
twagoo
Message:

Made changes to generate classes from RSS 2.0 schema (added to bindings). Required some restructuring so that the two jaxb generates don't clash.
Refs #180

Location:
ComponentRegistry/trunk/ComponentRegistry
Files:
3 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/pom.xml

    r2124 r2134  
    11
    22<project xmlns="http://maven.apache.org/POM/4.0.0"
    3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    55    <modelVersion>4.0.0</modelVersion>
    66    <parent>
     
    1515    <name>ComponentRegistry</name>
    1616    <description>
    17         ComponentRegistry is part of the clarin metadata infrastructure (cmdi).
    18         The goal of the ComponentRegistry will be to register and make searchable Metadata Components and Profiles.
     17        ComponentRegistry is part of the clarin metadata infrastructure (cmdi).
     18        The goal of the ComponentRegistry will be to register and make searchable Metadata Components and Profiles.
    1919    </description>
    2020    <ciManagement>
    21         <system>hudson</system>
    22         <url>http://lux16.mpi.nl/jenkins/job/ComponentRegistry/</url>
     21        <system>hudson</system>
     22        <url>http://lux16.mpi.nl/jenkins/job/ComponentRegistry/</url>
    2323    </ciManagement>
    2424    <scm>
     
    3535            <scope>test</scope>
    3636        </dependency>
    37         <dependency>
    38             <groupId>net.sf.saxon</groupId>
    39             <artifactId>Saxon-HE</artifactId>
    40             <version>9.4</version>
    41         </dependency>                                                 
     37        <dependency>
     38            <groupId>net.sf.saxon</groupId>
     39            <artifactId>Saxon-HE</artifactId>
     40            <version>9.4</version>
     41        </dependency>                                                 
    4242        <dependency>
    4343            <groupId>javax.servlet</groupId>
     
    101101            <version>1.12</version>
    102102            <exclusions>
    103                                 <!--
    104           Jersey has dependencies with different group ids therefore maven cannot resolve the conflict and gives me both
    105           jars (two of stax and two of jaxb-impl). Excluding them manually to overcome the problem
    106         -->
     103                <!--
     104    Jersey has dependencies with different group ids therefore maven cannot resolve the conflict and gives me both
     105    jars (two of stax and two of jaxb-impl). Excluding them manually to overcome the problem
     106  -->
    107107                <exclusion>
    108108                    <groupId>stax</groupId>
     
    196196        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    197197        <packaging>war</packaging>
    198                 <!-- Properties to configure ComponentRegistry override on commandline with -D or change here -->
     198        <!-- Properties to configure ComponentRegistry override on commandline with -D or change here -->
    199199        <serviceRootUrl>http://localhost:8080/${pom.artifactId}</serviceRootUrl>
    200                 <!-- Will be inserted in context.xml -->
     200        <!-- Will be inserted in context.xml -->
    201201        <webXmlPath>src/main/webapp/WEB-INF/web.xml</webXmlPath>
    202                 <!-- non-shib web.xml -->
     202        <!-- non-shib web.xml -->
    203203        <isocatSearchUrl>http://www.isocat.org/rest/user/guest/search</isocatSearchUrl>
    204204        <ComponentRegistrySwfName>${pom.artifactId}-${ComponentBrowserGui.version}</ComponentRegistrySwfName>
     
    211211            <properties>
    212212                <serviceRootUrl>http://lux16.mpi.nl/ds/ComponentRegistry</serviceRootUrl>
    213                                 <!-- Will be inserted in context.xml -->
     213                <!-- Will be inserted in context.xml -->
    214214                <shibLI>http://lux16.mpi.nl/Shibboleth.sso/DS</shibLI>
    215                                 <!-- Shibboleth login URI for SHHAA -->
     215                <!-- Shibboleth login URI for SHHAA -->
    216216                <shibLO>http://lux16.mpi.nl/Shibboleth.sso/Logout</shibLO>
    217                                 <!-- Shibboleth logout URI for SHHAA -->
     217                <!-- Shibboleth logout URI for SHHAA -->
    218218                <webXmlPath>src/main/webapp/WEB-INF/web-shib.xml</webXmlPath>
    219                                 <!-- web.xml for shibboleth authentication -->
     219                <!-- web.xml for shibboleth authentication -->
    220220            </properties>
    221221        </profile>
     
    224224            <properties>
    225225                <serviceRootUrl>http://catalog.clarin.eu/ds/ComponentRegistry</serviceRootUrl>
    226                                 <!-- Will be inserted in context.xml -->
     226                <!-- Will be inserted in context.xml -->
    227227                <shibLI>https://catalog.clarin.eu/Shibboleth.sso/DiscoJuice</shibLI>
    228                                 <!-- Shibboleth login URI for SHHAA -->
     228                <!-- Shibboleth login URI for SHHAA -->
    229229                <shibLO>https://catalog.clarin.eu/Shibboleth.sso/Logout</shibLO>
    230                                 <!-- Shibboleth logout URI for SHHAA -->
     230                <!-- Shibboleth logout URI for SHHAA -->
    231231                <webXmlPath>src/main/webapp/WEB-INF/web-shib.xml</webXmlPath>
    232                                 <!-- web.xml for shibboleth authentication -->
     232                <!-- web.xml for shibboleth authentication -->
    233233            </properties>
    234234        </profile>
     
    242242            <resource>
    243243                <filtering>false</filtering>
    244                 <directory>src/generated/jaxb</directory>
     244                <directory>src/generated/jaxb/components</directory>
     245            </resource>
     246            <resource>
     247                <filtering>false</filtering>
     248                <directory>src/generated/jaxb/rss</directory>
    245249            </resource>
    246250            <resource>
     
    301305                <executions>
    302306                    <execution>
     307                        <id>jaxb-components</id>
    303308                        <goals>
    304309                            <goal>generate</goal>
    305310                        </goals>
     311                        <configuration>
     312                            <schemaDirectory>src/main/binding/components</schemaDirectory>
     313                            <schemaIncludes>
     314                                <include>general-component-schema.xsd</include>
     315                            </schemaIncludes>
     316                            <bindingDirectory>src/main/binding/components</bindingDirectory>
     317                            <extension>true</extension>
     318                            <generateDirectory>${basedir}/src/generated/jaxb/components</generateDirectory>
     319                            <generatePackage>clarin.cmdi.componentregistry.components</generatePackage>
     320                            <catalog>src/main/resources/catalog.cat</catalog>
     321                            <catalogResolver>org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver</catalogResolver>
     322                        </configuration>
     323                    </execution>
     324                    <execution>
     325                        <id>jaxb-rrs</id>
     326                        <goals>
     327                            <goal>generate</goal>
     328                        </goals>
     329                        <configuration>
     330                            <schemaDirectory>src/main/binding/rss</schemaDirectory>
     331                            <schemaIncludes>
     332                                <include>rss-2_0.xsd</include>
     333                            </schemaIncludes>
     334                            <bindingDirectory>src/main/binding/rss</bindingDirectory>
     335                            <extension>true</extension>
     336                            <generateDirectory>${basedir}/src/generated/jaxb/rss</generateDirectory>
     337                            <generatePackage>clarin.cmdi.componentregistry.rss</generatePackage>
     338                            <catalog>src/main/resources/catalog.cat</catalog>
     339                            <catalogResolver>org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver</catalogResolver>
     340                        </configuration>
    306341                    </execution>
    307342                </executions>
    308                 <configuration>
    309                                         <!-- assuming claring metadata project is checked out in same folder as this project -->
    310                     <schemaDirectory>src/main/binding</schemaDirectory>
    311                     <schemaIncludes>
    312                         <include>general-component-schema.xsd</include>
    313                     </schemaIncludes>
    314                     <bindingDirectory>src/main/binding</bindingDirectory>
    315                     <extension>true</extension>
    316                     <generateDirectory>${basedir}/src/generated/jaxb</generateDirectory>
    317                     <generatePackage>clarin.cmdi.componentregistry.components</generatePackage>
    318                     <catalog>src/main/resources/catalog.cat</catalog>
    319                     <catalogResolver>org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver</catalogResolver>
    320                 </configuration>
    321343            </plugin>
    322344            <plugin>
  • ComponentRegistry/trunk/ComponentRegistry/src/main/binding

    • Property svn:externals
      •  

        old new  
        1 http://svn.clarin.eu/metadata/trunk/toolkit/general-component-schema.xsd general-component-schema.xsd
         1
Note: See TracChangeset for help on using the changeset viewer.