maven-scr-plugin does not generate OSGI-INF folder structure with java 10

2018-08-29 Thread Tharindu Wijewardane
Hi, Does anybody know whether maven scr plugin is compatible with java 10? I am trying to build an equinox osgi based software platform with java 10 and i am unable to get the scr plugin to generate the OSGI-INF folder structure (which contains serviceComponents.xml) in target folder. As a

Re: maven-scr-plugin and DS 1.3 annotations not working

2016-03-24 Thread Oliver Lietz
> > >> > >> > >> > >> > >> > >> > >> >

Re: maven-scr-plugin and DS 1.3 annotations not working

2016-03-22 Thread Carsten Ziegeler
>> >> >> >> >> >> >> >> Regards, >> Jens >> >> >> Gesendet: Dienstag, 22. März 2016 um 07:45 Uhr >&g

Re: maven-scr-plugin and DS 1.3 annotations not working

2016-03-22 Thread David Jencks
ct.build.outputDirectory}/OSGI-INF > false > > > > > > > > Regards, > Jens > > > Gesendet: Dienstag, 22. März 2016 um 07:45 Uhr > Von: "Carsten Ziegeler&qu

Aw: Re: maven-scr-plugin and DS 1.3 annotations not working

2016-03-22 Thread Jens Offenbach
false Regards, Jens   Gesendet: Dienstag, 22. März 2016 um 07:45 Uhr Von: "Carsten Ziegeler" An: users@felix.apache.org Betreff: Re: maven-scr-plugin and DS 1.3 annotations not working The maven-scr-plugin does not support the DS 1.

Re: maven-scr-plugin and DS 1.3 annotations not working

2016-03-21 Thread Carsten Ziegeler
The maven-scr-plugin does not support the DS 1.3 annotations. Using the maven-bundle-plugin 3.0.1 is all you need. I think you need to add this configuration to the bundle plugin: <_dsannotati

maven-scr-plugin and DS 1.3 annotations not working

2016-03-21 Thread Jens Offenbach
Hi, I am using maven-scr-plugin:1.21.0, org.osgi.service.component.annotations:1.3.0, org.apache.felix.scr.ds-annotations:1.2.8 and org.apache.felix.scr.annotations:1.9.12 and maven-bundle-plugin:3.0.1. This is my annotated class with makes use of the prototype scope: @Component(immediate

[maven-scr-plugin] support of properties paramenter on @Component ?

2015-01-09 Thread Cristiano Gavião
Hi, I woukd like to know whether maven-scr-plugin currently supports the *properties* property of org .osgi .service .component .annotations .Component in order to use/refer to a properties file inside the bundle. I tried to set a component but I'm not seeing any result in the generate

Integrating the maven-scr-plugin with a Tycho build

2013-07-23 Thread Robert Munteanu
Hi, Has anyone tried integrating the maven-scr-plugin with a Tycho build? I'm currently maintaining the SCR descriptor files by hand and it's a pain. The main issue that I face is that I would need to get the scr annotations jar into a p2 repository to convince the toolchain ( E

Re: [maven-scr-plugin] Duplicate definition for property foo ?

2013-07-04 Thread Cristiano Gavião
FYI, the problem was fixed and will be available in next release. https://issues.apache.org/jira/browse/FELIX-4159 On 03/07/13 12:58, Jad Naous wrote: looks like you're defining three properties called "foo" in your @Component parameters. Try change "foo" to foo1, foo2, foo3. On Wed, Jul 3,

Re: [maven-scr-plugin] Duplicate definition for property foo ?

2013-07-03 Thread Cristiano Gavião
Hi, That was intentional since the OSGi compendium spec (112.14 org.osgi.service.component.annotations) defines that: Each property string is specified as "key=value". The type of the property value can be specified in the key as key:type=value. The type must be one of the property types sup

Re: [maven-scr-plugin] Duplicate definition for property foo ?

2013-07-03 Thread Jad Naous
looks like you're defining three properties called "foo" in your @Component parameters. Try change "foo" to foo1, foo2, foo3. On Wed, Jul 3, 2013 at 7:05 AM, Cristiano Gavião wrote: > Hi, > > I'm trying to declare a DS component with a property with multiple values: > > @Component(name = "My co

[maven-scr-plugin] Duplicate definition for property foo ?

2013-07-03 Thread Cristiano Gavião
Hi, I'm trying to declare a DS component with a property with multiple values: @Component(name = "My commands", property={"foo:Integer=1","foo:Integer=2","foo:Integer=3"}) And I'm getting the following error: Duplicate definition for property foo in class MyCommandsComponent (org.apache.fel

Re: NPE with maven-scr-plugin 1.10.0

2013-03-01 Thread Carsten Ziegeler
e methods >>> because of the class being final. Could you try not declaring the class >>> final ? If that works, I would assume the plugin should properly complain >>> and fail the build due to missing methods. >>> >>> Regards >>> Felix &

Re: NPE with maven-scr-plugin 1.10.0

2013-02-26 Thread László Hordós
the plugin not generating the methods >> because of the class being final. Could you try not declaring the class >> final ? If that works, I would assume the plugin should properly complain >> and fail the build due to missing methods. >> >> Regards >>

Re: NPE with maven-scr-plugin 1.10.0

2013-02-25 Thread Carsten Ziegeler
ould assume the plugin should properly complain and fail > the build due to missing methods. > > Regards > Felix > > Am 24.02.2013 um 15:23 schrieb László Hordós: > >> Hi, >> >> I just updated to maven-scr-plugin:1.10.0 and >> org.apache.fe

Re: NPE with maven-scr-plugin 1.10.0

2013-02-24 Thread Felix Meschberger
declaring the class final ? If that works, I would assume the plugin should properly complain and fail the build due to missing methods. Regards Felix Am 24.02.2013 um 15:23 schrieb László Hordós: > Hi, > > I just updated to maven-scr-plugin:1.10.0 and > org.apache.felix.scr.annotations

NPE with maven-scr-plugin 1.10.0

2013-02-24 Thread László Hordós
Hi, I just updated to maven-scr-plugin:1.10.0 and org.apache.felix.scr.annotations:1.8.0 and I have this component: @Component(name = "org.example.component", immediate = true, policy = ConfigurationPolicy.IGNORE) public final class ContextRegistrator { @Reference H

Re: Release plans for maven-scr-plugin 1.10.0?

2013-02-15 Thread Patrick Schlebusch
Great! Thanks a lot! Best regards, Patrick From: Carsten Ziegeler To: users@felix.apache.org, Date: 15.02.2013 11:26 Subject: Re: Release plans for maven-scr-plugin 1.10.0? Hi, I started the vote this week, so 1.10.0 will be available on Monday :) Regards Carsten 2013/2/15 Patrick

Re: Release plans for maven-scr-plugin 1.10.0?

2013-02-15 Thread Carsten Ziegeler
Hi, I started the vote this week, so 1.10.0 will be available on Monday :) Regards Carsten 2013/2/15 Patrick Schlebusch : > Hi, > > are there any plans for the 1.10.0 release of the maven-scr-plugin in the > near future? According to the roadmap in Jira [1], all issues are > res

Release plans for maven-scr-plugin 1.10.0?

2013-02-15 Thread Patrick Schlebusch
Hi, are there any plans for the 1.10.0 release of the maven-scr-plugin in the near future? According to the roadmap in Jira [1], all issues are resolved, so I was wondering whether that might happen soon. Alternatively, is there a way to obtain a snapshot version of the plugin from a public

Re: Groovy, SCR annotations and the maven-scr-plugin

2012-07-24 Thread Carsten Ziegeler
2012 at 4:31 PM, Justin Edelson > wrote: > >> Hi Miles, >> I don't think the maven-scr-plugin works with any language other than Java >> right now. There's an effort on to rewrite the core of the scr-plugin in >> such a way that it operates

Re: Groovy, SCR annotations and the maven-scr-plugin

2012-07-23 Thread Miles Burton
best practises for maintain bundle dependencies On Mon, Jul 23, 2012 at 4:31 PM, Justin Edelson wrote: > Hi Miles, > I don't think the maven-scr-plugin works with any language other than Java > right now. There's an effort on to rewrite the core of the scr-plugin in > such a w

Re: Groovy, SCR annotations and the maven-scr-plugin

2012-07-23 Thread Justin Edelson
Hi Miles, I don't think the maven-scr-plugin works with any language other than Java right now. There's an effort on to rewrite the core of the scr-plugin in such a way that it operates at the bytecode rather than the source code level. See https://issues.apache.org/jira/browse/FELI

Groovy, SCR annotations and the maven-scr-plugin

2012-07-23 Thread Miles Burton
Hi all, I’ve recently been brought onto a new project to migrate some legacy code. We’ve had some good success with Groovy assuming the OSGI manifests are written manually but when I try and use a more modern annotation driven approach the scr-plugin doesn’t appear to pick up the reference. H

Re: Future of the Maven SCR Plugin

2012-03-06 Thread Andrei Pozolotin
Future of the Maven SCR Plugin From: Carsten Ziegeler To: d...@felix.apache.org Date: Tue 29 Nov 2011 01:47:29 AM CST > 2011/11/28 Reto Bachmann-Gmür : >> Well, the old annotations could also be improved so that FELIX-2892 >> and the (probably duplicate) FELIX-3187 could be resolved

Re: Using maven-scr-plugin under JDK 1.7

2011-12-16 Thread Carsten Ziegeler
2011/12/15 Mark Derricutt : > Will raise one shortly - we'll also need to get ASM 4.0 in maven central as > well which is the version that supports 1.7 (apparently?). Ah I thought this would work with the current asm by just setting the flags...ok, yes in that case we need the new asm as well in t

Re: Using maven-scr-plugin under JDK 1.7

2011-12-15 Thread Mark Derricutt
Will raise one shortly - we'll also need to get ASM 4.0 in maven central as well which is the version that supports 1.7 (apparently?). -- "Great artists are extremely selfish and arrogant things" — Steven Wilson, Porcupine Tree On Wed, Dec 14, 2011 at 9:41 PM, Carsten Ziegeler wrote: > So I gue

Re: Using maven-scr-plugin under JDK 1.7

2011-12-14 Thread Carsten Ziegeler
So I guess we should add those flags to the plugin. Could you please create a jira issue for that? Thanks Carsten 2011/12/9 Mark Derricutt : > Interesting, when I enable those two flags seem to work, altho now I seem > to be getting ClassNotFoundExceptions on classes from in maven > dependencies.

Re: Using maven-scr-plugin under JDK 1.7

2011-12-09 Thread Mark Derricutt
Interesting, when I enable those two flags seem to work, altho now I seem to be getting ClassNotFoundExceptions on classes from in maven dependencies. The mojo has "@requiresDependencyResolution compile" and yet it doesn't seem to find compile time dependency classes. Might have to chase this up

Re: Using maven-scr-plugin under JDK 1.7

2011-12-06 Thread Clement Escoffier
Hi, I had the same issues with iPOJO: https://plus.google.com/u/0/116267359728910593612/posts/hfMFf3mWKTP Regards, Clement On 07.12.2011, at 04:50, Mark Derricutt wrote: > No I didn't - I'll give that a go and report back. > > Cheers, > Mark > > > -- > "Great artists are extremely selfish a

Re: Using maven-scr-plugin under JDK 1.7

2011-12-06 Thread Mark Derricutt
No I didn't - I'll give that a go and report back. Cheers, Mark -- "Great artists are extremely selfish and arrogant things" — Steven Wilson, Porcupine Tree On Wed, Dec 7, 2011 at 2:51 PM, Stuart McCulloch wrote: > Did you try passing ClassWriter.COMPUTE_MAXS or ClassWriter.COMPUTE_FRAMES >

Re: Using maven-scr-plugin under JDK 1.7

2011-12-06 Thread Stuart McCulloch
On 6 Dec 2011, at 22:36, Mark Derricutt wrote: > Is anyone currently using tghe maven-scr-plugin under JDK 1.7 compiling > with a -target- language level of JDK 1.7? > > Whilst the plugin runs fine, it appears that any automatically generated > bind/unbind methods created by the

Using maven-scr-plugin under JDK 1.7

2011-12-06 Thread Mark Derricutt
Is anyone currently using tghe maven-scr-plugin under JDK 1.7 compiling with a -target- language level of JDK 1.7? Whilst the plugin runs fine, it appears that any automatically generated bind/unbind methods created by the plugin generate bad bytecode for JDK 1.7. It appears that the version of

Re: Using maven-scr-plugin under OpenJDK 1.7

2011-11-22 Thread Mark Derricutt
il Bartlett wrote: > Do you have other Java versions installed on the same machine, and is > it possible that Maven has picked up one of the other ones? > > Also, did you compile the Maven SCR plugin locally? It would be > surprising to me if the binaries for the plugin are being sh

Re: Using maven-scr-plugin under OpenJDK 1.7

2011-11-21 Thread Neil Bartlett
machine, and is it possible that Maven has picked up one of the other ones? Also, did you compile the Maven SCR plugin locally? It would be surprising to me if the binaries for the plugin are being shipped with class version 51.0, implying they can only run on Java 7. Regards, Neil On Mon, Nov 21

Using maven-scr-plugin under OpenJDK 1.7

2011-11-21 Thread Mark Derricutt
Has anyone got maven-scr-plugin working under OpenJDK 1.7 at all? [ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-scrdescriptor) on project smx3.entity: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.7.4:scr failed: An API

[ANN] Apache Felix SCR Generator 1.0.0, SCR Annotations 1.4.0, Maven SCR Plugin 1.6.0, SCR Ant Task 1.0.0 released

2010-11-09 Thread Felix Meschberger
The Apache Felix team is pleased to announce the release Apache Felix Maven SCR Plugin 1.6.0 Apache Felix SCR Ant Task 1.0.0 Apache Felix SCR Generator 1.0.0 Apache Felix SCR Annotations 1.4.0 The Apache Felix Maven SCR Plugin is a Maven 2 plugin to generate OSGi Declarative Services and

Re: Maven SCR Plugin, SCR Annotations and DS reference bind order.

2010-04-12 Thread Carsten Ziegeler
Maven SCR Plugin) please and maybe attach a simple example? Regards Carsten Stephen Flynn wrote > > Apologies if this is posted in the wrong place or this issue has already > been raised and I have missed it. > > We use SCR annotations (1.2.0) and the SCR Maven Plug-in (1.4.2) to &g

Maven SCR Plugin, SCR Annotations and DS reference bind order.

2010-04-12 Thread Stephen Flynn
Apologies if this is posted in the wrong place or this issue has already been raised and I have missed it. We use SCR annotations (1.2.0) and the SCR Maven Plug-in (1.4.2) to generate DS 1.1 component descriptors. All works well except for one issue - we cannot find a way to control the orde

Re: [Maven-scr-plugin] "Not found Service-Component header" issue

2009-12-28 Thread Guido Spadotto
Justin Edelson wrote: [...] So the best thing to do is to only specify plugin versions in the parent, using either the plugins or pluginManagement elements. Justin Hi Justin, it worked! Thanks for your support. Guido - T

Re: [Maven-scr-plugin] "Not found Service-Component header" issue

2009-12-28 Thread Justin Edelson
On Mon, Dec 28, 2009 at 12:59 PM, Guido Spadotto wrote: > Hi Justin, > thanks for your hint. > > So, if I specify the versions I require the whole project to use in the > "pluginManagement" section of my > parent pom P, will that be enough to avoid this > "first-version-found-is-always-used" polic

Re: [Maven-scr-plugin] "Not found Service-Component header" issue

2009-12-28 Thread Guido Spadotto
Justin Edelson wrote: One thing to look at is to confirm that you are *only* specifying the plugin versions for both maven-scr-plugin and maven-bundle-plugin in the parent POM. Maven has a bug/feature wherein it will only use one version of a given plugin in a multi-module build, even if

Re: [Maven-scr-plugin] "Not found Service-Component header" issue

2009-12-28 Thread Justin Edelson
One thing to look at is to confirm that you are *only* specifying the plugin versions for both maven-scr-plugin and maven-bundle-plugin in the parent POM. Maven has a bug/feature wherein it will only use one version of a given plugin in a multi-module build, even if different versions are

[Maven-scr-plugin] "Not found Service-Component header" issue

2009-12-28 Thread Guido Spadotto
Hi all, I'm facing a very strange behaviour that *might* be related to SCR (I'm not sure, so Carsten - if you're reading this - please forgive me). The project I'm working on is divided into several Maven modules. The modules I maintain use the maven-scr-plugin (v1.4

Re: Maven-scr-plugin: multivalue properties

2009-12-21 Thread Carsten Ziegeler
Guido Spadotto wrote: > Hi Carsten, after you mentioned the difference, I realized that it's > exactly as you wrote above. > > One description is about java annotations and the other one for javadocs. > > My fault, I have to connect fingers with brain *before* posting. > Hehe, no problem :) I th

Re: Maven-scr-plugin: multivalue properties

2009-12-21 Thread Guido Spadotto
Carsten Ziegeler wrote: Hi, [...] In http://felix.apache.org/site/apache-felix-maven-scr-plugin.html there are *two* paragraphs that explain how to deal with multivalue properties, and I can't understand which is the correct one. Hmm, can you point me to the two paragraphs? Or is one

Re: Maven-scr-plugin: multivalue properties

2009-12-21 Thread Carsten Ziegeler
Hi, Guido Spadotto wrote: > Hi all, > I'm a bit puzzled by this (hopefully simple to solve) issue. > > I'm writing an EventHandler implementation using SCR annotations. > How do I specify multi-value property for the topics to listen to? > I've this at the moment, is it correct? >/** > *

Maven-scr-plugin: multivalue properties

2009-12-21 Thread Guido Spadotto
Hi all, I'm a bit puzzled by this (hopefully simple to solve) issue. I'm writing an EventHandler implementation using SCR annotations. How do I specify multi-value property for the topics to listen to? I've this at the moment, is it correct? /** * The OSGi Event Topics to listen to *

Re: maven-scr-plugin annotations

2009-12-16 Thread Mark Derricutt
I know Spring and the new JSR330 (Dependency Injection For Java) specs support it, using a notation similar to what I mentioned in the first post. I suspect what they're doing is scanning classes for the annotations they want, and if they find any unknown annotations, recurse into checking the ann

RE: maven-scr-plugin annotations

2009-12-15 Thread peter lawrey
al Message- From: Mark Derricutt [mailto:m...@talios.com] Sent: 16 December 2009 00:51 To: users@felix.apache.org Subject: maven-scr-plugin annotations 'lo all, I'm really loving using the JDK annotations for @Component and @Service etc. in my code base, really makes using SCR much

maven-scr-plugin annotations

2009-12-15 Thread Mark Derricutt
'lo all, I'm really loving using the JDK annotations for @Component and @Service etc. in my code base, really makes using SCR much nicer, however I was wondering if the plugin supports chained annotations at all? What I'd love to do is: @Component(immediate = true) @Service @Retention(RetentionP

Re: Unsupported use case for maven-scr-plugin

2009-09-06 Thread Carsten Ziegeler
Hi, you can use the @Services annotation which allows you to embed several @Service annotations. Regards Carsten Daniel Bimschas wrote: > Hi there! > > I just found an unsupported use case that I'm "stuck" with. Consider a > class A that implements the interfaces B, C and EventHandler. For B an

Unsupported use case for maven-scr-plugin

2009-08-25 Thread Daniel Bimschas
Hi there! I just found an unsupported use case that I'm "stuck" with. Consider a class A that implements the interfaces B, C and EventHandler. For B and C class A wants to be registered as service declaratively. Therefore I use the scr annotations. For interface EventHandler I want to reg

Re: maven-scr-plugin and scala

2009-07-28 Thread Clement Escoffier
On 28.07.2009, at 10:59, Carsten Ziegeler wrote: Clement Escoffier wrote Hi, iPOJO uses ASM to handle annotations. In iPOJO, this choice made perfect sense as the manipulation is itself built with ASM. This allows to introspect all the annotations present in the bytecode of classes. Howev

Re: maven-scr-plugin and scala

2009-07-28 Thread Carsten Ziegeler
Clement Escoffier wrote > > Hi, > > iPOJO uses ASM to handle annotations. In iPOJO, this choice made perfect > sense as the manipulation is itself built with ASM. This allows to > introspect all the annotations present in the bytecode of classes. > However, it will require that you compile your c

Re: maven-scr-plugin and scala

2009-07-28 Thread Clement Escoffier
On 28.07.2009, at 10:08, Carsten Ziegeler wrote: Reto Bachmann-Gmür wrote: Carsten Ziegeler said the following on 07/27/2009 02:41 PM: Reto Bachmann-Gmür wrote: Hello I was hoping that with support for annotations the scr plugin would work with scala code as well. But in my mixed java/sc

Re: maven-scr-plugin and scala

2009-07-28 Thread Carsten Ziegeler
Reto Bachmann-Gmür wrote: > Carsten Ziegeler said the following on 07/27/2009 02:41 PM: >> Reto Bachmann-Gmür wrote: >> >>> Hello >>> >>> I was hoping that with support for annotations the scr plugin would work >>> with scala code as well. But in my mixed java/scala project it seems to >>> only

Re: maven-scr-plugin and scala

2009-07-28 Thread Reto Bachmann-Gmür
Carsten Ziegeler said the following on 07/27/2009 02:41 PM: > Reto Bachmann-Gmür wrote: > >> Hello >> >> I was hoping that with support for annotations the scr plugin would work >> with scala code as well. But in my mixed java/scala project it seems to >> only look at the annotations in the java

Re: maven-scr-plugin and scala

2009-07-27 Thread Carsten Ziegeler
Reto Bachmann-Gmür wrote: > Hello > > I was hoping that with support for annotations the scr plugin would work > with scala code as well. But in my mixed java/scala project it seems to > only look at the annotations in the java sources. > > @Component > public class Service { > > @Property(v

maven-scr-plugin and scala

2009-07-27 Thread Reto Bachmann-Gmür
Hello I was hoping that with support for annotations the scr plugin would work with scala code as well. But in my mixed java/scala project it seems to only look at the annotations in the java sources. @Component public class Service { @Property(value = "default value") static final Strin

Re: maven-scr-plugin

2009-05-14 Thread Carsten Ziegeler
plugin is 1.0.8 Carsten > > [1]: > http://repo2.maven.org/maven2/org/apache/felix/maven-scr-plugin/maven-metadata.xml > > [2]: http://repo2.maven.org/maven2/org/apache/felix/maven-scr-plugin/ > > Thanks. -- Carsten Ziegeler cziege...@apache.org --

maven-scr-plugin

2009-05-11 Thread Guido Spadotto
Hi All, the URL in [1] says that the latest version of the SCR plugin is 1.2.8, but there's no such version in [2]. Is this correct? [1]: http://repo2.maven.org/maven2/org/apache/felix/maven-scr-plugin/maven-metadata.xml [2]: http://repo2.maven.org/maven2/org/apache/felix/maven-scr-p

Re: maven-scr-plugin and reactor

2009-04-18 Thread Carsten Ziegeler
> > > only if the parent of "org.trialox:org.trialox.triaxrs:bundle" that > contains it as a module is built, not if I go in the subdirectory and > compile the individual project. > > We are using maven-scr-plugin 1.0.10. > > Any ideas on what could cause this

maven-scr-plugin and reactor

2009-04-16 Thread Reto Bachmann-Gmür
; that contains it as a module is built, not if I go in the subdirectory and compile the individual project. We are using maven-scr-plugin 1.0.10. Any ideas on what could cause this error? Cheers, Reto - To unsubscribe, e-mail:

Re: maven-scr-plugin 1.0.10 gives Illegal escape character

2009-03-18 Thread Carsten Ziegeler
Mark Derricutt wrote: > Using 1.0.8 works fine, I never saw a 1.0.9 in my repository so I > guess things went straight to 1.0.10. Thanks for the info. Yes, we never released a 1.0.9 as it had some problems. So it seems updating qdox from 1.0.8 to 1.0.10 fixed parsing problems for some people while

Re: maven-scr-plugin 1.0.10 gives Illegal escape character

2009-03-18 Thread Mark Derricutt
@Pattern(message = "{domainName.invalid}", regex = "^([A-Za-z0-9]([-A-Za-z0-9]*[A-Za-z0-9])*\\.)+[A-Za-z]{2,}$") It doesn't seem to like the \\ in the regex. On Wed, Mar 18, 2009 at 8:13 PM, Carsten Ziegeler wrote: > Mark Derricutt wrote: >> I noticed the other day

Re: maven-scr-plugin 1.0.10 gives Illegal escape character

2009-03-18 Thread Carsten Ziegeler
Mark Derricutt wrote: > I noticed the other day 1.0.10 of the maven-scr-plugin was released, > since using this plugin we're seeing illegal escape character problems > when compiling our bundles. > Hi, we're using this version without any problems. Does it work for you with

maven-scr-plugin 1.0.10 gives Illegal escape character

2009-03-17 Thread Mark Derricutt
I noticed the other day 1.0.10 of the maven-scr-plugin was released, since using this plugin we're seeing illegal escape character problems when compiling our bundles. [ERROR] FATAL ERROR [INFO] [INFO] Illegal e

Re: [maven-scr-plugin] ParserException with Enum

2009-03-17 Thread Carsten Ziegeler
Hi, this is a known issue of the QDox parser the plugin issues. http://felix.apache.org/site/apache-felix-scr-plugin-faq.html Now, did you use the latest release of the scr plugin, 1.0.10? I think the issue in QDox is fixed there. Regards Carsten Reto Bachmann-Gmür wrote: > with the following c

[maven-scr-plugin] ParserException with Enum

2009-03-17 Thread Reto Bachmann-Gmür
with the following class: public class Test { public enum Type { SCHEME, USER_INFO } public Test() { } } I get exeptions like the following: com.thoughtworks.qdox.parser.ParseException: syntax error @[8,14] in file:/home/rbn/projects/default/org.trialox.jax

Re: Lookup strategy using maven-scr-plugin

2008-11-19 Thread Thijs Metsch
see below :-) > >> Of course you can still opt to ignore any call to the bind and unbind > >> method and instead use the ComponentContext to lookup the reference on > >> demand. But, I agree, that this definitely clutters the class and adds > >> some overhead without any real need. > > > > Jup t

Re: Lookup strategy using maven-scr-plugin

2008-11-19 Thread Felix Meschberger
Hi Thijs, Thijs Metsch schrieb: > Hi, > >> Of course you can still opt to ignore any call to the bind and unbind >> method and instead use the ComponentContext to lookup the reference on >> demand. But, I agree, that this definitely clutters the class and adds >> some overhead without any real ne

Re: Lookup strategy using maven-scr-plugin

2008-11-19 Thread Thijs Metsch
Hi, > Of course you can still opt to ignore any call to the bind and unbind > method and instead use the ComponentContext to lookup the reference on > demand. But, I agree, that this definitely clutters the class and adds > some overhead without any real need. Jup the overhead is my concern :-)

Re: Lookup strategy using maven-scr-plugin

2008-11-19 Thread Felix Meschberger
Hi Thijs, Thijs Metsch schrieb: > Hi, > > If I wanted to use a lookup strategy to access my service; does > maven-scr-plugin support this? And how? Well, the scr plugin currently requires bind and unbind methods. Thus the pure lookup strategy without using bind and unbind me

Lookup strategy using maven-scr-plugin

2008-11-19 Thread Thijs Metsch
Hi, If I wanted to use a lookup strategy to access my service; does maven-scr-plugin support this? And how? It all works using a event strategy to access my service :-) So that is not the question :-) Cheers, -Thijs -- Thijs MetschTel: +49 (0)941 3075-122 (x60122

Re: maven-scr-plugin FATAL ERROR with java.lang.NoClassDefFoundError

2008-10-10 Thread Carsten Ziegeler
provided - in this case maven does not include the transitive dependencies in the classpath. As the scr plugin scans the class files it requires all dependent classes in the class path. HTH Carsten Heibel, Niklas wrote: > Hi all, > > I'm totally confused! When I remove the maven-scr-

Re: maven-scr-plugin syntax error at enum

2008-10-01 Thread Carsten Ziegeler
Felix Meschberger wrote: > Hi Carsten, > > Shouldn't this be placed as a FAQ/Known Issues entry on the scr plugin > documentation page ? > Done. Carsten -- Carsten Ziegeler [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: maven-scr-plugin syntax error at enum

2008-09-30 Thread Felix Meschberger
gt; public interface MyTest { >> >> /** more error codes may be added */ >> enum Result { >> OK, UNKNOWN, ERROR, DENIED >> } >> >> /** @return the result */ >> public void getResult()

AW: maven-scr-plugin syntax error at enum

2008-09-30 Thread Heibel, Niklas
Hi Carsten, ... > this is a known problem of the used qdox version to scan the source > code. There is a workaround - I'm not 100% sure, but I think just > putting a ";" after the closing bracket should do the trick. Thanks! It works! Best regards, Niklas --

Re: maven-scr-plugin syntax error at enum

2008-09-29 Thread Carsten Ziegeler
x error) for source code files that use enum's > like this: > > public interface MyTest { > > /** more error codes may be added */ > enum Result { > OK, UNKNOWN, ERROR, DENIED > } > > /** @return the result */ > public void ge

maven-scr-plugin syntax error at enum

2008-09-22 Thread Heibel, Niklas
Error is during maven-scr-plugin is working: [INFO] [scr:scr {execution: generate-scr-scrdescriptor}] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] syntax

maven-scr-plugin FATAL ERROR with java.lang.NoClassDefFoundError

2008-09-18 Thread Heibel, Niklas
Hi all, I'm totally confused! When I remove the maven-scr-plugin from my master pom.xml maven finished successful. Then I add this to the master pom.xml: org.apache.felix maven-scr-plugin 1.0.8 generate-scr-scrdescr

Re: maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-28 Thread Carsten Ziegeler
Ingo Feulner wrote: > Hi Carsten, > > when do you think there will be a new release of the plugin and the > metatype implementation? > Anything I can help here? > Hi Ingo, we're planning to have a release by next week. Testing and reporting problems (or even having no problems) is always a great

Re: maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-28 Thread Ingo Feulner
Hi Carsten, when do you think there will be a new release of the plugin and the metatype implementation? Anything I can help here? Best regards, Ingo. Am 25.08.2008 um 14:03 schrieb Carsten Ziegeler: Ingo Feulner wrote: Ok, thanks for the information, so I'll wait for the new release of

Re: maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-25 Thread Carsten Ziegeler
Ingo Feulner wrote: > Ok, thanks for the information, so I'll wait for the new release of the > two components. > > For the scr-plugin: Looking at the generated metatype.xml, which also > uses the "metatype" namespace in all tags, > is it possible there will be the same problems as with the > serv

Re: maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-25 Thread Ingo Feulner
Ok, thanks for the information, so I'll wait for the new release of the two components. For the scr-plugin: Looking at the generated metatype.xml, which also uses the "metatype" namespace in all tags, is it possible there will be the same problems as with the serviceComponents.xml? I haven

Re: maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-24 Thread Carsten Ziegeler
Ingo Feulner wrote: > Hi Carsten, > > I've just tried it and this problem is fixed now, thanks for the quick fix! > But there's now another problem with the new format of the > serviceComponent.xml - it does not work anymore when running inside the > felix container Hi Ingo, yes this is a known

Re: maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-24 Thread Ingo Feulner
iner (it's working inside eclipse now ...). Output of maven-scr-plugin is: Well, of course I wanted to write "equinox"... - Ingo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-24 Thread Ingo Feulner
...). Output of maven-scr-plugin is: === http://www.osgi.org/xmlns/scr/v1.0.0";> name="net.oc.cardservices.terminal.CardTerminalRegistry"> class="net.oc.cardservices.terminal.CardTerminalRegistry"/> interface=&

Re: maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-23 Thread Carsten Ziegeler
t; there still seems to be a problem with maven-scr-plugin, if the project > POM references a paren POM: > It works with 1.0.5, but does not work with 1.0.6, 1.0.7 and the > trunk... here's the debug output: > It tries to reference a manifest, but there's no in a POM project..

maven-scr-plugin 1.0.7 still seems to have problems with parent projects?

2008-08-23 Thread Ingo Feulner
Hi, there still seems to be a problem with maven-scr-plugin, if the project POM references a paren POM: It works with 1.0.5, but does not work with 1.0.6, 1.0.7 and the trunk... here's the debug output: It tries to reference a manifest, but there's no in a POM project... Any i

AW: AW: maven-scr-plugin with org.eclipse.equinox.ds

2008-08-22 Thread Heibel, Niklas
Hi Carsten, > No problem - and sorry for forgetting to commit the second part of the > patch :( > I just committed it, can you please recheck? Sorry for the delay! I had to fix an other Problem :D Now I recheck and build the plugin from current trunk r688080 Your Patch works fine, THANKS for al

Re: AW: maven-scr-plugin with org.eclipse.equinox.ds

2008-08-22 Thread Carsten Ziegeler
Heibel, Niklas wrote: > > and apply it to my m2_repo with "mvn clean install", then I changes the > version in my pom-file to "1.0.8-SNAPSHOT". After that the generated > xml-file is still corrupt for equinox.ds. > > In my "local" patch I remove the PREFIX from all _QNAME constants. > > PREFEX i

AW: maven-scr-plugin with org.eclipse.equinox.ds

2008-08-22 Thread Heibel, Niklas
Hi Carsten, > it seems that the schema is the specification for the xml document > (apart from the ordering of elements), so the inner elements should have > no namespace. > > I've created a bug for this and will > https://issues.apache.org/jira/browse/FELIX-695 > > and applied a fix to latest t

Re: maven-scr-plugin with org.eclipse.equinox.ds

2008-08-22 Thread Carsten Ziegeler
he inner tags (see attached file). Only >> the component tag has the namespace. This file works fine. >> >> When I check the generated xml-file from the maven-scr-plugin with the >> schema-xsd-file the test failed. >> >> I hope there is no mistake in my advise

Re: maven-scr-plugin with org.eclipse.equinox.ds

2008-08-19 Thread Carsten Ziegeler
> > When I check the generated xml-file from the maven-scr-plugin with the > schema-xsd-file the test failed. > > I hope there is no mistake in my advisement :) > Hi Niklas, actually, I don't know :) In my opinion, the schema is broken :) but it seems that equinox is

AW: AW: maven-scr-plugin with org.eclipse.equinox.ds

2008-08-19 Thread Heibel, Niklas
This File is running with equinox.ds. I remove the namespace only in the inner tags (see attached file). Only the component tag has the namespace. This file works fine. When I check the generated xml-file from the maven-scr-plugin with the schema-xsd-file the test failed. I hope there is no mistake in

Re: AW: maven-scr-plugin with org.eclipse.equinox.ds

2008-08-19 Thread Carsten Ziegeler
Heibel, Niklas wrote: > You are right. The "components"-Tag is needed for a valid xml file when you > have more then one components. That's my mistake, but the namespace is still > a problem with equinox.ds > > When I remove the "scr:" from all Tags, my services are up und running, > otherwise

AW: maven-scr-plugin with org.eclipse.equinox.ds

2008-08-19 Thread Heibel, Niklas
#x27;s my mistake, but the namespace is still a problem with equinox.ds When I remove the "scr:" from all Tags, my services are up und running, otherwise the services don't start. The attachment files: <> Generated by maven-scr-plugin. Services not started. <> Remove th

  1   2   >