The parameters 'targetPath', 'sourcePath', 'generator' for goal com.googlecode.cmake-maven-project:cmake-maven-plugin:2.8.10.2-b2:generate are missing or invalid -> [Help 1]

190 views
Skip to first unread message

Imre Dávid Kosztka

unread,
Apr 24, 2013, 8:59:29 AM4/24/13
to cmake-maven-...@googlegroups.com
Hi,

after running "mvn cmake:generate" I get the following message:

[ERROR] Failed to execute goal com.googlecode.cmake-maven-project:cmake-maven-plugin:2.8.10.2-b2:generate (default-cli) on project testArtifact: The parameters 'targetPath', 'sourcePath', 'generator' for goal com.googlecode.cmake-maven-project:cmake-maven-plugin:2.8.10.2-b2:generate are missing or invalid -> [Help 1]

$ mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
Maven home: /opt/maven
Java version: 1.7.0_19, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.el6.x86_64", arch: "amd64", family: "unix"

Can you please tell me what can be wrong?

Thank you!
Kocka

This is my pom.xml:
<?xml version="1.0"?>
<modelVersion>4.0.0</modelVersion>

<groupId>org.testcmake</groupId>
<artifactId>testArtifact</artifactId>
<version>1.0-TESTVERSION</version>

<build>
<plugins>
<plugin>
        <groupId>com.googlecode.cmake-maven-project</groupId>
        <artifactId>cmake-maven-plugin</artifactId>
        <version>2.8.10.2-b2</version>
        <executions>
                <execution>
                        <id>cmake-generate</id>
                        <goals>
                                <goal>generate</goal>
                        </goals>
                        <configuration>
                                <sourcePath>
                                        ./correlation/adapters/ebm_nrt/xml2parser
                                </sourcePath>
                                <targetPath>
                                        ../cea_build_mvn
                                </targetPath>
                                <generator>
                                        Unix Makefiles
                                </generator>
                                <environmentVariables>
                                        <key>value</key>
                                </environmentVariables>
                                <options>
                                        <!--
                                             Optional: One or more options found at http://www.cmake.org/cmake/help/v2.8.10/cmake.html#section_Options
                                             For example:
                                        -->
                                        <option>-DBUILD_THIRDPARTY:bool=on</option>
                                </options>
                        </configuration>
                </execution>
        </executions>
</plugin>
</plugins>
</build>

<dependencies>
        <dependency>
                <groupId>com.googlecode.cmake-maven-project</groupId>
                <artifactId>cmake-maven-plugin</artifactId>
                <version>2.8.10.2-b2</version>
        </dependency>
</dependencies>
</project>

cowwoc

unread,
Apr 24, 2013, 11:09:47 AM4/24/13
to cmake-maven-...@googlegroups.com
Hi Imre,

My guess is that "mvn" will work for you and the problem has
something to do with the fact you are specifying "cmake:generate"
directly on the command-line.

Gili
> --
> You received this message because you are subscribed to the Google
> Groups "cmake-maven-project-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cmake-maven-projec...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Kosztka Imre Dávid

unread,
Apr 25, 2013, 8:44:25 AM4/25/13
to cmake-maven-...@googlegroups.com
Works. Thank you!

Kocka


2013/4/24 cowwoc <cow...@bbs.darktech.org>
Hi Imre,

    My guess is that "mvn" will work for you and the problem has something to do with the fact you are specifying "cmake:generate" directly on the command-line.

Gili

To unsubscribe from this group and stop receiving emails from it, send an email to cmake-maven-project-users+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to a topic in the Google Groups "cmake-maven-project-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cmake-maven-project-users/ab_v4ticw60/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to cmake-maven-project-users+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





--
Name : Kosztka Imre Dávid
E-mail: kosz...@gmail.com
Phone number: +36309213462
Mailing address: H-3700, Hungary Kazincbarcika Szeder utca 2.
Reply all
Reply to author
Forward
0 new messages