does your child project reference the parent using the <parent> element? in the correct version?
Milos On Mon, Nov 25, 2013 at 9:57 AM, Panciz <[email protected]> wrote: > I cant access, from a Maven module, to a property defined in the properties > section of the parent. As a matter of fact When I launch the build below the > warName is the default one. > > This is the parent Pom > > .... > <modelVersion>4.0.0</modelVersion> > <groupId>com.speed.pms</groupId> > <artifactId>PMS-Main</artifactId> > <version>1.0.0</version> > <packaging>pom</packaging> > <name>PMS Main Build Project</name> > > <properties> > <context-root>PMS-CUSTOM</context-root> > </properties> > <modules> > <module>../PMS-WEB</module> > </modules> > .... > > And this is the module > > ... > <artifactId>PMS-WEB</artifactId> > <packaging>war</packaging> > <name>PMS-WEB Webapp</name> > <properties> > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > <web.resource.dir>src/main/webapp</web.resource.dir> > </properties> > <build> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.4</version> > <configuration> > > <warName>${context-root}</warName> > <webResources> > <resource> > <directory>${web.resource.dir}</directory> > </resource> > </webResources> > </configuration> > </plugin> > .... > > While I can use the ${project.parent.arctifactId} property. I try also > ${project.parent.properties.context-root} but without success. It should be > simple but I cant understand Which is my errror? Shouldn't be the properties > inherited from the parent in a Module? > > Davide > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Maven-Custom-Parent-property-from-Module-tp5776488.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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]
