openjpa-maven-plugin documentation on web front page is wrong?
--------------------------------------------------------------

                 Key: MOJO-1134
                 URL: http://jira.codehaus.org/browse/MOJO-1134
             Project: Mojo
          Issue Type: Bug
          Components: openjpa
            Reporter: Michael Vorburger
            Priority: Critical


Isn't the doc on http://mojo.codehaus.org/openjpa-maven-plugin/usage.html 
wrong??  Or may I'm stupid/Maven unexperienced.

Like this, as it's shown on that web page as I write this doesn't work, it 
didn't print an error but simply didn't do anything:

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>openjpa-maven-plugin</artifactId>                    
        <configuration>
          <!-- Pass properties to the Plugin here -->     
          <toolProperties>
            <property>
              <name>addDefaultConstructor</name>
              <value>true</value>
            </property>              
            <property>
              <name>enforcePropertyRestrictions</name>
              <value>true</value>
            </property> 
          </toolProperties>
        </configuration>
      </plugin>

but this worked for me:

<plugin>
                                
<groupId>com.odcgroup.thirdparty.codehaus.mojo</groupId>
                                <artifactId>openjpa-maven-plugin</artifactId>

                                <executions>
                                        <execution>
                                                
<phase>process-test-classes</phase>
                                                <goals>
                                                        <goal>enhance</goal>
                                                </goals>
                                                <configuration>
                                                        
<classpathElements>${project.testClasspathElements}</classpathElements>
                                                        <toolProperties>
                                                                <property>
                                                                        
<name>addDefaultConstructor</name>
                                                                        
<value>false</value>
                                                                </property>
                                                                <property>
                                                                        
<name>enforcePropertyRestrictions</name>
                                                                        
<value>false</value>
                                                                </property>
                                                        </toolProperties>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>


-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to