Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse e4 Maven Tycho InjectionException(InjectionException: no actual value was found for the argument "Locale[@javax.inject.Named(value=org.eclipse.e4.core.locale)])
icon9.gif  Eclipse e4 Maven Tycho InjectionException [message #1691414] Tue, 07 April 2015 06:30 Go to next message
Pascal Heinrich is currently offline Pascal HeinrichFriend
Messages: 9
Registered: April 2015
Junior Member
Hi,

I am facing some problems with a maven tycho build.
Inside Eclipse the e4 App is working like expected but if I build the product with maven tycho (everything seems to be ok) the executabe fails with the mentioned exception.

I have no idea where to start.

See the full logfile attached.

Thanks for your help.
Re: Eclipse e4 Maven Tycho InjectionException [message #1691525 is a reply to message #1691414] Tue, 07 April 2015 19:55 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Looks like you are not using a Target Definition and the repo you are building against is not the same as your IDE. There was a change of the value type for the Locale lately. So you should check your environment.
Re: Eclipse e4 Maven Tycho InjectionException [message #1691554 is a reply to message #1691525] Wed, 08 April 2015 07:40 Go to previous messageGo to next message
Pascal Heinrich is currently offline Pascal HeinrichFriend
Messages: 9
Registered: April 2015
Junior Member
Hi Dirk,

thank you for your reply.

I have not used an target definition.
This is the first maven build I have ever done.

Now I have added an target definition which I have generated in eclipse. It is used by maven now but the same result.

Currently I am using eclipse 4.4.2(luna) for development.
Therefore I have added this to my root pom ...

don't know why but I can not submit the post with the right url in CODE TAG

	<properties>
		<tycho.version>0.22.0</tycho.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<luna-repo.url>xxx.xxx.xxx/releases/luna</luna-repo.url>
		<e4tools_repo.url>xxx.xxx.xxx/e4/downloads/drops/S-0.17-201501051100/repository</e4tools_repo.url>
	</properties>

	<repositories>

		<repository>
			<id>luna</id>
			<url>${luna-repo.url}</url>
			<layout>p2</layout>
		</repository>

		<repository>
			<id>e4tools</id>
			<url>${e4tools_repo.url}</url>
			<layout>p2</layout>
		</repository>

	</repositories>


I assume it is the right repo and the same my development ide is part of.

And here is my target definition ...

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="Running Platform" sequenceNumber="5">
<locations>
<location configuration="/C:/Users/xxxx/.eclipse/org.eclipse.platform_4.4.2_1709980481_win32_win32_x86_64/configuration/" path="${eclipse_home}" type="Profile"/>
</locations>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
<nl>de_DE</nl>
</environment>
<launcherArgs>
<vmArgs>-Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx512m</vmArgs>
</launcherArgs>
</target>


I have also tried to set the locale this way ...

				<configuration>
					
					<environments>
						<environment>
							<os>win32</os>
							<ws>win32</ws>
							<arch>x86_64</arch>
							<nl>de_DE</nl>
						</environment>
					</environments>
					
				</configuration>

[Updated on: Wed, 08 April 2015 07:43]

Report message to a moderator

Re: Eclipse e4 Maven Tycho InjectionException [message #1691560 is a reply to message #1691554] Wed, 08 April 2015 07:55 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
OK, first thing, you are using a Target Definition for development, but not for building. Your build still uses the whole repository. I've wrote a blog post on how to configure Tycho to use a target definition a while ago. Maybe it helps you with this: http://blog.vogella.com/2013/01/03/tycho-advanced/

The second thing is, your Target Definition points to your IDE, that is not what I meant and wouldn't work with Tycho. You have created the same situation with just another way.

As it seems your IDE has the latest version (SR2) and you are pointing to the Luna repository which also should contain the latest version, you might need to check version constraints in your product setup. Did you check if you included the latest e4 feature to your product?
Re: Eclipse e4 Maven Tycho InjectionException [message #1691577 is a reply to message #1691560] Wed, 08 April 2015 09:34 Go to previous message
Pascal Heinrich is currently offline Pascal HeinrichFriend
Messages: 9
Registered: April 2015
Junior Member
Wooohoooo

You are my hero dirk !!!
Many thanks for your help.

I have created an target file which defines only the necessary plugins needed and configured maven to use it via the old classifier style and everything is working now.
Previous Topic:Ready-made mock of IEclipsePreferences
Next Topic:Console Log after E4 Product Export
Goto Forum:
  


Current Time: Tue Mar 19 04:50:00 GMT 2024

Powered by FUDForum. Page generated in 0.03783 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top