Closed stevelyall closed 6 years ago
The @Parameter annotation in RamlJavaClientGeneratorMojo.java
does not provide a property
attribute.
Workaround is to configure the plugin in your pom.xml with a self defined maven property and run it:
I did so for
<plugins>
<plugin>
<groupId>org.mule.raml.codegen</groupId>
<artifactId>raml-client-generator-maven-plugin</artifactId>
<version>0.1.1</version>
<configuration>
<outputDir>src/test/java</outputDir>
<basePackage>com.canda.x.generated</basePackage>
<ramlURL>${generator.ramlURL}</ramlURL>
</configuration>
</plugin>
</plugins>
and
-Dgenerator.ramlURL=file:///C:/.....
works then.
With version 0.2 you can use
-DRamlJavaClientGeneratorMojo.basePackage=com.example.mypackage
with the command line.
Awesome, thank you!!
Hi there- thanks for your plugin, appreciate your work on it!
I'm running into an issue with the basePackage argument when trying to generate classes with Maven on the command line:
I may be missing something, though can't seem to find the correct usage of the plugin documented anywhere?
Is this still being maintained? If so I'd like to learn more or help resolve an issue if there is one!
Thanks and all the best!