target platform not found if building from child project with tycho





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















In my project there are multiple eclipse product files (100+ for differnt customers), I would like to build only one specific product at the time.



If I build the whole project from the root folder, the project is build correctly with all products.



cd scodi
mvn clean verify


I get an error if I try to build only one product:



cd scodi/rcp/releng/ch.scodi.client.product
mvn clean verify



[ERROR] Internal error: java.lang.RuntimeException: Could not resolve
target platform specification artifact
ch.scodi:ch.scodi.client.target:target:1.0.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: Could not resolve target platform
specification artifact
ch.scodi:ch.scodi.client.target:target:1.0.0-SNAPSHOT




I'm using tycho 1.3.0, with the tycho-pomless extension.



Root POM target declaration:



<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<target>
<artifact>
<groupId>ch.scodi</groupId>
<artifactId>ch.scodi.client.target</artifactId>
<version>1.0.0-SNAPSHOT</version>
</artifact>
</target>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>


The product pom:



<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>
<artifactId>ch.scodi.client.product</artifactId>
<packaging>eclipse-repository</packaging>
<parent>
<groupId>ch.scodi</groupId>
<artifactId>ch.scodi.rcp.releng</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho.version}</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>


Is it not possible to build only certain products?










share|improve this question































    1















    In my project there are multiple eclipse product files (100+ for differnt customers), I would like to build only one specific product at the time.



    If I build the whole project from the root folder, the project is build correctly with all products.



    cd scodi
    mvn clean verify


    I get an error if I try to build only one product:



    cd scodi/rcp/releng/ch.scodi.client.product
    mvn clean verify



    [ERROR] Internal error: java.lang.RuntimeException: Could not resolve
    target platform specification artifact
    ch.scodi:ch.scodi.client.target:target:1.0.0-SNAPSHOT -> [Help 1]
    org.apache.maven.InternalErrorException: Internal error:
    java.lang.RuntimeException: Could not resolve target platform
    specification artifact
    ch.scodi:ch.scodi.client.target:target:1.0.0-SNAPSHOT




    I'm using tycho 1.3.0, with the tycho-pomless extension.



    Root POM target declaration:



    <plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-maven-plugin</artifactId>
    <version>${tycho.version}</version>
    <extensions>true</extensions>
    </plugin>
    <plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>target-platform-configuration</artifactId>
    <version>${tycho.version}</version>
    <configuration>
    <target>
    <artifact>
    <groupId>ch.scodi</groupId>
    <artifactId>ch.scodi.client.target</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    </artifact>
    </target>
    <environments>
    <environment>
    <os>win32</os>
    <ws>win32</ws>
    <arch>x86_64</arch>
    </environment>
    </environments>
    </configuration>
    </plugin>


    The product pom:



    <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>
    <artifactId>ch.scodi.client.product</artifactId>
    <packaging>eclipse-repository</packaging>
    <parent>
    <groupId>ch.scodi</groupId>
    <artifactId>ch.scodi.rcp.releng</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../</relativePath>
    </parent>

    <build>
    <plugins>
    <plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-p2-repository-plugin</artifactId>
    <version>${tycho.version}</version>
    <configuration>
    <includeAllDependencies>true</includeAllDependencies>
    </configuration>
    </plugin>
    <plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-p2-director-plugin</artifactId>
    <version>${tycho.version}</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>


    Is it not possible to build only certain products?










    share|improve this question



























      1












      1








      1


      2






      In my project there are multiple eclipse product files (100+ for differnt customers), I would like to build only one specific product at the time.



      If I build the whole project from the root folder, the project is build correctly with all products.



      cd scodi
      mvn clean verify


      I get an error if I try to build only one product:



      cd scodi/rcp/releng/ch.scodi.client.product
      mvn clean verify



      [ERROR] Internal error: java.lang.RuntimeException: Could not resolve
      target platform specification artifact
      ch.scodi:ch.scodi.client.target:target:1.0.0-SNAPSHOT -> [Help 1]
      org.apache.maven.InternalErrorException: Internal error:
      java.lang.RuntimeException: Could not resolve target platform
      specification artifact
      ch.scodi:ch.scodi.client.target:target:1.0.0-SNAPSHOT




      I'm using tycho 1.3.0, with the tycho-pomless extension.



      Root POM target declaration:



      <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-maven-plugin</artifactId>
      <version>${tycho.version}</version>
      <extensions>true</extensions>
      </plugin>
      <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>target-platform-configuration</artifactId>
      <version>${tycho.version}</version>
      <configuration>
      <target>
      <artifact>
      <groupId>ch.scodi</groupId>
      <artifactId>ch.scodi.client.target</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      </artifact>
      </target>
      <environments>
      <environment>
      <os>win32</os>
      <ws>win32</ws>
      <arch>x86_64</arch>
      </environment>
      </environments>
      </configuration>
      </plugin>


      The product pom:



      <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>
      <artifactId>ch.scodi.client.product</artifactId>
      <packaging>eclipse-repository</packaging>
      <parent>
      <groupId>ch.scodi</groupId>
      <artifactId>ch.scodi.rcp.releng</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      <relativePath>../</relativePath>
      </parent>

      <build>
      <plugins>
      <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-p2-repository-plugin</artifactId>
      <version>${tycho.version}</version>
      <configuration>
      <includeAllDependencies>true</includeAllDependencies>
      </configuration>
      </plugin>
      <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-p2-director-plugin</artifactId>
      <version>${tycho.version}</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>


      Is it not possible to build only certain products?










      share|improve this question
















      In my project there are multiple eclipse product files (100+ for differnt customers), I would like to build only one specific product at the time.



      If I build the whole project from the root folder, the project is build correctly with all products.



      cd scodi
      mvn clean verify


      I get an error if I try to build only one product:



      cd scodi/rcp/releng/ch.scodi.client.product
      mvn clean verify



      [ERROR] Internal error: java.lang.RuntimeException: Could not resolve
      target platform specification artifact
      ch.scodi:ch.scodi.client.target:target:1.0.0-SNAPSHOT -> [Help 1]
      org.apache.maven.InternalErrorException: Internal error:
      java.lang.RuntimeException: Could not resolve target platform
      specification artifact
      ch.scodi:ch.scodi.client.target:target:1.0.0-SNAPSHOT




      I'm using tycho 1.3.0, with the tycho-pomless extension.



      Root POM target declaration:



      <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-maven-plugin</artifactId>
      <version>${tycho.version}</version>
      <extensions>true</extensions>
      </plugin>
      <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>target-platform-configuration</artifactId>
      <version>${tycho.version}</version>
      <configuration>
      <target>
      <artifact>
      <groupId>ch.scodi</groupId>
      <artifactId>ch.scodi.client.target</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      </artifact>
      </target>
      <environments>
      <environment>
      <os>win32</os>
      <ws>win32</ws>
      <arch>x86_64</arch>
      </environment>
      </environments>
      </configuration>
      </plugin>


      The product pom:



      <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>
      <artifactId>ch.scodi.client.product</artifactId>
      <packaging>eclipse-repository</packaging>
      <parent>
      <groupId>ch.scodi</groupId>
      <artifactId>ch.scodi.rcp.releng</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      <relativePath>../</relativePath>
      </parent>

      <build>
      <plugins>
      <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-p2-repository-plugin</artifactId>
      <version>${tycho.version}</version>
      <configuration>
      <includeAllDependencies>true</includeAllDependencies>
      </configuration>
      </plugin>
      <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-p2-director-plugin</artifactId>
      <version>${tycho.version}</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>


      Is it not possible to build only certain products?







      java eclipse maven tycho eclipse-pde






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 1 at 10:03







      flavio.donze

















      asked Jan 4 at 10:28









      flavio.donzeflavio.donze

      4,22492855




      4,22492855
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I'm sure this is not the maven way of building, the following workaround builds only one product.



          To build I pass the scodi.customer variable:




          mvn clean verify -Dscodi.customer=demo




          <modules>
          <module>${scodi.customer}/common/plugins</module>
          <module>${scodi.customer}/ui/plugins</module>
          <module>${scodi.customer}/rcp/features</module>
          <module>${scodi.customer}/rcp/releng</module>
          </modules>
          <build>
          <plugins>
          <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>target-platform-configuration</artifactId>
          <version>${tycho.version}</version>
          <configuration>
          <target>
          <artifact>
          <groupId>ch.scodi</groupId>
          <artifactId>ch.scodi.client.target</artifactId>
          <version>1.0.0-SNAPSHOT</version>
          </artifact>
          </target>
          <environments>
          <environment>
          <os>win32</os>
          <ws>win32</ws>
          <arch>x86_64</arch>
          </environment>
          </environments>
          </configuration>
          </plugin>
          </plugins>
          </build>





          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54037131%2ftarget-platform-not-found-if-building-from-child-project-with-tycho%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I'm sure this is not the maven way of building, the following workaround builds only one product.



            To build I pass the scodi.customer variable:




            mvn clean verify -Dscodi.customer=demo




            <modules>
            <module>${scodi.customer}/common/plugins</module>
            <module>${scodi.customer}/ui/plugins</module>
            <module>${scodi.customer}/rcp/features</module>
            <module>${scodi.customer}/rcp/releng</module>
            </modules>
            <build>
            <plugins>
            <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>target-platform-configuration</artifactId>
            <version>${tycho.version}</version>
            <configuration>
            <target>
            <artifact>
            <groupId>ch.scodi</groupId>
            <artifactId>ch.scodi.client.target</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            </artifact>
            </target>
            <environments>
            <environment>
            <os>win32</os>
            <ws>win32</ws>
            <arch>x86_64</arch>
            </environment>
            </environments>
            </configuration>
            </plugin>
            </plugins>
            </build>





            share|improve this answer




























              0














              I'm sure this is not the maven way of building, the following workaround builds only one product.



              To build I pass the scodi.customer variable:




              mvn clean verify -Dscodi.customer=demo




              <modules>
              <module>${scodi.customer}/common/plugins</module>
              <module>${scodi.customer}/ui/plugins</module>
              <module>${scodi.customer}/rcp/features</module>
              <module>${scodi.customer}/rcp/releng</module>
              </modules>
              <build>
              <plugins>
              <plugin>
              <groupId>org.eclipse.tycho</groupId>
              <artifactId>target-platform-configuration</artifactId>
              <version>${tycho.version}</version>
              <configuration>
              <target>
              <artifact>
              <groupId>ch.scodi</groupId>
              <artifactId>ch.scodi.client.target</artifactId>
              <version>1.0.0-SNAPSHOT</version>
              </artifact>
              </target>
              <environments>
              <environment>
              <os>win32</os>
              <ws>win32</ws>
              <arch>x86_64</arch>
              </environment>
              </environments>
              </configuration>
              </plugin>
              </plugins>
              </build>





              share|improve this answer


























                0












                0








                0







                I'm sure this is not the maven way of building, the following workaround builds only one product.



                To build I pass the scodi.customer variable:




                mvn clean verify -Dscodi.customer=demo




                <modules>
                <module>${scodi.customer}/common/plugins</module>
                <module>${scodi.customer}/ui/plugins</module>
                <module>${scodi.customer}/rcp/features</module>
                <module>${scodi.customer}/rcp/releng</module>
                </modules>
                <build>
                <plugins>
                <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <version>${tycho.version}</version>
                <configuration>
                <target>
                <artifact>
                <groupId>ch.scodi</groupId>
                <artifactId>ch.scodi.client.target</artifactId>
                <version>1.0.0-SNAPSHOT</version>
                </artifact>
                </target>
                <environments>
                <environment>
                <os>win32</os>
                <ws>win32</ws>
                <arch>x86_64</arch>
                </environment>
                </environments>
                </configuration>
                </plugin>
                </plugins>
                </build>





                share|improve this answer













                I'm sure this is not the maven way of building, the following workaround builds only one product.



                To build I pass the scodi.customer variable:




                mvn clean verify -Dscodi.customer=demo




                <modules>
                <module>${scodi.customer}/common/plugins</module>
                <module>${scodi.customer}/ui/plugins</module>
                <module>${scodi.customer}/rcp/features</module>
                <module>${scodi.customer}/rcp/releng</module>
                </modules>
                <build>
                <plugins>
                <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <version>${tycho.version}</version>
                <configuration>
                <target>
                <artifact>
                <groupId>ch.scodi</groupId>
                <artifactId>ch.scodi.client.target</artifactId>
                <version>1.0.0-SNAPSHOT</version>
                </artifact>
                </target>
                <environments>
                <environment>
                <os>win32</os>
                <ws>win32</ws>
                <arch>x86_64</arch>
                </environment>
                </environments>
                </configuration>
                </plugin>
                </plugins>
                </build>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 1 at 10:02









                flavio.donzeflavio.donze

                4,22492855




                4,22492855
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54037131%2ftarget-platform-not-found-if-building-from-child-project-with-tycho%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Monofisismo

                    Angular Downloading a file using contenturl with Basic Authentication

                    Olmecas