havardh / javaflow-maven-plugin Goto Github PK
View Code? Open in Web Editor NEWMaven plugin for running javaflow
Maven plugin for running javaflow
When using the wrong package name, the error produced looked like this:
[ERROR] Failed to execute goal com.github.havardh:javaflow-maven-plugin:1.0.0:build (default-cli) on project cap: Could not generate types: Parameter 'directory' is not a directory -> [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/MojoExecutionException
This turned out to be because the package defined in packageName
was incorrect, thus generating an invalid baseSourceDirectory
in
Contents of the paramter 'directory' could be useful information
Let's say we have the following (Maven) project structure:
common
src/main/java/com/example/common/Address.java
domain
src/main/java/com/example/domain/User.java
ui
src/some-page.js
and we want to generate types for the ui
module.
Currently, there is no way to specify the two input directories common
and domain
(along with packages com.example.common
and com.example.domain
) as input directories.
It's possible to give multiple <api>
sections in the config of this plugin, but then the generation of domain
will fail because type User
has an unknown type Address
Add a simple sample project to verify that the plugin is working on circleci.
javaflow
and javaflow-maven-plugin
from source on the circleci envmvn javaflow:build
and verify successful exit code.Hello,
While using the plugin, we ran into an issue where the target directory (custom one, not the default /target) was not existing so we got an NoSuchFileException
. Creating the folder manually fixed this and we do not have this issue anymore.
However, I was thinking, what if there is an option which will tell the plugin to create the target folder (if missing)? Something like createIfMissing
, or feel free to propose a better name.
What do you think about it?
I could submit a PR for that if that's fine with you.
Regards,
Goce
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.