Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Maven repository providing org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar:0.9.0?
Maven repository providing org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar:0.9.0? [message #1262292] Mon, 03 March 2014 13:19 Go to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
I am trying to set up tycho surefire tests to execute tests that have JavaFX dependencies. I have it as follows:

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includes>
<include>**/All*Tests.class</include>
</includes>
<useUIHarness>false</useUIHarness>
<useUIThread>false</useUIThread>
<useSystemClassLoader>true</useSystemClassLoader>
<argLine>-Xmx512m -XX:MaxPermSize=256m -Dosgi.framework.extensions=org.eclipse.fx.osgi</argLine>
<frameworkExtensions>
<frameworkExtension>
<groupId>org.eclipse.fx.runtime</groupId>
<artifactId>org.eclipse.fx.osgi</artifactId>
<version>0.9.0</version>
</frameworkExtension>
</frameworkExtensions>
</configuration>
</plugin>

Maven does not seem to search for the framework extension bundle in the target, but only in the registered maven repositories, where it cannot find the org.eclipse.fx.osgi bundle:

1 required artifact is missing.
[ERROR]
[ERROR] for artifact:
[ERROR] org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar:0.9.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] CBI (https://repo.eclipse.org/content/repositories/cbi-releases/, releases=true, snapshots=true),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]

Is there a Maven repo that contains the respective jar, or can I configure my build so it gets retrieved from the target p2 repository?
Re: Maven repository providing org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar:0.9.0? [message #1263123 is a reply to message #1262292] Tue, 04 March 2014 07:51 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

No - we are currently not pushing our bits to a maven repo. To run unit
tests I've always installed the fx.osgi jar into my local repository by
hand.

I'm not really an expert but I can somehow remember that nexus has a p2
adapter (maybe this completely bogus who knows).

Does the eclipse foundation have a maven repo, if there is one we could
push our bits there. Naturally we can also push them to maven central
but I would need help from a maven savy person for both of them!

In the end IMHO it would be perfect if the tycho plugin would search the
p2 repo not?

Tom

On 03.03.14 14:19, Alexander Nyssen wrote:
> I am trying to set up tycho surefire tests to execute tests that have
> JavaFX dependencies. I have it as follows:
>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-surefire-plugin</artifactId>
> <version>${tycho-version}</version>
> <configuration>
> <includes>
> <include>**/All*Tests.class</include>
> </includes>
> <useUIHarness>false</useUIHarness>
> <useUIThread>false</useUIThread>
> <useSystemClassLoader>true</useSystemClassLoader>
> <argLine>-Xmx512m -XX:MaxPermSize=256m
> -Dosgi.framework.extensions=org.eclipse.fx.osgi</argLine>
> <frameworkExtensions>
> <frameworkExtension>
> <groupId>org.eclipse.fx.runtime</groupId>
> <artifactId>org.eclipse.fx.osgi</artifactId>
> <version>0.9.0</version>
> </frameworkExtension>
> </frameworkExtensions>
> </configuration>
> </plugin>
>
> Maven does not seem to search for the framework extension bundle in the
> target, but only in the registered maven repositories, where it cannot
> find the org.eclipse.fx.osgi bundle:
>
> 1 required artifact is missing.
> [ERROR] [ERROR] for artifact:
> [ERROR] org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar:0.9.0
> [ERROR] [ERROR] from the specified remote repositories:
> [ERROR] CBI
> (https://repo.eclipse.org/content/repositories/cbi-releases/,
> releases=true, snapshots=true),
> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
> [ERROR] -> [Help 1]
>
> Is there a Maven repo that contains the respective jar, or can I
> configure my build so it gets retrieved from the target p2 repository?
Previous Topic:DnD support
Next Topic:Create and open a new E4 part programmatically
Goto Forum:
  


Current Time: Thu Apr 25 09:02:09 GMT 2024

Powered by FUDForum. Page generated in 0.02353 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top