lvonk / fitnesse-maven-classpath Goto Github PK
View Code? Open in Web Editor NEWClasspath support for Maven Projects
Classpath support for Maven Projects
trying to build/install the project fails with an unsuccessful test: extractedClasspathIncludesTestScopeDependencies
It contains only the following two path entries instead of the expected 4:
D:\projects\fitnesse-maven-classpath\target\test-classes\MavenClasspathWidget\target\test-classes
D:\projects\fitnesse-maven-classpath\target\test-classes\MavenClasspathWidget\target\classes
Your plugin is very useful but it seems that fitnesse-maven-classpath is not compatible with the last version of fitnesse 20110104.
Do you plan to release a new version which will work with this fitnesse ?
Thanks in advance
Lionel
It's ok that support is missing, but should have better errorhandling. You get a nasty null pointer exception from:
List classpathElements = executionResult.getProject().getTestClasspathElements();
I did modify the code to get a better error reporting:
private List getClasspathElements(Configuration configuration, MavenExecutionRequest request)
throws MavenEmbedderException, DependencyResolutionRequiredException {
MavenEmbedder embedder = new MavenEmbedder(configuration);
MavenExecutionResult executionResult = embedder.readProjectWithDependencies(request);
List<Throwable> exs = executionResult.getExceptions();
for (Throwable t : exs ){
t.printStackTrace();
}
List<String> classpathElements = executionResult.getProject().getTestClasspathElements();
return classpathElements;
}
I didn't have time to make the code give an exception if user has configured a localrepository in settings.xml. Sorry :-)
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.