incubator-hise-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wi...@apache.org
Subject svn commit: r956827 - /incubator/hise/trunk/hise-services/pom.xml
Date Tue, 22 Jun 2010 09:05:14 GMT
Author: witek
Date: Tue Jun 22 09:05:14 2010
New Revision: 956827

URL: http://svn.apache.org/viewvc?rev=956827&view=rev
Log:
Removed generating DDL using Hibernate, sample profile using openjpa created.

Modified:
    incubator/hise/trunk/hise-services/pom.xml

Modified: incubator/hise/trunk/hise-services/pom.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-services/pom.xml?rev=956827&r1=956826&r2=956827&view=diff
==============================================================================
--- incubator/hise/trunk/hise-services/pom.xml (original)
+++ incubator/hise/trunk/hise-services/pom.xml Tue Jun 22 09:05:14 2010
@@ -1,22 +1,12 @@
 <?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.
-  -->
+    <!--
+        ~ 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>
@@ -45,39 +35,45 @@
                     </execution>
                 </executions>
             </plugin>
-
-      <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>openjpa-enhancer</id>
-            <phase>process-classes</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <property name="maven.runtime.classpath" refid="maven.compile.classpath"/>
-                <path id="classpath">
-		   <pathelement path="${maven.runtime.classpath}"/>
-		</path>
-		<taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask" classpathref="classpath"/>
-                <openjpac>
-		    <fileset dir="${basedir}/src/main">
-                <include name="org/apache/hise/dao/*.java" />
-		    </fileset>
-		    <classpath>
-		     <pathelement location="${basedir}/target/classes"/>
-		     <pathelement path="${maven.runtime.classpath}"/>
-		    </classpath>
-		 </openjpac>
-              </tasks>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>openjpa-enhancer</id>
+                        <phase>process-classes</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <property name="maven.runtime.classpath" refid="maven.compile.classpath"
/>
+                                <path id="classpath">
+                                    <pathelement path="${maven.runtime.classpath}" />
+                                </path>
+                                <taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask"
classpathref="classpath" />
+                                <openjpac>
+                                    <fileset dir="${basedir}/src/main">
+                                        <include name="org/apache/hise/dao/*.java" />
+                                    </fileset>
+                                    <classpath>
+                                        <pathelement location="${basedir}/target/classes"
/>
+                                        <pathelement path="${maven.runtime.classpath}"
/>
+                                    </classpath>
+                                </openjpac>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
+    <!-- 
+    To generate DDL script:
+    - uncomment Profile below
+    - set required JDBC Driver
+    - execute: mvn openjpa:sql -PgenerateSql from the command line
+    -->
+    <!-- 
     <profiles>
         <profile>
             <id>generateSql</id>
@@ -85,54 +81,33 @@
                 <plugins>
                     <plugin>
                         <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>hibernate3-maven-plugin</artifactId>
-                        <version>2.2</version>
-                        <executions>
-                            <execution>
-                                <phase>process-classes</phase>
-                                <goals>
-                                    <goal>hbm2ddl</goal>
-                                </goals>
-                            </execution>
-                        </executions>
+                        <artifactId>openjpa-maven-plugin</artifactId>
+                        <version>1.1</version>
                         <configuration>
-                            <components>
-                                <component>
-                                    <name>hbm2ddl</name>
-                                    <!--
-                                    <implementation>annotationconfiguration</implementation>
-                                    -->
-                                </component>
-                                <component>
-                                    <name>hbmdoc</name>
-                                </component>
-                            </components>
-                            <componentProperties>
-                                <configurationfile>/src/hibernate/hibernate.cfg.xml</configurationfile>
-                                <outputfilename>human_task_create_schema.sql</outputfilename>
-                                <drop>true</drop>
-                                <create>true</create>
-                                <export>false</export>
-                                <format>true</format>
-                            </componentProperties>
+                            <sqlAction>build</sqlAction>
+                            <sqlFile>target/human_task_create_schema.sql</sqlFile>
+                            <connectionDriverName>com.microsoft.sqlserver.jdbc.SQLServerDriver</connectionDriverName>
                         </configuration>
+                        <dependencies>
+                            <dependency>
+                                <groupId>com.microsoft.sqlserver</groupId>
+                                <artifactId>sqljdbc</artifactId>
+                                <version>1.2</version>
+                            </dependency>
+                        </dependencies>
                     </plugin>
                 </plugins>
             </build>
         </profile>
     </profiles>
+    -->
     <dependencies>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
             <version>1.5.2</version>
             <!--
-            <exclusions>
-                <exclusion>
-                    <groupId>log4j</groupId>
-                    <artifactId>log4</artifactId>
-                </exclusion>
-            </exclusions>
+                <exclusions> <exclusion> <groupId>log4j</groupId>
<artifactId>log4</artifactId> </exclusion> </exclusions>
             -->
         </dependency>
         <dependency>
@@ -230,60 +205,55 @@
             <version>1.3</version>
         </dependency>
         <dependency>
-        	<groupId>xerces</groupId>
-        	<artifactId>xercesImpl</artifactId>
-        	<version>2.9.0</version>
+            <groupId>xerces</groupId>
+            <artifactId>xercesImpl</artifactId>
+            <version>2.9.0</version>
         </dependency>
-        <!-- 
+        <!--
+            <dependency> <groupId>org.apache.ws.security</groupId> <artifactId>wss4j</artifactId>
<version>1.5.4</version> </dependency>
+        -->
         <dependency>
-        	<groupId>org.apache.ws.security</groupId>
-        	<artifactId>wss4j</artifactId>
-        	<version>1.5.4</version>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-ws-security</artifactId>
+            <version>${cxf.version}</version>
         </dependency>
-         -->
         <dependency>
-          <groupId>org.apache.cxf</groupId>
-          <artifactId>cxf-rt-ws-security</artifactId>
-          <version>${cxf.version}</version>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-frontend-jaxws</artifactId>
+            <version>${cxf.version}</version>
         </dependency>
         <dependency>
-          <groupId>org.apache.cxf</groupId>
-          <artifactId>cxf-rt-frontend-jaxws</artifactId>
-          <version>${cxf.version}</version>
+            <groupId>net.sf.saxon</groupId>
+            <artifactId>saxon</artifactId>
+            <version>9.1.0.8</version>
         </dependency>
         <dependency>
-        	<groupId>net.sf.saxon</groupId>
-        	<artifactId>saxon</artifactId>
-        	<version>9.1.0.8</version>
+            <groupId>net.sf.saxon</groupId>
+            <artifactId>saxon-dom</artifactId>
+            <version>9.1.0.8</version>
         </dependency>
         <dependency>
-        	<groupId>net.sf.saxon</groupId>
-        	<artifactId>saxon-dom</artifactId>
-        	<version>9.1.0.8</version>
+            <groupId>net.sf.saxon</groupId>
+            <artifactId>saxon-xpath</artifactId>
+            <version>9.1.0.8</version>
         </dependency>
         <dependency>
-          <groupId>net.sf.saxon</groupId>
-          <artifactId>saxon-xpath</artifactId>
-          <version>9.1.0.8</version>
+            <groupId>net.sf.saxon</groupId>
+            <artifactId>saxon-xqj</artifactId>
+            <version>9.1.0.8</version>
         </dependency>
         <dependency>
-          <groupId>net.sf.saxon</groupId>
-          <artifactId>saxon-xqj</artifactId>
-          <version>9.1.0.8</version>
-        </dependency>
-        <dependency>
-        	<groupId>xerces</groupId>
-        	<artifactId>xercesImpl</artifactId>
-        	<version>2.9.1</version>
-        	<type>jar</type>
-        	<scope>compile</scope>
+            <groupId>xerces</groupId>
+            <artifactId>xercesImpl</artifactId>
+            <version>2.9.1</version>
+            <type>jar</type>
+            <scope>compile</scope>
         </dependency>
         <dependency>
-        	<groupId>org.apache.openjpa</groupId>
-        	<artifactId>openjpa</artifactId>
-        	<version>1.2.1</version>
+            <groupId>org.apache.openjpa</groupId>
+            <artifactId>openjpa</artifactId>
+            <version>1.2.1</version>
         </dependency>
-        
         <dependency>
             <groupId>com.h2database</groupId>
             <artifactId>h2</artifactId>
@@ -323,6 +293,5 @@
             <version>${log4j.version}</version>
             <scope>test</scope>
         </dependency>
-        
     </dependencies>
 </project>



Mime
View raw message