- Environment is using Web 8.5 and DXA 2.2 (Java), and was upgraded from DXA 1.8 (Java) - Developer has attempted to build the default webapp on server from the DXA 2.2 (Java) download /cms folder, as discussed in below documentation link https://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v12/GUID-D189EAD3-F5BB-4AE6-85BA-AC9C59EAA891 - When running command ""prepare.bat generate", this eventually fails with below error [INFO] Building DXA - Webapp 2.2.0 [WARNING] The POM for com.sdl.delivery:udp-common-config-legacy:jar:11.0.0-1028 is missing, no dependency information available Downloading: https://repo.maven.apache.org/maven2/com/sdl/delivery/udp-common-config-legacy/11.0.0-1028/udp-common-config-legacy-11.0.0-1028.pom … [ERROR] Failed to execute goal on project dxa-webapp: Could not resolve dependencies for project com.sdl.dxa:dxa-webapp:war:2.2.0: The following artifacts could not be resolved: com.sdl.delivery:udp-common-config-legacy:jar:11.0.0-1028, com.sdl.tridion.xo:xo-compatible-client:jar:11.0.0-1042: Failure to find com.sdl.delivery:udp-common-config-legacy:jar:11.0.0-1028 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] … Error building cmd /c mvn package -Pcore-module -DskipTests=true -f "E:\SDL.DXA.Java.2.2\SDL DXA Java 2.2\web\installer\dxa-webapp\pom.xml |
Webapp can be generated successfully after adding the below to the Maven pom.xml file.
<dependency> <groupId>com.sdl.tridion.xo</groupId> <artifactId>xo-compatible-client</artifactId> <!-- <version>${cd-xo.version}</version>--> <version>11.0.0-1050</version> </dependency> <dependency> <groupId>com.sdl.delivery</groupId> <artifactId>udp-common-config-legacy</artifactId> <!-- <version>${udp-common-config-legacy.version}</version>--> <version>11.0.0-1037</version> </dependency> |