-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Error While building hibernate core from source using Maven
PostPosted: Fri Sep 19, 2008 12:32 pm 
Newbie

Joined: Wed Apr 30, 2008 10:36 am
Posts: 4
Location: Germany
Is the SVN trunk broken or i am doing something wrong .. have been trying to build the core package since yesterday .. one of the test always fails with the following error

Code:
org.apache.maven.BuildFailureException: There are test failures.

Please refer to ../workspace/hibernate-core/testsuite/target/surefire-reports for the individual test results.
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.


And if i execute maven with the option skip test set to true mvn -Dmaven.test.skip=true instal then it shouts about some missing jar file in the jboss maven repository

Code:
Downloading: http://repository.jboss.com/maven2/org/slf4j/jcl-over-slf4j/1.4.2/jcl-over-slf4j-1.4.2.pom
Downloading: http://snapshots.jboss.org/maven2/org/slf4j/jcl-over-slf4j/1.4.2/jcl-over-slf4j-1.4.2.pom
Downloading: http://repo1.maven.org/maven2/org/slf4j/jcl-over-slf4j/1.4.2/jcl-over-slf4j-1.4.2.pom
Downloading: http://repository.jboss.com/maven2/org/slf4j/jcl-over-slf4j/1.4.2/jcl-over-slf4j-1.4.2.jar
Downloading: http://snapshots.jboss.org/maven2/org/slf4j/jcl-over-slf4j/1.4.2/jcl-over-slf4j-1.4.2.jar
Downloading: http://repo1.maven.org/maven2/org/slf4j/jcl-over-slf4j/1.4.2/jcl-over-slf4j-1.4.2.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.slf4j:jcl-over-slf4j:jar:1.4.2

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.slf4j -DartifactId=jcl-over-slf4j -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.slf4j -DartifactId=jcl-over-slf4j -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
     1) org.hibernate:hibernate-tutorials:pom:3.4.0-SNAPSHOT
     2) org.slf4j:jcl-over-slf4j:jar:1.4.2

----------
1 required artifact is missing.

for artifact:
  org.hibernate:hibernate-tutorials:pom:3.4.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  jboss-snapshot (http://snapshots.jboss.org/maven2),
  jboss (http://repository.jboss.com/maven2)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.