You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Roshan A. Punnoose" <rp...@proteus-technologies.com> on 2007/10/24 16:45:06 UTC
Maven Create Path
Hi,
In Ant, I was able to take a directory and create a full path defining
all the entries in that directory. For example, in directory lib, I have
jars:
-test1.jar
-test2.jar
-test3.jar. I want to be able to create a path and set it as a property
like: lib/test1.jar, lib/test2.jar, lib/test3.jar.
Is this possible in Maven?
Roshan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven profile properties
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
Hi,
I want to create document templates and use Maven to fill in the
properties in the template during a task. For example:
Template.txt:
Dir=${basedir}
systemPath = ${systemPath}
Then run a maven command to output the the text document to a directory
and fill in these tokens. Sort of like filterTokens in Ant.
Roshan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven profile properties
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
>From reading the documentation it looks like the
profile/activation/property only looks at system properties. Is it
possible to use a project property?
Roshan
-----Original Message-----
From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
Sent: Wednesday, October 24, 2007 12:27 PM
To: Maven Users List
Subject: Maven profile properties
I am trying to get my profiles to use the properties specified by the
POM. Is this possible? I have a POM that looks like:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
...
<properties>
<script>scripts/myScript.js</script>
<engine>ruby</engine>
</properties>
<profiles>
<profile>
<id>javascriptEngine</id>
<activation>
<property>
<name>engine</name>
<value>javascript</value>
</property>
</activation>
</profile>
<profile>
<id>jrubyEngine</id>
<activation>
<property>
<name>engine</name>
<value>ruby</value>
</property>
</activation>
...
For some reason the jrubyEngine profile does not get activated. (I can
tell by which dependencies get copied) Do I have to use this syntax:
${project.properties.engine}?
Roshan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Maven profile properties
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
I am trying to get my profiles to use the properties specified by the
POM. Is this possible? I have a POM that looks like:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
...
<properties>
<script>scripts/myScript.js</script>
<engine>ruby</engine>
</properties>
<profiles>
<profile>
<id>javascriptEngine</id>
<activation>
<property>
<name>engine</name>
<value>javascript</value>
</property>
</activation>
</profile>
<profile>
<id>jrubyEngine</id>
<activation>
<property>
<name>engine</name>
<value>ruby</value>
</property>
</activation>
...
For some reason the jrubyEngine profile does not get activated. (I can
tell by which dependencies get copied) Do I have to use this syntax:
${project.properties.engine}?
Roshan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Create Path
Posted by Wayne Fay <wa...@gmail.com>.
There are osgi plugins for Maven that you should probably look at
before attempting to implement everything yourself manually.
Google for "maven felix" and "maven osgi" to find them.
Wayne
On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com> wrote:
> Well I am trying to bundle an osgi bundle. And it needs a
> Bundle-Classpath entry in the Manifest. This entry has to be a
> comma-separated list of all the jars needed by the osgi bundle. I have
> these jars downloaded using the
> maven-dependency-plugin:copy-dependencies, but I cannot seem to figure
> out how to get the path created.
>
> Roshan
>
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com]
> Sent: Wednesday, October 24, 2007 10:49 AM
> To: Maven Users List
> Subject: Re: Maven Create Path
>
> What are you trying to do that Maven isn't doing/can't do for you?
> There may be a better way to approach this from a Maven perspective.
>
> Wayne
>
> On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com>
> wrote:
> > Hi,
> >
> > In Ant, I was able to take a directory and create a full path defining
> > all the entries in that directory. For example, in directory lib, I
> have
> > jars:
> > -test1.jar
> > -test2.jar
> > -test3.jar. I want to be able to create a path and set it as a
> property
> > like: lib/test1.jar, lib/test2.jar, lib/test3.jar.
> >
> > Is this possible in Maven?
> >
> > Roshan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Create Path
Posted by Wayne Fay <wa...@gmail.com>.
I hope this thread demonstrates the utility of telling the list what
you're really trying to do, rather than simply asking how to do a
particular thing you can't figure out. ;-)
Wayne
On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com> wrote:
> Thanks!
>
> -----Original Message-----
> From: mcculls@gmail.com [mailto:mcculls@gmail.com] On Behalf Of Stuart
> McCulloch
> Sent: Wednesday, October 24, 2007 1:21 PM
> To: Maven Users List
> Subject: Re: Maven Create Path
>
> On 24/10/2007, Damien Lecan <ml...@dlecan.com> wrote:
> >
> > Don't loose time doing that by hand
> >
> > Use this Apache Felix plugin :
> > http://cwiki.apache.org/FELIX/bundle-plugin-for-maven-bnd.html
>
>
> FYI, this is the latest, up-to-date page:
>
> http://felix.apache.org/site/maven-bundle-plugin-bnd.html
>
> look for the "Embedding Dependencies" section for some tips
> if you have any questions, just email users@felix.apache.org
>
> HTH
>
> Good luck
> >
> > Damien
> >
> > 2007/10/24, Roshan A. Punnoose <rp...@proteus-technologies.com>:
> > > Well I am trying to bundle an osgi bundle. And it needs a
> > > Bundle-Classpath entry in the Manifest. This entry has to be a
> > > comma-separated list of all the jars needed by the osgi bundle. I
> have
> > > these jars downloaded using the
> > > maven-dependency-plugin:copy-dependencies, but I cannot seem to
> figure
> > > out how to get the path created.
> > >
> > > Roshan
> > >
> > > -----Original Message-----
> > > From: Wayne Fay [mailto:waynefay@gmail.com]
> > > Sent: Wednesday, October 24, 2007 10:49 AM
> > > To: Maven Users List
> > > Subject: Re: Maven Create Path
> > >
> > > What are you trying to do that Maven isn't doing/can't do for you?
> > > There may be a better way to approach this from a Maven perspective.
> > >
> > > Wayne
> > >
> > > On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com>
> > > wrote:
> > > > Hi,
> > > >
> > > > In Ant, I was able to take a directory and create a full path
> defining
> > > > all the entries in that directory. For example, in directory lib,
> I
> > > have
> > > > jars:
> > > > -test1.jar
> > > > -test2.jar
> > > > -test3.jar. I want to be able to create a path and set it as a
> > > property
> > > > like: lib/test1.jar, lib/test2.jar, lib/test3.jar.
> > > >
> > > > Is this possible in Maven?
> > > >
> > > > Roshan
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Cheers, Stuart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Create Path
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
Thanks!
-----Original Message-----
From: mcculls@gmail.com [mailto:mcculls@gmail.com] On Behalf Of Stuart
McCulloch
Sent: Wednesday, October 24, 2007 1:21 PM
To: Maven Users List
Subject: Re: Maven Create Path
On 24/10/2007, Damien Lecan <ml...@dlecan.com> wrote:
>
> Don't loose time doing that by hand
>
> Use this Apache Felix plugin :
> http://cwiki.apache.org/FELIX/bundle-plugin-for-maven-bnd.html
FYI, this is the latest, up-to-date page:
http://felix.apache.org/site/maven-bundle-plugin-bnd.html
look for the "Embedding Dependencies" section for some tips
if you have any questions, just email users@felix.apache.org
HTH
Good luck
>
> Damien
>
> 2007/10/24, Roshan A. Punnoose <rp...@proteus-technologies.com>:
> > Well I am trying to bundle an osgi bundle. And it needs a
> > Bundle-Classpath entry in the Manifest. This entry has to be a
> > comma-separated list of all the jars needed by the osgi bundle. I
have
> > these jars downloaded using the
> > maven-dependency-plugin:copy-dependencies, but I cannot seem to
figure
> > out how to get the path created.
> >
> > Roshan
> >
> > -----Original Message-----
> > From: Wayne Fay [mailto:waynefay@gmail.com]
> > Sent: Wednesday, October 24, 2007 10:49 AM
> > To: Maven Users List
> > Subject: Re: Maven Create Path
> >
> > What are you trying to do that Maven isn't doing/can't do for you?
> > There may be a better way to approach this from a Maven perspective.
> >
> > Wayne
> >
> > On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com>
> > wrote:
> > > Hi,
> > >
> > > In Ant, I was able to take a directory and create a full path
defining
> > > all the entries in that directory. For example, in directory lib,
I
> > have
> > > jars:
> > > -test1.jar
> > > -test2.jar
> > > -test3.jar. I want to be able to create a path and set it as a
> > property
> > > like: lib/test1.jar, lib/test2.jar, lib/test3.jar.
> > >
> > > Is this possible in Maven?
> > >
> > > Roshan
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Cheers, Stuart
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Create Path
Posted by Stuart McCulloch <st...@jayway.net>.
On 24/10/2007, Damien Lecan <ml...@dlecan.com> wrote:
>
> Don't loose time doing that by hand
>
> Use this Apache Felix plugin :
> http://cwiki.apache.org/FELIX/bundle-plugin-for-maven-bnd.html
FYI, this is the latest, up-to-date page:
http://felix.apache.org/site/maven-bundle-plugin-bnd.html
look for the "Embedding Dependencies" section for some tips
if you have any questions, just email users@felix.apache.org
HTH
Good luck
>
> Damien
>
> 2007/10/24, Roshan A. Punnoose <rp...@proteus-technologies.com>:
> > Well I am trying to bundle an osgi bundle. And it needs a
> > Bundle-Classpath entry in the Manifest. This entry has to be a
> > comma-separated list of all the jars needed by the osgi bundle. I have
> > these jars downloaded using the
> > maven-dependency-plugin:copy-dependencies, but I cannot seem to figure
> > out how to get the path created.
> >
> > Roshan
> >
> > -----Original Message-----
> > From: Wayne Fay [mailto:waynefay@gmail.com]
> > Sent: Wednesday, October 24, 2007 10:49 AM
> > To: Maven Users List
> > Subject: Re: Maven Create Path
> >
> > What are you trying to do that Maven isn't doing/can't do for you?
> > There may be a better way to approach this from a Maven perspective.
> >
> > Wayne
> >
> > On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com>
> > wrote:
> > > Hi,
> > >
> > > In Ant, I was able to take a directory and create a full path defining
> > > all the entries in that directory. For example, in directory lib, I
> > have
> > > jars:
> > > -test1.jar
> > > -test2.jar
> > > -test3.jar. I want to be able to create a path and set it as a
> > property
> > > like: lib/test1.jar, lib/test2.jar, lib/test3.jar.
> > >
> > > Is this possible in Maven?
> > >
> > > Roshan
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Cheers, Stuart
Re: Maven Create Path
Posted by Damien Lecan <ml...@dlecan.com>.
Don't loose time doing that by hand
Use this Apache Felix plugin :
http://cwiki.apache.org/FELIX/bundle-plugin-for-maven-bnd.html
Good luck
Damien
2007/10/24, Roshan A. Punnoose <rp...@proteus-technologies.com>:
> Well I am trying to bundle an osgi bundle. And it needs a
> Bundle-Classpath entry in the Manifest. This entry has to be a
> comma-separated list of all the jars needed by the osgi bundle. I have
> these jars downloaded using the
> maven-dependency-plugin:copy-dependencies, but I cannot seem to figure
> out how to get the path created.
>
> Roshan
>
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com]
> Sent: Wednesday, October 24, 2007 10:49 AM
> To: Maven Users List
> Subject: Re: Maven Create Path
>
> What are you trying to do that Maven isn't doing/can't do for you?
> There may be a better way to approach this from a Maven perspective.
>
> Wayne
>
> On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com>
> wrote:
> > Hi,
> >
> > In Ant, I was able to take a directory and create a full path defining
> > all the entries in that directory. For example, in directory lib, I
> have
> > jars:
> > -test1.jar
> > -test2.jar
> > -test3.jar. I want to be able to create a path and set it as a
> property
> > like: lib/test1.jar, lib/test2.jar, lib/test3.jar.
> >
> > Is this possible in Maven?
> >
> > Roshan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Create Path
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
Well I am trying to bundle an osgi bundle. And it needs a
Bundle-Classpath entry in the Manifest. This entry has to be a
comma-separated list of all the jars needed by the osgi bundle. I have
these jars downloaded using the
maven-dependency-plugin:copy-dependencies, but I cannot seem to figure
out how to get the path created.
Roshan
-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com]
Sent: Wednesday, October 24, 2007 10:49 AM
To: Maven Users List
Subject: Re: Maven Create Path
What are you trying to do that Maven isn't doing/can't do for you?
There may be a better way to approach this from a Maven perspective.
Wayne
On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com>
wrote:
> Hi,
>
> In Ant, I was able to take a directory and create a full path defining
> all the entries in that directory. For example, in directory lib, I
have
> jars:
> -test1.jar
> -test2.jar
> -test3.jar. I want to be able to create a path and set it as a
property
> like: lib/test1.jar, lib/test2.jar, lib/test3.jar.
>
> Is this possible in Maven?
>
> Roshan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Create Path
Posted by Wayne Fay <wa...@gmail.com>.
What are you trying to do that Maven isn't doing/can't do for you?
There may be a better way to approach this from a Maven perspective.
Wayne
On 10/24/07, Roshan A. Punnoose <rp...@proteus-technologies.com> wrote:
> Hi,
>
> In Ant, I was able to take a directory and create a full path defining
> all the entries in that directory. For example, in directory lib, I have
> jars:
> -test1.jar
> -test2.jar
> -test3.jar. I want to be able to create a path and set it as a property
> like: lib/test1.jar, lib/test2.jar, lib/test3.jar.
>
> Is this possible in Maven?
>
> Roshan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org