thegreystone / problematic-microservices Goto Github PK
View Code? Open in Web Editor NEWSmall microservices application with various problems
License: BSD 3-Clause "New" or "Revised" License
Small microservices application with various problems
License: BSD 3-Clause "New" or "Revised" License
Non Eclipse users like me need a Maven solution because at least on Windows the Maven starter scripts don't work due to too long CLASSPATH lines as already written in the README.
One solution would probably to use the appassembler-maven-plugin Booter mechanism - but it's hard to setup if you are not used to it.
An easier workaround, which however needs a slight manual change in the generated bat files would be
<configuration>
<extraJvmArguments>-Xms128m</extraJvmArguments>
<assembleDirectory>target</assembleDirectory>
<repositoryLayout>flat</repositoryLayout> <!-- NEW!!! -->
<programs>
<program>
<mainClass>se.hirt.examples.robotshop.customerservice.Main</mainClass>
<id>customerService</id>
</program>
</programs>
</configuration>
This reduces the CLASSPATH length because you get rid of the package directories, but even this generated CLASSPATH becomes too long.
But now that all JARs reside flat in the repo directory, you can make use of the classpath option to add all JARs in a directory.
set CLASSPATH="%BASEDIR%"\etc;"%REPO%"\*
A somehow ugly procedure but because you will normally do Maven build only once, it's a true workaround. Maybe you can add a comment like this to your README. I will come up with a little Pull Request.
I met the trouble below after run mvn package
the project and ./target/bin/xxxService
.
Did I miss something?
Failed to scan [file:/xxx/problematic-microservices/robotshop-order-service/target/repo/org/glassfish/jaxb/jaxb-jxc/2.4.0-b180725.0644/txw2-2.4.0-b180725.0644.jar] from classloader hierarchy
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.