0.2
A maven plugin that will be used to build unity projects
In order to use this plugin, add the following to your pom.xml
<plugin>
<groupId>ca.mestevens.unity</groupId>
<artifactId>unity-maven-plugin</artifactId>
<version>${xcode.maven.plugin.version}</version>
<extensions>true</extensions>
</plugin>
where ${xcode.maven.plugin}
is the version of the plugin you want to use.
This goal will open your project with the unity game engine.
mvn unity:open
This goal will open your project's solution with your default editor.
mvn unity:open-solution
This goal will create a bunch of the folders that are used by other goals in the plugin
- unity.plugins.directory
- A string representing where the maven dependencies will be copied to. Default value is
Assets/Runtime/Plugins
- A string representing where the maven dependencies will be copied to. Default value is
- unity.test.plugins.directory
- A string representing where the test maven dependencies will be copied to. Default value is
Assets/Editor/Plugins
- A string representing where the test maven dependencies will be copied to. Default value is
- unity.ios.plugins.directory
- A string representing where the .ios-plugin files will be extracted to. Default value is
Assets/Plugins/iOS
- A string representing where the .ios-plugin files will be extracted to. Default value is
- unity.android.plugins.directory
- A string representing where the .android-plugin files will be extracted to. Default value is
Assets/Plugins/Android
- A string representing where the .android-plugin files will be extracted to. Default value is
This goal will gather all the specified dependencies in your pom.xml file and place them under /Assets/Runtime/Plugins.
- unity.plugins.directory
- A string representing where the maven dependencies will be copied to. Default value is
Assets/Runtime/Plugins
- A string representing where the maven dependencies will be copied to. Default value is
This goal will gather all the specified dependencies with scope test
in your pom.xml file and place them under /Assets/Editor/Plugins.
- unity.test.plugins.directory
- A string representing where the test maven dependencies will be copied to. Default value is
Assets/Editor/Plugins
- A string representing where the test maven dependencies will be copied to. Default value is
This goal runs the sync monodevelop project command in unity. This is mainly used to make sure the .sln files exist.
Will build your unity project as a google android studio project in your target directory, as well as create a pom with any jar or aar dependencies you had in the unity pom.
- unity.path
- A string representing the path to unity. Defaults to
/Applications/Unity/Unity.app/Contents/MacOS/Unity
- A string representing the path to unity. Defaults to
- scenes
- A list of scenes you want included in the build. Defaults to an empty list, which will build all the scenes in your unity project.
- android.project.target.directory
- The directory to put the android build in. Defaults to
target
- The directory to put the android build in. Defaults to
- unity.project.name
- The name of your unity project. Defaults to
${project.artifactId}
- The name of your unity project. Defaults to
Will take the build android project generated by unity-android-build
and create an apk out of it. With parameters, you can also have this start an android emulator, and install the apk on it.
- unity.project.name
- The name of your unity project. Defaults to
${project.artifactId}
- The name of your unity project. Defaults to
- android.emulator.name
- The name of the avd you want to start. Defaults to
default
- The name of the avd you want to start. Defaults to
- android.start.emulator
- Whether or not the goal should start an android emulator for you. If you specify this property, you probably want to specify
android.emulator.name
. Defaults tofalse
- Whether or not the goal should start an android emulator for you. If you specify this property, you probably want to specify
- android.emulator.wait.time
- The amount of time (in milliseconds), that the goal should wait for the emulator to start up. Default value is 60000 (60 seconds).
- android.deploy.to.devices
- Whether or not the goal should deploy your apk to the currently running avds. Defaults to
false
- Whether or not the goal should deploy your apk to the currently running avds. Defaults to
Will build your unity project as an xcode project in your target directory, as well as create a pom with any xcode-framework dependencies you had in the unity pom.
- unity.path
- A string representing the path to unity. Defaults to
/Applications/Unity/Unity.app/Contents/MacOS/Unity
- A string representing the path to unity. Defaults to
- scenes
- A list of scenes you want included in the build. Defaults to an empty list, which will build all the scenes in your unity project.
- xcode.project.target.directory
- The directory to put the xcode build in. Defaults to
target
- The directory to put the xcode build in. Defaults to
- unity.project.name
- The name of your unity project. Defaults to
${project.artifactId}
- The name of your unity project. Defaults to
Will build your unity-library project as a dll using xbuild.
- xbuild.location
- The location of the xbuild executable. Default value is
/Applications/Unity/Unity.app/Contents/Frameworks/MonoBleedingEdge/bin/xbuild
- The location of the xbuild executable. Default value is
- unity.solution.name
- The name of the .sln file that will be used to build the dll. Default value is
${project.artifactId}.sln
- The name of the .sln file that will be used to build the dll. Default value is
- unity.dll.name
- The name of the dll that will be built. Default value is
${project.artifactId}-${project.version}
- The name of the dll that will be built. Default value is
Packages the dll created by unity-build-dll for installation/deployment as a unity-library. This will also package the files under Assets/Plugins/iOS
as an ios-plugin and the files under Assets/Plugins/Android
as an android-plugin.
- unity.dll.name
- The name of the dll that will be built. Default value is
${project.artifactId}-${project.version}
- The name of the dll that will be built. Default value is
- 0.2
- Initial release