Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] shipping directly a jre with an eclipse product on OSX

i created an update site with a jre12 for windows, linux and osx


if i add that repo to my pom files
and then add the feature(s) to my product file or feature file i get always this:

Software being installed: com.servoy.eclipse.feature.feature.group 2019.6.0.3500_rc
[ERROR]   Missing requirement: com.servoy.eclipse.feature.feature.group 2019.6.0.3500_rc requires 'org.eclipse.equinox.p2.iu; org.eclipse.epp.runtime.openj9.win32.x86_64.feature.feature.group 0.0.0' but it could not be found

in eclipse it does find it (problem is that the target file i can't include them all then the target file editor complains that 2 of the 3 are not for my architecture, so that is a bit of a problem when adding all 3 of them to a feature or product file...)

but this in the product file:
<feature id="org.eclipse.epp.runtime.openj9.win32.x86_64.feature"/>

or this in the feature file:
<import feature="org.eclipse.epp.runtime.openj9.win32.x86_64.feature" version="4.8.0.201904301251"/>

doesn't seem to work for tycho to be able to find it..
now i wonder if i have to have a feature that includes all 3 of them? 

On Tue, 30 Apr 2019 at 14:49, Johan Compagner <jcompagner@xxxxxxxxxx> wrote:
just using ant works without an error:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>  
    <artifactId>maven-antrun-plugin</artifactId>  
    <version>1.8</version>  
    <executions>  
        <execution>  
            <id>prepare</id>  
            <phase>generate-resources</phase>  
            <configuration>  
                <tasks>  
    <untar src="" compression="gzip" dest="${project.build.directory}"/>
                </tasks>  
            </configuration>  
            <goals>  
                <goal>run</goal>  
            </goals>  
        </execution>  
    </executions>  
</plugin> 

(instead if unpack directly in the maven download plugin)


On Tue, 30 Apr 2019 at 14:00, Johan Compagner <jcompagner@xxxxxxxxxx> wrote:
thx
that could maybe be a very nice solution

i copied it to my local drive, adjusted the download urls to use the api.adoptjdk stuff
problem is under windows i get this when extracting the tar.gz file of linux...

[ERROR] Failed to execute goal com.googlecode.maven-download-plugin:download-maven-plugin:1.4.0:wget (default) on project org.eclipse.epp.runtime.openj9.linux.x86_64.feature: IO Error: Error while expanding D:\temp\runtime\linux.x86_64\target\jre12.tar.gz: D:\temp\runtime\linux.x86_64\target\jdk-12.0.1+12-jre\legal\jdk.internal.vm.ci\ASSEMBLY_EXCEPTION: A required privilege is not held by the client. -> [Help 1]

that is because of the symbolic links i think.. (if i just extract it with 7zip it just generates empty files)


On Tue, 30 Apr 2019 at 13:03, Mickael Istria <mistria@xxxxxxxxxx> wrote:
Hi,

I've made some experiments of a more "p2-native" way to embed a JRE some time ago, hoping it will allow one day to ship a JRE with Eclipse IDE directly (but this is currently stuck for legal reason).
In https://github.com/mickaelistria/org.eclipse.epp.packages/tree/506244 , you can see in the "runtime" folder some p2 units that include a JRE (OpenJ9+OpenJDK from AdoptOpenJDK in that case), and have touchpoints to set the `-vm` flag for the product when they're installed. With this approach, just including those units in your product make it use the included JRE. A cool thing is that the JRE is then a regular p2 unit, so it can be uninstalled and updated like anything else, without any specific workflow.
It was only tested on Linux and would require update to newer AdoptOpenJDK build to support macOS.
It's a piece of work that's currently stalled on my end because I'm waiting for legal approval before spending more effort on it. If you're going to use it, you can just copy it, it's EPL. And if you do, please consider writing a good blog post about it as I think this approach deserve to be made more popular ;)

Cheers,
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/tycho-user


--
Johan Compagner
Servoy


--
Johan Compagner
Servoy


--
Johan Compagner
Servoy

Back to the top