Skip to content

Instantly share code, notes, and snippets.

View Build failure
mvn clean org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.0:resources org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.0:generate assembly:assembly -DskipTests=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Hibernate Search
[INFO] task-segment: [clean, org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.0:resources, org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.0:generate]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory /Users/manu/projects/notbackedup/git/search/hibernate-search/target
[INFO] [jdocbook:resources {execution: default-cli}]
View HSearch mvn compile
[WARNING] repository metadata for: 'artifact org.jvnet.staxex:stax-ex' could not be retrieved from repository: due to an error: Error transferring file: Connection refused
[INFO] Repository '' will be blacklisted
[INFO] artifact org.jvnet.staxex:stax-ex: checking for updates from central
[INFO] snapshot com.sun.istack:istack-commons-runtime:1.1-SNAPSHOT: checking for updates from
[INFO] snapshot com.sun.istack:istack-commons-runtime:1.1-SNAPSHOT: checking for updates from
[INFO] snapshot com.sun.istack:istack-commons:1.1-SNAPSHOT: checking for updates from
[INFO] snapshot com.sun.istack:istack-commons:1.1-SNAPSHOT: checking for updates from
emmanuelbernard /
Created Nov 5, 2010
Run your tests on a cloned local repository. Clone or sync up your current repo with a cloned repo in ../privatebuild/reponame and run maven clean test on it.
#run ./ on another terminal window
#it will clone your existing repo and run the maven tests off this clone
#the branch tests are run from is the current branch
# ./
#the cloned repo will live in ../DIRECTORY_ROOT/REPO_DIRECTORY
emmanuelbernard /
Created Nov 7, 2010
Synchronize all changes (incl new branches and tags) from repo A to repo B, where B is a bare repo.
#Synchronize all changes (incl new branches and tags) from repo A to repo B, where B is a bare repo.
#B must be an bare clone of A (initial setup)
#A' must be a clone of A where origin points to A
#There are probably more optimized ways to do this. the advantage of this method is that no branch is deleted from the backup repo
#so the source repo is not 100% trusted
#make sure to define BACKUP_REPO and INTERMEDIARY_REPO
#define where repo B resides (Git repo URL) eg file://${HOME}/path/to/repo.git
View gist:669056
public static JavaArchive createTestArchive() {
return ShrinkWrap.create( JavaArchive.class, "test.jar" )
.addPackages( true, Holder.class.getPackage() )
.addManifestResource( "persistence.xml", ArchivePaths.create( "persistence.xml" ) )
.addManifestResource( "beans.xml", ArchivePaths.create( "beans.xml" ) )
package org.jboss.seam.persistence;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
View JBAS-8670-symlink.patch
View gist:734966
2010-12-09 17:57:22,326 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (http- deploy, ctxPath=/jmx-console
2010-12-09 17:57:28,283 INFO [com.arjuna.ats.arjuna] (http- ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
2010-12-09 17:57:28,286 INFO [com.arjuna.ats.arjuna] (http- ARJUNA-12337 TransactionStatusManagerItem host: port: 4713
2010-12-09 17:57:28,292 INFO [com.arjuna.ats.arjuna] (http- ARJUNA-12170 TransactionStatusManager started on port 4713 and host with service com.arjuna.ats.arjuna.recovery.ActionStatusService
2010-12-09 17:57:28,390 DEBUG [org.hibernate.impl.SessionImpl] (http- opened session at timestamp: 5291679123005440
2010-12-09 17:57:28,390 TRACE [org.hibernate.jdbc.JDBCContext] (http- TransactionFactory reported no active transaction; Synchronization not registered
2010-12-09 17:57:28,390 DEBUG [org.hiberna
public String rebuildIndex() throws InterruptedException {
FullTextEntityManager fullTextEntityManager = Search
Future<?> future = fullTextEntityManager.createIndexer()
return future.isDone() ? "Index rebuilt successfully"
: "Index recreation in progress";
View gist:764938
1) org.hibernate:hibernate-core:jar:3.6.1-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-core -Dversion=3.6.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: