maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jackman" <>
Subject Mojo accessing project properties
Date Fri, 16 Feb 2007 21:43:13 GMT
I'm trying to write a mojo that accesses the properties section of the
project pom.  I declared a member variable like this
     * Project properties.
     * @parameter default-value="${}"
     * @required
     * @readonly
    private Properties properties;
When my mojo runs, it gets a Properties object okay, but it's always
empty, even if I have declared properties in the project POM.
Am I doing something wrong?  How do I access the project properties (not
plugin configuration properties)?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message