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

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

Back to the top