title: Liferay theme + maven
body: <p>I want create liferay theme, so I created a Maven project from archetype. My pom.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.liferay.sample&lt;/groupId&gt;
    &lt;artifactId&gt;sample-theme&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;name&gt;sample-theme Theme&lt;/name&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;com.liferay.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;liferay-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;6.1.20&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;theme-merge&lt;/goal&gt;
                &lt;goal&gt;build-css&lt;/goal&gt;
                &lt;goal&gt;build-thumbnail&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
            &lt;autoDeployDir&gt;${liferay.auto.deploy.dir}&lt;/autoDeployDir&gt;
            &lt;appServerDeployDir&gt;${liferay.app.server.deploy.dir}&lt;/appServerDeployDir&gt;
            &lt;appServerLibGlobalDir&gt;${liferay.app.server.lib.global.dir}&lt;/appServerLibGlobalDir&gt;
            &lt;appServerPortalDir&gt;${liferay.app.server.portal.dir}&lt;/appServerPortalDir&gt;
            &lt;liferayVersion&gt;${liferay.version}&lt;/liferayVersion&gt;
            &lt;parentTheme&gt;${liferay.theme.parent}&lt;/parentTheme&gt;
            &lt;pluginType&gt;theme&lt;/pluginType&gt;
            &lt;themeType&gt;${liferay.theme.type}&lt;/themeType&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.5&lt;/version&gt;
          &lt;configuration&gt;
            &lt;encoding&gt;UTF-8&lt;/encoding&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.liferay.portal&lt;/groupId&gt;
        &lt;artifactId&gt;portal-service&lt;/artifactId&gt;
        &lt;version&gt;6.1.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.liferay.portal&lt;/groupId&gt;
        &lt;artifactId&gt;util-bridges&lt;/artifactId&gt;
        &lt;version&gt;6.1.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.liferay.portal&lt;/groupId&gt;
        &lt;artifactId&gt;util-taglib&lt;/artifactId&gt;
        &lt;version&gt;6.1.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.liferay.portal&lt;/groupId&gt;
        &lt;artifactId&gt;util-java&lt;/artifactId&gt;
        &lt;version&gt;6.1.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.portlet&lt;/groupId&gt;
        &lt;artifactId&gt;portlet-api&lt;/artifactId&gt;
        &lt;version&gt;2.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
        &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
        &lt;version&gt;2.4&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
        &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
        &lt;version&gt;2.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;properties&gt;
      &lt;liferay.theme.parent&gt;_styled&lt;/liferay.theme.parent&gt;
      &lt;liferay.theme.type&gt;vm&lt;/liferay.theme.type&gt;
    &lt;/properties&gt;
  &lt;/project&gt;And I use maven:package and I see an error:
  </code></pre>
  
  <pre class="lang-none prettyprint-override"><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building sample-theme Theme 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.400s
  [INFO] Finished at: Tue Oct 16 14:47:58 CEST 2012
  [INFO] Final Memory: 2M/15M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Could not find goal 'build-css' in plugin com.liferay.maven.plugins:liferay-maven-plugin:6.1.0 among available goals build-lang, build-wsdd, build-ext, build-service, direct-deploy, theme-merge, build-thumbnail, deploy -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
  </code></pre>
  
  <p>What is wrong? I am try change version liferay-maven-plugin but it not resolve my problem.</p>