SAP-samples / cloud-espm-multi-environment

This sample application demonstrates how to build applications on SAP Business Technology Platform (BTP) with the Java runtime. This version showcases how to adapt an ESPM application developed to run on SAP BTP Neo Environment to run on SAP BTP, Cloud Foundry environment.
Apache License 2.0
1 stars 8 forks source link

Build fails #1

Closed rstumpe closed 2 years ago

rstumpe commented 5 years ago

I followed the instruction "Build the application"

mvn clean install in the root folder fails:

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] espm ............................................... SUCCESS [ 0.294 s] [INFO] espm-cloud-jpa ..................................... SUCCESS [ 4.936 s] [INFO] espm-cloud-web ..................................... SUCCESS [ 8.046 s] [INFO] espm-common-ui ..................................... FAILURE [ 2.994 s] [INFO] espm-cloud-web-neo ................................. SKIPPED [INFO] html5-neo .......................................... SKIPPED [INFO] espm-cloud-web-cf .................................. SKIPPED [INFO] espm-ui-cf ......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.399 s [INFO] Finished at: 2019-06-18T15:19:25+02:00 [INFO] Final Memory: 34M/462M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4.1:single (default) on project espm-common-ui: Assembly is incorrectly configured: null: Assembly is incorrectly configured: null: [ERROR] Assembly: null is not configured correctly: Assembly ID must be present and non-empty. [ERROR] -> [Help 1] [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :espm-common-ui

navinkrishnan commented 5 years ago

Not able to reproduce the issue.

Please specify your Maven version and the OS.

rstumpe commented 5 years ago

Hi,

here is my maven version:

pache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.8.0_101, vendor: Oracle Corporation Java home: /opt/Oracle_Java/jdk1.8.0_101/jre Default locale: de_DE, platform encoding: UTF-8 OS name: "linux", version: "4.4.0-142-generic", arch: "amd64", family: "unix"

Here is my Os

Output of " uname -a" Linux wslxew146 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Output of "lsb_release -a"

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial

rstumpe commented 5 years ago

BTW, may be that helps:


[INFO] Building espm-common-ui 1.0.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ espm-common-ui --- [INFO] Deleting /home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ espm-common-ui --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ espm-common-ui --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ espm-common-ui --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ espm-common-ui --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ espm-common-ui --- [INFO] No tests to run. [INFO] [INFO] --- maven-war-plugin:3.2.0:war (default-war) @ espm-common-ui --- [INFO] Packaging webapp [INFO] Assembling webapp [espm-common-ui] in [/home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/target/espm-common-ui-1.0.0] [INFO] Processing war project [INFO] Copying webapp resources [/home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/src/main/webapp] [INFO] Webapp assembled in [55 msecs] [INFO] Building war: /home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/target/espm-common-ui.war

mahaluckshmi commented 5 years ago

Hi, I could not replicate. Still, Can you try adding < id > releases < / id > in 'maven-assembly-plugin' inside execution? path: /commons/espm-common-ui/pom.xml.

rstumpe commented 5 years ago

Hello,

sorry I was too busy the last weeks. I added releases to

commons/espm-common-ui/pom.xml

see below:

    <parent>
            <groupId>com.sap.refapps</groupId>
            <artifactId>espm</artifactId>
            <version>1.0.0</version>
            <relativePath>../..</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>espm-common-ui</artifactId>
    <packaging>war</packaging>
    <id>releases</id>
    <build>
            <plugins>
               ....

result is:

cloud-espm-multi-environment$ mvn clean install [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Malformed POM /home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/pom.xml: Unrecognised tag: 'id' (position: START_TAG seen ...\r\n ... @15:13) @ /home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/pom.xml, line 15, column 13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project com.sap.refapps:espm-common-ui:1.0.0 (/home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/pom.xml) has 1 error [ERROR] Malformed POM /home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/pom.xml: Unrecognised tag: 'id' (position: START_TAG seen ...\r\n ... @15:13) @ /home/rstumpe/projekte/ultratronik/Ux-Iotp/cloudf/cloud-espm-multi-environment/commons/espm-common-ui/pom.xml, line 15, column 13 -> [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

shankarigr commented 2 years ago

Please reopen if the issue still exists.