Git Product home page Git Product logo

problematic-microservices's People

Contributors

thegreystone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

problematic-microservices's Issues

Proposal how to work around the too long CLASSPATH issue

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

  • add the repositoryLayout flat option to the configuration of the appassembler-maven-plugin
				<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.

  • change the "set CLASSPATH" command in the Maven generated bat files to
    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.

Some problem to launch demo in jfrtracer branch.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.