mvn proctor:generate -X
Apache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200)
Maven home: C:\Apache\apache-maven-3.0.4
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_45\jre
Default locale: ru_RU, platform encoding: Cp1251
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\Apache\apache-maven-3.0.4\conf\settings.xml
[DEBUG] Reading user settings from .m2\settings.xml
[DEBUG] Using local repository at .m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for .m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project com.indeed:proctor-demo:war:0.0.1-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging war from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix proctor from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix proctor to com.indeed:proctor-maven-plugin from POM com.indeed:proctor-demo:war:0.0.1-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: com.indeed:proctor-demo:war:0.0.1-SNAPSHOT
[DEBUG] Tasks: [proctor:generate]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building proctor-demo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix proctor from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix proctor to com.indeed:proctor-maven-plugin from POM com.indeed:proctor-demo:war:0.0.1-SNAPSHOT
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes,
generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: com.indeed:proctor-demo:0.0.1-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [ossrh-releases (https://oss.sonatype.org/content/repositories/releases/, releases+snapshots), central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Repositories (plugins) : [ossrh-releases (https://oss.sonatype.org/content/repositories/releases/, releases+snapshots), central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: com.indeed:proctor-maven-plugin:1.0.0:generate (default-cli)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<outputDirectory default-value="${project.build.directory}/generated-sources/proctor">${outputDirectory}</outputDirectory>
<project default-value="${project}">${project}</project>
<topDirectory default-value="${basedir}/src/main/proctor">${topDirectory}</topDirectory>
</configuration>
[DEBUG] =======================================================================
[INFO]
[INFO] --- proctor-maven-plugin:1.0.0:generate (default-cli) @ proctor-demo ---
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG] Imported: org.sonatype.aether.transfer < plexus.core
[DEBUG] Imported: org.apache.maven.exception < plexus.core
[DEBUG] Imported: org.sonatype.aether.metadata < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG] Imported: org.sonatype.aether.collection < plexus.core
[DEBUG] Imported: org.sonatype.aether.version < plexus.core
[DEBUG] Imported: org.apache.maven.monitor < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG] Imported: org.apache.maven.repository < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG] Imported: org.apache.maven.profiles < plexus.core
[DEBUG] Imported: org.sonatype.aether.repository < plexus.core
[DEBUG] Imported: org.apache.maven.classrealm < plexus.core
[DEBUG] Imported: org.apache.maven.execution < plexus.core
[DEBUG] Imported: org.sonatype.aether.artifact < plexus.core
[DEBUG] Imported: org.sonatype.aether.spi < plexus.core
[DEBUG] Imported: org.apache.maven.reporting < plexus.core
[DEBUG] Imported: org.apache.maven.usability < plexus.core
[DEBUG] Imported: org.codehaus.plexus.container < plexus.core
[DEBUG] Imported: org.codehaus.plexus.component < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG] Imported: org.sonatype.aether.graph < plexus.core
[DEBUG] Imported: org.sonatype.aether.* < plexus.core
[DEBUG] Imported: org.apache.maven.settings < plexus.core
[DEBUG] Imported: org.codehaus.classworlds < plexus.core
[DEBUG] Imported: org.sonatype.aether.impl < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG] Imported: org.apache.maven.toolchain < plexus.core
[DEBUG] Imported: org.sonatype.aether.deployment < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG] Imported: org.apache.maven.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.cli < plexus.core
[DEBUG] Imported: org.sonatype.aether.installation < plexus.core
[DEBUG] Imported: org.codehaus.plexus.context < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG] Imported: org.apache.maven.project < plexus.core
[DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.artifact < plexus.core
[DEBUG] Imported: org.apache.maven.model < plexus.core
[DEBUG] Imported: org.apache.maven.* < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG] Imported: org.sonatype.aether.resolution < plexus.core
[DEBUG] Imported: org.apache.maven.plugin < plexus.core
[DEBUG] Imported: org.codehaus.plexus.* < plexus.core
[DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Populating class realm maven.api
[DEBUG] com.indeed:proctor-maven-plugin:jar:1.0.0:
[DEBUG] com.indeed:proctor-codegen:jar:1.0.0:compile
[DEBUG] com.indeed:proctor-common:jar:1.0.0:compile
[DEBUG] com.indeed:proctor-tomcat-deps:pom:1.0.0:compile
[DEBUG] org.apache.tomcat:tomcat-el-api:jar:7.0.8:compile
[DEBUG] org.apache.tomcat:tomcat-jasper-el:jar:7.0.8:compile
[DEBUG] org.apache.tomcat:tomcat-jsp-api:jar:7.0.8:compile
[DEBUG] org.apache.tomcat:tomcat-servlet-api:jar:7.0.8:compile
[DEBUG] com.indeed:util-core:jar:1.0.0:compile
[DEBUG] com.indeed:util-varexport:jar:1.0.0:compile
[DEBUG] jstl:jstl:jar:1.2:compile
[DEBUG] log4j:log4j:jar:1.2.14:compile
[DEBUG] org.codehaus.jackson:jackson-core-asl:jar:1.8.0:compile
[DEBUG] org.codehaus.jackson:jackson-mapper-asl:jar:1.8.0:compile
[DEBUG] com.google.code.findbugs:jsr305:jar:1.3.9:compile
[DEBUG] com.google.guava:guava:jar:15.0:compile
[DEBUG] org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[DEBUG] commons-logging:commons-logging:jar:1.1.1:compile
[DEBUG] org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[DEBUG] com.indeed:proctor-consumer:jar:1.0.0:compile
[DEBUG] commons-lang:commons-lang:jar:2.4:compile
[DEBUG] org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[DEBUG] aopalliance:aopalliance:jar:1.0:compile
[DEBUG] org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[DEBUG] org.freemarker:freemarker:jar:2.3.16:compile
[DEBUG] org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2:compile
[DEBUG] org.apache.maven:maven-artifact:jar:3.0:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:3.1.0:compile
[DEBUG] org.apache.maven:maven-model:jar:3.1.0:compile
[DEBUG] org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.0.0.M2a:compile
[DEBUG] javax.enterprise:cdi-api:jar:1.0:compile
[DEBUG] javax.annotation:jsr250-api:jar:1.0:compile
[DEBUG] javax.inject:javax.inject:jar:1:compile
[DEBUG] org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:compile
[DEBUG] org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.0.0.M2a:compile
[DEBUG] asm:asm:jar:3.3.1:compile
[DEBUG] org.apache.maven:maven-core:jar:3.1.0:compile
[DEBUG] org.apache.maven:maven-settings:jar:3.1.0:compile
[DEBUG] org.apache.maven:maven-settings-builder:jar:3.1.0:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:3.1.0:compile
[DEBUG] org.apache.maven:maven-model-builder:jar:3.1.0:compile
[DEBUG] org.apache.maven:maven-aether-provider:jar:3.1.0:compile
[DEBUG] org.eclipse.aether:aether-spi:jar:0.9.0.M2:compile
[DEBUG] org.eclipse.aether:aether-impl:jar:0.9.0.M2:compile
[DEBUG] org.eclipse.aether:aether-api:jar:0.9.0.M2:compile
[DEBUG] org.eclipse.aether:aether-util:jar:0.9.0.M2:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.16:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.10:compile
[DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.4.2:compile
[DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG] Created new class realm plugin>com.indeed:proctor-maven-plugin:1.0.0
[DEBUG] Importing foreign packages into class realm plugin>com.indeed:proctor-maven-plugin:1.0.0
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>com.indeed:proctor-maven-plugin:1.0.0
[DEBUG] Included: com.indeed:proctor-maven-plugin:jar:1.0.0
[DEBUG] Included: com.indeed:proctor-codegen:jar:1.0.0
[DEBUG] Included: com.indeed:proctor-common:jar:1.0.0
[DEBUG] Included: com.indeed:proctor-tomcat-deps:pom:1.0.0
[DEBUG] Included: org.apache.tomcat:tomcat-el-api:jar:7.0.8
[DEBUG] Included: org.apache.tomcat:tomcat-jasper-el:jar:7.0.8
[DEBUG] Included: org.apache.tomcat:tomcat-jsp-api:jar:7.0.8
[DEBUG] Included: org.apache.tomcat:tomcat-servlet-api:jar:7.0.8
[DEBUG] Included: com.indeed:util-core:jar:1.0.0
[DEBUG] Included: com.indeed:util-varexport:jar:1.0.0
[DEBUG] Included: jstl:jstl:jar:1.2
[DEBUG] Included: log4j:log4j:jar:1.2.14
[DEBUG] Included: org.codehaus.jackson:jackson-core-asl:jar:1.8.0
[DEBUG] Included: org.codehaus.jackson:jackson-mapper-asl:jar:1.8.0
[DEBUG] Included: com.google.code.findbugs:jsr305:jar:1.3.9
[DEBUG] Included: com.google.guava:guava:jar:15.0
[DEBUG] Included: org.springframework:spring-core:jar:3.0.5.RELEASE
[DEBUG] Included: org.springframework:spring-asm:jar:3.0.5.RELEASE
[DEBUG] Included: commons-logging:commons-logging:jar:1.1.1
[DEBUG] Included: org.springframework:spring-beans:jar:3.0.5.RELEASE
[DEBUG] Included: com.indeed:proctor-consumer:jar:1.0.0
[DEBUG] Included: commons-lang:commons-lang:jar:2.4
[DEBUG] Included: org.springframework:spring-web:jar:3.0.5.RELEASE
[DEBUG] Included: aopalliance:aopalliance:jar:1.0
[DEBUG] Included: org.springframework:spring-context:jar:3.0.5.RELEASE
[DEBUG] Included: org.springframework:spring-aop:jar:3.0.5.RELEASE
[DEBUG] Included: org.springframework:spring-expression:jar:3.0.5.RELEASE
[DEBUG] Included: org.freemarker:freemarker:jar:2.3.16
[DEBUG] Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2
[DEBUG] Included: org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.0.0.M2a
[DEBUG] Included: javax.enterprise:cdi-api:jar:1.0
[DEBUG] Included: javax.annotation:jsr250-api:jar:1.0
[DEBUG] Included: javax.inject:javax.inject:jar:1
[DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0
[DEBUG] Included: org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.0.0.M2a
[DEBUG] Included: asm:asm:jar:3.3.1
[DEBUG] Included: org.eclipse.aether:aether-spi:jar:0.9.0.M2
[DEBUG] Included: org.eclipse.aether:aether-impl:jar:0.9.0.M2
[DEBUG] Included: org.eclipse.aether:aether-api:jar:0.9.0.M2
[DEBUG] Included: org.eclipse.aether:aether-util:jar:0.9.0.M2
[DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.16
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.10
[DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:3.0
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:3.1.0
[DEBUG] Excluded: org.apache.maven:maven-model:jar:3.1.0
[DEBUG] Excluded: org.apache.maven:maven-core:jar:3.1.0
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:3.1.0
[DEBUG] Excluded: org.apache.maven:maven-settings-builder:jar:3.1.0
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:3.1.0
[DEBUG] Excluded: org.apache.maven:maven-model-builder:jar:3.1.0
[DEBUG] Excluded: org.apache.maven:maven-aether-provider:jar:3.1.0
[DEBUG] Excluded: org.codehaus.plexus:plexus-classworlds:jar:2.4.2
[DEBUG] Configuring mojo com.indeed:proctor-maven-plugin:1.0.0:generate from plugin realm ClassRealm[plugin>com.indeed:proctor-maven-plugin:1.0.0, parent: sun.misc.Launcher$AppClassLoader@749cd006]
[DEBUG] Configuring mojo 'com.indeed:proctor-maven-plugin:1.0.0:generate' with basic configurator -->
[DEBUG] (f) outputDirectory = proctor-demo-master\target\generated-sources\proctor
[DEBUG] (f) project = MavenProject: com.indeed:proctor-demo:0.0.1-SNAPSHOT @ proctor-demo-master\pom.xml
[DEBUG] (f) topDirectory = proctor-demo-master\src\main\proctor
[DEBUG] -- end configuration --
[INFO] Building resources for com.indeed.demo
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.570s
[INFO] Finished at: Sun Jun 08 14:55:43 EEST 2014
[INFO] Final Memory: 9M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.indeed:proctor-maven-plugin:1.0.0:generate (default-cli) on project proctor-demo: Execution default-cli of goal com.indeed:proctor-maven-plugin:1.0.0:generate failed: String index out of range: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.indeed:proctor-maven-plugin:1.0.0:generate (default-cli) on project proctor-demo: Execution default-cli of goal com.indeed:proctor-maven-plugin:1.0.0:generate failed: String index out of range: 1
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal com.indeed:proctor-maven-plugin:1.0.0:generate failed: String index out of range: 1
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:658)
at java.util.regex.Matcher.appendReplacement(Matcher.java:762)
at java.util.regex.Matcher.replaceAll(Matcher.java:906)
at java.lang.String.replaceAll(String.java:2162)
at com.indeed.proctor.consumer.gen.FreeMarkerCodeGenerator.packageToPath(FreeMarkerCodeGenerator.java:72)
at com.indeed.proctor.consumer.gen.FreeMarkerCodeGenerator.generate(FreeMarkerCodeGenerator.java:86)
at com.indeed.proctor.consumer.gen.TestGroupsGenerator.generate(TestGroupsGenerator.java:34)
at com.indeed.proctor.consumer.gen.maven.AbstractProctorMojo.processFile(AbstractProctorMojo.java:29)
at com.indeed.proctor.consumer.gen.maven.AbstractProctorMojo.searchDirectory(AbstractProctorMojo.java:46)
at com.indeed.proctor.consumer.gen.maven.AbstractProctorMojo.searchDirectory(AbstractProctorMojo.java:43)
at com.indeed.proctor.consumer.gen.maven.AbstractProctorMojo.searchDirectory(AbstractProctorMojo.java:43)
at com.indeed.proctor.consumer.gen.maven.AbstractProctorMojo.searchDirectory(AbstractProctorMojo.java:43)
at com.indeed.proctor.consumer.gen.maven.AbstractProctorMojo.execute(AbstractProctorMojo.java:70)
at com.indeed.proctor.consumer.gen.maven.ProctorMojo.execute(ProctorMojo.java:35)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
[ERROR]
[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/PluginExecutionException
Tried to change version of plugin to 1.0.7 but had the same error.
Thanks.