@Mojo(name="generate-project-xml",
defaultPhase=GENERATE_RESOURCES)
public class GenerateProjectXmlMojo
extends org.apache.maven.plugin.AbstractMojo
Hint: If you already have a Lime project.xml file, you don't need to generate one. You can simply keep your existing file. If your project.xml file is the same directory as pom.xml, it will be detected automatically, and you don't need to configure anything to use it. However, if project.xml is in a different directory from pom.xml, you can specify the
BaseMojo.projectFile
parameter to tell the plugin where it is located.
The project configuration may be specified using the limeProject
parameter. See LimeProject
for complete details.
<build>
<plugins>
<plugin>
<groupId>com.feathersui.maven.plugins</groupId>
<artifactId>lime-openfl-maven-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
<configuration>
<limeProject>
<!-- configure project here -->
</limeProject>
</configuration>
</plugin>
</plugins>
</build>
LimeProject
Modifier and Type | Field and Description |
---|---|
protected File |
basedir |
LimeProject |
limeProject
Allows you to configure the project inside your Maven
pom.xml file.
|
Constructor and Description |
---|
GenerateProjectXmlMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Generates the Lime project.xml file.
|
@Parameter public LimeProject limeProject
LimeProject
for complete details.
The following example demonstrates where the <limeProject>
parameter should be added:
<build>
<plugins>
<plugin>
<groupId>com.feathersui.maven.plugins</groupId>
<artifactId>lime-openfl-maven-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
<configuration>
<limeProject>
<!-- configure project here -->
</limeProject>
</configuration>
</plugin>
</plugins>
</build>
@Parameter(defaultValue="${basedir}", required=true, readonly=true) protected File basedir
Copyright © 2023. All rights reserved.