looking for version that will build!

37 views
Skip to first unread message

Ron King

unread,
Mar 16, 2014, 10:49:29 AM3/16/14
to troope...@googlegroups.com
Hi All,

I've tried the last few releases of the project, and none of them will produce a clean build
from the command mvn clean install -DskipTests=true.

Is this a project that I can use in a production environment? Why do the last few
releases fail when building?

Regards,

Ron

Regunath Balasubramanian

unread,
Mar 17, 2014, 12:14:51 AM3/17/14
to Ron King, troope...@googlegroups.com
Hi Ron,

Sorry to hear that you have not been able to build any of the recent Trooper releases. Can you please share your build errors for us to take a look? The usual problems are with dependent libraries not being found and this is normally solved by adding repos to your Maven settings file. Have you tried looking at the settings mentioned here : https://github.com/regunathb/Trooper/wiki/Maven-Dependencies and this example file : https://github.com/regunathb/Trooper/blob/master/docs/settings.xml

Also, Trooper build binaries are available on Clojars. Therefore you dont necessarily need to build them if you are not making any changes to the codebase.
Like mentioned above, please share your build error logs and the version that you have pulled in from github and I'll take a look.

Regarding your question on production use, the  Batch and SEDA profiles are being used extensively at Flipkart across hundreds of cores. The code on github is the code we run here.

Regards
Regu

Emmanuel Livingstone

unread,
Mar 2, 2015, 7:40:53 AM3/2/15
to troope...@googlegroups.com, ronc...@gmail.com
Updating the maven settings.xml file as described in the wiki worked for me.

Sahu

unread,
Aug 4, 2015, 7:28:50 AM8/4/15
to trooper-users, ronc...@gmail.com
Hi ,
getting below error while building the code
[ERROR] D:\Spring\Trooper-master (1)\Trooper-master\platform-core\src\main\java\org\trpr\platform\core\impl\event\AbstractEndpointEventConsumerImpl.java:[72,45] cannot find symbol
[ERROR] symbol  : class PlatformEvent
[ERROR] location: class org.trpr.platform.core.impl.event.AbstractEndpointEventConsumerImpl
[ERROR]

Sahu

unread,
Aug 4, 2015, 7:38:33 AM8/4/15
to trooper-users, ronc...@gmail.com

version 1.3.3

Regunath Balasubramanian

unread,
Aug 4, 2015, 7:47:33 AM8/4/15
to Sahu, trooper-users
Sahu,

The error trace that you have provided unfortunately has very little information. Can you please provide the following details:
  1. How are you building Trooper? Did you clone the git repo and run "mvn clean install" in the root directory?
  2. What version are you building?
The latest version on master is 1.3.3-SNAPSHOT. Btw, this release and others are available on Clojars. You therefore dont really need to build Trooper if all your require is just the built binaries. See : https://github.com/regunathb/Trooper/wiki/Maven-Dependencies

Regu

Sahu

unread,
Aug 4, 2015, 8:03:30 AM8/4/15
to trooper-users, sahodar....@gmail.com
Hi  Regu,
 1. yes i cloned the git repo to directory and runing "mvn clean install"
 2. it is version 1.3.3

following below instructions

Building Batch profile example using source

The Batch profile example depends on a number of other Trooper projects. All dependencies are listed in the project's pom file. An easy-to-use build file that builds all dependencies is available as:

 examples/pom-examples-batch-with-dep.xml 

Use this pom file to build as follows:

cd examples
mvn clean install -f ./pom-examples-batch-with-dep.xml 

This extract from the Maven Reactor build order lists dependencies among various modules. A description has been added for each of the modules to explain their purpose:

Regunath Balasubramanian

unread,
Aug 4, 2015, 8:11:42 AM8/4/15
to Sahu, trooper-users
Can you please share the full build trace?
The current version is 1.3.3-SNAPSHOT btw.

Sahu

unread,
Aug 4, 2015, 8:15:51 AM8/4/15
to trooper-users, sahodar....@gmail.com
PFA
log.txt

Sahu

unread,
Aug 4, 2015, 8:18:17 AM8/4/15
to trooper-users, sahodar....@gmail.com
sorry,please find the proper log
log.txt

Regunath Balasubramanian

unread,
Aug 4, 2015, 8:26:12 AM8/4/15
to Sahu, trooper-users
Platform Model module is failing during build. This uses JAXB and looks like your classpath has some version conflicts.
Can you do the following:
  1. Ensure you are using Oracle JDK 1.6 or higher. Preferrably move to Java 8. 
  2. Ensure you dont have any global classpath settings. The JAXBContextImpl constructor is of a different version and its initialization is failing during build.
I am inferring this from these errors in your build:

[INFO] Executing tasks
     [exec] parsing a schema...
     [exec] Exception in thread "main" java.lang.NoSuchMethodError: com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>([Ljava/lang/Class;Ljava/util/Collection;Ljava/util/Map
;ZLcom/sun/xml/internal/bind/v2/model/annotation/RuntimeAnnotationReader;ZZ)V
     [exec]     at com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:316)
     [exec]     at com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1.<init>(AnnotationParserFactoryImpl.java:63)
Reply all
Reply to author
Forward
0 new messages