Skip to content

Commit

Permalink
SEAMJCR-1
Browse files Browse the repository at this point in the history
  • Loading branch information
George Gastaldi committed Mar 2, 2011
1 parent 29bee2c commit 2c4a36f
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .gitignore
@@ -1 +1,3 @@
target
target
/.project
/.settings
42 changes: 35 additions & 7 deletions impl/pom.xml
Expand Up @@ -40,16 +40,29 @@
<scope>test</scope>
</dependency>

<!--
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-weld-ee-embedded-1.1</artifactId>
<artifactId>arquillian-weld-se-embedded-1</artifactId>
<scope>test</scope>
</dependency>
-->

<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-weld-se-embedded-1</artifactId>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<scope>test</scope>
</dependency>


<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<version>1.0.1-SP1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-api</artifactId>
<version>1.0-SP1</version>
<scope>test</scope>
</dependency>

Expand All @@ -63,9 +76,24 @@
<groupId>org.jboss.seam.solder</groupId>
<artifactId>seam-solder</artifactId>
</dependency>


<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
</dependency>
</dependencies>


<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core-bom</artifactId>
<version>1.0.1-SP1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>code-coverage</id>
Expand Down
Expand Up @@ -49,7 +49,7 @@ public class RepositorySessionProducer {
* @throws RepositoryException
*/
@Produces
@JcrRepository
@JcrRepository(name="org.apache.jackrabbit.repository.home",value="target")
public Repository produceJcrRepository(InjectionPoint ip) throws RepositoryException {
JcrRepository jcrRepo = ip.getAnnotated().getAnnotation(JcrRepository.class);
return findRepository(jcrRepo);
Expand Down
Expand Up @@ -23,6 +23,7 @@

import org.jboss.arquillian.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.seam.jcr.annotations.JcrRepository;
import org.jboss.shrinkwrap.api.ArchivePaths;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
Expand All @@ -41,6 +42,7 @@ public class RepositorySessionProducerTest
{

@Inject
@JcrRepository
private Repository repository;

@Deployment
Expand Down
6 changes: 0 additions & 6 deletions pom.xml
Expand Up @@ -150,12 +150,6 @@
</profile>
<profile>
<id>jackrabbit</id>
<activation>
<property>
<name>impl</name>
<value>jackrabbit</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.jackrabbit</groupId>
Expand Down

0 comments on commit 2c4a36f

Please sign in to comment.