You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lécharny <el...@symas.com> on 2014/12/02 18:10:11 UTC

Building Studio-Tycho branch with latest revisions : issues...

Hi !


Today, I tried to build the Studio-tycho branch after having bumped up
the ApacheDS and LDAP API dependencies to the latest versions (1.0.0-M26
and 2.0.0-M19). Not an happy day :


[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed:
org.apache.directory.server.protocol.shared 2.0.0.M19
[ERROR]   Missing requirement: org.apache.directory.api.ldap.model
1.0.0.M26 requires 'package antlr 2.7.7' but it could not be found
[ERROR]   Cannot satisfy dependency:
org.apache.directory.server.protocol.shared 2.0.0.M19 depends on:
package org.apache.directory.api.ldap.model.constants [1.0.0,2.0.0)
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: Failed to resolve
target definition
/Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target:
No solution found because the problem is unsatisfiable.: [Unable to
satisfy dependency from org.apache.directory.api.dsmlv2.parser 1.0.0.M26
to package org.dom4j 1.6.1.; Unable to satisfy dependency from
org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package org.dom4j.io
1.6.1.; Unable to satisfy dependency from
org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
org.dom4j.tree 1.6.1.; Unable to satisfy dependency from
org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
org.xmlpull.v1 1.1.0.4c.; Unable to satisfy dependency from
org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package antlr
2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package
antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package antlr
2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package
antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.model 1.0.0.M26 to package antlr 2.7.7.;
Unable to satisfy dependency from org.apache.directory.api.ldap.model
1.0.0.M26 to package antlr.collections.impl 2.7.7.; Unable to satisfy
dependency from org.apache.directory.api.ldap.schema.converter 1.0.0.M26
to package antlr 2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.schema.converter 1.0.0.M26 to package
org.commons.lang.exception 2.6.0.; No solution found because the problem
is unsatisfiable.] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: Failed to resolve target definition
/Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: Failed to resolve target
definition
/Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target
    at
org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:85)
    at
org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments(TargetDefinitionResolverService.java:65)
    at
org.eclipse.tycho.p2.target.TargetDefinitionResolverService.getTargetDefinitionContent(TargetDefinitionResolverService.java:55)
    at
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.resolveTargetDefinitions(TargetPlatformFactoryImpl.java:210)
    at
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:144)
    at
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:117)
    at
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:1)
    at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:214)
    at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100)
    at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
    ... 11 more
Caused by:
org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
No solution found because the problem is unsatisfiable.: [Unable to
satisfy dependency from org.apache.directory.api.dsmlv2.parser 1.0.0.M26
to package org.dom4j 1.6.1.; Unable to satisfy dependency from
org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package org.dom4j.io
1.6.1.; Unable to satisfy dependency from
org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
org.dom4j.tree 1.6.1.; Unable to satisfy dependency from
org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
org.xmlpull.v1 1.1.0.4c.; Unable to satisfy dependency from
org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package antlr
2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package
antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package antlr
2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package
antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.model 1.0.0.M26 to package antlr 2.7.7.;
Unable to satisfy dependency from org.apache.directory.api.ldap.model
1.0.0.M26 to package antlr.collections.impl 2.7.7.; Unable to satisfy
dependency from org.apache.directory.api.ldap.schema.converter 1.0.0.M26
to package antlr 2.7.7.; Unable to satisfy dependency from
org.apache.directory.api.ldap.schema.converter 1.0.0.M26 to package
org.commons.lang.exception 2.6.0.; No solution found because the problem
is unsatisfiable.]
    at
org.eclipse.tycho.p2.target.TargetDefinitionResolver.newResolutionException(TargetDefinitionResolver.java:237)
    at
org.eclipse.tycho.p2.target.TargetDefinitionResolver$2.newResolutionException(TargetDefinitionResolver.java:195)
    at
org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
    at
org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.multiPlatformResolve(AbstractResolutionStrategy.java:71)
    at
org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContentWithExceptions(TargetDefinitionResolver.java:151)
    at
org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:80)
    ... 22 more
Caused by: org.eclipse.core.runtime.CoreException: No solution found
because the problem is unsatisfiable.
    ... 28 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException



I have absolutely no clue about the pb, all the listed dependencies,
supposely to be unsatisfiable, are present...

Anyone ?

Re: Building Studio-Tycho branch with latest revisions : issues...

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
> The thing is that the error messages we get are everything but explicit
> about the cause of failure :/

You name it, I just started to write a separate discussion in another
mail...




Re: Building Studio-Tycho branch with latest revisions : issues...

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 02/12/14 19:16, Stefan Seelmann a écrit :
> Hi Emmanuel,
>
> there are some problems I identified so far:
>
> * JDBM 2.0.0-M3 has an invalid manifest.mf, it includes the snapshop
> version. I fixed it by using maven-bundle-plugin that generates the
> manifest.
Hell !

>
> * Mavibot 1.0.0-M6 has no manifest at all. Here I also added the
> maven-bundle-plugin.

great.
>
> * api-ldap-schema-converter 1.0.0-M26 has the pb that exported
> org.commons.lang.exception;version is "2.6", somehow in the tycho build
> this package can't be resolved. I removed this explicit version and let
> maven-bundle-plugin generate the manifest entry for it which then
> results in "[2.6,3)", which works in the tycho build.
Ok, good move.
>
> * api-ldap-client-api 1.0.0-M26 manifest contains wrong export-package names
grrrr...
>
> I'll commit my changes right now.

Super !
>
> I know that you had problems with using JDBM in Fortress when using
> packaging=bundle, as I changed it back to bundle can you please check
> what was the problmen with it?

You can keep M2 if it works, we will figure out what the pb is with
Fortress. Sadly, I'm afraid that we will have to get a new release of
ApacheDS if we want the bundle version of JDBM to be used. We *have* to
get rid of JDBM as fast as we can !

>
> The next problem is that the p2-maven-plugin in the tycho build I'm
> using doesn't support snapshot dependencies well.
Which is ok, we are not supposed to use SNAPSHOT anyway.

>
> Sorry but I didn't find time since ApacheCon to continue to work on it,
> hopefully next weekend.
Me neither, don't worry. I'm back to Studio in order to get the config
plugin to work, as we have made some changes in the apacheDS config, and
I'm not exactly in a hurry here.

The thing is that the error messages we get are everything but explicit
about the cause of failure :/

Thanks Stefan !


Re: Building Studio-Tycho branch with latest revisions : issues...

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
Hi Emmanuel,

there are some problems I identified so far:

* JDBM 2.0.0-M3 has an invalid manifest.mf, it includes the snapshop
version. I fixed it by using maven-bundle-plugin that generates the
manifest.

* Mavibot 1.0.0-M6 has no manifest at all. Here I also added the
maven-bundle-plugin.

* api-ldap-schema-converter 1.0.0-M26 has the pb that exported
org.commons.lang.exception;version is "2.6", somehow in the tycho build
this package can't be resolved. I removed this explicit version and let
maven-bundle-plugin generate the manifest entry for it which then
results in "[2.6,3)", which works in the tycho build.

* api-ldap-client-api 1.0.0-M26 manifest contains wrong export-package names

I'll commit my changes right now.

I know that you had problems with using JDBM in Fortress when using
packaging=bundle, as I changed it back to bundle can you please check
what was the problmen with it?

The next problem is that the p2-maven-plugin in the tycho build I'm
using doesn't support snapshot dependencies well.

Sorry but I didn't find time since ApacheCon to continue to work on it,
hopefully next weekend.

Kind Regards,
Stefan





On 12/02/2014 06:10 PM, Emmanuel Lécharny wrote:
> Hi !
> 
> 
> Today, I tried to build the Studio-tycho branch after having bumped up
> the ApacheDS and LDAP API dependencies to the latest versions (1.0.0-M26
> and 2.0.0-M19). Not an happy day :
> 
> 
> [ERROR] Cannot resolve project dependencies:
> [ERROR]   Software being installed:
> org.apache.directory.server.protocol.shared 2.0.0.M19
> [ERROR]   Missing requirement: org.apache.directory.api.ldap.model
> 1.0.0.M26 requires 'package antlr 2.7.7' but it could not be found
> [ERROR]   Cannot satisfy dependency:
> org.apache.directory.server.protocol.shared 2.0.0.M19 depends on:
> package org.apache.directory.api.ldap.model.constants [1.0.0,2.0.0)
> [ERROR]
> [ERROR] Internal error: java.lang.RuntimeException: Failed to resolve
> target definition
> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target:
> No solution found because the problem is unsatisfiable.: [Unable to
> satisfy dependency from org.apache.directory.api.dsmlv2.parser 1.0.0.M26
> to package org.dom4j 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package org.dom4j.io
> 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
> org.dom4j.tree 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
> org.xmlpull.v1 1.1.0.4c.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package antlr
> 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package
> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package antlr
> 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package
> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.model 1.0.0.M26 to package antlr 2.7.7.;
> Unable to satisfy dependency from org.apache.directory.api.ldap.model
> 1.0.0.M26 to package antlr.collections.impl 2.7.7.; Unable to satisfy
> dependency from org.apache.directory.api.ldap.schema.converter 1.0.0.M26
> to package antlr 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.schema.converter 1.0.0.M26 to package
> org.commons.lang.exception 2.6.0.; No solution found because the problem
> is unsatisfiable.] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: Failed to resolve target definition
> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>     at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>     at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>     at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.RuntimeException: Failed to resolve target
> definition
> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target
>     at
> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:85)
>     at
> org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments(TargetDefinitionResolverService.java:65)
>     at
> org.eclipse.tycho.p2.target.TargetDefinitionResolverService.getTargetDefinitionContent(TargetDefinitionResolverService.java:55)
>     at
> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.resolveTargetDefinitions(TargetPlatformFactoryImpl.java:210)
>     at
> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:144)
>     at
> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:117)
>     at
> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:1)
>     at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:214)
>     at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100)
>     at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
>     ... 11 more
> Caused by:
> org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
> No solution found because the problem is unsatisfiable.: [Unable to
> satisfy dependency from org.apache.directory.api.dsmlv2.parser 1.0.0.M26
> to package org.dom4j 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package org.dom4j.io
> 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
> org.dom4j.tree 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
> org.xmlpull.v1 1.1.0.4c.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package antlr
> 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package
> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package antlr
> 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package
> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.model 1.0.0.M26 to package antlr 2.7.7.;
> Unable to satisfy dependency from org.apache.directory.api.ldap.model
> 1.0.0.M26 to package antlr.collections.impl 2.7.7.; Unable to satisfy
> dependency from org.apache.directory.api.ldap.schema.converter 1.0.0.M26
> to package antlr 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.schema.converter 1.0.0.M26 to package
> org.commons.lang.exception 2.6.0.; No solution found because the problem
> is unsatisfiable.]
>     at
> org.eclipse.tycho.p2.target.TargetDefinitionResolver.newResolutionException(TargetDefinitionResolver.java:237)
>     at
> org.eclipse.tycho.p2.target.TargetDefinitionResolver$2.newResolutionException(TargetDefinitionResolver.java:195)
>     at
> org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>     at
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.multiPlatformResolve(AbstractResolutionStrategy.java:71)
>     at
> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContentWithExceptions(TargetDefinitionResolver.java:151)
>     at
> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:80)
>     ... 22 more
> Caused by: org.eclipse.core.runtime.CoreException: No solution found
> because the problem is unsatisfiable.
>     ... 28 more
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
> 
> 
> 
> I have absolutely no clue about the pb, all the listed dependencies,
> supposely to be unsatisfiable, are present...
> 
> Anyone ?
> 


Re: Building Studio-Tycho branch with latest revisions : issues...

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 02/12/14 18:22, Jeff MAURY a écrit :
> Can you run with -Dtycho.debug.resolver=true and show the log

The logs are no different...


I'm concerned by the message :

Missing requirement: org.apache.directory.api.ldap.model
1.0.0.M26 requires 'package antlr 2.7.7' but it could not be found

in ldap.model pom.xml, I do have that :

            <Import-Package>
              antlr;version=${antlr.version},

with <antlr.version>2.7.7</antlr.version>


The pb is easy to reproduce :

$ co http://svn.apache.org/repos/asf/directory/studio/branches/studio-tycho/
$ cd eclipse-target-platform
$ mvn clean install
...
$ cd ..
$ mvn clean install

should work just fine.

Now, open the root pom.xml file, and replace any reference to 1.0.0-M24
by 1.0.0-M26, any reference to 2.0.0-M17 by 2.0.0-M19, and any reference
to mina 2.0.7 by 2.0.9. Then :

$ co http://svn.apache.org/repos/asf/directory/studio/branches/studio-tycho/
$ cd eclipse-target-platform
$ mvn clean install
...
$ cd ..
$ mvn clean install

That shoudl fail with non flying colors...
>
> Jeff
>
> On Tue, Dec 2, 2014 at 6:10 PM, Emmanuel Lécharny <el...@symas.com>
> wrote:
>
>> Hi !
>>
>>
>> Today, I tried to build the Studio-tycho branch after having bumped up
>> the ApacheDS and LDAP API dependencies to the latest versions (1.0.0-M26
>> and 2.0.0-M19). Not an happy day :
>>
>>
>> [ERROR] Cannot resolve project dependencies:
>> [ERROR]   Software being installed:
>> org.apache.directory.server.protocol.shared 2.0.0.M19
>> [ERROR]   Missing requirement: org.apache.directory.api.ldap.model
>> 1.0.0.M26 requires 'package antlr 2.7.7' but it could not be found
>> [ERROR]   Cannot satisfy dependency:
>> org.apache.directory.server.protocol.shared 2.0.0.M19 depends on:
>> package org.apache.directory.api.ldap.model.constants [1.0.0,2.0.0)
>> [ERROR]
>> [ERROR] Internal error: java.lang.RuntimeException: Failed to resolve
>> target definition
>>
>> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target:
>> No solution found because the problem is unsatisfiable.: [Unable to
>> satisfy dependency from org.apache.directory.api.dsmlv2.parser 1.0.0.M26
>> to package org.dom4j 1.6.1.; Unable to satisfy dependency from
>> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package org.dom4j.io
>> 1.6.1.; Unable to satisfy dependency from
>> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
>> org.dom4j.tree 1.6.1.; Unable to satisfy dependency from
>> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
>> org.xmlpull.v1 1.1.0.4c.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package antlr
>> 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package
>> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package antlr
>> 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package
>> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.model 1.0.0.M26 to package antlr 2.7.7.;
>> Unable to satisfy dependency from org.apache.directory.api.ldap.model
>> 1.0.0.M26 to package antlr.collections.impl 2.7.7.; Unable to satisfy
>> dependency from org.apache.directory.api.ldap.schema.converter 1.0.0.M26
>> to package antlr 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.schema.converter 1.0.0.M26 to package
>> org.commons.lang.exception 2.6.0.; No solution found because the problem
>> is unsatisfiable.] -> [Help 1]
>> org.apache.maven.InternalErrorException: Internal error:
>> java.lang.RuntimeException: Failed to resolve target definition
>>
>> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target
>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
>>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
>>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>     at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>     at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>     at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> Caused by: java.lang.RuntimeException: Failed to resolve target
>> definition
>>
>> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:85)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments(TargetDefinitionResolverService.java:65)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetDefinitionResolverService.getTargetDefinitionContent(TargetDefinitionResolverService.java:55)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.resolveTargetDefinitions(TargetPlatformFactoryImpl.java:210)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:144)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:117)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:1)
>>     at
>>
>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:214)
>>     at
>>
>> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100)
>>     at
>>
>> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
>>     ... 11 more
>> Caused by:
>> org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
>> No solution found because the problem is unsatisfiable.: [Unable to
>> satisfy dependency from org.apache.directory.api.dsmlv2.parser 1.0.0.M26
>> to package org.dom4j 1.6.1.; Unable to satisfy dependency from
>> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package org.dom4j.io
>> 1.6.1.; Unable to satisfy dependency from
>> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
>> org.dom4j.tree 1.6.1.; Unable to satisfy dependency from
>> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
>> org.xmlpull.v1 1.1.0.4c.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package antlr
>> 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package
>> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package antlr
>> 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package
>> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.model 1.0.0.M26 to package antlr 2.7.7.;
>> Unable to satisfy dependency from org.apache.directory.api.ldap.model
>> 1.0.0.M26 to package antlr.collections.impl 2.7.7.; Unable to satisfy
>> dependency from org.apache.directory.api.ldap.schema.converter 1.0.0.M26
>> to package antlr 2.7.7.; Unable to satisfy dependency from
>> org.apache.directory.api.ldap.schema.converter 1.0.0.M26 to package
>> org.commons.lang.exception 2.6.0.; No solution found because the problem
>> is unsatisfiable.]
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetDefinitionResolver.newResolutionException(TargetDefinitionResolver.java:237)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetDefinitionResolver$2.newResolutionException(TargetDefinitionResolver.java:195)
>>     at
>>
>> org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>>     at
>>
>> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.multiPlatformResolve(AbstractResolutionStrategy.java:71)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContentWithExceptions(TargetDefinitionResolver.java:151)
>>     at
>>
>> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:80)
>>     ... 22 more
>> Caused by: org.eclipse.core.runtime.CoreException: No solution found
>> because the problem is unsatisfiable.
>>     ... 28 more
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
>>
>>
>>
>> I have absolutely no clue about the pb, all the listed dependencies,
>> supposely to be unsatisfiable, are present...
>>
>> Anyone ?
>>
>
>


Re: Building Studio-Tycho branch with latest revisions : issues...

Posted by Jeff MAURY <je...@jeffmaury.com>.
Can you run with -Dtycho.debug.resolver=true and show the log

Jeff

On Tue, Dec 2, 2014 at 6:10 PM, Emmanuel Lécharny <el...@symas.com>
wrote:

> Hi !
>
>
> Today, I tried to build the Studio-tycho branch after having bumped up
> the ApacheDS and LDAP API dependencies to the latest versions (1.0.0-M26
> and 2.0.0-M19). Not an happy day :
>
>
> [ERROR] Cannot resolve project dependencies:
> [ERROR]   Software being installed:
> org.apache.directory.server.protocol.shared 2.0.0.M19
> [ERROR]   Missing requirement: org.apache.directory.api.ldap.model
> 1.0.0.M26 requires 'package antlr 2.7.7' but it could not be found
> [ERROR]   Cannot satisfy dependency:
> org.apache.directory.server.protocol.shared 2.0.0.M19 depends on:
> package org.apache.directory.api.ldap.model.constants [1.0.0,2.0.0)
> [ERROR]
> [ERROR] Internal error: java.lang.RuntimeException: Failed to resolve
> target definition
>
> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target:
> No solution found because the problem is unsatisfiable.: [Unable to
> satisfy dependency from org.apache.directory.api.dsmlv2.parser 1.0.0.M26
> to package org.dom4j 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package org.dom4j.io
> 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
> org.dom4j.tree 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
> org.xmlpull.v1 1.1.0.4c.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package antlr
> 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package
> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package antlr
> 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package
> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.model 1.0.0.M26 to package antlr 2.7.7.;
> Unable to satisfy dependency from org.apache.directory.api.ldap.model
> 1.0.0.M26 to package antlr.collections.impl 2.7.7.; Unable to satisfy
> dependency from org.apache.directory.api.ldap.schema.converter 1.0.0.M26
> to package antlr 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.schema.converter 1.0.0.M26 to package
> org.commons.lang.exception 2.6.0.; No solution found because the problem
> is unsatisfiable.] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: Failed to resolve target definition
>
> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>     at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>     at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>     at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.RuntimeException: Failed to resolve target
> definition
>
> /Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/2.0.0-SNAPSHOT/eclipse-target-platform-2.0.0-SNAPSHOT.target
>     at
>
> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:85)
>     at
>
> org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments(TargetDefinitionResolverService.java:65)
>     at
>
> org.eclipse.tycho.p2.target.TargetDefinitionResolverService.getTargetDefinitionContent(TargetDefinitionResolverService.java:55)
>     at
>
> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.resolveTargetDefinitions(TargetPlatformFactoryImpl.java:210)
>     at
>
> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:144)
>     at
>
> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:117)
>     at
>
> org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:1)
>     at
>
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:214)
>     at
>
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100)
>     at
>
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
>     ... 11 more
> Caused by:
> org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
> No solution found because the problem is unsatisfiable.: [Unable to
> satisfy dependency from org.apache.directory.api.dsmlv2.parser 1.0.0.M26
> to package org.dom4j 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package org.dom4j.io
> 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
> org.dom4j.tree 1.6.1.; Unable to satisfy dependency from
> org.apache.directory.api.dsmlv2.parser 1.0.0.M26 to package
> org.xmlpull.v1 1.1.0.4c.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package antlr
> 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.aci 1.0.0.M26 to package
> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package antlr
> 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.extras.trigger 1.0.0.M26 to package
> antlr.collections.impl 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.model 1.0.0.M26 to package antlr 2.7.7.;
> Unable to satisfy dependency from org.apache.directory.api.ldap.model
> 1.0.0.M26 to package antlr.collections.impl 2.7.7.; Unable to satisfy
> dependency from org.apache.directory.api.ldap.schema.converter 1.0.0.M26
> to package antlr 2.7.7.; Unable to satisfy dependency from
> org.apache.directory.api.ldap.schema.converter 1.0.0.M26 to package
> org.commons.lang.exception 2.6.0.; No solution found because the problem
> is unsatisfiable.]
>     at
>
> org.eclipse.tycho.p2.target.TargetDefinitionResolver.newResolutionException(TargetDefinitionResolver.java:237)
>     at
>
> org.eclipse.tycho.p2.target.TargetDefinitionResolver$2.newResolutionException(TargetDefinitionResolver.java:195)
>     at
>
> org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>     at
>
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.multiPlatformResolve(AbstractResolutionStrategy.java:71)
>     at
>
> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContentWithExceptions(TargetDefinitionResolver.java:151)
>     at
>
> org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:80)
>     ... 22 more
> Caused by: org.eclipse.core.runtime.CoreException: No solution found
> because the problem is unsatisfiable.
>     ... 28 more
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
>
>
>
> I have absolutely no clue about the pb, all the listed dependencies,
> supposely to be unsatisfiable, are present...
>
> Anyone ?
>



-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury