1 package org
.argeo
.slc
.maven
.plugins
.qooxdoo
;
5 import org
.apache
.maven
.artifact
.repository
.ArtifactRepository
;
6 import org
.apache
.maven
.plugin
.AbstractMojo
;
7 import org
.argeo
.slc
.maven
.plugin
.MavenDependencyManager
;
10 * Factorize common configuration
12 public abstract class AbstractQooxdooMojo
extends AbstractMojo
{
14 * List of Remote Repositories used by the resolver
16 * @parameter expression="${project.remoteArtifactRepositories}"
20 protected java
.util
.List
<ArtifactRepository
> remoteRepos
;
22 * Location of the local repository.
24 * @parameter expression="${localRepository}"
28 protected org
.apache
.maven
.artifact
.repository
.ArtifactRepository local
;
31 * The directory for the pom
33 * @parameter expression="${basedir}"
36 protected File baseDir
;
43 protected MavenDependencyManager depManager
;
46 * Source base where Qooxdoo SDK will be unpacked
48 * @parameter expression="${srcBase}" default-value="src"
51 protected File srcBase
;
54 * Qooxdoo cache location
56 * @parameter expression="${cache}" default-value="cache"
62 * Name of the SDK directory (the base dire in the unpacked distribution)
64 * @parameter expression="${sdkDirName}" default-value="qooxdoo-sdk"
67 protected String sdkDirName
;
72 * @parameter expression="${sdkGroupId}" default-value="org.argeo.dep.dist"
75 protected String sdkGroupId
;
78 * SDK maven artifactId
80 * @parameter expression="${sdkArtifactId}" default-value="qooxdoo-sdk"
83 protected String sdkArtifactId
;
86 * SDK maven classifier
88 * @parameter expression="${sdkClassifier}" default-value="dist"
91 protected String sdkClassifier
;
96 * @parameter expression="${sdkVersion}" default-value="0.8.1.argeo.1"
99 protected String sdkVersion
;
104 * @parameter expression="${sdkType}" default-value="zip"
107 protected String sdkType
;
109 protected File
getSdkDir() {
110 return new File(srcBase
.getPath() + File
.separator
+ sdkDirName
);