This has bitten me more times than I care to remember.
Thus, I've done a series of tests I've done to answer some of my questions
about how properties resolve.
As soon as I'm able, I'll format them into something intelligible and post
them on the wiki.

On 1/3/07, Mohni, Daniel <[EMAIL PROTECTED]> wrote:

Hi Wayne

answers inline

> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 03, 2007 5:16 AM
> To: Maven Users List
> Subject: Re: Is it possible to have <version>${cur.Version}</version>
>
> I think the property value should be substituted properly if you
> deploy the artifact to a repository, though perhaps not when it is
> installed.
>
> Give that a try and report back.
>
> Wayne

I'am also struggeling with property resolution and already submitted a
question on this list, but no answers so far...


http://www.nabble.com/Usage-of-Properties-in-Multi-Project-POM%27s-tf288
9632s177.html

developers do not deploy artefacts, they only install them. The only
system deploying artefacts is our continuum server.

Properties are definitly not substituted in the pom installed, but
this should not be a problem as the properties used are inside the
pom and should be resolved as needed...

Daniel



> On 1/2/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > I created a profile.xml and added a version there:
> >
> >         <profile>
> >             <id>unix</id>
> >             <activation>
> >                 <property>
> >                     <name>env</name>
> >                     <value>unix</value>
> >                 </property>
> >             </activation>
> >             <properties>
> >                 <env>qa</env>
> >
> >
> <default.project.version>2.1.5</default.project.version>
> >
> >                 <compiler.debug>true</compiler.debug>
> >                 <property.configurer.location.path>${
> >
> property.configurer.location.path.unix}</property.configurer.l
> ocation.path>
> >                 <property.configurer.location>${
> > property.configurer.location.unix}</property.configurer.location>
> >             </properties>
> >         </profile>
> >
> >     </profiles>
> >
> >
> >
> >
> >
> > On 1/2/07, [EMAIL PROTECTED] <
> > [EMAIL PROTECTED]> wrote:
> > >
> > > Hi All
> > >
> > > Is that possible to have
> > >
> > >
> > >                 <groupId>test</groupId>
> > >                 <artifactId>test</artifactId>
> > >                 <version>${cur.Version}</version>
> > >                 <relativePath>../../pom.xml</relativePath>
> > >
> > >
> > >
> > > where i define cur.Version=1.0 in <properties> section,
> > >
> > > I tried to doing it, it worked but when it uploded pom to
> remote repsitory
> > > pom file was not replaced by ${cur.Version}value from properties
> > >
> > >
> > >
> > > Thanks,
> > > Raghurajan Gurunathan
> > >
> > >
> > >
> > >
> > > -----------------------------------------
> > > This transmission may contain information that is privileged,
> > > confidential, legally privileged, and/or exempt from disclosure
> > > under applicable law.  If you are not the intended recipient, you
> > > are hereby notified that any disclosure, copying, distribution, or
> > > use of the information contained herein (including any reliance
> > > thereon) is STRICTLY PROHIBITED.  Although this transmission and
> > > any attachments are believed to be free of any virus or other
> > > defect that might affect any computer system into which it is
> > > received and opened, it is the responsibility of the recipient to
> > > ensure that it is virus free and no responsibility is accepted by
> > > JPMorgan Chase & Co., its subsidiaries and affiliates, as
> > > applicable, for any loss or damage arising in any way
> from its use.
> > > If you received this transmission in error, please immediately
> > > contact the sender and destroy the material in its entirety,
> > > whether in electronic or hard copy format. Thank you.
> > >
> > >
> >
> >
> > --
> >
> > Thanks
> >
> > DJ MICK
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, "modern" ways.

Reply via email to