public class MigrateMojo extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
MigrateMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyFilesFromArcheType(String basedir)
Copy files from the archetype into the new project into the appropriate package directories.
|
org.apache.maven.artifact.repository.ArtifactRepository |
createRepository(String url,
String repositoryId)
Creates an
ArtifactRepository instance. |
void |
execute()
The following are steps to migrating a KFS distribution to Maven:
Create a staging directory to copy project resources to from the kfs maven archetype
Create modules core, it, and web
Copy java source files from work to core/src/main/java
Copy java source files from test to it/src/test/java
Copy non-java, non-web resources from work to core/src/main/resources
Copy non-java, non-web resources from test to it/src/test/resources
Copy web resources from work/web-root/ to web/src/main/webapp
Retrieve the latest kuali POM information and create poms in ./, core/, it/, and web/
Note: When copying files, files are not overwritten.
|
protected void |
setupDefaults() |
public MigrateMojo()
protected void setupDefaults() throws Exception
Exceptionpublic void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void copyFilesFromArcheType(String basedir)
public org.apache.maven.artifact.repository.ArtifactRepository createRepository(String url, String repositoryId)
ArtifactRepository instance. This code was borrowed from the maven-hpi-pluginurl - repositoryId - Copyright © 2004-2012 Kualigan. All Rights Reserved.