React and AEM SPA Editor - Build Error!

jezwn

03-06-2020

Following the tutorial on getting started with react and spa editor, I'm having a build error trying to build inside the react-app folder. Configured all other steps, created a pom inside react-app folder and mvn clean install inside react-app gives,

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM E:\Auki\AEM\AEM6.5\react-aem\pom.xml: end tag name </releaseReposit> must match start tag name <releaseRepository-URL> from line 326 (position: TEXT seen ...ttps://repo.adobe.com/nexus/content/groups/public</releaseReposit\n... @327:1) @ E:\Auki\AEM\AEM6.5\react-aem\pom.xml, line 327, column 
1
@ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] 
[ERROR] The project com.adobe.aem.guides:aem-guides-wknd-events.react:0.0.1-SNAPSHOT (E:\Auki\AEM\AEM6.5\react-aem\react-app\pom.xml) has 1 error
[ERROR] Non-parseable POM E:\Auki\AEM\AEM6.5\react-aem\pom.xml: end tag name </releaseReposit> must match start tag name <releaseRepository-URL> from line 326 (position: TEXT seen ...ttps://repo.adobe.com/nexus/content/groups/public</releaseReposit\n... @327:1) @ E:\Auki\AEM\AEM6.5\react-aem\pom.xml, line 327, column 1 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException

 

These are the properties added to parent pom file inside properties,

        <frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>
        <node.version>v10.16.3</node.version>
        <npm.version>6.14.4</npm.version>	

Environment I've been using:

    Java Version: 11.0.4

    Node Version: v10.16.3

    npm Version: 6.14.4

    Maven Version: 3.6.2

react SPA Editor

Accepted Solutions (1)

Accepted Solutions (1)

ArpitVarshney

MVP

03-06-2020

Hi @jezwn 

 

From the error shared by you, it seems like the start and end tag of <releaseRepository-URL> in your pom.xml doesn't match.

Could you please validate. For example, it should be like below:

<releaseRepository-URL>https://repo.adobe.com/nexus/content/groups/public</releaseRepository-URL>

Hi @ArpitVarshney This is the pom file, I'm not quite getting what's its mentioned by releaseRepository-URL.

 

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
 
    <!-- ====================================================================== -->
    <!-- P A R E N T  P R O J E C T  D E S C R I P T I O N                      -->
    <!-- ====================================================================== -->
    <parent>
        <groupId>com.adobe.aem.guides</groupId>
        <artifactId>aem-guides-wknd-events</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
 
    <!-- ====================================================================== -->
    <!-- P R O J E C T  D E S C R I P T I O N                                   -->
    <!-- ====================================================================== -->
    <artifactId>aem-guides-wknd-events.react</artifactId>
    <packaging>pom</packaging>
    <name>WKND Events - React App</name>
    <description>UI React application code for WKND Events</description>
 
 
    <!-- ====================================================================== -->
    <!-- B U I L D   D E F I N I T I O N                                        -->
    <!-- ====================================================================== -->
    <build>
    <plugins>
    <plugin>
        <groupId>com.github.eirslett</groupId>
        <artifactId>frontend-maven-plugin</artifactId>
        <version>${frontend-maven-plugin.version}</version>
 
        <executions>
 
        <execution>
            <id>install node and npm</id>
            <goals>
            <goal>install-node-and-npm</goal>
            </goals>
            <configuration>
            <nodeVersion>${node.version}</nodeVersion>
            <npmVersion>${npm.version}</npmVersion>
        </configuration>
        </execution>
 
        <execution>
            <id>npm install</id>
            <goals>
            <goal>npm</goal>
            </goals>
            <!-- Optional configuration which provides for running any npm command -->
            <configuration>
            <arguments>install</arguments>
            </configuration>
        </execution>
 
        <execution>
            <id>npm run build</id>
            <goals>
            <goal>npm</goal>
            </goals>
            <configuration>
            <arguments>run build</arguments>
            </configuration>
        </execution>
 
        </executions>
    </plugin>
    </plugins>
</build>
</project>

Hi @jezwn 

 

It should be there at the parent pom.xml.The tag must be present in the react-aem/pom.xml file. I think you are checking your frontend module pom.

 

Regards,

Arpit

 .

Yeah got it. I was looking at the wrong pom.

Thanks @ArpitVarshney 

Answers (0)