ParseException when compiling a MOJO

2014-05-03 Thread Petar Tahchiev
Hi guys,

I'm working on a maven plugin here, and I have a spring configuration that
looks like this:
-
@Configuration
@ComponentScan(basePackages = { com.test})
public class MyMavenPluginConfig extends WebSecurityConfigurerAdapter {
}
-

This all compiles fine. Then what I do is I add a filter type:
-
@Configuration
@ComponentScan(basePackages = { com.test}, includeFilters =
{@ComponentScan.Filter(type = FilterType.REGEX, pattern = *.core.*)})
public class MyMavenPluginConfig extends WebSecurityConfigurerAdapter {
}
-

and I try to compile it, but I get this exception:

[ERROR] Failed to execute goal
org.codehaus.plexus:plexus-maven-plugin:1.3.8:descriptor (default) on
project my-maven-plugin: Failed to extract descriptors: syntax error
@[34,95] in
file:/C:/workspace/test/platform/my-maven-plugin/src/main/java/com/test/maven/plugin/config/MyMavenPluginConfig.java
- [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.plexus:plexus-maven-plugin:1.3.8:descriptor (default) on
project my-maven-plug
in: Failed to extract descriptors
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:414)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
extract descriptors
at
org.codehaus.plexus.maven.plugin.AbstractDescriptorMojo.generateDescriptor(AbstractDescriptorMojo.java:137)
at
org.codehaus.plexus.maven.plugin.PlexusDescriptorMojo.execute(PlexusDescriptorMojo.java:60)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: com.thoughtworks.qdox.parser.ParseException: syntax error
@[34,95] in
file:/C:/workspace/test/platform/my-maven-plugin/src/main/java/com/test/maven/plugi
n/config/MyMavenPluginConfig.java
at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:716)
at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:826)
at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:697)
at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:300)
at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:316)
at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:312)
at
com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:369)
at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43)
at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at
com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52)
 

Re: ParseException when compiling a MOJO

2014-05-03 Thread Robert Scholte

Hi,

I'm pretty sure this has already been fixed in the latest version of QDox.

However, if you go to the site of this plugin[1], you'll see that you  
should use plexus-component-metadata[2].
If this gives you the same problem, try to upgrade  
org.thoughtworks.qdox:qdox to 1.12.1 by adding this as dependency to the  
plugin.
If even this doesn't work, I'll have to write a small patch for the  
plugin, so it will be using QDox 2.0-M1


thanks,
Robert

[1] http://plexus.codehaus.org/plexus-maven-plugin/
[2] http://plexus.codehaus.org/plexus-containers/plexus-component-metadata/

Op Sat, 03 May 2014 18:36:00 +0200 schreef Petar Tahchiev  
paranoia...@gmail.com:



Hi guys,

I'm working on a maven plugin here, and I have a spring configuration  
that

looks like this:
-
@Configuration
@ComponentScan(basePackages = { com.test})
public class MyMavenPluginConfig extends WebSecurityConfigurerAdapter {
}
-

This all compiles fine. Then what I do is I add a filter type:
-
@Configuration
@ComponentScan(basePackages = { com.test}, includeFilters =
{@ComponentScan.Filter(type = FilterType.REGEX, pattern = *.core.*)})
public class MyMavenPluginConfig extends WebSecurityConfigurerAdapter {
}
-

and I try to compile it, but I get this exception:

[ERROR] Failed to execute goal
org.codehaus.plexus:plexus-maven-plugin:1.3.8:descriptor (default) on
project my-maven-plugin: Failed to extract descriptors: syntax error
@[34,95] in
file:/C:/workspace/test/platform/my-maven-plugin/src/main/java/com/test/maven/plugin/config/MyMavenPluginConfig.java
- [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.plexus:plexus-maven-plugin:1.3.8:descriptor (default)  
on

project my-maven-plug
in: Failed to extract descriptors
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:414)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
extract descriptors
at
org.codehaus.plexus.maven.plugin.AbstractDescriptorMojo.generateDescriptor(AbstractDescriptorMojo.java:137)
at
org.codehaus.plexus.maven.plugin.PlexusDescriptorMojo.execute(PlexusDescriptorMojo.java:60)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: com.thoughtworks.qdox.parser.ParseException: syntax error
@[34,95] in
file:/C:/workspace/test/platform/my-maven-plugin/src/main/java/com/test/maven/plugi
n/config/MyMavenPluginConfig.java
at  
com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:716)
at  
com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:826)
at  
com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:697)

at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:300)
at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:316)
at
com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:312)
at
com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:369)
at

Re: ParseException when compiling a MOJO

2014-05-03 Thread Petar Tahchiev
Hi Robert,

thanks - updating to plexus-component-metadata did work.


2014-05-03 20:33 GMT+03:00 Robert Scholte rfscho...@apache.org:

 Hi,

 I'm pretty sure this has already been fixed in the latest version of QDox.

 However, if you go to the site of this plugin[1], you'll see that you
 should use plexus-component-metadata[2].
 If this gives you the same problem, try to upgrade
 org.thoughtworks.qdox:qdox to 1.12.1 by adding this as dependency to the
 plugin.
 If even this doesn't work, I'll have to write a small patch for the
 plugin, so it will be using QDox 2.0-M1

 thanks,
 Robert

 [1] http://plexus.codehaus.org/plexus-maven-plugin/
 [2] http://plexus.codehaus.org/plexus-containers/plexus-
 component-metadata/

 Op Sat, 03 May 2014 18:36:00 +0200 schreef Petar Tahchiev 
 paranoia...@gmail.com:


  Hi guys,

 I'm working on a maven plugin here, and I have a spring configuration that
 looks like this:
 -
 @Configuration
 @ComponentScan(basePackages = { com.test})
 public class MyMavenPluginConfig extends WebSecurityConfigurerAdapter {
 }
 -

 This all compiles fine. Then what I do is I add a filter type:
 -
 @Configuration
 @ComponentScan(basePackages = { com.test}, includeFilters =
 {@ComponentScan.Filter(type = FilterType.REGEX, pattern = *.core.*)})
 public class MyMavenPluginConfig extends WebSecurityConfigurerAdapter {
 }
 -

 and I try to compile it, but I get this exception:

 [ERROR] Failed to execute goal
 org.codehaus.plexus:plexus-maven-plugin:1.3.8:descriptor (default) on
 project my-maven-plugin: Failed to extract descriptors: syntax error
 @[34,95] in
 file:/C:/workspace/test/platform/my-maven-plugin/src/
 main/java/com/test/maven/plugin/config/MyMavenPluginConfig.java
 - [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
 goal org.codehaus.plexus:plexus-maven-plugin:1.3.8:descriptor (default)
 on
 project my-maven-plug
 in: Failed to extract descriptors
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(
 MojoExecutor.java:216)
 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:318)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
 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:414)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
 extract descriptors
 at
 org.codehaus.plexus.maven.plugin.AbstractDescriptorMojo.
 generateDescriptor(AbstractDescriptorMojo.java:137)
 at
 org.codehaus.plexus.maven.plugin.PlexusDescriptorMojo.
 execute(PlexusDescriptorMojo.java:60)
 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
 DefaultBuildPluginManager.java:106)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(
 MojoExecutor.java:208)
 ... 19 more
 Caused by: com.thoughtworks.qdox.parser.ParseException: syntax error
 @[34,95] in
 file:/C:/workspace/test/platform/my-maven-plugin/src/
 main/java/com/test/maven/plugi
 n/config/MyMavenPluginConfig.java
 at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.
 java:716)
 at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.
 java:826)
 at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:
 697)
 at
 com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:300)
 at
 com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:316)
   

[VOTE] Release Apache Maven Plugin Tools version 3.3

2014-05-03 Thread Hervé BOUTEMY
Hi,

We solved 23 issues:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11139styleName=Htmlversion=18959

There are still a couple of issues left in JIRA:
http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truepid=11139status=1

Staging repo:
https://repository.apache.org/content/repositories/maven-1022/
http://repository.apache.org/content/repositories/maven-1022/org/apache/maven/plugin-tools/maven-plugin-tools/3.3/maven-plugin-tools-3.3-source-release.zip

Source release checksum(s):
maven-plugin-tools-3.3-source-release.zip sha1: 
1aea63ada21b9f510813ce36d9b249f19977b5bb

Staging site:
http://maven.apache.org/plugin-tools-archives/plugin-tools-LATEST/

Guide to testing staged releases:
http://maven.apache.org/guides/development/guide-testing-releases.html

Vote open for 72 hours.

[ ] +1
[ ] +0
[ ] -1

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org