Hello ! I'm a newbie with Maven. I've some Eclipse plugins which are installed under a CDT Eclipse.
I wanted to use Maven ... :) I've done already the "install" of Update site of my plugins with maven technology and it works very fine ! I've added a product to make my branding, so I've a plugin product and its feature to generate my Eclipse and it's ok. Now I want to do the same with maven. So I added a pom to my product plugin and a pom to the associated feature, see the poms below: Product pom : [CODE] <?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> [/CODE] Feature pom : [CODE] <?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> [/CODE] I've this issue : 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) ... I looked in the code of Tycho: [CODE] 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; } [/CODE] Where CTX_TARGET_PLATFORM = targetPlatform I don't understand because I've a target platform define like this : <repository> < id>eclipse-kepler</id> < layout>p2</layout> < url>http://download.eclipse.org/releases/kepler</url> < /repository> I really don't understand where is the trouble ??? Any idea ? Thank you ! Chris
_______________________________________________ m2e-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users
