Camunda Engine Source Code problem

670 views
Skip to first unread message

Emerald Hieu

unread,
Oct 28, 2014, 4:55:49 AM10/28/14
to camunda-...@googlegroups.com
After checking out Camunda source code from Git. I imported project "camunda-engine" as Maven project into Eclipse. It generates many errors. How to fix it? I'd like to fix it to edit some operation.

Description Resource Path Location Type
Missing artifact org.apache.ant:ant:jar:1.7.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.apache.ant:ant-launcher:jar:1.7.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.codehaus.groovy:groovy-all:jar:2.3.0 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact javax.persistence:persistence-api:jar:1.0 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-core:jar:3.1.2.RELEASE pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-asm:jar:3.1.2.RELEASE pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact junit:junit:jar:4.11 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.hamcrest:hamcrest-core:jar:1.3 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact javax.activation:activation:jar:1.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.livetribe:livetribe-jsr223:jar:2.0.6 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.mybatis:mybatis:jar:3.2.3 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-beans:jar:3.1.2.RELEASE pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.camunda.commons:camunda-commons-utils:jar:1.0.5 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.camunda.spin:camunda-spin-all:jar:1.0.0-alpha3 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.apache.commons:commons-email:jar:1.2 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact javax.mail:mail:jar:1.4.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact log4j:log4j:jar:1.2.13 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact com.fasterxml.uuid:java-uuid-generator:jar:3.1.2 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec:jboss-javaee-web-6.0:pom:3.0.2.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact joda-time:joda-time:jar:2.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_two_archives_two_engines.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 35 XML Problem
Missing artifact org.apache.geronimo.specs:geronimo-jpa_3.0_spec:jar:1.0 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.0.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.subethamail:subethasmtp-smtp:jar:1.2 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.subethamail:subethasmtp-wiser:jar:1.2 pom.xml /camunda-engine line 1 Maven Dependency Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_two_archives_two_engines.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 25 XML Problem
Missing artifact commons-lang:commons-lang:jar:2.4 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact commons-logging:commons-logging:jar:1.1.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact commons-pool:commons-pool:jar:1.3 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact commons-collections:commons-collections:jar:3.2 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact com.h2database:h2:jar:1.3.168 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact net.sourceforge.serp:serp:jar:1.13.1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.apache.openjpa:openjpa:jar:1.2.2 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.slf4j:slf4j-api:jar:1.7.7 pom.xml /camunda-engine line 1 Maven Dependency Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. deployment-reusing-existing-engine.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/embedded line 11 XML Problem
Missing artifact org.camunda.commons:camunda-commons-logging:jar:1.0.5 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.camunda.connect:camunda-connect-all:jar:1.0.0-alpha3 pom.xml /camunda-engine line 1 Maven Dependency Problem
cvc-complex-type.4: Attribute 'name' must appear on element 'process-archive'. deployment-with-additional-resource-suffixes.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/embedded line 7 XML Problem
Missing artifact org.camunda.bpm.model:camunda-cmmn-model:jar:7.2.0-SNAPSHOT pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.camunda.bpm.model:camunda-xml-model:jar:7.2.0-SNAPSHOT pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.camunda.bpm.model:camunda-bpmn-model:jar:7.2.0-SNAPSHOT pom.xml /camunda-engine line 1 Maven Dependency Problem
ArtifactDescriptorException: Failed to read artifact descriptor for xalan:xalan:jar:2.7.1.jbossorg-2: ArtifactResolutionException: Failure to transfer xalan:xalan:pom:2.7.1.jbossorg-2 from https://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of JBoss public has elapsed or updates are forced. Original error: Could not transfer artifact xalan:xalan:pom:2.7.1.jbossorg-2 from/to JBoss public (https://repository.jboss.org/nexus/content/groups/public/): Failed to transfer https://repository.jboss.org/nexus/content/groups/public/xalan/xalan/2.7.1.jbossorg-2/xalan-2.7.1.jbossorg-2.pom. Error code 502, Proxy Error pom.xml /camunda-engine line 1 Maven Dependency Problem
ArtifactDescriptorException: Failed to read artifact descriptor for commons-io:commons-io:jar:2.0.1: ArtifactResolutionException: Failure to transfer commons-io:commons-io:pom:2.0.1 from http://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. Original error: Could not transfer artifact commons-io:commons-io:pom:2.0.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /camunda-engine line 1 Maven Dependency Problem
cvc-complex-type.4: Attribute 'name' must appear on element 'process-engine'. process_xml_engine_no_name.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 7 XML Problem
The container 'Maven Dependencies' references non existing library 'C:\Users\hieu.nguyen\.m2\repository\org\camunda\spin\camunda-spin-all\1.0.0-alpha3\camunda-spin-all-1.0.0-alpha3.jar' camunda-engine Build path Build Path Problem
The project cannot be built until build path errors are resolved camunda-engine Unknown Java Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. deployment-with-resources.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/embedded line 10 XML Problem
cvc-complex-type.4: Attribute 'name' must appear on element 'process-archive'. deployment-with-resources.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/embedded line 7 XML Problem
Missing artifact org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.0_spec:jar:1.0.1.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar:1.0.2.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.1.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec:jar:1.0.1.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.1.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar:1.0.1.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec:jar:1.0.1.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.servlet.jstl:jboss-jstl-api_1.2_spec:jar:1.0.3.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact javax.validation:validation-api:jar:1.0.0.GA pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact javax.enterprise:cdi-api:jar:1.0-SP4 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact javax.inject:javax.inject:jar:1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.el:jboss-el-api_2.2_spec:jar:1.0.2.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec:jar:2.0.9.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.1.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_one_archive.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 9 XML Problem
Missing artifact org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.2.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.skyscreamer:jsonassert:jar:1.2.3 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jruby:jruby-complete:jar:1.7.12 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.python:jython:jar:2.5.3 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss.logging:jboss-logging:jar:3.0.0.CR1 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.hamcrest:hamcrest-library:jar:1.3 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.json:json:jar:20070829 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.apache.tomcat:catalina:jar:6.0.37 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact commons-dbcp:commons-dbcp:jar:1.4 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-test:jar:3.1.2.RELEASE pom.xml /camunda-engine line 1 Maven Dependency Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_two_archives.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 19 XML Problem
Missing artifact org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec:jar:1.0.4.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.jboss:jboss-vfs:jar:3.1.0.Final pom.xml /camunda-engine line 1 Maven Dependency Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_two_archives.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 9 XML Problem
Missing artifact org.apache.tomcat:annotations-api:jar:6.0.37 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.apache.tomcat:juli:jar:6.0.37 pom.xml /camunda-engine line 1 Maven Dependency Problem
Missing artifact org.apache.tomcat:servlet-api:jar:6.0.37 pom.xml /camunda-engine line 1 Maven Dependency Problem

thorben....@camunda.com

unread,
Oct 28, 2014, 4:59:55 AM10/28/14
to camunda-...@googlegroups.com
Hi Emerald,

Did you add the camunda Nexus to your maven settings as described in [1]?

Cheers,
Thorben

[1] https://github.com/camunda/camunda-bpm-platform#building-camunda-bpm-platform

Emerald Hieu

unread,
Oct 28, 2014, 8:08:04 AM10/28/14
to camunda-...@googlegroups.com
Thank Thorben, I did what the link says. This is console log after "mvn cleanup install". It looks success.

Results :

Tests run: 3971, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ camunda-engine ---
[INFO] Adding existing MANIFEST to archive. Found under: C:\Workspace\CamundaSourceCode\camunda-bpm-platform\engine\target\classes\META-INF\MANIFEST.MF
[INFO] Building jar: C:\Workspace\CamundaSourceCode\camunda-bpm-platform\engine\target\camunda-engine-7.2.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ camunda-engine ---
[INFO] Installing C:\Workspace\CamundaSourceCode\camunda-bpm-platform\engine\target\camunda-engine-7.2.0-SNAPSHOT.jar to C:\Users\hieu.nguyen\.m2\repository\org\camunda\bpm\camunda-engine\7.2.0-SNAPSHOT\camunda-engine-7.2.0-SNAPSHOT.jar
[INFO] Installing C:\Workspace\CamundaSourceCode\camunda-bpm-platform\engine\pom.xml to C:\Users\hieu.nguyen\.m2\repository\org\camunda\bpm\camunda-engine\7.2.0-SNAPSHOT\camunda-engine-7.2.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14:23.095s
[INFO] Finished at: Tue Oct 28 18:42:04 ICT 2014
[INFO] Final Memory: 33M/429M
[INFO] ------------------------------------------------------------------------

But... the remaining errors in the project say "Invalid content...".

Description Resource Path Location Type
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_two_archives_two_engines.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 35 XML Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_two_archives_two_engines.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 25 XML Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_two_archives.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 9 XML Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. deployment-reusing-existing-engine.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/embedded line 11 XML Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_two_archives.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 19 XML Problem
cvc-complex-type.4: Attribute 'name' must appear on element 'process-archive'. deployment-with-additional-resource-suffixes.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/embedded line 7 XML Problem
cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"http://www.camunda.org/schema/1.0/ProcessApplication":process, "http://www.camunda.org/schema/1.0/ProcessApplication":properties}' is expected. process_xml_one_archive.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 9 XML Problem
cvc-complex-type.4: Attribute 'name' must appear on element 'process-engine'. process_xml_engine_no_name.xml /camunda-engine/src/test/resources/org/camunda/bpm/application/impl/deployment/parser line 7 XML Problem

thorben....@camunda.com

unread,
Oct 28, 2014, 8:14:18 AM10/28/14
to camunda-...@googlegroups.com
Hi Emerald,

That's correct, these are validation errors since the xsd available at http://camunda.org/schema/1.0/ProcessApplication.xsd is not up to date.
As the build is successful, you can ignore these errors.

Cheers,
Thorben
Reply all
Reply to author
Forward
0 new messages