You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Robert Scholte <rf...@apache.org> on 2014/12/30 22:40:17 UTC
Re: svn commit: r1648234 -
/maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
Hi,
This commit gives me compilation errors, e.g.
[ERROR]
/E:/java-workspace/apache-maven-plugin-tools/plugin-tools/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java:[77,6]
E:\java-workspace\apache-maven-plugin-tools\plugin-tools\maven-plugin-plugin\src\main\java\org\apache\maven\plugin\plugin\PluginReport.java:77:
cannot find symbol
[ERROR] symbol : class Parameter
[ERROR] location: class org.apache.maven.plugin.plugin.PluginReport
By changing the dependency to runtime I would indeed expect this kind of
errors, since the code uses these classes.
However, Jenkins is quite happy for a long time.
https://builds.apache.org/view/All/job/maven-plugin-tools/changes
Anyone a clue what's happening here?
thanks,
Robert
Op Sun, 28 Dec 2014 18:41:43 +0100 schreef <hb...@apache.org>:
> Author: hboutemy
> Date: Sun Dec 28 17:41:43 2014
> New Revision: 1648234
>
> URL: http://svn.apache.org/r1648234
> Log:
> reordered default extractors
>
> Modified:
> maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
>
> Modified: maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> URL:
> http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml?rev=1648234&r1=1648233&r2=1648234&view=diff
> ==============================================================================
> --- maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml (original)
> +++ maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml Sun Dec 28
> 17:41:43 2014
> @@ -49,11 +49,6 @@
> </properties>
> <dependencies>
> - <dependency>
> - <groupId>org.apache.maven.plugin-tools</groupId>
> - <artifactId>maven-plugin-tools-annotations</artifactId>
> - </dependency>
> -
> <!-- doxia -->
> <dependency>
> <groupId>org.apache.maven.doxia</groupId>
> @@ -134,13 +129,18 @@
> <version>3.0</version>
> </dependency>
> - <!-- Maven runtime -->
> + <!-- Maven runtime: extractors used by default -->
> <dependency>
> <groupId>org.apache.maven.plugin-tools</groupId>
> <artifactId>maven-plugin-tools-java</artifactId>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> + <groupId>org.apache.maven.plugin-tools</groupId>
> + <artifactId>maven-plugin-tools-annotations</artifactId>
> + <scope>runtime</scope>
> + </dependency>
> + <dependency>
> <groupId>org.apache.maven.plugin-tools</groupId>
> <artifactId>maven-plugin-tools-beanshell</artifactId>
> <scope>runtime</scope>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r1648234 - /maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
Posted by Hervé BOUTEMY <he...@free.fr>.
1. problem reproduced: in a global plugin-tools build, there is no compilation
issue but if I build only maven-plugin-plugin the compilation failure happens
strange: I wouldn't expect the reactor build to have any impact on build
classpath
2. problem explained:
when I changed the annotations extractor (maven-plugin-tools-annotations)
scope to runtime, I didn't see that it de-facto changed the scope of the
annotations themselves (maven-plugin-annotations) since they were added to the
classpath as transitive dependency of the annotations extractor
3. problem fixed in r1648696: just explicitely added the annotations with scope
provided, which now override runtime scope of the extractor transitive
dependency
while at it, I added precisions on the version of the annotations used at
compile time: a previous release maven-plugin-plugin is used to build current
maven-plugin-plugin...
now the only strange thing is that the build failure doesn't appear when
reactor is built
some investigations for early 2015? :)
Regards,
Hervé
Le mercredi 31 décembre 2014 13:59:50 Hervé BOUTEMY a écrit :
> than with what Maven version?
>
> In fact, in the past, I didn't declare plugin annotations as "provided"
> since I thought they were necessary at runtime, since they have CLASS
> RetentionPolicy.
> But later, marking the artifact as provided just worked, even if I didn't
> unserstand why: then we finally took the habit of marking the artifact as
> provided, to avoid download.
>
> It's the first time I hear about this configuation not working: really don't
> know what is special in your environment.
>
> BTW, if somebody knows why annotations as provided works, I'm interested to
> hear :)
>
> Regards,
>
> Hervé
>
> Le mercredi 31 décembre 2014 11:13:18 Robert Scholte a écrit :
> > I've tried it with:
> > Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
> > Java version: 1.7.0_55, vendor: Oracle Corporation
> >
> > in both cases the error output starts with:
> > package org.apache.maven.plugins.annotations does not exist
> >
> > thanks,
> > Robert
> >
> > Op Wed, 31 Dec 2014 00:38:50 +0100 schreef Hervé BOUTEMY
> >
> > <he...@free.fr>:
> > > uh, which JDK version?
> > >
> > > Regards,
> > >
> > > Hervé
> > >
> > > Le mardi 30 décembre 2014 22:40:17 Robert Scholte a écrit :
> > >> Hi,
> > >>
> > >> This commit gives me compilation errors, e.g.
> > >> [ERROR]
> > >> /E:/java-workspace/apache-maven-plugin-tools/plugin-tools/maven-plugin-
> > >> pl
> > >> ugi
> > >> n/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java:[77,6]
> > >> E:\java-workspace\apache-maven-plugin-tools\plugin-tools\maven-plugin-p
> > >> l
> > >> ugi
> > >> n\src\main\java\org\apache\maven\plugin\plugin\PluginReport.java:77:
> > >> cannot
> > >> find symbol
> > >> [ERROR] symbol : class Parameter
> > >> [ERROR] location: class org.apache.maven.plugin.plugin.PluginReport
> > >>
> > >> By changing the dependency to runtime I would indeed expect this kind
> > >> of
> > >> errors, since the code uses these classes.
> > >> However, Jenkins is quite happy for a long time.
> > >>
> > >> https://builds.apache.org/view/All/job/maven-plugin-tools/changes
> > >>
> > >> Anyone a clue what's happening here?
> > >>
> > >> thanks,
> > >> Robert
> > >>
> > >> Op Sun, 28 Dec 2014 18:41:43 +0100 schreef <hb...@apache.org>:
> > >> > Author: hboutemy
> > >> > Date: Sun Dec 28 17:41:43 2014
> > >> > New Revision: 1648234
> > >> >
> > >> > URL: http://svn.apache.org/r1648234
> > >> > Log:
> > >> > reordered default extractors
> > >> >
> > >> > Modified:
> > >> > maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> > >> >
> > >> > Modified: maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> > >>
> > >> > URL:
> > >> http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plug
> > >> in
> > >> /
> > >>
> > >> > pom.xml?rev=1648234&r1=1648233&r2=1648234&view=diff
> > >>
> > >> =======================================================================
> > >> ==
> > >>
> > >> > ===== --- maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> > >>
> > >> (original)
> > >>
> > >> > +++ maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml Sun Dec 28
> > >> > 17:41:43 2014
> > >> > @@ -49,11 +49,6 @@
> > >> >
> > >> > </properties>
> > >> >
> > >> > <dependencies>
> > >> >
> > >> > - <dependency>
> > >> > - <groupId>org.apache.maven.plugin-tools</groupId>
> > >> > - <artifactId>maven-plugin-tools-annotations</artifactId>
> > >> > - </dependency>
> > >> > -
> > >> >
> > >> > <!-- doxia -->
> > >> > <dependency>
> > >> >
> > >> > <groupId>org.apache.maven.doxia</groupId>
> > >> >
> > >> > @@ -134,13 +129,18 @@
> > >> >
> > >> > <version>3.0</version>
> > >> >
> > >> > </dependency>
> > >> >
> > >> > - <!-- Maven runtime -->
> > >> > + <!-- Maven runtime: extractors used by default -->
> > >> >
> > >> > <dependency>
> > >> >
> > >> > <groupId>org.apache.maven.plugin-tools</groupId>
> > >> > <artifactId>maven-plugin-tools-java</artifactId>
> > >> > <scope>runtime</scope>
> > >> >
> > >> > </dependency>
> > >> > <dependency>
> > >> >
> > >> > + <groupId>org.apache.maven.plugin-tools</groupId>
> > >> > + <artifactId>maven-plugin-tools-annotations</artifactId>
> > >> > + <scope>runtime</scope>
> > >> > + </dependency>
> > >> > + <dependency>
> > >> >
> > >> > <groupId>org.apache.maven.plugin-tools</groupId>
> > >> > <artifactId>maven-plugin-tools-beanshell</artifactId>
> > >> > <scope>runtime</scope>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > >> For additional commands, e-mail: dev-help@maven.apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: dev-help@maven.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r1648234 - /maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
Posted by Hervé BOUTEMY <he...@free.fr>.
than with what Maven version?
In fact, in the past, I didn't declare plugin annotations as "provided" since
I thought they were necessary at runtime, since they have CLASS
RetentionPolicy.
But later, marking the artifact as provided just worked, even if I didn't
unserstand why: then we finally took the habit of marking the artifact as
provided, to avoid download.
It's the first time I hear about this configuation not working: really don't
know what is special in your environment.
BTW, if somebody knows why annotations as provided works, I'm interested to
hear :)
Regards,
Hervé
Le mercredi 31 décembre 2014 11:13:18 Robert Scholte a écrit :
> I've tried it with:
> Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
> Java version: 1.7.0_55, vendor: Oracle Corporation
>
> in both cases the error output starts with:
> package org.apache.maven.plugins.annotations does not exist
>
> thanks,
> Robert
>
> Op Wed, 31 Dec 2014 00:38:50 +0100 schreef Hervé BOUTEMY
>
> <he...@free.fr>:
> > uh, which JDK version?
> >
> > Regards,
> >
> > Hervé
> >
> > Le mardi 30 décembre 2014 22:40:17 Robert Scholte a écrit :
> >> Hi,
> >>
> >> This commit gives me compilation errors, e.g.
> >> [ERROR]
> >> /E:/java-workspace/apache-maven-plugin-tools/plugin-tools/maven-plugin-pl
> >> ugi
> >> n/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java:[77,6]
> >> E:\java-workspace\apache-maven-plugin-tools\plugin-tools\maven-plugin-pl
> >> ugi n\src\main\java\org\apache\maven\plugin\plugin\PluginReport.java:77:
> >> cannot
> >> find symbol
> >> [ERROR] symbol : class Parameter
> >> [ERROR] location: class org.apache.maven.plugin.plugin.PluginReport
> >>
> >> By changing the dependency to runtime I would indeed expect this kind of
> >> errors, since the code uses these classes.
> >> However, Jenkins is quite happy for a long time.
> >>
> >> https://builds.apache.org/view/All/job/maven-plugin-tools/changes
> >>
> >> Anyone a clue what's happening here?
> >>
> >> thanks,
> >> Robert
> >>
> >> Op Sun, 28 Dec 2014 18:41:43 +0100 schreef <hb...@apache.org>:
> >> > Author: hboutemy
> >> > Date: Sun Dec 28 17:41:43 2014
> >> > New Revision: 1648234
> >> >
> >> > URL: http://svn.apache.org/r1648234
> >> > Log:
> >> > reordered default extractors
> >> >
> >> > Modified:
> >> > maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> >> >
> >> > Modified: maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> >>
> >> > URL:
> >> http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin
> >> /
> >>
> >> > pom.xml?rev=1648234&r1=1648233&r2=1648234&view=diff
> >>
> >> =========================================================================
> >>
> >> > ===== --- maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> >>
> >> (original)
> >>
> >> > +++ maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml Sun Dec 28
> >> > 17:41:43 2014
> >> > @@ -49,11 +49,6 @@
> >> >
> >> > </properties>
> >> >
> >> > <dependencies>
> >> >
> >> > - <dependency>
> >> > - <groupId>org.apache.maven.plugin-tools</groupId>
> >> > - <artifactId>maven-plugin-tools-annotations</artifactId>
> >> > - </dependency>
> >> > -
> >> >
> >> > <!-- doxia -->
> >> > <dependency>
> >> >
> >> > <groupId>org.apache.maven.doxia</groupId>
> >> >
> >> > @@ -134,13 +129,18 @@
> >> >
> >> > <version>3.0</version>
> >> >
> >> > </dependency>
> >> >
> >> > - <!-- Maven runtime -->
> >> > + <!-- Maven runtime: extractors used by default -->
> >> >
> >> > <dependency>
> >> >
> >> > <groupId>org.apache.maven.plugin-tools</groupId>
> >> > <artifactId>maven-plugin-tools-java</artifactId>
> >> > <scope>runtime</scope>
> >> >
> >> > </dependency>
> >> > <dependency>
> >> >
> >> > + <groupId>org.apache.maven.plugin-tools</groupId>
> >> > + <artifactId>maven-plugin-tools-annotations</artifactId>
> >> > + <scope>runtime</scope>
> >> > + </dependency>
> >> > + <dependency>
> >> >
> >> > <groupId>org.apache.maven.plugin-tools</groupId>
> >> > <artifactId>maven-plugin-tools-beanshell</artifactId>
> >> > <scope>runtime</scope>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: dev-help@maven.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r1648234 -
/maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
Posted by Robert Scholte <rf...@apache.org>.
I've tried it with:
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java version: 1.7.0_55, vendor: Oracle Corporation
in both cases the error output starts with:
package org.apache.maven.plugins.annotations does not exist
thanks,
Robert
Op Wed, 31 Dec 2014 00:38:50 +0100 schreef Hervé BOUTEMY
<he...@free.fr>:
> uh, which JDK version?
>
> Regards,
>
> Hervé
>
> Le mardi 30 décembre 2014 22:40:17 Robert Scholte a écrit :
>> Hi,
>>
>> This commit gives me compilation errors, e.g.
>> [ERROR]
>> /E:/java-workspace/apache-maven-plugin-tools/plugin-tools/maven-plugin-plugi
>> n/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java:[77,6]
>> E:\java-workspace\apache-maven-plugin-tools\plugin-tools\maven-plugin-plugi
>> n\src\main\java\org\apache\maven\plugin\plugin\PluginReport.java:77:
>> cannot
>> find symbol
>> [ERROR] symbol : class Parameter
>> [ERROR] location: class org.apache.maven.plugin.plugin.PluginReport
>>
>> By changing the dependency to runtime I would indeed expect this kind of
>> errors, since the code uses these classes.
>> However, Jenkins is quite happy for a long time.
>>
>> https://builds.apache.org/view/All/job/maven-plugin-tools/changes
>>
>> Anyone a clue what's happening here?
>>
>> thanks,
>> Robert
>>
>> Op Sun, 28 Dec 2014 18:41:43 +0100 schreef <hb...@apache.org>:
>> > Author: hboutemy
>> > Date: Sun Dec 28 17:41:43 2014
>> > New Revision: 1648234
>> >
>> > URL: http://svn.apache.org/r1648234
>> > Log:
>> > reordered default extractors
>> >
>> > Modified:
>> > maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
>> >
>> > Modified: maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
>> > URL:
>> >
>> http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/
>> > pom.xml?rev=1648234&r1=1648233&r2=1648234&view=diff
>> >
>> =========================================================================
>> > ===== --- maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
>> (original)
>> > +++ maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml Sun Dec 28
>> > 17:41:43 2014
>> > @@ -49,11 +49,6 @@
>> >
>> > </properties>
>> >
>> > <dependencies>
>> >
>> > - <dependency>
>> > - <groupId>org.apache.maven.plugin-tools</groupId>
>> > - <artifactId>maven-plugin-tools-annotations</artifactId>
>> > - </dependency>
>> > -
>> >
>> > <!-- doxia -->
>> > <dependency>
>> >
>> > <groupId>org.apache.maven.doxia</groupId>
>> >
>> > @@ -134,13 +129,18 @@
>> >
>> > <version>3.0</version>
>> >
>> > </dependency>
>> >
>> > - <!-- Maven runtime -->
>> > + <!-- Maven runtime: extractors used by default -->
>> >
>> > <dependency>
>> >
>> > <groupId>org.apache.maven.plugin-tools</groupId>
>> > <artifactId>maven-plugin-tools-java</artifactId>
>> > <scope>runtime</scope>
>> >
>> > </dependency>
>> > <dependency>
>> >
>> > + <groupId>org.apache.maven.plugin-tools</groupId>
>> > + <artifactId>maven-plugin-tools-annotations</artifactId>
>> > + <scope>runtime</scope>
>> > + </dependency>
>> > + <dependency>
>> >
>> > <groupId>org.apache.maven.plugin-tools</groupId>
>> > <artifactId>maven-plugin-tools-beanshell</artifactId>
>> > <scope>runtime</scope>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r1648234 - /maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
Posted by Hervé BOUTEMY <he...@free.fr>.
uh, which JDK version?
Regards,
Hervé
Le mardi 30 décembre 2014 22:40:17 Robert Scholte a écrit :
> Hi,
>
> This commit gives me compilation errors, e.g.
> [ERROR]
> /E:/java-workspace/apache-maven-plugin-tools/plugin-tools/maven-plugin-plugi
> n/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java:[77,6]
> E:\java-workspace\apache-maven-plugin-tools\plugin-tools\maven-plugin-plugi
> n\src\main\java\org\apache\maven\plugin\plugin\PluginReport.java:77: cannot
> find symbol
> [ERROR] symbol : class Parameter
> [ERROR] location: class org.apache.maven.plugin.plugin.PluginReport
>
> By changing the dependency to runtime I would indeed expect this kind of
> errors, since the code uses these classes.
> However, Jenkins is quite happy for a long time.
>
> https://builds.apache.org/view/All/job/maven-plugin-tools/changes
>
> Anyone a clue what's happening here?
>
> thanks,
> Robert
>
> Op Sun, 28 Dec 2014 18:41:43 +0100 schreef <hb...@apache.org>:
> > Author: hboutemy
> > Date: Sun Dec 28 17:41:43 2014
> > New Revision: 1648234
> >
> > URL: http://svn.apache.org/r1648234
> > Log:
> > reordered default extractors
> >
> > Modified:
> > maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> >
> > Modified: maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/
> > pom.xml?rev=1648234&r1=1648233&r2=1648234&view=diff
> > =========================================================================
> > ===== --- maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml (original)
> > +++ maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml Sun Dec 28
> > 17:41:43 2014
> > @@ -49,11 +49,6 @@
> >
> > </properties>
> >
> > <dependencies>
> >
> > - <dependency>
> > - <groupId>org.apache.maven.plugin-tools</groupId>
> > - <artifactId>maven-plugin-tools-annotations</artifactId>
> > - </dependency>
> > -
> >
> > <!-- doxia -->
> > <dependency>
> >
> > <groupId>org.apache.maven.doxia</groupId>
> >
> > @@ -134,13 +129,18 @@
> >
> > <version>3.0</version>
> >
> > </dependency>
> >
> > - <!-- Maven runtime -->
> > + <!-- Maven runtime: extractors used by default -->
> >
> > <dependency>
> >
> > <groupId>org.apache.maven.plugin-tools</groupId>
> > <artifactId>maven-plugin-tools-java</artifactId>
> > <scope>runtime</scope>
> >
> > </dependency>
> > <dependency>
> >
> > + <groupId>org.apache.maven.plugin-tools</groupId>
> > + <artifactId>maven-plugin-tools-annotations</artifactId>
> > + <scope>runtime</scope>
> > + </dependency>
> > + <dependency>
> >
> > <groupId>org.apache.maven.plugin-tools</groupId>
> > <artifactId>maven-plugin-tools-beanshell</artifactId>
> > <scope>runtime</scope>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org