You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "fabien markart (JIRA)" <ji...@codehaus.org> on 2010/09/15 17:25:32 UTC
[jira] Commented: (MNG-3242) It's not possible to get a property
with unescaped & sign for urls
[ http://jira.codehaus.org/browse/MNG-3242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235361#action_235361 ]
fabien markart commented on MNG-3242:
-------------------------------------
this bug is still on.
I have the same issue with the same use case.
- ubuntu lucid
- jboss 5.1GA
- hudson 1.376
- maven 2
- jdk java-6-sun update 21
my project, as the test one, has a jdbc url property field with an ampersand, the URL is propected with a CDATA and I still have this Exception :
Started by user anonymous
Parsing POMs
ERROR: Failed to parse POMs
hudson.maven.MavenEmbedder$1: Cannot read project model from interpolating filter of serialized version. for project de.neckert:mvntest at /tmp/mvntest/pom.xml
at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:334)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:878)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:796)
at hudson.FilePath.act(FilePath.java:753)
at hudson.FilePath.act(FilePath.java:735)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:519)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:405)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
at hudson.model.Run.run(Run.java:1273)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:291)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:129)
Caused by: org.apache.maven.project.InvalidProjectModelException: Cannot read project model from interpolating filter of serialized version. for project de.neckert:mvntest at /tmp/mvntest/pom.xml
at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:882)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:215)
at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:332)
... 11 more
Caused by: org.apache.maven.project.interpolation.ModelInterpolationException: Cannot read project model from interpolating filter of serialized version.
at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpolate(RegexBasedModelInterpolator.java:114)
at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1016)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)
... 14 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: entity reference name can not contain character =' (position: START_TAG seen ...c:mysql://localhost/nefo?createDatabaseIfNotExist=true&useUnicode=... @128:85)
at org.codehaus.plexus.util.xml.pull.MXParser.parseEntityRef(MXParser.java:2222)
at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1275)
at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:187)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:94)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parsePlugin(MavenXpp3Reader.java:2955)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Reader.java:753)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2224)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4422)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4433)
at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpolate(RegexBasedModelInterpolator.java:105)
... 16 more
Finished: FAILURE
Just tested the test one attached by Nils and it has the same issue.
> It's not possible to get a property with unescaped & sign for urls
> ------------------------------------------------------------------
>
> Key: MNG-3242
> URL: http://jira.codehaus.org/browse/MNG-3242
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: General
> Affects Versions: 2.0.6
> Reporter: Nils Eckert
> Attachments: mvntest-20080327.zip
>
>
> I found no way to create a property with a not escaped ampersand (&-sign). This is needed for a MySQL jdbc-connection String with some connection variabled and should be filtered in a properties file during compile phase.
> It tried to escape it with & This leeds to following error: Project build error Cannot read project model from interpolating filter of serialized version.
> It is no option to use a double escaping with &amp;. Here I get a & in my connection url.
> I also tried to use a <[CDATA[ ... ]]> with the same problems. It's not possible to use & sign. And if I use & this escaped tag appears in my properties file after filtering.
--
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