New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating from archetype fails to populate plugin properties #42
Comments
@rloutlaw I'm trying to repro this issue but have no luck. Could you please provide more information? What's the minor version of Java 8? |
Java details (from the output of mvn -version) Java version: 1.8.0_144, vendor: Azul Systems, Inc., runtime: C:\Java\1.8\jre And this was created via a cmd.exe terminal because I like breaking things. |
Emm..... Seems we're entering the "works for me" scenario. I installed Azul JDK on my side but cannot repro the issue. Here is my output:
|
Close? |
by @rloutlaw
Plugin name and version
1.11 and 1.12 Maven releases from maven central. Java 8 and Maven 3.5.4.
Plugin configuration in your
pom.xml
Relevant failing part:
UTF-8 1.8 1.8 1.0.0-beta-3 1.0.0-beta-4 helloworld-${package.getClass().forName("java.time.LocalDateTime").getMethod("now").invoke(null).format($package.Class.forName("java.time.format.DateTimeFormatter").getMethod("ofPattern", $package.Class).invoke(null, "yyyyMMddHHmmssSSS"))} ${package.getClass().forName("java.lang.StringBuilder").getConstructor($package.getClass().forName("java.lang.String")).newInstance("westus").toString()} ${project.build.directory}/azure-functions/${functionAppName} ${package.getClass().forName("java.lang.StringBuilder").getConstructor($package.getClass().forName("java.lang.String")).newInstance("java-functions-group").toString()}Expected behavior
The functionAppName, AppRegion, and other fields have proper variable interpolation.
Actual behavior
Fields aren't generated / interpolated properly.
Steps to reproduce the problem
Generate a new project from archtype from Windows command line, Eclipse, or IntellliJ.
The text was updated successfully, but these errors were encountered: