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...@gmail.com> on 2015/01/08 13:39:08 UTC
[Studio Tycho] trouble with ehcache
Hi,
it seems like the build does not work anymore with the latest version of
ehcache (2.9.0) as we don't have a bundle for it.
I tried to update the pom and eclipse target to use the latest release
of the API and component, with no success...
Re: [Studio Tycho] trouble with ehcache
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 09/01/15 01:04, Emmanuel Lécharny a écrit :
> Le 08/01/15 18:10, Stefan Seelmann a écrit :
>> On 01/08/2015 05:40 PM, Emmanuel Lécharny wrote:
>>> Le 08/01/15 16:58, Stefan Seelmann a écrit :
>>>> Yes, I changed ehcache from servicemix 2.4.3 to original 2.8.5, this
>>>> works perfectly. The trick is to change it in eclipse target platform
>>>> file so that both Maven Tycho and Eclipse are happy.
>>> I still have an error when I run the build.sh script :
>>>
>>> Could not find "net.sf.ehcache/2.8.5" in the repositories of the current
>>> location
>> As you mentioned version 2.9.0 in your initial mail, did you upgrade to
>> that version in your apacheds/pom.xml? Then of course please also update
>> the version in studio-tycho/pom.xml.
> Doh... I'm an idiot (or I'm tired ;-) (or both :/ )
>
> Thanks Stefan !
Pb solved. I have everything building ok (after having fixed a few
dependencies - slf4j -) and after having added the target and source
version in a specific tycho compiler plugin (don't know what it's needed
now, but otherwise, the build was failing on the CL, it was expecting a
Java 4 version :/ )
I also bumped up to tycho 0.22.0.
The ApacheDS config is loading again, there was a missing CacheService
injection in the LdifPartition we were using.
Moving forward adding the missing parts in the config now !
Re: [Studio Tycho] trouble with ehcache
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 08/01/15 18:10, Stefan Seelmann a écrit :
> On 01/08/2015 05:40 PM, Emmanuel Lécharny wrote:
>> Le 08/01/15 16:58, Stefan Seelmann a écrit :
>>> Yes, I changed ehcache from servicemix 2.4.3 to original 2.8.5, this
>>> works perfectly. The trick is to change it in eclipse target platform
>>> file so that both Maven Tycho and Eclipse are happy.
>> I still have an error when I run the build.sh script :
>>
>> Could not find "net.sf.ehcache/2.8.5" in the repositories of the current
>> location
> As you mentioned version 2.9.0 in your initial mail, did you upgrade to
> that version in your apacheds/pom.xml? Then of course please also update
> the version in studio-tycho/pom.xml.
Doh... I'm an idiot (or I'm tired ;-) (or both :/ )
Thanks Stefan !
Re: [Studio Tycho] trouble with ehcache
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 01/08/2015 05:40 PM, Emmanuel Lécharny wrote:
> Le 08/01/15 16:58, Stefan Seelmann a écrit :
>> Yes, I changed ehcache from servicemix 2.4.3 to original 2.8.5, this
>> works perfectly. The trick is to change it in eclipse target platform
>> file so that both Maven Tycho and Eclipse are happy.
>
> I still have an error when I run the build.sh script :
>
> Could not find "net.sf.ehcache/2.8.5" in the repositories of the current
> location
As you mentioned version 2.9.0 in your initial mail, did you upgrade to
that version in your apacheds/pom.xml? Then of course please also update
the version in studio-tycho/pom.xml.
Re: [Studio Tycho] trouble with ehcache
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 08/01/15 16:58, Stefan Seelmann a écrit :
> Yes, I changed ehcache from servicemix 2.4.3 to original 2.8.5, this
> works perfectly. The trick is to change it in eclipse target platform
> file so that both Maven Tycho and Eclipse are happy.
I still have an error when I run the build.sh script :
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject:
org.apache.directory.studio:org.apache.directory.studio.aciitemeditor:2.0.0-SNAPSHOT
@ /Users/elecharny/apacheds/stycho/plugins/aciitemeditor/pom.xml
[INFO] Adding repository
file:///Users/elecharny/apacheds/stycho/eclipse-target-platform/target/repository
[ERROR] Internal error: java.lang.RuntimeException: Failed to resolve
target definition
/Users/elecharny/.m2/repository/org/apache/directory/studio/eclipse-target-platform/1-SNAPSHOT/eclipse-target-platform-1-SNAPSHOT.target:
Could not find "net.sf.ehcache/2.8.5" in the repositories of the current
location -> [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/1-SNAPSHOT/eclipse-target-platform-1-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:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
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/1-SNAPSHOT/eclipse-target-platform-1-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:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
... 11 more
Caused by:
org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
Could not find "net.sf.ehcache/2.8.5" in the repositories of the current
location
at
org.eclipse.tycho.p2.target.TargetDefinitionResolver.getUnitInstance(TargetDefinitionResolver.java:214)
at
org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContentWithExceptions(TargetDefinitionResolver.java:128)
at
org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:80)
... 22 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.
Re: [Studio Tycho] trouble with ehcache
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
Yes, I changed ehcache from servicemix 2.4.3 to original 2.8.5, this
works perfectly. The trick is to change it in eclipse target platform
file so that both Maven Tycho and Eclipse are happy.
Kind Regard,
Stefan
On 01/08/2015 03:29 PM, Colm O hEigeartaigh wrote:
> Can we use 2.8.5 as apache-ds-trunk is using? What exactly is the problem?
>
> Colm.
>
> On Thu, Jan 8, 2015 at 12:39 PM, Emmanuel Lécharny <el...@gmail.com>
> wrote:
>
>> Hi,
>>
>> it seems like the build does not work anymore with the latest version of
>> ehcache (2.9.0) as we don't have a bundle for it.
>>
>> I tried to update the pom and eclipse target to use the latest release
>> of the API and component, with no success...
>>
>
>
>
Re: [Studio Tycho] trouble with ehcache
Posted by Colm O hEigeartaigh <co...@apache.org>.
Can we use 2.8.5 as apache-ds-trunk is using? What exactly is the problem?
Colm.
On Thu, Jan 8, 2015 at 12:39 PM, Emmanuel Lécharny <el...@gmail.com>
wrote:
> Hi,
>
> it seems like the build does not work anymore with the latest version of
> ehcache (2.9.0) as we don't have a bundle for it.
>
> I tried to update the pom and eclipse target to use the latest release
> of the API and component, with no success...
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: [Studio Tycho] trouble with ehcache
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 01/08/2015 01:39 PM, Emmanuel Lécharny wrote:
> Hi,
>
> it seems like the build does not work anymore with the latest version of
> ehcache (2.9.0) as we don't have a bundle for it.
>
> I tried to update the pom and eclipse target to use the latest release
> of the API and component, with no success...
I'll have a look...