bonjour, j ai un probleme quand je fais un maven install
ou clean du chap 8 du livre maven guide definition
je fais un
j ai comme error
Code : Sélectionner tout - Visualiser dans une fenêtre à part mvn install
ou un mv cleanC:\apps\maven\simple-parent>mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Chapter 8 Simple Parent Project
[INFO] Chapter 8 Simple Object Model
[INFO] Simple Weather API
[INFO] Simple Persistence API
[INFO] Simple Command Line Tool
[INFO] Simple Web Application
[INFO] ------------------------------------------------------------------------
[INFO] Building Chapter 8 Simple Parent Project
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-site-plugin
POM Location: C:\Users\admin\.m2\repository\org\apache\maven\plugins\maven-site-
plugin\2.0-beta-7\maven-site-plugin-2.0-beta-7.pom
Reason: Not a v4.0.0 POM. for project org.apache.maven.plugins:maven-site-plugin
at C:\Users\admin\.m2\repository\org\apache\maven\plugins\maven-site-plugin\2.0
-beta-7\maven-site-plugin-2.0-beta-7.pom
voici mon pom[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Chapter 7 Simple Parent Project
[INFO] Chapter 8 Simple Object Model
[INFO] Simple Weather API
[INFO] Simple Persistence API
[INFO] Simple Command Line Tool
[INFO] Simple Web Application
[INFO] ------------------------------------------------------------------------
[INFO] Building Chapter 7 Simple Parent Project
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-clean-plugin
POM Location: C:\Users\admin\.m2\repository\org\apache\maven\plugins\maven-clean
-plugin\2.2\maven-clean-plugin-2.2.pom
Reason: Not a v4.0.0 POM. for project org.apache.maven.plugins:maven-clean-plugi
n at C:\Users\admin\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2
.2\maven-clean-plugin-2.2.pom
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sat Mar 05 15:30:46 EST 2011
[INFO] Final Memory: 1M/15M
je debute avec maven
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105 <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>org.sonatype.mavenbook.ch07</groupId> <artifactId>simple-parent</artifactId> <packaging>pom</packaging> <version>1.0</version> <name>Chapter 8 Simple Parent Project</name> <modules> <module>simple-command</module> <module>simple-model</module> <module>simple-weather</module> <module>simple-persist</module> <module>simple-webapp</module> </modules> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.1</version> <configuration> <components> <component> <name>hbm2ddl</name> <implementation>annotationconfiguration</implementation> </component> </components> </configuration> <dependencies> <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>${hsqldb.version}</version> </dependency> </dependencies> </plugin> </plugins> </pluginManagement> </build> <properties> <hibernate.annotations.version>3.3.0.ga</hibernate.annotations.version> <hsqldb.version>1.8.0.7</hsqldb.version> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>2.0.7</version> </dependency> <dependency> <groupId>org.apache.velocity</groupId> <artifactId>velocity</artifactId> <version>1.5</version> </dependency> <dependency> <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>${hibernate.annotations.version}</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-commons-annotations</artifactId> <version>${hibernate.annotations.version}</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId> <version>3.2.5.ga</version> <exclusions> <exclusion> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> </exclusion> </exclusions> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project>
je sais vraiment pas ce qui se passe
merci d avance
Partager