Skip to content
Browse files

Fix build deps and enforcement; fix class init order problem with log…

…ging
  • Loading branch information...
1 parent 0cfa9c2 commit 857011a53d418675a3ab7d4b8d15713d507678bd @dmlloyd dmlloyd committed Oct 13, 2009
Showing with 35 additions and 5 deletions.
  1. +33 −3 pom.xml
  2. +2 −2 src/main/java/org/jboss/vfs/spi/RealFileSystem.java
View
36 pom.xml
@@ -30,7 +30,7 @@
<properties>
<version.jboss.common.core>2.2.13.GA</version.jboss.common.core>
- <version.jboss.logging>2.1.0.GA</version.jboss.logging>
+ <version.jboss.logging>2.2.0.CR1</version.jboss.logging>
<version.jboss.test>1.1.0.GA</version.jboss.test>
<version.junit>4.4</version.junit>
</properties>
@@ -56,8 +56,8 @@
<version>2.0</version>
<configuration>
<debug>true</debug>
- <source>1.5</source>
- <target>1.5</target>
+ <source>1.6</source>
+ <target>1.6</target>
</configuration>
</plugin>
<!-- define that we wish to create src jars -->
@@ -72,6 +72,28 @@
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0-beta-1</version>
+ <executions>
+ <execution>
+ <id>enforce-java-maven-versions</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireJavaVersion>
+ <version>1.6</version>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -128,11 +150,19 @@
<groupId>org.jboss</groupId>
<artifactId>jboss-common-core</artifactId>
<version>${version.jboss.common.core}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-spi</artifactId>
<version>${version.jboss.logging}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-log4j</artifactId>
+ <version>${version.jboss.logging}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.test</groupId>
View
4 src/main/java/org/jboss/vfs/spi/RealFileSystem.java
@@ -39,13 +39,13 @@
*/
public final class RealFileSystem implements FileSystem {
+ private static final Logger log = Logger.getLogger("org.jboss.vfs.real");
+
/**
* The root real filesystem (singleton instance).
*/
public static final RealFileSystem ROOT_INSTANCE = new RealFileSystem(new File(""));
- private static final Logger log = Logger.getLogger("org.jboss.vfs.real");
-
private final File realRoot;
/**

0 comments on commit 857011a

Please sign in to comment.
Something went wrong with that request. Please try again.