Maven repository providing org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar:0.9.0? [message #1262292] |
Mon, 03 March 2014 08:19  |
Eclipse User |
|
|
|
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 02:51  |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.25600 seconds