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: repository.jboss.org due to an error: Error transferring file: Connection refused
[INFO] Repository 'repository.jboss.org' 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 snapshots.jboss.org
[INFO] snapshot com.sun.istack:istack-commons-runtime:1.1-SNAPSHOT: checking for updates from maven2-repository.dev.java.net
Downloading: http://download.java.net/maven/2//com/sun/istack/istack-commons-runtime/1.1-SNAPSHOT/istack-commons-runtime-1.1-SNAPSHOT.pom
[INFO] snapshot com.sun.istack:istack-commons:1.1-SNAPSHOT: checking for updates from snapshots.jboss.org
[INFO] snapshot com.sun.istack:istack-commons:1.1-SNAPSHOT: checking for updates from maven2-repository.dev.java.net
Downloading: http://download.java.net/maven/2//com/sun/istack/istack-commons/1.1-SNAPSHOT/ista
@emmanuelbernard
emmanuelbernard / build.sh
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.
View build.sh
#!/bin/bash
#run ./build.sh 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
#
# ./build.sh
#the cloned repo will live in ../DIRECTORY_ROOT/REPO_DIRECTORY
DIRECTORY_ROOT="../privatebuild/"
@emmanuelbernard
emmanuelbernard / sync_repo.sh
Created Nov 7, 2010
Synchronize all changes (incl new branches and tags) from repo A to repo B, where B is a bare repo.
View sync_repo.sh
#!/bin/bash
#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
@Deployment
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" ) )
;
}
View HibernateSessionInvocationHandler.java
package org.jboss.seam.persistence;
import java.io.Serializable;
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-127.0.0.1-8080-1) deploy, ctxPath=/jmx-console
2010-12-09 17:57:28,283 INFO [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) 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-127.0.0.1-8080-1) ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
2010-12-09 17:57:28,292 INFO [com.arjuna.ats.arjuna] (http-127.0.0.1-8080-1) ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
2010-12-09 17:57:28,390 DEBUG [org.hibernate.impl.SessionImpl] (http-127.0.0.1-8080-1) opened session at timestamp: 5291679123005440
2010-12-09 17:57:28,390 TRACE [org.hibernate.jdbc.JDBCContext] (http-127.0.0.1-8080-1) TransactionFactory reported no active transaction; Synchronization not registered
2010-12-09 17:57:28,390 DEBUG [org.hiberna
View ContactsService.java
public String rebuildIndex() throws InterruptedException {
FullTextEntityManager fullTextEntityManager = Search
.getFullTextEntityManager(entityManager);
Future<?> future = fullTextEntityManager.createIndexer()
.batchSizeToLoadObjects(30).threadsForSubsequentFetching(8)
.threadsToLoadObjects(4).cacheMode(CacheMode.NORMAL).start();
return future.isDone() ? "Index rebuilt successfully"
: "Index recreation in progress";
}
View gist:764938
Missing:
----------
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: