Fala galera, preciso de uma ajuda aqui, já tentei de diversas formas, mas não consegui fazer funcionar.
To iniciando com maven agora e estou tentando fazer um projetinho com javaFX, até ai tudo bem, porém tive alguns problemas na hora de incluir umas dependências do JPA no meu pom.xml:
Alguém sabe quais dependências eu devo incluir?
Segue meu pom.xml:
[code]
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.tecway</groupId>
<artifactId>gerenciador-loja</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>gerenciador-loja</name>
<description>Gerencia o caixa e o controle de estoque da loja</description>
<dependencies>
<!-- Data Source -->
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency>
<!-- LOG4J -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.9</version>
</dependency>
<!-- JAVA FX 2.2 (Provided - para rodar no RAD) -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>jfxrt</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
<!-- DRIVER MYSQL -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.20</version>
</dependency>
<!-- JAVAEE5 -->
<dependency>
<groupId>javax.javaee</groupId>
<artifactId>javaee</artifactId>
<version>6.0-alpha-1</version>
</dependency>
<!-- Hibbernate -->
<dependency>
<groupId>hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.4.0.GA</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin
</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<configuration>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target>
<ant antfile="${basedir}/ant/build_32bit.xml" />
<ant antfile="${basedir}/ant/build_64bit.xml" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<distributionManagement>
<site>
<id>dev.tecway.com.br</id>
<url>http://localhost/br.com.porto.tecway/gerenciador-loja</url>
</site>
</distributionManagement>
[/code]
No momento estou recebendo o seguinte erro:
Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named lojaJPA: Provider named org.hibernate.ejb.HibernatePersistence threw unexpected exception at create EntityManagerFactory:
java.lang.IllegalAccessError
java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory
Desde já , agradeço.