Changeset 1855


Ignore:
Timestamp:
04/04/12 13:41:03 (12 years ago)
Author:
herste
Message:

bla

Location:
vlo/trunk
Files:
1 deleted
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • vlo/trunk/src/main/assembly/installPackageBuilder.xml

    r1854 r1855  
    4848            <directory>vlo_webapp/target</directory>
    4949            <includes>
    50                 <include>*jar-with-dependencies.jar</include>
     50                <include>*.jar</include>
    5151            </includes>
    5252            <outputDirectory>bin/importer</outputDirectory>
     53        </fileSet>
     54        <!-- Dependencies -->
     55        <fileSet>
     56            <directory>vlo_webapp/target/lib</directory>
     57            <includes>
     58                <include>*.*</include>
     59            </includes>
     60            <outputDirectory>bin/importer/lib</outputDirectory>
    5361        </fileSet>
    5462        <!-- run script -->
     
    6977            <outputDirectory>bin/importer</outputDirectory>
    7078        </fileSet>
    71         <fileSet><!-- TODO: Make NOT NEEDED, need properties instead! -->
     79        <fileSet>
    7280            <directory>vlo_webapp/src/main/resources</directory>
    7381            <includes>
  • vlo/trunk/vlo_webapp/pom.xml

    r1853 r1855  
    1 
    21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    32         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     
    54    <groupId>eu.clarin.cmdi</groupId>
    65    <artifactId>vlo</artifactId>
    7     <packaging>war</packaging>
     6    <packaging>${packaging}</packaging>
    87    <version>2.5-SNAPSHOT</version>
    98    <name>VirtualLanguageObservatory</name>
     
    136135                </configuration>
    137136            </plugin>
    138             <!--
    139               Assembly helper to create the Importer tool a command line tool which can help fill in a solr server with cmdi
    140               files. Build the tool with: mvn -Dpackaging=jar -Dmaven.test.skip=true assembly:assembly This creates in
    141               "target" a vlo_solr-1.0-SNAPSHOT-Importer directory with a bin and share directory. You can start the tool from
    142               the bin dir.
    143             -->
    144             <!--<plugin>
    145                 <groupId>org.apache.maven.plugins</groupId>
    146                 <artifactId>maven-assembly-plugin</artifactId>
    147                 <configuration>
    148                     <attach>false</attach>
    149                     <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
    150                     <descriptors>
    151                         <descriptor>src/main/assembly/importer.xml</descriptor>
    152                     </descriptors>
    153                 </configuration>
    154             </plugin>-->
    155137            <plugin>
    156138                <groupId>org.apache.maven.plugins</groupId>
     
    165147                    </execution>
    166148                </executions>
     149                <configuration>
     150                    <classesDirectory>target/classes</classesDirectory>
     151                    <includes>
     152                        <include>**/*</include>
     153                    </includes>
     154                    <archive>
     155                        <index>false</index>
     156                        <manifest>
     157                            <addClasspath>true</addClasspath>
     158                            <classpathPrefix>. lib/</classpathPrefix>
     159                            <mainClass>eu.clarin.cmdi.vlo.importer.MetadataImporter</mainClass>
     160                        </manifest>
     161                    </archive>
     162                </configuration>
    167163            </plugin>
    168164            <plugin>
    169                 <artifactId>maven-assembly-plugin</artifactId>
    170                 <version>2.3</version>
    171                 <configuration>
    172                     <descriptorRefs>
    173                         <descriptorRef>jar-with-dependencies</descriptorRef>
    174                     </descriptorRefs>
    175                 </configuration>
     165                <groupId>org.apache.maven.plugins</groupId>
     166                <artifactId>maven-dependency-plugin</artifactId>
    176167                <executions>
    177168                    <execution>
    178                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
    179                         <phase>package</phase> <!-- bind to the packaging phase -->
     169                        <id>copy-dependencies</id>
     170                        <phase>prepare-package</phase>
    180171                        <goals>
    181                             <goal>single</goal>
     172                            <goal>copy-dependencies</goal>
    182173                        </goals>
     174                        <configuration>
     175                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
     176                            <overWriteReleases>false</overWriteReleases>
     177                            <overWriteSnapshots>false</overWriteSnapshots>
     178                            <overWriteIfNewer>true</overWriteIfNewer>
     179                        </configuration>
    183180                    </execution>
    184181                </executions>
    185182            </plugin>
    186 
    187183        </plugins>
    188184    </build>
  • vlo/trunk/vlo_webapp/src/test/resources/applicationContext.xml

    r1849 r1855  
    22<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    33       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
     4
     5    <!--
     6                        Property placeholder that allows init parameters defined in servlet context to be used as property values
     7                (in this case admin users list)
     8                    -->
     9    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
     10        <property name="location" value="classpath:application.properties" />
     11    </bean>
     12
    413    <bean id="configuration" class="eu.clarin.cmdi.vlo.Configuration" factory-method="getInstance">
    5         <property name="solrUrl" value="http://localhost:8080/vlo_solr" />
     14        <property name="solrUrl" value="${eu.clarin.cmdi.vlo.solrUrl}" />
     15        <!--<property name="solrUrl" value="http://localhost:8080/vlo_solr" />-->
    616        <!--    <property name="solrUrl" value="http://lux16.mpi.nl:8080/vlo_solr" />-->
    717        <!--    <property name="solrUrl" value="http://catalog.clarin.eu:8080/vlo_solr" />-->
     18        <property name="importerConfigFile" value="${eu.clarin.cmdi.vlo.importerConfigFile}" />
     19
    820        <property name="IMDIBrowserUrl" value="http://corpus1.mpi.nl/ds/imdi_browser?openpath=" />
    921        <property name="handleServerUrl" value="http://hdl.handle.net/" />
Note: See TracChangeset for help on using the changeset viewer.