File: 0002-disable-tests-for-entitymanager.patch

package info (click to toggle)
libhibernate3-java 3.6.10.Final-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 35,272 kB
  • sloc: java: 351,526; xml: 24,424; sh: 85; perl: 65; makefile: 24; sql: 6
file content (98 lines) | stat: -rw-r--r-- 3,840 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
From: Torsten Werner <twerner@debian.org>
Date: Tue, 15 Jun 2010 23:08:01 +0200
Subject: [PATCH] disable tests for entitymanager

The following B-D are missing:

org.jboss.shrinkwrap:shrinkwrap-api
org.jboss.shrinkwrap:shrinkwrap-impl-base
org.hibernate:hibernate-jpamodelgen
---
 entitymanager/pom.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

--- a/project/hibernate-entitymanager/pom.xml
+++ b/project/hibernate-entitymanager/pom.xml
@@ -74,6 +74,7 @@
             <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
+<!-- missing in Debian
         <dependency>
             <groupId>org.jboss.shrinkwrap</groupId>
             <artifactId>shrinkwrap-api</artifactId>
@@ -87,24 +88,29 @@
             <scope>test</scope>
         </dependency>
         <dependency>
+-->
             <!--
                 Only really needed for the antrun plugin defined below (which in turn is only really needed
                 to work around a missing feature on the compile plugin; lovely no?).  However I have not
                 found a way to declare this dependency local to the antrun plugin and then reference it
                 from the <javac />'s <classpath /> :(
             -->
+<!-- missing in Debian
             <groupId>${project.groupId}</groupId>
             <artifactId>hibernate-jpamodelgen</artifactId>
             <version>1.0.0.Final</version>
             <scope>test</scope>
             <exclusions>
                 <exclusion>
+-->
                     <!-- Use the jpa-api defined here, crossing fingers they match up signature-wise -->
+<!-- missing in Debian
                     <groupId>org.hibernate.javax.persistence</groupId>
                     <artifactId>hibernate-jpa-2.0-api</artifactId>
                 </exclusion>
             </exclusions>
         </dependency>
+-->
     </dependencies>
 
     <build>
@@ -137,10 +143,13 @@
                     </bytecodeInjections>
                 </configuration>
             </plugin>
+<!--
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-antrun-plugin</artifactId>
+-->
                 <!-- Define one configuration outside executions and without a phase in order to allow 'mvn antrun:run' -->
+<!--
                 <configuration>
                     <tasks>
                         <property name="target.dir" value="${project.build.directory}/generated-src/jpamodelgen"/>
@@ -157,7 +166,9 @@
                         <id>process_annotations</id>
                         <phase>process-test-sources</phase>
                         <configuration>
+-->
                             <!-- No additional configuration needed. Unbound configuration gets inherited. (Feels wrong, but that's how it is) -->
+<!--
                             <testSourceRoot>${project.build.directory}/generated-src/jpamodelgen</testSourceRoot>
                         </configuration>
                         <goals>
@@ -166,10 +177,12 @@
                     </execution>
                 </executions>
             </plugin>
+-->
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
+                    <skip>true</skip>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
@@ -178,6 +191,7 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
+                    <skipTests>true</skipTests>
                     <excludes>
                         <exclude>**/*TestCase.java</exclude>
                     </excludes>