Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Nested jars in dependency issue.

Ah yes, thank you. I see the job name is used as a directory name, so I change it.

Still I got the problem, so I managed to solve this, with the following experiences along the way.

- The default goals for Jenkins maven is not "clean install", after adding these goals, I could see the real cause of the problem, which as a compilation problem, for a missing dependency.

- The dependency is optional, and interrestingly enough it compiles om my local box, but not on my build server. Before, I added this setting in the root POM, to avoid compilation problems for dependencies, I really didn't want in the build:

<dependency-resolution>
                        <optionalDependencies>ignore</optionalDependencies>
</dependency-resolution>

But now, I have a dependency which is also optional, but I do want to compile with.

So my question is:

- Why does it compile the same pom.xml structure on one machine, but not the other, it seems related to the missing dependency which is optional? Eclipse, behaves like this. If the dependency is optional, but available in the target or workspace it will be included, if it's not it won't. Tycho seems to say, if it's optional we must include it, unless the parameter says ignore. How do I deal with an appearantly conflicting requirement? (The work around, it not to make the plugins optional, but that is kind of rough).  I would expect a different behaviour at compile vs runtime. So at compile, you need it as, the code will have import to the optional dep. At runtime, you won't.

Thx Christophe














On Fri, Sep 13, 2013 at 9:53 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
I'd start by renaming Hudson job to something without spaces and brackets.

--
Regards,
Igor

On 2013-09-13 3:34 PM, Christophe Bouhier wrote:
Hi,

I am slowly moving forward, now I get this weird Warning,

[WARNING] Dependency from /var/lib/jenkins/workspace/Netxstudio (Tycho)/products/com.netxforge.releng.products.netxstudio.cdo to nested classpath entry /var/lib/jenkins/workspace/Netxstudio (Tycho)/libs.eclipse/org.eclipse.ui.ide/e4-ide.jar can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins
[DEBUG] Bundle-ClassPath entry icu-data.jar does not exist in/var/lib/jenkins/.m2/repository/p2/osgi/bundle/com.ibm.icu/50.1.1.v201304230130/com.ibm.icu-50.1.1.v201304230130.jar
[DEBUG] Bundle-ClassPath entry runtime_registry_compatibility.jar does not exist in/var/lib/jenkins/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.registry/3.5.300.v20130327-1442/org.eclipse.equinox.registry-3.5.300.v20130327-1442.jar
[DEBUG] Bundle-ClassPath entry injection_annotations.jar does not exist in/var/lib/jenkins/.m2/repository/p2/osgi/bundle/org.eclipse.e4.core.services/1.1.0.v20130515-1343/org.eclipse.e4.core.services-1.1.0.v20130515-1343.jar
[DEBUG] Bundle-ClassPath entry e4-workbench.jar does not exist in/var/lib/jenkins/.m2/repository/p2/osgi/bundle/org.eclipse.ui.workbench/3.105.0.v20130529-1406/org.eclipse.ui.workbench-3.105.0.v20130529-1406.jar
[DEBUG] Bundle-ClassPath entry compatibility.jar does not exist in/var/lib/jenkins/.m2/repository/p2/osgi/bundle/org.eclipse.ui.workbench/3.105.0.v20130529-1406/org.eclipse.ui.workbench-3.105.0.v20130529-1406.jar
[DEBUG] Bundle-ClassPath entry tools.jar does not exist in/var/lib/jenkins/.m2/repository/p2/osgi/bundle/org.eclipse.jdt.debug/3.8.0.v20130514-0841/org.eclipse.jdt.debug-3.8.0.v20130514-0841.jar


...and a build failure.


channel stopped
Finished: FAILURE

There is no Exception or stacktrace.  (I Use -e -X switches) Is the warning the culprit?

On my local machine, I get compilation errors, missing imports which are in

the .target for sure...All weird stuff to me...

This problem started to occur when I added the following plugins which I had to customize
for an RCP.

org.eclipse.ui.ide
org.eclipse.ui.navigator.resources



Any ideas?

Thanks Christophe



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top