Circular dependency error when hibernate doclet is used
-------------------------------------------------------

                 Key: BUILDR-432
                 URL: https://issues.apache.org/jira/browse/BUILDR-432
             Project: Buildr
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Rafal Rusin


Hello, 
I tried to use buildr 1.4RC2 for ODE 1.X, but it gives:

buildr package test=no

Packaging ode-bpel-epr-1.3.4-SNAPSHOT.jar
Buildr aborted!
RuntimeError : Circular dependency detected: TOP => package => build => 
ode:build => ode:test => ode:test:compile => ode:compile => ode:axis2:compile 
=> 
/home/joker/ode-1.X/bpel-connector/target/ode-bpel-connector-1.3.4-SNAPSHOT.jar 
=> ode:bpel-connector:build => 
/home/joker/ode-1.X/bpel-connector/target/classes => ode:bpel-connector:compile 
=> /home/joker/ode-1.X/bpel-runtime/target/ode-bpel-runtime-1.3.4-SNAPSHOT.jar 
=> ode:bpel-runtime:build => /home/joker/ode-1.X/bpel-runtime/target/classes => 
ode:bpel-runtime:compile => 
/home/joker/ode-1.X/bpel-store/target/ode-bpel-store-1.3.4-SNAPSHOT.jar => 
ode:bpel-store:build => /home/joker/ode-1.X/bpel-store/target/classes => 
ode:bpel-store:compile => ode:bpel-store:resources => 
/home/joker/ode-1.X/bpel-store/target/hbm.timestamp => 
/home/joker/ode-1.X/dao-hibernate/target/ode-dao-hibernate-1.3.4-SNAPSHOT.jar 
=> ode:dao-hibernate:build => /home/joker/ode-1.X/dao-hibernate/target/classes 
=> ode:dao-hibernate:compile => ode:dao-hibernate:resources => 
/home/joker/ode-1.X/dao-hibernate/target/hbm.timestamp => 
/home/joker/ode-1.X/dao-hibernate/target/ode-dao-hibernate-1.3.4-SNAPSHOT.jar


Given following patch for ODE, I was able to resolve it (package compiled 
properly). But obviously tests didn't pass. 


diff --git a/Rakefile b/Rakefile
index 78c046b..c1c5dbf 100644
--- a/Rakefile
+++ b/Rakefile
@@ -264,18 +264,18 @@ define "ode" do
   define "dao-hibernate" do
     compile.with projects("bpel-api", "bpel-dao", "bpel-ql", "utils"),
       COMMONS.lang, COMMONS.logging, JAVAX.transaction, HIBERNATE, DOM4J
-    resources hibernate_doclet(:package=>"org.apache.ode.daohib.bpel.hobj", 
:excludedtags=>"@version,@author,@todo")
+#    resources hibernate_doclet(:package=>"org.apache.ode.daohib.bpel.hobj", 
:excludedtags=>"@version,@author,@todo")
 
     # doclet does not support not-found="ignore"
-    task "hbm-hack" do |task|
-      process_instance_hbm_file = 
project.path_to("target/classes/org/apache/ode/daohib/bpel/hobj/HProcessInstance.hbm.xml")
 
-      process_instance_hbm = File.read(process_instance_hbm_file)
-      if !process_instance_hbm.include? "not-found=\"ignore\""
-        
process_instance_hbm.insert(process_instance_hbm.index("class=\"org.apache.ode.daohib.bpel.hobj.HProcess\"")
 - 1, "not-found=\"ignore\" ")
-        File.open(process_instance_hbm_file, "w") { |f| f << 
process_instance_hbm }
-      end
-    end
-    task "compile" => "hbm-hack"
+#    task "hbm-hack" do |task|
+#      process_instance_hbm_file = 
project.path_to("target/classes/org/apache/ode/daohib/bpel/hobj/HProcessInstance.hbm.xml")
 
+#      process_instance_hbm = File.read(process_instance_hbm_file)
+#      if !process_instance_hbm.include? "not-found=\"ignore\""
+#        
process_instance_hbm.insert(process_instance_hbm.index("class=\"org.apache.ode.daohib.bpel.hobj.HProcess\"")
 - 1, "not-found=\"ignore\" ")
+#        File.open(process_instance_hbm_file, "w") { |f| f << 
process_instance_hbm }
+#      end
+#    end
+#    task "compile" => "hbm-hack"
 
     test.with project("bpel-epr"), BACKPORT, COMMONS.collections, 
COMMONS.lang, DERBY, COMMONS.logging, LOG4J, SLF4J,
       GERONIMO.transaction, GERONIMO.kernel, GERONIMO.connector, 
JAVAX.connector, JAVAX.ejb, SPRING


The interesting thing is that similar hibernate doclet worked well for 
bpel-store. 
Do you have some ideas why this doesn't work?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to