You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall" <he...@ungoverned.org> on 2007/07/02 17:48:04 UTC
Need > JDK 5 profile in pom
After Stephane converted the MOSGi bundles to the new plugin and added
them to the appropriate plugin profile, the maven-bundle-plugin profile
now won't compile with JDK 1.4 since MOSGi requires > JDK 5.
I would assume that we need to create subprofiles for the
maven-bundle-plugin profile to group bundles with various JRE
dependencies. Could someone with more Maven knowledge than myself add a
profile to separate these bundles by their runtime dependency on > JDK 5 ?
It would be greatly appreciated. Thanks.
-> richard
Re: Need > JDK 5 profile in pom
Posted by stephane frenot <st...@insa-lyon.fr>.
GG felix I could not find it.
I patched the code and it seems to work, I just make some tests.
I need to find how I can conditionally use this artifact.
Thanks
/stephane
2007/7/3, Felix Meschberger <fm...@gmail.com>:
>
> Hi,
>
> I would suggest to simply add a dependency to MX4J in the pom such that
> it can be built :
>
> <dependency>
> <groupId>mx4j</groupId>
> <artifactId>mx4j-jmx</artifactId>
> <version>3.0.1</version>
> <scope>provided</scope>
> </dependency>
>
> This library just contains the javax.jmx packages and thus should enable
> compilation without potentially introducing mx4j dependencies.
>
> Regards
> Felix
>
> Am Dienstag, den 03.07.2007, 10:02 +0200 schrieb stephane frenot:
> > Is Something like this possible ?
> >
> > 1) javax.management:jmxri:jar:1.2.1
> >
> > Try downloading the file manually from:
> > http://java.sun.com/products/JavaManagement/download.html
> >
> > Then, install it using the command:
> > mvn install:install-file -DgroupId=javax.management-DartifactId=jmxri \
> > -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file
> >
> > Path to dependency:
> > 1) org.terracotta:common:jar:2.3-SNAPSHOT
> > 2) javax.management:jmxri:jar:1.2.1
> >
> >
> > /stephane
> >
> > 2007/7/2, Richard S. Hall <he...@ungoverned.org>:
> > >
> > > Marcel Offermans wrote:
> > > > On Jul 2, 2007, at 20:20 , Richard S. Hall wrote:
> > > >
> > > >> stephane frenot wrote:
> > > >>> I will have a look at this tomorrow,
> > > >>> I think MOSGi should compile with jdk 1.4
> > > >>
> > > >> It never has...java.management is not in JDK 1.4...right?
> > > >
> > > > For 1.4 you could compile against MX4J. That would mean adding
> > > > something like a "conditional dependency". We might even be able to
> > > > compile against only the JMX specifications (if Sun ever released
> such
> > > > a JAR file, and if it's licensed in some sensible way).
> > >
> > > I don't really have a preference between a conditional dependency or a
> > > JRE profile...
> > >
> > > > Since we're discussing the topic, we might want to define more
> > > > strictly what "execution environments" we support with our bundles
> (as
> > > > far as I'm concerned a bundle author could choose that for himself,
> or
> > > > in this case we could provide artifacts for both 1.4 and 1.5+
> > > > (including or excluding something like MX4J).
> > >
> > > Yes, that is possible too. We just need to define how to do this stuff
> > > and then get people to do it. But right now I would just be happy to
> get
> > > "mvn -Dpackaging=bundle clean install" working without error again
> under
> > > JDK 1.4... :-)
> > >
> > > -> richard
> > >
> >
> >
> >
>
>
--
Stephane Frenot |
ARES INRIA / CITI, INSA-Lyon|mailto:stephane.frenot@insa-lyon.fr
Bat. Léonard de Vinci |http://ares.insa-lyon.fr/~sfrenot/
21 av Jean Capelle | ICQ:643346 (et oui !)
F-69621 Villeurbanne Cedex |+33 472 436 422/+33 617 671 714
--------------------------------------------------------------------------
Re: Need > JDK 5 profile in pom
Posted by Felix Meschberger <fm...@gmail.com>.
Hi,
I would suggest to simply add a dependency to MX4J in the pom such that
it can be built :
<dependency>
<groupId>mx4j</groupId>
<artifactId>mx4j-jmx</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
This library just contains the javax.jmx packages and thus should enable
compilation without potentially introducing mx4j dependencies.
Regards
Felix
Am Dienstag, den 03.07.2007, 10:02 +0200 schrieb stephane frenot:
> Is Something like this possible ?
>
> 1) javax.management:jmxri:jar:1.2.1
>
> Try downloading the file manually from:
> http://java.sun.com/products/JavaManagement/download.html
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=javax.management -DartifactId=jmxri \
> -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file
>
> Path to dependency:
> 1) org.terracotta:common:jar:2.3-SNAPSHOT
> 2) javax.management:jmxri:jar:1.2.1
>
>
> /stephane
>
> 2007/7/2, Richard S. Hall <he...@ungoverned.org>:
> >
> > Marcel Offermans wrote:
> > > On Jul 2, 2007, at 20:20 , Richard S. Hall wrote:
> > >
> > >> stephane frenot wrote:
> > >>> I will have a look at this tomorrow,
> > >>> I think MOSGi should compile with jdk 1.4
> > >>
> > >> It never has...java.management is not in JDK 1.4...right?
> > >
> > > For 1.4 you could compile against MX4J. That would mean adding
> > > something like a "conditional dependency". We might even be able to
> > > compile against only the JMX specifications (if Sun ever released such
> > > a JAR file, and if it's licensed in some sensible way).
> >
> > I don't really have a preference between a conditional dependency or a
> > JRE profile...
> >
> > > Since we're discussing the topic, we might want to define more
> > > strictly what "execution environments" we support with our bundles (as
> > > far as I'm concerned a bundle author could choose that for himself, or
> > > in this case we could provide artifacts for both 1.4 and 1.5+
> > > (including or excluding something like MX4J).
> >
> > Yes, that is possible too. We just need to define how to do this stuff
> > and then get people to do it. But right now I would just be happy to get
> > "mvn -Dpackaging=bundle clean install" working without error again under
> > JDK 1.4... :-)
> >
> > -> richard
> >
>
>
>
Re: Need > JDK 5 profile in pom
Posted by stephane frenot <st...@insa-lyon.fr>.
Is Something like this possible ?
1) javax.management:jmxri:jar:1.2.1
Try downloading the file manually from:
http://java.sun.com/products/JavaManagement/download.html
Then, install it using the command:
mvn install:install-file -DgroupId=javax.management -DartifactId=jmxri \
-Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) org.terracotta:common:jar:2.3-SNAPSHOT
2) javax.management:jmxri:jar:1.2.1
/stephane
2007/7/2, Richard S. Hall <he...@ungoverned.org>:
>
> Marcel Offermans wrote:
> > On Jul 2, 2007, at 20:20 , Richard S. Hall wrote:
> >
> >> stephane frenot wrote:
> >>> I will have a look at this tomorrow,
> >>> I think MOSGi should compile with jdk 1.4
> >>
> >> It never has...java.management is not in JDK 1.4...right?
> >
> > For 1.4 you could compile against MX4J. That would mean adding
> > something like a "conditional dependency". We might even be able to
> > compile against only the JMX specifications (if Sun ever released such
> > a JAR file, and if it's licensed in some sensible way).
>
> I don't really have a preference between a conditional dependency or a
> JRE profile...
>
> > Since we're discussing the topic, we might want to define more
> > strictly what "execution environments" we support with our bundles (as
> > far as I'm concerned a bundle author could choose that for himself, or
> > in this case we could provide artifacts for both 1.4 and 1.5+
> > (including or excluding something like MX4J).
>
> Yes, that is possible too. We just need to define how to do this stuff
> and then get people to do it. But right now I would just be happy to get
> "mvn -Dpackaging=bundle clean install" working without error again under
> JDK 1.4... :-)
>
> -> richard
>
--
Stephane Frenot |
ARES INRIA / CITI, INSA-Lyon|mailto:stephane.frenot@insa-lyon.fr
Bat. Léonard de Vinci |http://ares.insa-lyon.fr/~sfrenot/
21 av Jean Capelle | ICQ:643346 (et oui !)
F-69621 Villeurbanne Cedex |+33 472 436 422/+33 617 671 714
--------------------------------------------------------------------------
Re: Need > JDK 5 profile in pom
Posted by "Richard S. Hall" <he...@ungoverned.org>.
Marcel Offermans wrote:
> On Jul 2, 2007, at 20:20 , Richard S. Hall wrote:
>
>> stephane frenot wrote:
>>> I will have a look at this tomorrow,
>>> I think MOSGi should compile with jdk 1.4
>>
>> It never has...java.management is not in JDK 1.4...right?
>
> For 1.4 you could compile against MX4J. That would mean adding
> something like a "conditional dependency". We might even be able to
> compile against only the JMX specifications (if Sun ever released such
> a JAR file, and if it's licensed in some sensible way).
I don't really have a preference between a conditional dependency or a
JRE profile...
> Since we're discussing the topic, we might want to define more
> strictly what "execution environments" we support with our bundles (as
> far as I'm concerned a bundle author could choose that for himself, or
> in this case we could provide artifacts for both 1.4 and 1.5+
> (including or excluding something like MX4J).
Yes, that is possible too. We just need to define how to do this stuff
and then get people to do it. But right now I would just be happy to get
"mvn -Dpackaging=bundle clean install" working without error again under
JDK 1.4... :-)
-> richard
Re: Need > JDK 5 profile in pom
Posted by Marcel Offermans <ma...@luminis.nl>.
On Jul 2, 2007, at 20:20 , Richard S. Hall wrote:
> stephane frenot wrote:
>> I will have a look at this tomorrow,
>> I think MOSGi should compile with jdk 1.4
>
> It never has...java.management is not in JDK 1.4...right?
For 1.4 you could compile against MX4J. That would mean adding
something like a "conditional dependency". We might even be able to
compile against only the JMX specifications (if Sun ever released
such a JAR file, and if it's licensed in some sensible way).
Since we're discussing the topic, we might want to define more
strictly what "execution environments" we support with our bundles
(as far as I'm concerned a bundle author could choose that for
himself, or in this case we could provide artifacts for both 1.4 and
1.5+ (including or excluding something like MX4J).
Greetings, Marcel
Re: Need > JDK 5 profile in pom
Posted by "Richard S. Hall" <he...@ungoverned.org>.
stephane frenot wrote:
> I will have a look at this tomorrow,
> I think MOSGi should compile with jdk 1.4
It never has...java.management is not in JDK 1.4...right?
-> richard
>
> /stephane
>
> 2007/7/2, Richard S. Hall <he...@ungoverned.org>:
>>
>> After Stephane converted the MOSGi bundles to the new plugin and added
>> them to the appropriate plugin profile, the maven-bundle-plugin profile
>> now won't compile with JDK 1.4 since MOSGi requires > JDK 5.
>>
>> I would assume that we need to create subprofiles for the
>> maven-bundle-plugin profile to group bundles with various JRE
>> dependencies. Could someone with more Maven knowledge than myself add a
>> profile to separate these bundles by their runtime dependency on >
>> JDK 5 ?
>>
>> It would be greatly appreciated. Thanks.
>>
>> -> richard
>>
>
>
>
Re: Need > JDK 5 profile in pom
Posted by stephane frenot <st...@insa-lyon.fr>.
I will have a look at this tomorrow,
I think MOSGi should compile with jdk 1.4
/stephane
2007/7/2, Richard S. Hall <he...@ungoverned.org>:
>
> After Stephane converted the MOSGi bundles to the new plugin and added
> them to the appropriate plugin profile, the maven-bundle-plugin profile
> now won't compile with JDK 1.4 since MOSGi requires > JDK 5.
>
> I would assume that we need to create subprofiles for the
> maven-bundle-plugin profile to group bundles with various JRE
> dependencies. Could someone with more Maven knowledge than myself add a
> profile to separate these bundles by their runtime dependency on > JDK 5 ?
>
> It would be greatly appreciated. Thanks.
>
> -> richard
>
--
Stephane Frenot |
ARES INRIA / CITI, INSA-Lyon|mailto:stephane.frenot@insa-lyon.fr
Bat. Léonard de Vinci |http://ares.insa-lyon.fr/~sfrenot/
21 av Jean Capelle | ICQ:643346 (et oui !)
F-69621 Villeurbanne Cedex |+33 472 436 422/+33 617 671 714
--------------------------------------------------------------------------