Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Local eclipse instance

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
<Evgeniya.Katunina@xxxxxxxxxxxx> wrote:
> 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-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Nick Boldt
> Sent: Monday, April 10, 2017 9:00 PM
> To: Tycho user list <tycho-user@xxxxxxxxxxx>
> Cc: Anton Kolesov <Anton.Kolesov@xxxxxxxxxxxx>
> 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/
>
> On Mon, Apr 10, 2017 at 1:55 PM, Evgeniya Katunina <Evgeniya.Katunina@xxxxxxxxxxxx> wrote:
>> 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>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
>> tycho-user@xxxxxxxxxxx
>> 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
> tycho-user@xxxxxxxxxxx
> 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
> tycho-user@xxxxxxxxxxx
> 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


Back to the top