voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
public class BusAcntsHome extends HibernateDaoSupport implements  AddrsDao{
 
	public  BusAcnts getBusAcnts(String blklstWrngInd) {
		return (BusAcnts) getHibernateTemplate().get(BusAcnts.class, blklstWrngInd);
 
 
	    }
    }
et je compile mon projet avec Maven et voici mon fichier pom.xml:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
 
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.anani</groupId>
  <artifactId>anani</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>firstcall Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
   <!--   <dependency>
       <groupId>hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>3.0.3</version>
      <scope>compile</scope>
   </dependency>-->
   <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>3.2.5.ga</version>
      <scope>compile</scope>
    </dependency>
     <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.14</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
		 <groupId>commons-logging</groupId>
		 <artifactId>commons-logging</artifactId>
		 <version>[1.0.4,2.0)</version>
		 <scope>compile</scope>
	 </dependency>
     <dependency>
      <groupId>commons-dbcp</groupId>
      <artifactId>commons-dbcp</artifactId>
      <version>1.2.2</version>
    </dependency>
    <dependency>
	<groupId>com.anani</groupId>
	<artifactId>spring</artifactId>
	<version>2.0.5</version>
	<scope>runtime</scope>
</dependency>
  </dependencies>
  <build>
    <finalName>ananil</finalName>
    <plugins>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>hibernate3-maven-plugin</artifactId>
      <configuration>
        <componentProperties>
          <export>false</export>
          <update>false</update>
          <outputfilename>create-schema.sql</outputfilename>
        </componentProperties>
      </configuration>
    </plugin>
  </plugins>
  </build>
</project>
et j'ai cette erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
 
D:\EIS_DTK\workspace\anani\src\main\java\com\anani\dao\hibernate\BusAcntsHome.java:[37,34] cannot f
ind symbol
symbol: class HibernateDaoSupport
public class BusAcntsHome extends HibernateDaoSupport implements  AddrsDao{
 
D:\EIS_DTK\workspace\first\src\main\java\anani\dao\hibernate\BusAcntsHome.java:[40,34] cannot f
ind symbol
symbol  : method getHibernateTemplate()
location: class com.anani.dao.hibernate.BusAcntsHome
comment faire pour avoir les jar HibernateDaoSupport
merci