Hi all,
 
There seems to be an issue with the enforcer plugin and the Maven
embedder, I've not seen it reported in the archives or in JIRA.
 
maven snapshot from rev 659801
(http://code.google.com/p/q4e/downloads/list)
 
POM that shows the error:
<?xml version="1.0" encoding="UTF-8" ?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 <modelVersion>4.0.0</modelVersion>
 <groupId>test</groupId>
 <artifactId>test</artifactId>
 <version>0.0.1-SNAPSHOT</version>
 <packaging>jar</packaging>
 <name>test</name>
 <build>
  <pluginManagement>
   <plugins>
    <plugin>
     <artifactId>maven-enforcer-plugin</artifactId>
     <version>1.0-alpha-4</version>
     <executions>
      <execution>
       <id>enforce-rules</id>
       <goals>
        <goal>enforce</goal>
       </goals>
       <configuration>
        <rules>
         <requirePluginVersions>
          <message>Found plugins without fixed release version defined.
Build is not reproducible.</message>
         </requirePluginVersions>
        </rules>
       </configuration>
      </execution>
     </executions>
    </plugin>
   </plugins>
  </pluginManagement>
  <plugins>
   <plugin>
    <artifactId>maven-enforcer-plugin</artifactId>
   </plugin>
  </plugins>
 </build>
</project>
 
error is:
 
[INFO] [enforcer:enforce]
---------------------------------------------------
constituent[0]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/aspectjrt-1.5.3.jar
constituent[1]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/commons-cli-1.0.jar
constituent[2]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/commons-logging-api-1.1.jar
constituent[3]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/doxia-sink-api-1.0-alpha-9.jar
constituent[4]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/jsch-0.1.27.jar
constituent[5]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/jtidy-4aug2000r7-dev.jar
constituent[6]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/log4j-1.2.12.jar
constituent[7]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-artifact-3.0-20080521.152646-63.jar
constituent[8]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-core-2.1-SNAPSHOT.jar
constituent[9]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-embedder-2.1-SNAPSHOT.jar
constituent[10]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-lifecycle-2.1-SNAPSHOT.jar
constituent[11]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-model-2.1-SNAPSHOT.jar
constituent[12]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-plugin-api-2.1-SNAPSHOT.jar
constituent[13]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-profile-2.1-SNAPSHOT.jar
constituent[14]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-project-2.1-SNAPSHOT.jar
constituent[15]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-reporting-api-2.1-SNAPSHOT.jar
constituent[16]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-toolchain-2.1-SNAPSHOT.jar
constituent[17]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/maven-workspace-2.1-SNAPSHOT.jar
constituent[18]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/plexus-container-default-1.0-alpha-46-20080419.145100-1.jar
constituent[19]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/plexus-interactivity-api-1.0-alpha-6.jar
constituent[20]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/plexus-interpolation-1.0-20080407.184049-2.jar
constituent[21]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/plexus-utils-1.5.1.jar
constituent[22]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/wagon-file-1.0-beta-2.jar
constituent[23]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/wagon-http-lightweight-1.0-beta-2.jar
constituent[24]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/wagon-http-shared-1.0-beta-2.jar
constituent[25]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/wagon-provider-api-1.0-beta-2.jar
constituent[26]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/wagon-ssh-1.0-beta-2.jar
constituent[27]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/wagon-ssh-common-1.0-beta-2.jar
constituent[28]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/wagon-ssh-external-1.0-beta-2.jar
constituent[29]:
file:/E:/downloads/apache-maven-2.1-659801-bin/apache-maven-2.1-SNAPSHOT
/bin/../lib/xbean-reflect-3.4-20080418.173627-4.jar
 
---------------------------------------------------
java.lang.NullPointerException
        at
org.codehaus.plexus.util.ReflectionUtils.getValueIncludingSuperclasses(R
eflectionUtils.java:163)
        at
org.apache.maven.plugins.enforcer.RequirePluginVersions.getBoundPlugins(
RequirePluginVersions.java:507)
        at
org.apache.maven.plugins.enforcer.RequirePluginVersions.execute(RequireP
luginVersions.java:172)
        at
org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:1
85)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:579)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:498)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentFo
rProject(DefaultLifecycleExecutor.java:265)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:191)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:149)
        at
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
        at
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.ja
va:304)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
        at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedde
r.java:904)
        at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(Maven
Embedder.java:304)
        at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche
r.java:289)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2
29)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc
her.java:408)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351
)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
 
Java version: 1.6.0_06

*********************************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only.  Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited.  If you have received this message in error, please immediately 
notify the [EMAIL PROTECTED] and destroy the original message.  Messages sent 
to and from NDS may be monitored.  NDS cannot guarantee any message delivery 
method is secure or error-free.  Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses.  We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission.  You should carry out your 
own virus checks before opening any attachment.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West 
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England 
and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**********************************************************************************************************

Reply via email to