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

Re: [tycho-user] building eclipse-repository error on dependency

$
0
0
you are right. I fixed once more a typo.
Looks like I loose every time a bit of credibility ;)

I have another error now and it seems I need to read again documentation on the way to build a eclipse-repository.

[ERROR] Internal error: java.lang.ClassCastException: org.eclipse.tycho.core.osgitools.DefaultReactorProject cannot be cast to org.eclipse.tycho.ReactorProject -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.ClassCastException: org.eclipse.tycho.core.osgitools.DefaultReactorProject cannot be cast to org.eclipse.tycho.ReactorProject
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

I work on this and I will follow up here if I find the error.

Thanks,

Thierry


On Thu, Mar 5, 2015 at 12:44 PM, SCHREIBER.Martin <M.SCHREIBER@xxxxxxxxxxxxx> wrote:

Hi Thierry,

Â

not looked into the details of your setup, but I see a typo in your category.xml. The âidâ should be âsandbox.featureâ not âsanbox.featureâ, you missed the âdâ.

Â

hth

martin

Â

Â

Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von titimoby
Gesendet: Donnerstag, 05. MÃrz 2015 12:20
An: Tycho user list
Betreff: [tycho-user] building eclipse-repository error on dependency

Â

Thanks to your help, I fixed my mistake in my sandbox.feature.

The goal is still to produce an eclipse-repository from this built feature that I'll then deploy on Artifactory.

Â

The project structure is as follow:

Â

build-and-publish-target

--sandbox.feature

---- build.properties

---- feature.xml

---- pom.xml

--semarchy-platform

---- category.xml

---- pom.xml

pom.xml

Â

* parent pom declares sandbox.feature and semarchy-platform as modules.

* both pom modules declares parent pom

* semarchy-platform declares a dependency to sandbox.feature through the category.xml

Â

<?xml version="1.0" encoding="UTF-8"?>

<site>

 Â<feature url="" id="sanbox.feature" version="6.5.4.3"/>

</site>

Â

and through an explicit dependency in its pom (I tried with and without it):

Â

<dependencies>

ÂÂÂ <dependency>

ÂÂÂÂÂÂÂ <groupId>sandbox.semarchy</groupId>

ÂÂÂÂÂÂÂ <artifactId>sandbox.feature</artifactId>

ÂÂÂÂÂÂÂ <version>6.5.4.3</version>

ÂÂÂ </dependency>

</dependencies>

Â

when running mvn clean with parent pom, a dependency error occurs:

Â

[ERROR] Cannot resolve project dependencies:

[ERROR] Â Software being installed: semarchy-platform 6.5.4.3

[ERROR] Â Missing requirement: semarchy-platform 6.5.4.3 requires 'sanbox.feature.feature.group [6.5.4.3]' but it could not be found

Â

When I use:

Â

mvn clean -X -Dtycho.debug.resolver=true

Â

I have refrerenced to this feature in tycho available IU:

Â

[DEBUG] Available IUs:

 semarchy-platform 6.5.4.3

 sandbox.feature.feature.group 6.5.4.3

 sandbox.feature.feature.jar 6.5.4.3

 joda-time 2.7.0

 config.a.jre.javase 1.6.0

 a.jre.javase 1.6.0

Â

Any clue?

Â

maven and Tycho world is full of delightful moment of awkward learning ;)

Â

Â

Thierry


_______________________________________________
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: log
Description: Binary data


Viewing all articles
Browse latest Browse all 4647

Trending Articles