Maven Tycho build Part to short #1299

CLOSED
Submitted 4 months ago

A bit disappointed that this section is so short. Actually, this is an essentially important part that you can build your rcp application and here it is clearly not explained briefly to me. Merely showing random pom.xml is not enough. There should be at least one video here that explains this

Comments

  4 months ago

I created a sample rcp application and wanted to see what the build process looks like. However, I get the following error message and I’m not sure why it expects a pom.xml.

The github project doesn’t seem to have a pom.xml within the plugin for the sample project either.

PS C:\dev\eclipse\workspace> mvn clean verify [INFO] Scanning for projects…​ [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Child module C:\dev\eclipse\workspace\de.tbonsack.example.wizard\pom.xml of C:\dev\eclipse\workspace\pom.xml does not exist @ @

[ERROR] The project com.vogella.tycho:releng:1.0.0-SNAPSHOT (C:\dev\eclipse\workspace\pom.xml) has 1 error [ERROR] Child module C:\dev\eclipse\workspace\de.tbonsack.example.wizard\pom.xml of C:\dev\eclipse\workspace\pom.xml does not exist

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

  4 months ago

Hi Tobias,

And afterwards only build one plug-in instead of multiple modules. For example, com.vogella.tasks.model will not have any plug-in dependencies and should be build without any issue.

  4 months ago

And sorry for the late reply…​.

  4 months ago

Thanks for your answer.

I did the tutorial up until the maven build (note to self: I probably should have done it straight away)

Problem that I then noticed.

A build against the "https://download.eclipse.org/releases/latest" doesn’t seem to be possible, it can’t find org.eclipse.platform.sdk here. Should be 2023-12, so probably version 4.30 (as far as I understand)

At least that’s what I confirmed when I tried using "install new software" for the latest link. here it doesn’t show Eclipse Platform SDK.

  4 months ago

Thanks, indeed 2023-12 (latest) changed a few things, it also moved to jakarta.inject in instead of javax.inject and removed this IU (installable unit). I plan to move the training to latest release in January, for now I added a warning about latest release to the target platform exercise: https://download.eclipse.org/releases/latest or https://download.eclipse.org/releases/2023-12 has changed some of its imports and available features. This text is currently still based on 2023-09 and will be updated shortly.

  3 months ago

AFAICT the Tycho build exercise worked fine, so I’m closing this one, please re-open if you still have issues.

Please login to write a comment.