You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/12/23 15:04:19 UTC
[jira] Closed: (MENFORCER-47) requireFilesSize causes EnforcerRule
cannot be instantiated
[ http://jira.codehaus.org/browse/MENFORCER-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MENFORCER-47.
---------------------------------
Assignee: Brett Porter (was: Brian Fox)
Resolution: Cannot Reproduce
this rule was released in alpha-4 and works now. The docs are in the process of being updated.
> requireFilesSize causes EnforcerRule cannot be instantiated
> -----------------------------------------------------------
>
> Key: MENFORCER-47
> URL: http://jira.codehaus.org/browse/MENFORCER-47
> Project: Maven 2.x Enforcer Plugin
> Issue Type: Bug
> Components: Standard Rules
> Affects Versions: 1.0-alpha-3
> Environment: It's actuall 1.0-SNAPSHOT - maven-enforcer-plugin-1.0-20080805.234815-1.pom
> Reporter: Antony Stubbs
> Assignee: Brett Porter
> Priority: Blocker
>
> {code:title=pom.xml Style=solid}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-enforcer-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
> <executions>
> <execution>
> <id>check-client-es-looks-right</id>
> <goals>
> <goal>enforce</goal>
> </goals>
> <configuration>
> <rules>
> <requireFilesSize>
> <!-- the real client-es is at least 1meg -->
> <minSize>1000000</minSize>
> <files>
> <file>${project.outputDirectory}/foo.txt</file>
> <file>${project.outputDirectory}/foo2.txt</file>
> </files>
> </requireFilesSize>
> </rules>
> <fail>true</fail>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> causes:
> {code:title=output Style=solid}
> [INFO] ------------------------------------------------------------------------
> [WARNING] Attempting to build MavenProject instance for Artifact (org.apache.maven.plugins:maven-enforcer-plugin:1.0-20080805.234815-1) of
> ype: maven-plugin; constructing POM artifact instead.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-enforcer-plugin:1.0-SNAPSHOT
> Cause: Class 'org.apache.maven.enforcer.rule.api.EnforcerRule' cannot be instantiated
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 8 seconds
> [INFO] Finished at: Mon Aug 11 20:52:33 NZST 2008
> [INFO] Final Memory: 15M/27M
> [INFO] ------------------------------------------------------------------------
> {code}
> Also - if features aren't available - I would have thought a note on the website of the pages explaining how to configure them would be useful.
> Cheers.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira