Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Validate Eclipse product file using Maven/Tycho
Validate Eclipse product file using Maven/Tycho [message #1867269] Thu, 20 June 2024 09:40 Go to next message
Thara Prithvi is currently offline Thara PrithviFriend
Messages: 1
Registered: June 2024
Junior Member
I'm working on an RCP application that uses a plugin based product file and I would like to know if it possible to validate the product file with the same function as in the PDE UI. In the product file editor it is the "validate..." icon in the tool bar. I would like to have the Tycho build to fail if the product does not validate. (Fail early principle). So far I haven't found any solutions, I know there is org.eclipse.tycho.extras/target-platform-validation-plugin specifically for the target platform validation but is there anything similar to validate a product file and have the Tycho build fail if there any missing plugins/dependencies in the product? Here's an example of my pom.xml file -
           <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>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>archive-products</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <products>
                        <product>
                            <id>com.gui.product</id>
                            <attachId>GUI</attachId>
                            <archiveFileName>com.gui.product-${project.version}-${buildqualifier}
                            </archiveFileName>
                        </product>
                    </products>
                </configuration>
            </plugin>


I tried adding <phase>verify</phase> to materialize-products goal as per some suggestions I found but that didn't help either. Is this something that can be achieved?
Re: Validate Eclipse product file using Maven/Tycho [message #1867275 is a reply to message #1867269] Thu, 20 June 2024 12:45 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4507
Registered: July 2009
Senior Member

Sounds like a good question for https://github.com/eclipse-tycho/tycho/discussions .

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:About the required specifications of Eclipse IDE
Next Topic:Running program from Eclipse remotely on Raspberry pi
Goto Forum:
  


Current Time: Thu Dec 12 08:01:19 GMT 2024

Powered by FUDForum. Page generated in 0.08677 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top