I'm going to answer my own question :)

once I removed my plugins stanza out from underneath pluginManagement, all was fine.

-j

On Feb 14, 2006, at 9:58 AM, Jeff Smith wrote:

I'm trying to get a very simple maven 2 project going to compile some xmlbeans, my pom.xml is pretty much out of the box from the archetype with the addtions described in the xml beans plugin doc. It looks like this:

<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>com.mycompany.app</groupId>
    <artifactId>my-app</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>Maven Quick Start Archetype</name>
    <url>http://maven.apache.org</url>
    <dependencies>
        <dependency>
            <groupId>xmlbeans</groupId>
            <artifactId>xmlbeans</artifactId>
            <version>2.0-dev-2</version>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>xmlbeans-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <goals>
                                <goal>xmlbeans</goal>
                            </goals>
                        </execution>
                    </executions>
                    <inherited>true</inherited>
                    <configuration>
                    <schemaDirectory>src/main/xsd</schemaDirectory>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>


I always get this error:
The plugin 'org.apache.maven.plugins:maven-xmlbeans-plugin' does not exist or no valid version could be found

this seems weird because the plugin is defeined as xmlbeans-maven- plugin not maven-xmlbeans-plugin. Is the standard maven repo conflicting somehow? Anyone else seeing this?

Thanks,

-jeff




Reply via email to