You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by rajas kumar <pr...@yahoo.com> on 2004/12/07 05:49:53 UTC

properties inheritance

Hai maven users,
 
   I am facing with a problem of properties in heritance. I have a servaral modules. I am compiling each module by using reactor. 
 
 
In project.xml i am using a property ${basesrc}.(i.e <sourceDirectory>${basesrc}/src</sourceDirectory>) This property was specifid at top level.
 
My problem is this property is not inherited into module level.Even though i used maven.properties.inheritance=true. In each module i need to specify this property then only recognizes the source files to compile.other wise its giveing no souce files to compile.
 
 
Plz send  solution if any body knows.
 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: properties inheritance

Posted by rajas kumar <pr...@yahoo.com>.
Here it is full details abt this problem.
   I have a property which is using in all modules project.xml file which recognizes source directory. I have specified this at top level project.properties file.
 
if i have given the property of ${basesrc} in project.properteis this is the out put.(i have given <extend> also in project.xml  file.
 
+----------------------------------------
| Building admin
| Memory: 3M/4M
+----------------------------------------
property and tasks defined for webservicesbuild:start:
admin:
property and tasks defined for webservicesbuild:start:
compile:
java:prepare-filesystem:
    [mkdir] Created dir: E:\mycvs\cfm\pcm\dev\dist\maven\target\classes
java:compile:
    [echo] Compiling to E:/mycvs/cfm/pcm/dev/dist/maven/target/classes
    [javac] Compiling 7 source files to E:\mycvs\cfm\pcm\dev\dist\maven\target\c
lasses
BUILD SUCCESSFUL
Total time: 17 seconds
Finished at: Tue Dec 07 11:14:08 GMT+05:30 2004
 
 
 
 
if i remove the propety form propertis file this is the out put.
+----------------------------------------
| Building admin
| Memory: 3M/4M
+----------------------------------------
property and tasks defined for webservicesbuild:start:
admin:
property and tasks defined for webservicesbuild:start:
compile:
java:prepare-filesystem:
java:compile:
    [echo] Compiling to e:/mycvs/cfm/pcm/dev/dist/maven/target/classes
    [echo] No java source files to compile.
BUILD SUCCESSFUL
Total time: 6 seconds
Finished at: Tue Dec 07 11:16:36 GMT+05:30 2004
 
 
 
 
Note: Here i am getting one doubt that i have change the property at top level  maven.build.dir. it is going to be inheriting but other properties are not inherited why?  
 
 

Brett Porter <br...@gmail.com> wrote:
that should work. I will verify that it is fixed in 1.0.2 which is
being released today.

- Brett


On Mon, 6 Dec 2004 21:22:33 -0800 (PST), rajas kumar

wrote:
> 
> i am using version 1.0. 
> Yaa i am extending other project.xml files also.
> 
> 
> 
> Brett Porter 
wrote: 
> 
> 
> what version of Maven are you using?
> 
> When you say inherited, are you actually extending other project.xml files?
> 
> - Brett
> 
> 
> On Mon, 6 Dec 2004 20:49:53 -0800 (PST), rajas kumar
> wrote:
> > Hai maven users,
> > 
> > I am facing with a problem of properties in heritance. I have a servaral
> modules. I am compiling each module by using reactor.
> > 
> > In project.xml i am using a property ${basesrc}.(i.e ${basesrc}/src) This
> property was specifid at top level.
> > 
> > My problem is this property is not inherited into module level.Even though
> i used maven.properties.inheritance=true. In each module i need to specify
> this property then only recognizes the source files to compile.other wise
> its giveing no souce files to compile.
> > 
> > Plz send solution if any body knows.
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> ________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses. 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - now with 250MB free storage. Learn more.

Re: properties inheritance

Posted by rajas kumar <pr...@yahoo.com>.
Here it is full details abt this problem.
   I have a property which is using in all modules project.xml file which recognizes source directory. I have specified this at top level project.properties file.
 
if i have given the property of ${basesrc} in project.properteis this is the out put.(i have given <extend> also in project.xml  file.
 
+----------------------------------------
| Building admin
| Memory: 3M/4M
+----------------------------------------
property and tasks defined for webservicesbuild:start:
admin:
property and tasks defined for webservicesbuild:start:
compile:
java:prepare-filesystem:
    [mkdir] Created dir: E:\mycvs\cfm\pcm\dev\dist\maven\target\classes
java:compile:
    [echo] Compiling to E:/mycvs/cfm/pcm/dev/dist/maven/target/classes
    [javac] Compiling 7 source files to E:\mycvs\cfm\pcm\dev\dist\maven\target\c
lasses
BUILD SUCCESSFUL
Total time: 17 seconds
Finished at: Tue Dec 07 11:14:08 GMT+05:30 2004
 
 
 
 
if i remove the propety form propertis file this is the out put.
+----------------------------------------
| Building admin
| Memory: 3M/4M
+----------------------------------------
property and tasks defined for webservicesbuild:start:
admin:
property and tasks defined for webservicesbuild:start:
compile:
java:prepare-filesystem:
java:compile:
    [echo] Compiling to e:/mycvs/cfm/pcm/dev/dist/maven/target/classes
    [echo] No java source files to compile.
BUILD SUCCESSFUL
Total time: 6 seconds
Finished at: Tue Dec 07 11:16:36 GMT+05:30 2004
 
 
 
 
Note: Here i am getting one doubt that i have change the property at top level  maven.build.dir. it is going to be inheriting but other properties are not inherited why?  
 
 

Brett Porter <br...@gmail.com> wrote:
that should work. I will verify that it is fixed in 1.0.2 which is
being released today.

- Brett


On Mon, 6 Dec 2004 21:22:33 -0800 (PST), rajas kumar

wrote:
> 
> i am using version 1.0. 
> Yaa i am extending other project.xml files also.
> 
> 
> 
> Brett Porter 
wrote: 
> 
> 
> what version of Maven are you using?
> 
> When you say inherited, are you actually extending other project.xml files?
> 
> - Brett
> 
> 
> On Mon, 6 Dec 2004 20:49:53 -0800 (PST), rajas kumar
> wrote:
> > Hai maven users,
> > 
> > I am facing with a problem of properties in heritance. I have a servaral
> modules. I am compiling each module by using reactor.
> > 
> > In project.xml i am using a property ${basesrc}.(i.e ${basesrc}/src) This
> property was specifid at top level.
> > 
> > My problem is this property is not inherited into module level.Even though
> i used maven.properties.inheritance=true. In each module i need to specify
> this property then only recognizes the source files to compile.other wise
> its giveing no souce files to compile.
> > 
> > Plz send solution if any body knows.
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> ________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses. 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

Re: properties inheritance

Posted by Brett Porter <br...@gmail.com>.
that should work. I will verify that it is fixed in 1.0.2 which is
being released today.

- Brett


On Mon, 6 Dec 2004 21:22:33 -0800 (PST), rajas kumar
<pr...@yahoo.com> wrote:
> 
> i am using version 1.0. 
>  Yaa i am extending other project.xml files also.
> 
> 
> 
> Brett Porter <br...@gmail.com> wrote: 
> 
> 
> what version of Maven are you using?
> 
> When you say inherited, are you actually extending other project.xml files?
> 
> - Brett
> 
> 
> On Mon, 6 Dec 2004 20:49:53 -0800 (PST), rajas kumar
> wrote:
> > Hai maven users,
> > 
> > I am facing with a problem of properties in heritance. I have a servaral
> modules. I am compiling each module by using reactor.
> > 
> > In project.xml i am using a property ${basesrc}.(i.e ${basesrc}/src) This
> property was specifid at top level.
> > 
> > My problem is this property is not inherited into module level.Even though
> i used maven.properties.inheritance=true. In each module i need to specify
> this property then only recognizes the source files to compile.other wise
> its giveing no souce files to compile.
> > 
> > Plz send solution if any body knows.
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
>  ________________________________
> Do you Yahoo!?
>  Yahoo! Mail - Helps protect you from nasty viruses. 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: properties inheritance

Posted by rajas kumar <pr...@yahoo.com>.
i am using version 1.0.
 Yaa i am extending other project.xml files also.

Brett Porter <br...@gmail.com> wrote:
what version of Maven are you using?

When you say inherited, are you actually extending other project.xml files?

- Brett


On Mon, 6 Dec 2004 20:49:53 -0800 (PST), rajas kumar

wrote:
> Hai maven users,
> 
> I am facing with a problem of properties in heritance. I have a servaral modules. I am compiling each module by using reactor.
> 
> In project.xml i am using a property ${basesrc}.(i.e ${basesrc}/src) This property was specifid at top level.
> 
> My problem is this property is not inherited into module level.Even though i used maven.properties.inheritance=true. In each module i need to specify this property then only recognizes the source files to compile.other wise its giveing no souce files to compile.
> 
> Plz send solution if any body knows.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.

Re: properties inheritance

Posted by Brett Porter <br...@gmail.com>.
what version of Maven are you using?

When you say inherited, are you actually extending other project.xml files?

- Brett


On Mon, 6 Dec 2004 20:49:53 -0800 (PST), rajas kumar
<pr...@yahoo.com> wrote:
> Hai maven users,
> 
>    I am facing with a problem of properties in heritance. I have a servaral modules. I am compiling each module by using reactor.
> 
> In project.xml i am using a property ${basesrc}.(i.e <sourceDirectory>${basesrc}/src</sourceDirectory>) This property was specifid at top level.
> 
> My problem is this property is not inherited into module level.Even though i used maven.properties.inheritance=true. In each module i need to specify this property then only recognizes the source files to compile.other wise its giveing no souce files to compile.
> 
> Plz send  solution if any body knows.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org