Discussion:
[tycho-user] Local eclipse instance
Evgeniya Katunina
2017-04-10 17:55:48 UTC
Permalink
Hi all,

Is there any way to point to the local directory with the Eclipse in the pom file instead of adding the p2 repository with such a method:
<repository>
<id>eclipse-neon</id>
<url>http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/releases/neon/</url>
<layout>p2</layout>
</repository>
?

Thanks,
Evgeniya
Nick Boldt
2017-04-10 18:00:17 UTC
Permalink
If you have a locally built p2 update site, you can reference it as
file:///path/to/that/folder in the <url> variable.

You could further externalize that URL as

<properties><eclipseneon>http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/releases/neon/</eclipseneon></properties>

then

<url>${eclipseneon}</url>

so that you could pass in a local file:/// URL via the commandline as

mvn verify -Declipseneon=file:///path/to/the/local/repo/

On Mon, Apr 10, 2017 at 1:55 PM, Evgeniya Katunina
Post by Evgeniya Katunina
Hi all,
Is there any way to point to the local directory with the Eclipse in the pom
<repository>
<id>eclipse-neon</id>
<url>http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/releases/neon/</url>
<layout>p2</layout>
</repository>
?
Thanks,
Evgeniya
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
http://nick.divbyzero.com
Matthew Piggott
2017-04-10 18:07:56 UTC
Permalink
I'm not entirely sure this is what you're looking to do, but I believe you
can use a remote repository in your pom, but locally configure your
settings.xml to a mirror -
https://wiki.eclipse.org/Tycho/Target_Platform/Authentication_and_Mirrors

This would make it portable across machines.
Post by Nick Boldt
If you have a locally built p2 update site, you can reference it as
file:///path/to/that/folder in the <url> variable.
You could further externalize that URL as
<properties><eclipseneon>http://ftp-stud.fht-esslingen.de/
pub/Mirrors/eclipse/releases/neon/</eclipseneon></properties>
then
<url>${eclipseneon}</url>
so that you could pass in a local file:/// URL via the commandline as
mvn verify -Declipseneon=file:///path/to/the/local/repo/
On Mon, Apr 10, 2017 at 1:55 PM, Evgeniya Katunina
Post by Evgeniya Katunina
Hi all,
Is there any way to point to the local directory with the Eclipse in the
pom
Post by Evgeniya Katunina
<repository>
<id>eclipse-neon</id>
<url>http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/releases/neon/
</url>
Post by Evgeniya Katunina
<layout>p2</layout>
</repository>
?
Thanks,
Evgeniya
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from
Post by Evgeniya Katunina
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
http://nick.divbyzero.com
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Evgeniya Katunina
2017-04-12 16:19:37 UTC
Permalink
Hi all,

I put the same folders with p2 repositories into Windows folder and into Linux folder and made such changes in my pom.xml file:
<repository>
<id>eclipse-neon</id>
<url>file:*PATH_TO_P2_REPOSITORY* url>
<layout>p2</layout>
</repository>.
I do not have any issues with the locally built p2 repository on Windows now, build is successful but it does not work on Linux and fails with such error: java.lang.TypeNotPresentException: "Type org.eclipse.tycho.core.p2.P2ArtifactRepository Layout not present", " Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/tycho/core/p2/P2Artifac tRepositoryLayout : Unsupported major.minor version 52.0", " [ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Invalid artifact repository: Unable to provision, see the following errors:

1) Error in custom provider, java.lang.TypeNotPresentException: Type org.eclipse.tycho .core.p2.P2ArtifactRepositoryLayout not present
while locating org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout annotated with @com.google.inject.name.Named(value=p2)".
Could you please help me to deal with it?

Thanks,
Evgeniya


-----Original Message-----
From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Nick Boldt
Sent: Monday, April 10, 2017 9:00 PM
To: Tycho user list <tycho-***@eclipse.org>
Cc: Anton Kolesov <***@synopsys.com>
Subject: Re: [tycho-user] Local eclipse instance

If you have a locally built p2 update site, you can reference it as file:///path/to/that/folder in the <url> variable.

You could further externalize that URL as

<properties><eclipseneon>https://urldefense.proofpoint.com/v2/url?u=http-3A__ftp-2Dstud.fht-2Desslingen.de_pub_Mirrors_eclipse_releases_neon_&d=DwICAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=T2Nu5oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIATCCzgAlGRrTzjKsMQa847CrINuUbtugVPIsZK0&s=TVP96jJy4BPO4skHvVFfhQ3pyV3P8V5Ia2KGJ1PqPi0&e= </eclipseneon></properties>

then

<url>${eclipseneon}</url>

so that you could pass in a local file:/// URL via the commandline as

mvn verify -Declipseneon=file:///path/to/the/local/repo/
Post by Evgeniya Katunina
Hi all,
Is there any way to point to the local directory with the Eclipse in
<repository>
<id>eclipse-neon</id>
<url>https://urldefense.proofpoint.com/v2/url?u=http-3A__ftp-2Dstud.fh
t-2Desslingen.de_pub_Mirrors_eclipse_releases_neon_&d=DwICAg&c=DPL6_X_
6JkXFx7AXWqB0tg&r=T2Nu5oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIAT
CCzgAlGRrTzjKsMQa847CrINuUbtugVPIsZK0&s=TVP96jJy4BPO4skHvVFfhQ3pyV3P8V
5Ia2KGJ1PqPi0&e= </url>
<layout>p2</layout>
</repository>
?
Thanks,
Evgeniya
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_m
ailman_listinfo_tycho-2Duser&d=DwICAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=T2Nu5
oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIATCCzgAlGRrTzjKsMQa847CrI
NuUbtugVPIsZK0&s=y_OoFNJF0eZiTrijLoDVrPMfA-R5nXBJDm3ntmKZEd0&e=
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
https://urldefense.proofpoint.com/v2/url?u=http-3A__nick.divbyzero.com&d=DwICAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=T2Nu5oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIATCCzgAlGRrTzjKsMQa847CrINuUbtugVPIsZK0&s=d6vlV9ypgMCv-WBP7v5LUEVUk8sKwK0b3iE34WaE_Uw&e=
Nick Boldt
2017-04-12 16:32:57 UTC
Permalink
Re: unsupported version of java:

http://stackoverflow.com/questions/22489398/unsupported-major-minor-version-52-0

Make sure you're using JDK 8 for all platforms.

On Wed, Apr 12, 2017 at 12:19 PM, Evgeniya Katunina
Post by Evgeniya Katunina
Hi all,
<repository>
<id>eclipse-neon</id>
<url>file:*PATH_TO_P2_REPOSITORY* url>
<layout>p2</layout>
</repository>.
1) Error in custom provider, java.lang.TypeNotPresentException: Type org.eclipse.tycho .core.p2.P2ArtifactRepositoryLayout not present
Could you please help me to deal with it?
Thanks,
Evgeniya
-----Original Message-----
Sent: Monday, April 10, 2017 9:00 PM
Subject: Re: [tycho-user] Local eclipse instance
If you have a locally built p2 update site, you can reference it as file:///path/to/that/folder in the <url> variable.
You could further externalize that URL as
<properties><eclipseneon>https://urldefense.proofpoint.com/v2/url?u=http-3A__ftp-2Dstud.fht-2Desslingen.de_pub_Mirrors_eclipse_releases_neon_&d=DwICAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=T2Nu5oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIATCCzgAlGRrTzjKsMQa847CrINuUbtugVPIsZK0&s=TVP96jJy4BPO4skHvVFfhQ3pyV3P8V5Ia2KGJ1PqPi0&e= </eclipseneon></properties>
then
<url>${eclipseneon}</url>
so that you could pass in a local file:/// URL via the commandline as
mvn verify -Declipseneon=file:///path/to/the/local/repo/
Post by Evgeniya Katunina
Hi all,
Is there any way to point to the local directory with the Eclipse in
<repository>
<id>eclipse-neon</id>
<url>https://urldefense.proofpoint.com/v2/url?u=http-3A__ftp-2Dstud.fh
t-2Desslingen.de_pub_Mirrors_eclipse_releases_neon_&d=DwICAg&c=DPL6_X_
6JkXFx7AXWqB0tg&r=T2Nu5oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIAT
CCzgAlGRrTzjKsMQa847CrINuUbtugVPIsZK0&s=TVP96jJy4BPO4skHvVFfhQ3pyV3P8V
5Ia2KGJ1PqPi0&e= </url>
<layout>p2</layout>
</repository>
?
Thanks,
Evgeniya
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_m
ailman_listinfo_tycho-2Duser&d=DwICAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=T2Nu5
oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIATCCzgAlGRrTzjKsMQa847CrI
NuUbtugVPIsZK0&s=y_OoFNJF0eZiTrijLoDVrPMfA-R5nXBJDm3ntmKZEd0&e=
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
https://urldefense.proofpoint.com/v2/url?u=http-3A__nick.divbyzero.com&d=DwICAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=T2Nu5oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIATCCzgAlGRrTzjKsMQa847CrINuUbtugVPIsZK0&s=d6vlV9ypgMCv-WBP7v5LUEVUk8sKwK0b3iE34WaE_Uw&e=
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_tycho-2Duser&d=DwICAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=T2Nu5oC0cFpYft-aWVADZQwW1gKau7VGmdiLGLU-TEU&m=bEbIATCCzgAlGRrTzjKsMQa847CrINuUbtugVPIsZK0&s=y_OoFNJF0eZiTrijLoDVrPMfA-R5nXBJDm3ntmKZEd0&e=
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
http://nick.divbyzero.com
Loading...