Quantcast
Channel: tycho-user
Viewing all 4647 articles
Browse latest View live

Re: [tycho-user] Problem with SureFire

$
0
0
JUnit provider auto-detection only works with well-known junit bundle names

https://github.com/eclipse/tycho/blob/eb1bf397506eb1c868f5a806a9dfc3c5a08a4b56/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/provider/impl/JUnit4Provider.java#L35 

you may be able to get a custom JUnit bundle to work by specifying a provider hint

https://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#providerHint

but I think it's probably just better to stick with the standard JUnit bundle.

Regards
Jan

ïOn 10.07.18, 11:15, "tycho-user-bounces@xxxxxxxxxxx on behalf of Stefan NÃbauer" <tycho-user-bounces@xxxxxxxxxxx on behalf of stefan.noebauer@xxxxxxxxxxxxxxxxxx> wrote:

    Hi Simon,
    
    I found the problem. It was because of a jUnit bundle packed via bnd-platform.
    
    My Manifest looks like:
    
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: Tests
    Bundle-SymbolicName: connector.common.tests
    Bundle-Version: 1.0.0.qualifier
    Bundle-Vendor: KGU-Consulting GmbH
    Fragment-Host: connector.common;bundle-version="1.0.0"
    Automatic-Module-Name: connector.common.tests
    Bundle-RequiredExecutionEnvironment: JavaSE-1.8
    Export-Package: connector.common
    Require-Bundle: org.mockito;bundle-version="2.13.0",
     org.hamcrest;bundle-version="1.1.0",
     org.junit;bundle-version="4.12.0"
    Bundle-ClassPath: .
    
    Now I use the jUnit bundle from the Orbit and tycho-surefire works fine
    I am not sure yet what's the difference between this bundle and the bnd built  bundle.
    
    Thanx for your quick response!!!!
    
    Stefan
    
    
    -----UrsprÃngliche Nachricht-----
    Von: tycho-user-bounces@xxxxxxxxxxx <tycho-user-bounces@xxxxxxxxxxx> Im Auftrag von Simon Scholz
    Gesendet: Dienstag, 10. Juli 2018 10:35
    An: Tycho user list <tycho-user@xxxxxxxxxxx>
    Betreff: Re: [tycho-user] Problem with SureFire
    
    Hi Stefan,
    
    could you be more precise?
    What does your MANIFEST.MF file look like?
    Which dependencies do you have?
    Which testing framework are you using?
    
    Regards,
    
    Simon
    
    On Tue, Jul 10, 2018 at 9:57 AM, Stefan NÃbauer <stefan.noebauer@xxxxxxxxxxxxxxxxxx> wrote:
    > Hi
    >
    >
    >
    > I created a test fragment with one simple test.
    >
    > I have no pom for this fragment.
    >
    > I use Photon, M2E - Maven Integration for Eclipse 1.9.0, Tycho 1.2.0
    >
    > When building with mvn clean verify I get the failure:
    >
    >
    >
    > Failed to execute goal 
    > org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test
    > (default-test) on project connector.common.tests: Could not determine 
    > test framework provider. Available providers: [junit3, junit5, junit4, 
    > testng, junit47] -> [Help 1]
    >
    >
    >
    > What am I doing wrong?
    >
    >
    >
    > Regards
    >
    > Stefan
    >
    >
    > _______________________________________________
    > 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
    
    
    
    --
    --
    Trainer, Consultant and Developer
    
    vogella GmbH
    Haindaalwisch 17a, 22395 Hamburg
    Amtsgericht Hamburg: HRB 127058
    GeschÃftsfÃhrer: Lars Vogel, Jennifer Nerlich de Vogel
    USt-IdNr.: DE284122352
    Tel (040) 78804360, Fax (032) 221739404, Email:
    simon.scholz@xxxxxxxxxxx, Web: http://www.vogella.com _______________________________________________
    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
    _______________________________________________
    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


Re: [tycho-user] Problem with SureFire

$
0
0
Hi Jan,

Tanks very much!!!!

Regards
Stefan

-----UrsprÃngliche Nachricht-----
Von: tycho-user-bounces@xxxxxxxxxxx <tycho-user-bounces@xxxxxxxxxxx> Im Auftrag von Sievers, Jan
Gesendet: Dienstag, 10. Juli 2018 11:48
An: Tycho user list <tycho-user@xxxxxxxxxxx>
Betreff: Re: [tycho-user] Problem with SureFire

JUnit provider auto-detection only works with well-known junit bundle names

https://github.com/eclipse/tycho/blob/eb1bf397506eb1c868f5a806a9dfc3c5a08a4b56/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/provider/impl/JUnit4Provider.java#L35 

you may be able to get a custom JUnit bundle to work by specifying a provider hint

https://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#providerHint

but I think it's probably just better to stick with the standard JUnit bundle.

Regards
Jan

ïOn 10.07.18, 11:15, "tycho-user-bounces@xxxxxxxxxxx on behalf of Stefan NÃbauer" <tycho-user-bounces@xxxxxxxxxxx on behalf of stefan.noebauer@xxxxxxxxxxxxxxxxxx> wrote:

    Hi Simon,
    
    I found the problem. It was because of a jUnit bundle packed via bnd-platform.
    
    My Manifest looks like:
    
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: Tests
    Bundle-SymbolicName: connector.common.tests
    Bundle-Version: 1.0.0.qualifier
    Bundle-Vendor: KGU-Consulting GmbH
    Fragment-Host: connector.common;bundle-version="1.0.0"
    Automatic-Module-Name: connector.common.tests
    Bundle-RequiredExecutionEnvironment: JavaSE-1.8
    Export-Package: connector.common
    Require-Bundle: org.mockito;bundle-version="2.13.0",
     org.hamcrest;bundle-version="1.1.0",
     org.junit;bundle-version="4.12.0"
    Bundle-ClassPath: .
    
    Now I use the jUnit bundle from the Orbit and tycho-surefire works fine
    I am not sure yet what's the difference between this bundle and the bnd built  bundle.
    
    Thanx for your quick response!!!!
    
    Stefan
    
    
    -----UrsprÃngliche Nachricht-----
    Von: tycho-user-bounces@xxxxxxxxxxx <tycho-user-bounces@xxxxxxxxxxx> Im Auftrag von Simon Scholz
    Gesendet: Dienstag, 10. Juli 2018 10:35
    An: Tycho user list <tycho-user@xxxxxxxxxxx>
    Betreff: Re: [tycho-user] Problem with SureFire
    
    Hi Stefan,
    
    could you be more precise?
    What does your MANIFEST.MF file look like?
    Which dependencies do you have?
    Which testing framework are you using?
    
    Regards,
    
    Simon
    
    On Tue, Jul 10, 2018 at 9:57 AM, Stefan NÃbauer <stefan.noebauer@xxxxxxxxxxxxxxxxxx> wrote:
    > Hi
    >
    >
    >
    > I created a test fragment with one simple test.
    >
    > I have no pom for this fragment.
    >
    > I use Photon, M2E - Maven Integration for Eclipse 1.9.0, Tycho 1.2.0
    >
    > When building with mvn clean verify I get the failure:
    >
    >
    >
    > Failed to execute goal 
    > org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test
    > (default-test) on project connector.common.tests: Could not determine 
    > test framework provider. Available providers: [junit3, junit5, junit4, 
    > testng, junit47] -> [Help 1]
    >
    >
    >
    > What am I doing wrong?
    >
    >
    >
    > Regards
    >
    > Stefan
    >
    >
    > _______________________________________________
    > 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
    
    
    
    --
    --
    Trainer, Consultant and Developer
    
    vogella GmbH
    Haindaalwisch 17a, 22395 Hamburg
    Amtsgericht Hamburg: HRB 127058
    GeschÃftsfÃhrer: Lars Vogel, Jennifer Nerlich de Vogel
    USt-IdNr.: DE284122352
    Tel (040) 78804360, Fax (032) 221739404, Email:
    simon.scholz@xxxxxxxxxxx, Web: http://www.vogella.com _______________________________________________
    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
    _______________________________________________
    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

_______________________________________________
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

[tycho-user] Target platform with platform specific features

$
0
0
Hi everyone,

I have a target platform which contains a platform specific feature (called MyFeature) (os="win32", ws="win32"). In my target-platform-configuration I configured multiple environments (like os=linux, ws=gtk) . Unfortuntely the build fails with with message:
"MyFeature.feature.group 0.0.1.201807111753 cannot be installed in this environment because its filter is not applicable."

In the end I want to use the eclipse-repository packaging type to build a self-contained p2 repository which contains all the features I need (including MyFearure) and the native launcher artifacts (inclusing linux). 

How can I achieve this?

Kind regards
Oliver

[tycho-user] An unexpected error occured

$
0
0

Hi,

 

I have another question about tycho surefire.

I wrote a test project for one of my plugins. The plugin is build successfully but when the testplugin should be executed surefire comes up with this exception:

 

Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test (default-test) on project server.tests: An unexpected error occured while launching the test runtime (return code 13).

 

Where ca I find more information about the possible failure?

The mentioned logfile in “work\data\.metadata\.log” does not exist.

 

The Test is just as simple as:

 

package server.tests;

 

import org.junit.Test;

 

import static org.junit.Assert.assertTrue;

 

 

/**

* @author  Stefan Nöbauer

*/

public class BlaBlaTest {

 

    @Test

    public void isBlablaTest() {

        assertTrue(true);

    }

}

 

Manifest.mf

Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: Tests

Bundle-SymbolicName: server.tests

Bundle-Version: 1.0.0.qualifier

Bundle-Vendor: KGU

Fragment-Host: com.teamcenter.presentation.contmgmt.server;bundle-version="1.0.0"

Automatic-Module-Name: server.tests

Bundle-RequiredExecutionEnvironment: JavaSE-1.8

Require-Bundle: org.junit;bundle-version="4.12.0"

Export-Package: server.tests

 

When I select a different host plugin the test plugin “server.tests” is executed fine!

 

Regards

Stefan

Re: [tycho-user] Target platform with platform specific features

Re: [tycho-user] An unexpected error occured

$
0
0
try maven debug option -X

ïOn 12.07.18, 09:32, "tycho-user-bounces@xxxxxxxxxxx on behalf of Stefan NÃbauer" <tycho-user-bounces@xxxxxxxxxxx on behalf of stefan.noebauer@xxxxxxxxxxxxxxxxxx> wrote:

    Hi,
     
    I have another question about tycho surefire.
    
    I wrote a test project for one of my plugins. The plugin is build successfully but when the testplugin should be executed surefire comes up with this exception:
    
     
    Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test (default-test) on project server.tests: An unexpected error
     occured while launching the test runtime (return code 13).
     
    Where ca I find more information about the possible failure?
    The mentioned logfile in âwork\data\.metadata\.logâ does not exist.
     
    The Test is just as simple as:
     
    package server.tests;
     
    import org.junit.Test;
     
    importstatic org.junit.Assert.assertTrue;
     
     
    /**
    *
    @author  Stefan NÃbauer
    */
    publicclass BlaBlaTest {
     
       
    @Test
       
    publicvoid isBlablaTest() {
           
    assertTrue(true);
       
    }
    }
     
    Manifest.mf
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: Tests
    Bundle-SymbolicName: server.tests
    Bundle-Version: 1.0.0.qualifier
    Bundle-Vendor: KGU
    Fragment-Host: com.teamcenter.presentation.contmgmt.server;bundle-version="1.0.0"
    Automatic-Module-Name: server.tests
    Bundle-RequiredExecutionEnvironment: JavaSE-1.8
    Require-Bundle: org.junit;bundle-version="4.12.0"
    Export-Package: server.tests
     
    When I select a different host plugin the test plugin âserver.testsâ is executed fine!
     
    Regards
    Stefan
    
    

Re: [tycho-user] An unexpected error occured

$
0
0

Hi

This is something of a nightmare and if that wasn't bad enough it can be hysterical. The following gives some clues to my progress.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=529929
and https://bugs.eclipse.org/bugs/show_bug.cgi?id=529797#c16

Regards

Ed Willink


On 12/07/2018 08:25, Stefan Nöbauer wrote:

Hi,

 

I have another question about tycho surefire.

I wrote a test project for one of my plugins. The plugin is build successfully but when the testplugin should be executed surefire comes up with this exception:

 

Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test (default-test) on project server.tests: An unexpected error occured while launching the test runtime (return code 13).

 

Where ca I find more information about the possible failure?

The mentioned logfile in “work\data\.metadata\.log” does not exist.

 

The Test is just as simple as:

 

package server.tests;

 

import org.junit.Test;

 

import static org.junit.Assert.assertTrue;

 

 

/**

* @author  Stefan Nöbauer

*/

public class BlaBlaTest {

 

    @Test

    public void isBlablaTest() {

        assertTrue(true);

    }

}

 

Manifest.mf

Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: Tests

Bundle-SymbolicName: server.tests

Bundle-Version: 1.0.0.qualifier

Bundle-Vendor: KGU

Fragment-Host: com.teamcenter.presentation.contmgmt.server;bundle-version="1.0.0"

Automatic-Module-Name: server.tests

Bundle-RequiredExecutionEnvironment: JavaSE-1.8

Require-Bundle: org.junit;bundle-version="4.12.0"

Export-Package: server.tests

 

When I select a different host plugin the test plugin “server.tests” is executed fine!

 

Regards

Stefan



_______________________________________________
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


Virus-free. www.avast.com

Re: [tycho-user] Target platform with platform specific features

$
0
0
Hi Mickael,

thanks for documenting this feature. Unfortunately my problem is a little bit different.

I have a problem resolving my target platform, because one of the ius in my .target file is platform specific (Windows). Whenever at least one non-win32 environment is configured in target-platform-configuration, the build fails.

I just would like to ignore the iu, if the platform filter doesn't match. Any ideas?

Kind regards
Oliver


Von: "Mickael Istria" <mistria@xxxxxxxxxx>
An: "tycho-user" <tycho-user@xxxxxxxxxxx>
Gesendet: Donnerstag, 12. Juli 2018 10:30:12
Betreff: Re: [tycho-user] Target platform with platform specific features

Hi,

HTH

_______________________________________________
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

Re: [tycho-user] An unexpected error occured

$
0
0
I got following trace 

So I might have something todo with unresolved bundles.
The problematic bundle seems to be org.apache.fop.

But this bundle I created with bnd-platform. So I will have to debug this bundle â

Regards
Stefan

-----UrsprÃngliche Nachricht-----
Von: tycho-user-bounces@xxxxxxxxxxx <tycho-user-bounces@xxxxxxxxxxx> Im Auftrag von Sievers, Jan
Gesendet: Donnerstag, 12. Juli 2018 11:05
An: Tycho user list <tycho-user@xxxxxxxxxxx>
Betreff: Re: [tycho-user] An unexpected error occured

try maven debug option -X

ïOn 12.07.18, 09:32, "tycho-user-bounces@xxxxxxxxxxx on behalf of Stefan NÃbauer" <tycho-user-bounces@xxxxxxxxxxx on behalf of stefan.noebauer@xxxxxxxxxxxxxxxxxx> wrote:

    Hi,
     
    I have another question about tycho surefire.
    
    I wrote a test project for one of my plugins. The plugin is build successfully but when the testplugin should be executed surefire comes up with this exception:
    
     
    Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test (default-test) on project server.tests: An unexpected error
     occured while launching the test runtime (return code 13).
     
    Where ca I find more information about the possible failure?
    The mentioned logfile in âwork\data\.metadata\.logâ does not exist.
     
    The Test is just as simple as:
     
    package server.tests;
     
    import org.junit.Test;
     
    importstatic org.junit.Assert.assertTrue;
     
     
    /**
    *
    @author  Stefan NÃbauer
    */
    publicclass BlaBlaTest {
     
       
    @Test
       
    publicvoid isBlablaTest() {
           
    assertTrue(true);
       
    }
    }
     
    Manifest.mf
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: Tests
    Bundle-SymbolicName: server.tests
    Bundle-Version: 1.0.0.qualifier
    Bundle-Vendor: KGU
    Fragment-Host: com.teamcenter.presentation.contmgmt.server;bundle-version="1.0.0"
    Automatic-Module-Name: server.tests
    Bundle-RequiredExecutionEnvironment: JavaSE-1.8
    Require-Bundle: org.junit;bundle-version="4.12.0"
    Export-Package: server.tests
     
    When I select a different host plugin the test plugin âserver.testsâ is executed fine!
     
    Regards
    Stefan
    
    

_______________________________________________
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

Attachment: 1531394830373.log
Description: 1531394830373.log

Re: [tycho-user] Target platform with platform specific features

$
0
0
One supplement:

If I do not include the platform-specific feature in the .target file but as a p2-repository entry in my pom.xml, the target platform can be resolved.

Having that I can build my P2 repository with the help of Mickael's link.

So the root issue is that the target platform cannot be resolved, if it includes a platform-specific feature and at least one environment in the target-platform-configuration doesn't match that platform filter.

Kind regards
Oliver


Von: "Oliver Libutzki" <oliver@xxxxxxxxxxx>
An: "tycho-user" <tycho-user@xxxxxxxxxxx>
Gesendet: Donnerstag, 12. Juli 2018 14:04:23
Betreff: Re: [tycho-user] Target platform with platform specific features

Hi Mickael,

thanks for documenting this feature. Unfortunately my problem is a little bit different.

I have a problem resolving my target platform, because one of the ius in my .target file is platform specific (Windows). Whenever at least one non-win32 environment is configured in target-platform-configuration, the build fails.

I just would like to ignore the iu, if the platform filter doesn't match. Any ideas?

Kind regards
Oliver


Von: "Mickael Istria" <mistria@xxxxxxxxxx>
An: "tycho-user" <tycho-user@xxxxxxxxxxx>
Gesendet: Donnerstag, 12. Juli 2018 10:30:12
Betreff: Re: [tycho-user] Target platform with platform specific features

Hi,

HTH

_______________________________________________
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

_______________________________________________
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

[tycho-user] Tycho > 1.1.0 fails with "Fatal error compiling: Illegal char at index 74:"

$
0
0
Hi,

I was using Tyco 1.0.0 and bundling javafx (OSGi Adaptor) with MANIFEST.MF as
----
Bundle-ClassPath: .,
 external:$java.home$/lib/ext/jfxrt.jar,
 external:$java.home$/lib/jfxswt.jar,
 external:$java.home$/lib/javafx-swt.jar
ââ
Compilation fails (Only on Windows works fine on Linux and OS X)  if I upgrade to Tyco 1.1.0 or with 1.2.0 as
----
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.2.0:compile (default-compile) on project org.openjdk.jmc.javafx.osgi: Fatal error compiling: Illegal char <:> at index 74: D:\ade\jmc-releng-dev\jmc\application\org.openjdk.jmc.javafx.osgi\external:$java.home$\lib\ext\jfxrt.jar -> [Help 1]
â

Compilation succeeds with replacing : with ; but during run time 
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javafx/embed/swt/FXCanvas
        at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:423)

Searched bugs.eclipse.org didnât find any clue.

Thanks,
Guru

[tycho-user] Tycho with JDK 11 and Modular OpenJFX (javafx mods)

$
0
0
Hi,

Since OpenJFX is shipped with separate modules (http://jdk.java.net/openjfx/ â JMODs) all the javafx classes from jfxrt.jar is split into javafx.base.jmods, javafx.graphics.jmods, etc.. 
If we want to provide javafx OSGi Adaptor with Module system (JDK modules / jigsaw) , what would be the class path entry in MANIFEST.MF 
i.e earlier with jfxrt.jar and MANIFEST.MF would look like 
Bundle-ClassPath: .,
 external;$java.home$/lib/ext/jfxrt.jar,

Now jfxrt.jar is no more (with latest JDK 11 early access). What should be the Bundle-ClassPath entry in MANIFEST.MF for a JDK Module system ? 

Intention is to create a OSGi Adaptor which runs with Jlinkâd custom image which consist of JDK 11 and Openjfx Modules.

Thanks,
Guru

Re: [tycho-user] Tycho > 1.1.0 fails with "Fatal error compiling: Illegal char at index 74:"

$
0
0
Bundle-ClassPath: external entries are not supported

https://bugs.eclipse.org/bugs/show_bug.cgi?id=370958#c20

you should have got a corresponding warning.

for a workaround check http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/releng/org.eclipse.fx.ide.releng/pom.xml#n219



Jan



ïOn 16.07.18, 17:05, "tycho-user-bounces@xxxxxxxxxxx on behalf of Guru" <tycho-user-bounces@xxxxxxxxxxx on behalf of guru.hb@xxxxxxxxxx> wrote:

    
    
    
    Hi,
    
    
    I was using Tyco 1.0.0 and bundling javafx (OSGi Adaptor) with MANIFEST.MF as
    ----
    Bundle-ClassPath: .,
     external:$java.home$/lib/ext/jfxrt.jar,
     external:$java.home$/lib/jfxswt.jar,
     external:$java.home$/lib/javafx-swt.jar
    ââ
    Compilation fails (Only on Windows works fine on Linux and OS X)  if I upgrade to Tyco 1.1.0 or with 1.2.0 as
    ----
    [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.2.0:compile
     (default-compile) on project org.openjdk.jmc.javafx.osgi: Fatal error compiling: Illegal char <:> at index 74: D:\ade\jmc-releng-dev\jmc\application\org.openjdk.jmc.javafx.osgi\external:$java.home$\lib\ext\jfxrt.jar
     -> [Help 1]
    â
    
    
    Compilation succeeds with replacing : with ; but during run time 
    org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javafx/embed/swt/FXCanvas
            at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:423)
    
    
    
    Searched bugs.eclipse.org <http://bugs.eclipse.org> didnât find any clue.
    
    
    Thanks,
    Guru
    
    
    

[tycho-user] cannot resolve eclipselink target platform

$
0
0

Hi,

I have an RCP application which has been successfully building using a target platform definition for years. I now added Eclipselink as a target location:

<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.persistence.sdk.feature.group" version="2.7.2.v20180622-f627448"/>
<repository location="http://download.eclipse.org/rt/eclipselink/updates/"/>
</location>


Now when trying to run mvn clean verify, the build fails because:


[ERROR] Cannot resolve target definition:
[ERROR] Software being installed: org.eclipse.persistence.sdk.feature.group 2.7.2.v20180622-f627448
[ERROR] Missing requirement: jaxb-core 2.2.11.v201407311112 requires 'java.package; javax.lang.model 0.0.0' but it could not be found
[ERROR] Cannot satisfy dependency: org.eclipse.persistence.moxy.feature.group 2.7.2.v20180622-f627448 depends on: org.eclipse.equinox.p2.iu; jaxb-core [2.2.11.v201407311112,2.2.11.v201407311112]
[ERROR] Cannot satisfy dependency: org.eclipse.persistence.sdk.feature.group 2.7.2.v20180622-f627448 depends on: org.eclipse.equinox.p2.iu; org.eclipse.persistence.moxy.feature.group [2.7.2.v20180622-f627448,2.7.2.v20180622-f627448]


Neither the target platform editor not the target platform state view in Eclipse are showing any errors/warnings at all, and the product builds just fine using the Eclipse export function.

Is there any way to disable the dependency resolution here?

Thanks in advance for any hint or help!

Cheers

Thorsten


Re: [tycho-user] Tycho > 1.1.0 fails with "Fatal error compiling: Illegal char at index 74:"

$
0
0
Thank you Jan,

I would succeed with compilation phase (packaging) and ended up with 

org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javafx/embed/swt/FXCanvas
        at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:423)
â

Because âjavafx-swt.jarâ (which is preset in $java.hom/lib/javafx-swt.jar) is not present in OSGi bundle class path. Defining external jar in <extraClassPathElements> would be only in Compilation scope. 

Whatâs the correct way of providing external jars to the OSGi Bundle at run time ? (I should have created a separate chain). âOSGi Adopterhookâ is one solution which was mentioned in stack overflow but its not described well.

Thanks,
Guru

On 17-Jul-2018, at 12:47 PM, Sievers, Jan <jan.sievers@xxxxxxx> wrote:

Bundle-ClassPath: external entries are not supported

https://bugs.eclipse.org/bugs/show_bug.cgi?id=370958#c20

you should have got a corresponding warning.

for a workaround check http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/releng/org.eclipse.fx.ide.releng/pom.xml#n219



Jan



ïOn 16.07.18, 17:05, "tycho-user-bounces@xxxxxxxxxxx on behalf of Guru" <tycho-user-bounces@xxxxxxxxxxx on behalf of guru.hb@xxxxxxxxxx> wrote:




   Hi,


   I was using Tyco 1.0.0 and bundling javafx (OSGi Adaptor) with MANIFEST.MF as
   ----
   Bundle-ClassPath: .,
    external:$java.home$/lib/ext/jfxrt.jar,
    external:$java.home$/lib/jfxswt.jar,
    external:$java.home$/lib/javafx-swt.jar
   ââ
   Compilation fails (Only on Windows works fine on Linux and OS X)  if I upgrade to Tyco 1.1.0 or with 1.2.0 as
   ----
   [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.2.0:compile
    (default-compile) on project org.openjdk.jmc.javafx.osgi: Fatal error compiling: Illegal char <:> at index 74: D:\ade\jmc-releng-dev\jmc\application\org.openjdk.jmc.javafx.osgi\external:$java.home$\lib\ext\jfxrt.jar
    -> [Help 1]
   â


   Compilation succeeds with replacing : with ; but during run time 
   org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javafx/embed/swt/FXCanvas
           at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:423)



   Searched bugs.eclipse.org <http://bugs.eclipse.org> didnât find any clue.


   Thanks,
   Guru




_______________________________________________
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


[tycho-user] How to use a modified MANIFEST.MF when building with tycho?

$
0
0
Hi,

We are using tycho to build web-applications based on eclipse RAP and
it works like a charm.
However recently I came across the requirement to configure the webapp
with different dependencies when starting it directly from the Eclipse
IDE (requires some additional dependencies) vs running it on the app
server.

It seems the Eclipse relies on MANIFEST.MF to be called just like that
- so would it be possible to instruct tycho to use a different
MANIFEST.MF instead?

Thank you in advance and best regards, Clemens

Re: [tycho-user] How to use a modified MANIFEST.MF when building with tycho?

$
0
0
You could configure maven to override the manifest.mf early on in the build process (for example during the generate-resources phase).


On 7/22/2018 4:33 PM, Clemens Eisserer wrote:
Hi,

We are using tycho to build web-applications based on eclipse RAP and
it works like a charm.
However recently I came across the requirement to configure the webapp
with different dependencies when starting it directly from the Eclipse
IDE (requires some additional dependencies) vs running it on the app
server.

It seems the Eclipse relies on MANIFEST.MF to be called just like that
- so would it be possible to instruct tycho to use a different
MANIFEST.MF instead?

Thank you in advance and best regards, Clemens
_______________________________________________
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



[tycho-user] Avoid Unresolved requirement: Require-Capability in Multi Platform Builds

$
0
0
Hi,

in tests we get error messages like that one e.g. when built on linux.
how can we avoid that?

Thanks Christian

!ENTRY org.eclipse.jdt.launching.macosx 4 0 2018-08-03 08:56:47.924
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module:
org.eclipse.jdt.launching.macosx [227]
  Unresolved requirement: Require-Capability: eclipse.platform;
filter:="(osgi.os=macosx)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1613)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

[tycho-user] Update on macOS fails to execute chmod

$
0
0
Hi all,

I am experiencing problems when updating my tycho built product on macOS. So this is my scenario:

I have a product built with tycho 1.0.0 based on Eclipse Oxygen (org.eclipse.rcp_4.7.2.v20171130-0510) and an update-site containing a newer version of my custom features. When I update this product eclipse with the features on my update-site, the executable looses its executable bit, so I cannot open my product anymore.Â

I debugged it remotely and found out that there is an exception thrown in ChmodAction when trying to execute Runtime.getRuntime().exec("chmod", "755", "path/to/executable"):Âjava.io.IOException: Cannot run program âchmodâ: error=2, No such file or directory

How can it be that chmod is not found (other binaries like "echo" are not found either)?

This problem occurs on several macOS systems. That said, I should mention that we also have an older version of our product (based on Neon) for which the update mechanism works fine.

Is this something known, or does anyone have a clue what I can further test to spot the bug?


Best regards,
Thomas Kutz

Telefon: +49 231 9860 203
Mobil:   +49 151 62832253
http://www.itemis.de
thomas.kutz@xxxxxxxxx
itemis AG | Am Brambusch 15-24 |Â44536 LÃnen
Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vors.), Michael Neuhaus, Jennifer Fiorentino

Re: [tycho-user] Update on macOS fails to execute chmod

$
0
0

cross-posting to p2-dev as this is happening in p2 code

 

chmod not being on the PATH seems strange to me.

 

Regards

Jan

 

From: <tycho-user-bounces@xxxxxxxxxxx> on behalf of Thomas Kutz <thomas.kutz@xxxxxxxxx>
Reply-To: Tycho list <tycho-user@xxxxxxxxxxx>
Date: Monday, 6. August 2018 at 16:45
To: Tycho list <tycho-user@xxxxxxxxxxx>
Subject: [tycho-user] Update on macOS fails to execute chmod

 

Hi all,

 

I am experiencing problems when updating my tycho built product on macOS. So this is my scenario:

 

I have a product built with tycho 1.0.0 based on Eclipse Oxygen (org.eclipse.rcp_4.7.2.v20171130-0510) and an update-site containing a newer version of my custom features. When I update this product eclipse with the features on my update-site, the executable looses its executable bit, so I cannot open my product anymore. 

 

I debugged it remotely and found out that there is an exception thrown in ChmodAction when trying to execute Runtime.getRuntime().exec("chmod", "755", "path/to/executable"): java.io.IOException: Cannot run program âchmodâ: error=2, No such file or directory

 

How can it be that chmod is not found (other binaries like "echo" are not found either)?

 

This problem occurs on several macOS systems. That said, I should mention that we also have an older version of our product (based on Neon) for which the update mechanism works fine.

 

Is this something known, or does anyone have a clue what I can further test to spot the bug?

 

 

Best regards,

Thomas Kutz
 
Telefon: +49 231 9860 203
Mobil:   +49 151 62832253
http://www.itemis.de
thomas.kutz@xxxxxxxxx
itemis AG | Am Brambusch 15-24 | 44536 LÃnen
Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vors.), Michael Neuhaus, Jennifer Fiorentino
Viewing all 4647 articles
Browse latest View live


Latest Images