Please explain the genapp behavior..
CMD: "%MAVEN_HOME%\bin\maven --debug -X genapp >genappl.log"

 ${maven.home.local}/plugins/maven-genapp-plugin-2.1-SNAPSHOT/plugin.jelly uses a 
poperty file (template.properties)
with references to properties defined in ${user.home}/build.properties.
 
GIVEN:
# build.properties
src-dir-nm=java_src_dir
tst-dir-nm=test_dir
maven.home.local=${tools.dir}${file.separator}maven_local
 
# template.properties
maven.genapp.repackage=${src-dir-nm},${tst-dir-nm}
 
RESULT:
 
(Note that the src-dir-nm property is not expanted to "java_src_dir" however
  maven.home.local is expanded to "C:/Tools/maven_local"
 
BUILD FAILED
File...... file:/C:/Tools/maven_local/plugins/maven-genapp-plugin-2.1-SNAPSHOT/
Element... ant:copy
Line...... 113
Column.... 32
C:\Documents and 
Settings\JoeUserName\.maven\template\tst-template\template-resources\${src-dir-nm} not 
found.
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [genapp] --
file:/C:/Tools/maven_local/plugins/maven-genapp-plugin-2.1-SNAPSHOT/:113:32: 
 
org.apache.commons.jelly.JellyTagException: 
file:/C:/Tools/maven_local/plugins/maven-genapp-plugin-2.1-SNAPSHOT/:113:32:
C:\Documents and 
Settings\JoeUserName\.maven\template\tst-template\template-resources\${src-dir-nm} not 
found.
 
 
# plugin.jelly
 
[snip]
      <u:tokenize var="maven.genapp.repackage.split" 
delim=",">${maven.genapp.repackage}</u:tokenize>

      <!-- copy resources that need repackaged, eg java files -->
      <j:forEach var="res" items="${maven.genapp.repackage.split}">
        <ant:copy todir="${basedir}/${res}/${appPath}" filtering="true">
          <ant:fileset dir="${maven.genapp.resources}/${res}" />
        </ant:copy>      
      </j:forEach>

 

 

Reply via email to