1 Reply Latest reply on Sep 10, 2010 8:15 AM by nbelaevski

    The plugin 'org.apache.maven.plugins:maven-cdk-plugin' does not exist or no valid version could be found

    shdnene

      Good night!

       

      I'm having the following problem while creating component (StarRating).

       

      Maven Version:

      Apache Maven 2.2.1 (rdebian-1)
      Java version: 1.6.0_18

       

      My pom.xml

      <?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>
        <parent>
          <artifactId>sandbox</artifactId>
          <groupId>org.mycompany</groupId>
          <version>1.0-SNAPSHOT</version>
        </parent>
        <groupId>book.richfaces.cdk.example</groupId>
        <artifactId>starRatings</artifactId>
        <version>1.0-SNAPSHOT</version>
        <name>Docbkx Maven Quikstart Archetype</name>
        <packaging>pom</packaging>
        <build>
          <plugins>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
          <inherited>true</inherited>
          <configuration>
            <source>1.6</source>
                <target>1.6</target>
              </configuration>
            </plugin>
          </plugins>
        </build>
      </project>

       

      This file is within the pom.xml directory starRatings.

       

      =========================================================================================

       

      When running the command:

      mvn cdk:create -Dname=starRatings

       

      The following error appears:

      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'cdk'.
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] The plugin 'org.apache.maven.plugins:maven-cdk-plugin' does not exist or no valid version could be found
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------


      What does that mean?

       

      att,

        • 1. Re: The plugin 'org.apache.maven.plugins:maven-cdk-plugin' does not exist or no valid version could be found
          nbelaevski

          Hi,

           

          Please add maven-cdk-plugin to your pom.xml like that:

           

                <plugin>
                  <groupId>org.richfaces.cdk</groupId>
                  <artifactId>maven-cdk-plugin</artifactId>
                  <version>3.3.4-SNAPSHOT</version>
                  <executions>
                    <execution>
                      <id>generate-sources</id>
                      <phase>generate-sources</phase>
                      <goals>
                        <goal>generate</goal>
                      </goals>
                    </execution>
                    <execution>
                      <id>generate-test-sources</id>
                      <phase>generate-test-sources</phase>
                      <goals>
                        <goal>generate-tests</goal>
                      </goals>
                    </execution>
                  </executions>
                  <configuration>
                    <library>
                      <prefix>org.richfaces</prefix>
                      <taglib>
                        <shortName>calendar</shortName>
                      </taglib>
                    </library>
                  </configuration>
                </plugin>

                <plugin>

                  <groupId>org.richfaces.cdk</groupId>

                  <artifactId>maven-cdk-plugin</artifactId>

                  <version>3.3.3.Final</version>

                  <executions>

                    <execution>

                      <id>generate-sources</id>

                      <phase>generate-sources</phase>

                      <goals>

                        <goal>generate</goal>

                      </goals>

                    </execution>

                    <execution>

                      <id>generate-test-sources</id>

                      <phase>generate-test-sources</phase>

                      <goals>

                        <goal>generate-tests</goal>

                      </goals>

                    </execution>

                  </executions>

                  <configuration>

                    <library>

                      <prefix>com.foo</prefix>

                      <taglib>

                        <shortName>starRating</shortName>

                      </taglib>

                    </library>

                  </configuration>

                </plugin>