Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] [Maven & Eclipse]

Thank you for all your answers !

I’ll come back to this subject as soon as I resolve another issue.

 

Because I’ve some issues with the branding (exported icons, about dialog…) I restart the dev of my product. And it works well :D !

Now I want to generate the same think with maven.

 

Without speaking about plugins (those I want to add with P2), I want just generate the product.

I’ve a plugin with the .product file, the plugin is based on a feature (product definition).

 

So, I’ve added 2 pom.xml

-       1 for the product

<?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>

  <parent>

          <groupId>pouet.workbench</groupId>

          <artifactId>Maven_EclipseProduct</artifactId>

          <version>1.6.0-SNAPSHOT</version>

          <relativePath>../Maven_EclipseProduct</relativePath>

   </parent>

  

   <artifactId>pouet.product</artifactId>

   <packaging>eclipse-repository</packaging>

   <repositories>

         <repository>

                 <id>eclipse-luna</id>

                 <layout>p2</layout>

                 <url>http://download.eclipse.org/releases/luna</url>

          </repository>             

  </repositories>

  <build>

    <plugins>

      <plugin>

        <groupId>org.eclipse.tycho</groupId>

        <artifactId>tycho-p2-repository-plugin</artifactId>

        <version>0.19.0</version>

        <configuration>

          <includeAllDependencies>true</includeAllDependencies>

        </configuration>

      </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>

          <execution>

            <id>archive-products</id>

            <goals>

              <goal>archive-products</goal>

            </goals>

          </execution>

        </executions>

      </plugin>

    </plugins>

  </build>

  

</project>

-       1 for the feature

<?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>Maven_EclipseProduct</artifactId>

  <version>1.6.0-SNAPSHOT</version>

  <relativePath>../Maven_EclipseProduct</relativePath>

  </parent>

</project>

 

 

And a Maven parent project with this pom.xml:

<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>Maven_EclipseProduct</artifactId>

  <version>1.6.0-SNAPSHOT</version>

  <packaging>pom</packaging>

  <modules>

       <module>../pouet.product</module>

       <module>../pouet.feature</module>

  </modules>

</project>

 

And I don’t understand why I’ve this errors:

[ERROR]   The project pouet.workbench:pouet.product:1.6.0-SNAPSHOT (C:\pouet.product\pom.xml) has 1 error

[ERROR]     Unknown packaging: eclipse-repository @ line 13, column 13

[ERROR]  

[ERROR]   The project pouet.workbench:pouet.product.feature:1.6.0-SNAPSHOT (C:\pouet.product.feature\pom.xml) has 1 error

[ERROR]     Unknown packaging: eclipse-feature @ line 6, column 14

 

If you have any idea …. I’m looking for this issue for a long time … I’ve tried to restart from scratch … I’ve searched … nothing L

FYI, I’m based on this tuto : http://www.vogella.com/tutorials/EclipseTycho/article.html#exercisetychoproduct

 

Thank you for your help !

I’ll come back with the p2 issue later J

 

Chris


Back to the top