Home » Modeling » TMF (Xtext) » plugin Dependencies 2.8
| |
Re: plugin Dependencies 2.8 [message #1690405 is a reply to message #1690333] |
Fri, 27 March 2015 07:57 |
evert theman Messages: 5 Registered: March 2015 |
Junior Member |
|
|
Hi,
Thanks for your reaction!
That is exactly what I mean. With 2.7.3 I have written the following in my Manifest.mf
Require-Bundle: org.eclipse.xtext;bundle-version="2.7.3";visibility:=reexport,
org.eclipse.xtext.xbase;resolution:=optional;visibility:=reexport,
org.eclipse.xtext.generator;bundle-version="2.7.3",
org.apache.commons.logging;bundle-version="1.0.4";resolution:=optional,
org.eclipse.emf.codegen.ecore;resolution:=optional,
org.eclipse.emf.mwe.utils;resolution:=optional,
org.eclipse.emf.mwe2.launch;resolution:=optional,
org.eclipse.xtext.util;bundle-version="2.7.3",
org.eclipse.emf.ecore,
org.eclipse.emf.common,
org.antlr.runtime,
org.eclipse.xtext.common.types;bundle-version="2.7.3",
org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional
Import-Package: org.apache.log4j,
org.eclipse.xtext.xbase.lib
So when I put everything under "Import-package" it should work?
ps.
Your book example hello.buckminster didnt work for me, at least, either.
[Updated on: Fri, 27 March 2015 08:14] Report message to a moderator
|
|
|
Re: plugin Dependencies 2.8 [message #1690422 is a reply to message #1690405] |
Fri, 27 March 2015 09:24 |
|
On 27/03/2015 08:57, evert theman wrote:
> Hi,
>
> That is exactly what I mean. With 2.7.3 I have written the following in
> my Manifest.mf
>
> Require-Bundle:
> org.eclipse.xtext;bundle-version="2.7.3";visibility:=reexport,
> org.eclipse.xtext.xbase;resolution:=optional;visibility:=reexport,
> org.eclipse.xtext.generator;bundle-version="2.7.3",
> org.apache.commons.logging;bundle-version="1.0.4";resolution:=optional,
> org.eclipse.emf.codegen.ecore;resolution:=optional,
> org.eclipse.emf.mwe.utils;resolution:=optional,
> org.eclipse.emf.mwe2.launch;resolution:=optional,
> org.eclipse.xtext.util;bundle-version="2.7.3",
> org.eclipse.emf.ecore,
> org.eclipse.emf.common,
> org.antlr.runtime,
> org.eclipse.xtext.common.types;bundle-version="2.7.3",
> org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional
> Import-Package: org.apache.log4j,
> org.eclipse.xtext.xbase.lib
>
>
> So when I put everything under "Import-package" it should work?
I was talking about installable IU, that is, feature.xml, not
MANIFEST.MF of a plugin.
Moreover, IIRC, Import-Package requirements are not automatically
considered by p2, which considers only Require-Bundle (but again, I'm
not sure of this).
>
> ps.
> Your book example hello.buckminster didnt work for me, at least, either.
>
It does not work as it is with Xtext 2.8.1? Or have you modified
something in it?
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
| | |
Re: plugin Dependencies 2.8 [message #1690479 is a reply to message #1690470] |
Fri, 27 March 2015 14:30 |
evert theman Messages: 5 Registered: March 2015 |
Junior Member |
|
|
When i try to install my site.p2 on al "vanilla" eclipse(one without xtext) i get the following error messages:
Cannot complete the install because one or more required items could not be found.
Software being installed: DSL SDK Feature 1.0.0.201503241315 DSL.sdk.feature.group 1.0.0.201503241315)
Missing requirement: DSL 1.0.0.201503241315 (DSL 1.0.0.201503241315) requires 'bundle org.eclipse.xtext [2.8.0,3.0.0)' but it could not be found
Cannot satisfy dependency:
From: DSL SDK Feature 1.0.0.201503241315 (DSL.sdk.feature.group 1.0.0.201503241315)
To: DSL [1.0.0.201503241315]
[Updated on: Fri, 27 March 2015 14:31] Report message to a moderator
|
|
| |
Re: plugin Dependencies 2.8 [message #1690501 is a reply to message #1690479] |
Fri, 27 March 2015 16:10 |
|
On 27/03/2015 15:30, evert theman wrote:
> When i try to install my site.p2 on al "vanilla" eclipse(one without
> xtext) i get the following error messages:
>
> Cannot complete the install because one or more required items could not
> be found.
> Software being installed: SDL SDK Feature 1.0.0.201503241315
> settingDefinitionLanguage.sdk.feature.group 1.0.0.201503241315)
> Missing requirement: settingDefinitionLanguage 1.0.0.201503241315
> (settingDefinitionLanguage 1.0.0.201503241315) requires 'bundle
> org.eclipse.xtext [2.8.0,3.0.0)' but it could not be found
> Cannot satisfy dependency:
> From: SDL SDK Feature 1.0.0.201503241315
> (settingDefinitionLanguage.sdk.feature.group 1.0.0.201503241315)
> To: settingDefinitionLanguage [1.0.0.201503241315]
Ok, I suspected that :)
That has nothing to do with the building, it's just that Xtext 2.8.0 is
not present in the Luna update site; you first need to add the Xtext
update site in your Eclipse (you don't need to install anything
manually, just add the Xtext update site), and then you're able to
install your plugins (make sure that "Contact all update sites" is checked).
Hope this clarifies the question.
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
Re: plugin Dependencies 2.8 [message #1690549 is a reply to message #1690501] |
Sat, 28 March 2015 15:07 |
Patrice Brendamour Messages: 24 Registered: March 2015 |
Junior Member |
|
|
Alternatively, you can configure your update site to include all necessary dependencies:
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
</plugins>
</build>
If you're using tycho to build your DSLs/update site, that is.
[Updated on: Sat, 28 March 2015 15:08] Report message to a moderator
|
|
| |
Goto Forum:
Current Time: Wed Sep 25 13:27:50 GMT 2024
Powered by FUDForum. Page generated in 0.05468 seconds
|