apiVersion: 1.0.0 metadata: generateName: appdev-surveyapi- projects: - name: spring-rest-surveygroups source: location: 'https://github.com/redhat-appdev-practice/spring-rest-surveygroups.git' type: git branch: master components: - id: redhat/java8/latest type: chePlugin - image: 'registry.redhat.io/codeready-workspaces/stacks-java-rhel8:2.0' mountSources: true memoryLimit: 512Mi type: dockerimage volumes: - name: m2 containerPath: /home/jboss/.m2 endpoints: - name: 8080/tcp port: 8080 alias: maven env: - value: >- -XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom -Duser.home=/home/jboss name: JAVA_OPTS - value: $(JAVA_OPTS) name: MAVEN_OPTS commands: - name: maven build actions: - workdir: '${CHE_PROJECTS_ROOT}/spring-rest-surveygroups' type: exec command: mvn clean package component: maven - name: maven build and run actions: - workdir: '${CHE_PROJECTS_ROOT}/spring-rest-surveygroups' type: exec command: mvn spring-boot:run -Dspring-boot.run.profiles=local component: maven