Bonjour,
J'ai un tas de plugins avec ses features et j'ai utilisé Maven avec succès pour construire mes update sites.
Maintenant je passe à la création d'un product Eclipse pour avoir un branding un peu personnalisé, d'ailleurs il marche bien, je génére bien mon Eclipse à partir de ce plugin product.
J'ai donc ajouté un pom à mon plugin product et un pom à la feature associée.
Le pom product :
Code XML : 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 <?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>pouet.workbench</groupId> <artifactId>pouet.product</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>pom</packaging> <properties> <version>1.0.0</version> </properties> <repositories> <repository> <id>eclipse-kepler</id> <layout>p2</layout> <url>http://download.eclipse.org/releases/kepler</url> </repository> </repositories> <build> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>0.19.0</version> </plugin> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-p2-director-plugin</artifactId> <version>0.19.0</version> <executions> <execution> <id>materialize-products</id> <goals> <goal>materialize-products</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>
le pom feature:
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <artifactId>pouet.product.feature</artifactId> <packaging>eclipse-feature</packaging> <parent> <groupId>pouet.workbench</groupId> <artifactId>pouet.product</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> </project>
J'ai cette erreur :
J'ai regardé dans le code de Tycho:Caused by: java.lang.IllegalStateException: Tycho build extension not configured for MavenProject: pouet.workbench:pouet.product:1.0.0-SNAPSHOT @ C:\Users\burguera\TestSWMavensousKepler\pouet.product\pom.xml
at org.eclipse.tycho.core.utils.TychoProjectUtils.getTargetPlatform(TychoProjectUtils.java:63)
at org.eclipse.tycho.p2.facade.RepositoryReferenceTool.addTargetPlatformRepository(RepositoryReferenceTool.java:116)
...
ou CTX_TARGET_PLATFORM = targetPlatform
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 public static TargetPlatform getTargetPlatform(MavenProject project) { TargetPlatform targetPlatform = (TargetPlatform) project.getContextValue(TychoConstants.CTX_TARGET_PLATFORM); if (targetPlatform == null) { throw new IllegalStateException(TYCHO_NOT_CONFIGURED + project.toString()); } return targetPlatform; }
je comprends pas parce que j'ai une target platform définit :
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <repository> <id>eclipse-kepler</id> <layout>p2</layout> <url>http://download.eclipse.org/releases/kepler</url> </repository>
une idée ?
j'suis un peu perdue là ...
Merci
Partager