Maven build issue in AEM 6.4 | Community
Skip to main content
Parusharam
Level 2
Feb 6, 2019 2:49 PM UTC
Solved

Maven build issue in AEM 6.4

Hi,

We  are in process of migrating AEM 6.2 to 6.4. While doing maven build or jenkins build, in existing jsp's some random text is getting appended like "org.apache.maven.project.MavenProject".

example:

actual code should be:<div class="${class}"> and after the build the code is like : <div class="class org.apache.maven.project.MavenProject">.

Any pointers please..

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Parusharam
ParusharamAccepted solution
Level 2
Feb 6, 2019 3:21 PM UTC

It worked. In the jsp, variable is created with the name of "class" and whenever  the variable is try to replace the value it is appending the unwanted text as "class"is a keyword. I changed the variable name from "class"to new name it started working fine.

5 replies

smacdonald2008
Level 10
Feb 6, 2019 3:27 PM UTC

Very strange - 1st time I have heard of that behavior.

Translate
Parusharam
ParusharamAuthorAccepted solution
Level 2
Feb 6, 2019 3:21 PM UTC

It worked. In the jsp, variable is created with the name of "class" and whenever  the variable is try to replace the value it is appending the unwanted text as "class"is a keyword. I changed the variable name from "class"to new name it started working fine.

Translate
smacdonald2008
Level 10
Feb 6, 2019 3:21 PM UTC

Did you start a fresh project or try and convert an existing one to Arch 13?

Translate
Parusharam
Level 2
Feb 6, 2019 3:07 PM UTC

Yes, I am using maven archetype 13.

Translate
smacdonald2008
Level 10
Feb 6, 2019 3:04 PM UTC

How are you building your AEM 6.4 project - are you using Maven Archetype 13 or higher?

Translate