You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2006/01/26 01:13:06 UTC
[jira] Closed: (MAVEN-1630) Properties section in POM cannot be
read
[ http://jira.codehaus.org/browse/MAVEN-1630?page=all ]
Lukas Theussl closed MAVEN-1630:
--------------------------------
Resolution: Won't Fix
Fix Version: (was: 1.1-beta-3)
The properties element is not supposed to be used like that, you can only specify simple properties (no nested elements) like this:
<properties>
<propertyA>pomPropertyA</propertyA>
</properties>
A custom jelly script can then access this property like:
${pom.getProperties().getProperty('propertyA')}
> Properties section in POM cannot be read
> ----------------------------------------
>
> Key: MAVEN-1630
> URL: http://jira.codehaus.org/browse/MAVEN-1630
> Project: Maven
> Type: Bug
> Versions: 1.1-beta-1
> Environment: windows xp sp1, JVM 1.4.2_05
> Reporter: Andreas Schönknecht
>
>
> I just tried the Maven 1.1 beta. Unfortunately I get errors when my
> POMs contains custom properties. Here is an example: At the end of the
> POM I have a properties section:
> ...
> </dependencies>
> <properties>
> <deputy isAssembly="false" >
> <rules>
> <default value="LATEST RELEASE" />
> <enforcements>
> <enforcement>
> <groupId>tui-iris</groupId>
> <artifactId>tuiiris</artifactId>
> <version>1.0.2</version>
> </enforcement>
> </enforcements>
> <deprecations />
> <replacements />
> <removals />
> </rules>
> </deputy>
> </properties>
> </project>
> As far as I understood it should be possible to have custom properties
> in the POM. But when I execute any Maven goal I get:
> org.codehaus.plexus.util.xml.pull.XmlPullParserException: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<deputy isAssembly="false" \r\n <rules>... @185:20)
> at org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:1059)
> at org.apache.maven.project.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:834)
> at org.apache.maven.project.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:1621)
> at org.apache.maven.project.Project.<init>(Project.java:120)
> at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:185)
> at org.apache.maven.MavenUtils.getProject(MavenUtils.java:120)
> at org.apache.maven.MavenUtils.getProject(MavenUtils.java:99)
> at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
> at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
> at org.apache.maven.cli.App.doMain(App.java:498)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org