Author Message
RobertGrundmann
Joined: Mar 10, 2014
Messages: 3
Offline
Installed the CE 2 SDK with Eclipse Kepler and Maven 3.1.1 On running the helloservice project I received the following error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] helloservice
[INFO] helloservice-war
[INFO] helloservice-ear
[INFO] helloservice-svar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building helloservice 2.0.1.0.201011
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-versions) @ helloservice ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ helloservice ---
[INFO] Installing C:\avaya-ce-sdk-2_0_1_0_201011\Avaya-CE-SDK\samples\helloservice\pom.xml to C:\Users\rgrundmann\.m2\repository\com\avaya\zephyr\services\sample_services\helloservice\2.0.1.0.201011\helloservice-2.0.1.0.201011.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building helloservice-war 2.0.1.0.201011
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-versions) @ helloservice-war ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ helloservice-war ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] helloservice ...................................... SUCCESS [0.592s]
[INFO] helloservice-war .................................. FAILURE [0.365s]
[INFO] helloservice-ear .................................. SKIPPED
[INFO] helloservice-svar ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.525s
[INFO] Finished at: Mon Mar 10 20:23:25 EDT 2014
[INFO] Final Memory: 8M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project helloservice-war: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed: A required class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.5:resources: org/apache/maven/shared/filtering/MavenFilteringException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-resources-plugin:2.5
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/rgrundmann/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.jar
[ERROR] urls[1] = file:/C:/Users/rgrundmann/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
[ERROR] urls[2] = file:/C:/Users/rgrundmann/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
[ERROR] urls[3] = file:/C:/Users/rgrundmann/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
[ERROR] urls[4] = file:/C:/Users/rgrundmann/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[5] = file:/C:/Users/rgrundmann/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[6] = file:/C:/Users/rgrundmann/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
[ERROR] urls[7] = file:/C:/Users/rgrundmann/.m2/repository/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.jar
[ERROR] urls[8] = file:/C:/Users/rgrundmann/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar
[ERROR] urls[9] = file:/C:/Users/rgrundmann/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>com.avaya.zephyr.services.sample_services:helloservice:2.0.1.0.201011, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------: org.apache.maven.shared.filtering.MavenFilteringException
[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/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :helloservice-war

BrianFreeman
Joined: Dec 19, 2013
Messages: 2
Offline
Sorry I just realized that you stated Maven 3.1.1. Please install an older version of Maven. According to the documentation, only Maven 3.0.4 is supported.
RobertGrundmann
Joined: Mar 10, 2014
Messages: 3
Offline
The issue is the 3.0.4 is no longer available from Apache. The oldest release is 3.0.5
DipeshGandhi2 [Avatar]

Joined: Nov 14, 2011
Messages: 35
Offline
It is available in the archives here: http://archive.apache.org/dist/maven/binaries/

With the latest version of maven, have you tried cleaning out the .m2 repository to see if that resolves the issues? Perhaps a library is corrupt. Also, were there new dependencies you added under pom.xml located under war?

If issue still persist please let us know.

Dipesh Gandhi Software Engineer, Avaya DevConnect
BrianFreeman
Joined: Dec 19, 2013
Messages: 2
Offline
I found the binary in Apache's archive: http://archive.apache.org/dist/maven/binaries/

You're going to want one of the following:
http://archive.apache.org/dist/maven/binaries/apache-maven-3.0.4-bin.zip
or
http://archive.apache.org/dist/maven/binaries/apache-maven-3.0.4-bin.tar.gz

The hope is to add support for the newer versions of Maven in the CE 2.0 service pack expected to be available in June.
RobertGrundmann
Joined: Mar 10, 2014
Messages: 3
Offline
Thanks for the help. Was finally successful.

Ended up reinstalling Eclipse, deleted the .m2 directory, reinstalled the SDK and used the collaboration plug-in, reimported the maven projects and compiled.
Go to:   
Mobile view