# Using unique license path, Ignition maven plugin

**URL:** <https://forum.inductiveautomation.com/t/using-unique-license-path-ignition-maven-plugin/16444>\
**Category:** Module Development\
**Created:** [January 1, 2018, 4:51am UTC](https://forum.inductiveautomation.com/t/using-unique-license-path-ignition-maven-plugin/16444 "2018-01-01T04:51:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![travis.sareault](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@travis.sareault](https://forum.inductiveautomation.com/u/travis.sareault)\
**Post date:** [January 1, 2018, 4:51am UTC](https://forum.inductiveautomation.com/t/using-unique-license-path-ignition-maven-plugin/16444/1 "2018-01-01T04:51:33Z")

</div>

I'm trying to use a unique license path other than just license.html in the build directory of the project (in this case license/license.html)

Stacktrace is as follows:

> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.inductiveautomation.ignitionsdk:ignition-maven-plugin:1.0.12:modl (default) on project map-panel-build: Error creating modl file.  
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)  
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)  
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)  
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)  
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)  
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)  
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)  
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)  
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)  
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)  
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)  
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)  
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> at java.lang.reflect.Method.invoke(Method.java:498)  
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)  
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)  
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)  
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)  
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating modl file.  
> at com.inductiveautomation.ignitionsdk.IgnitionModlMojo.createModlFile(IgnitionModlMojo.java:406)  
> at com.inductiveautomation.ignitionsdk.IgnitionModlMojo.execute(IgnitionModlMojo.java:210)  
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)  
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)  
> ... 20 more  
> Caused by: org.apache.maven.plugin.MojoExecutionException: Could locate license.html. Check path in pom configuration.  
> at com.inductiveautomation.ignitionsdk.IgnitionModlMojo.findLicense(IgnitionModlMojo.java:498)  
> at com.inductiveautomation.ignitionsdk.IgnitionModlMojo.createModlFile(IgnitionModlMojo.java:392)  
> ... 23 more  
> Caused by: java.nio.file.FileAlreadyExistsException: C:\Users\TRAVIS~1\AppData\Local\Temp\modl6165505976618970542  
> at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:124)  
> at sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:278)  
> at java.nio.file.Files.copy(Files.java:1274)  
> at com.inductiveautomation.ignitionsdk.IgnitionModlMojo.findLicense(IgnitionModlMojo.java:488)  
> ... 24 more

This is a separate error than when it couldn't find the license file, it looks like its trying to copy the file to the path of the temp folder directory rather than a path that corresponds to the license file below it.

It also looks like this issue was identified previously [here](http://forum.inductiveautomation.com/t/ignition-maven-plugin-bug-licensefile-in-non-standard-path/12165), although it hasn't seem to been addressed.

Any insight would be appreciated, thanks!
