protected void init ( String classifier , String moduleBase ) throws MojoExecutionException { this . classifier = classifier ; this . moduleBase = moduleBase ; stagingDirectory = new File ( buildDirectory , classifier + "-staging" ) ; configTemplate = new ConfigTemplate ( classifier + "-spring.xml" ) ; exclusionFilter = exclusions == null || exclusions . isEmpty ( ) ? null : new WildcardFileFilter ( exclusions ) ; archiveConfig . setAddMavenDescriptor ( false ) ; }
Subclasses must call this method early in their execute method .