OS X and Windows jars

51 views
Skip to first unread message

Kevin S. Clarke

unread,
Feb 1, 2014, 10:21:40 PM2/1/14
to cmake-maven-...@googlegroups.com
On Sat, Feb 1, 2014 at 12:45 PM, Kevin S. Clarke <kscl...@gmail.com> wrote:
>
> Yes, my fault. I'm a Linux user so that part was done. I'm fixing
> the Windows and OSX issue now.

Fwiw, the windows and mac jars have made their way onto central now.

Kevin

15 knots

unread,
Feb 4, 2014, 6:47:45 AM2/4/14
to cmake-maven-...@googlegroups.com
Stiil no luck on windos.
It tries to download the artifacts cmake-maven-plugin and cmake, but does not download cmake-binaries.

Downloading: http://archiva.ats-berlin.de/repository/internal/com/googlecode/cmake-maven-project/cmake-maven-plugin/2.8.11-b4/cmake-maven-plugin-2.8.11-b4.pom
Downloading: http://archiva.ats-berlin.de/repository/internal/com/googlecode/cmake-maven-project/cmake/2.8.11-b4/cmake-2.8.11-b4.pom
Downloading: http://archiva.ats-berlin.de/repository/internal/com/googlecode/cmake-maven-project/cmake-maven-plugin/2.8.11-b4/cmake-maven-plugin-2.8.11-b4.jar

Later then, the unpack plugin does not unpack anything (and does not complain):
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack' with basic configurator -->
[DEBUG]   (s) groupId = com.googlecode.cmake-maven-project
[DEBUG]   (s) artifactId = cmake-binaries
[DEBUG]   (s) version = 2.8.11-b4
[DEBUG]   (s) classifier = windows
[DEBUG]   (s) outputDirectory = H:\develop\TRM-src\exectarget-simwb4x\target\dependency\cmake
[DEBUG]   (s) artifactItems = [com.googlecode.cmake-maven-project:cmake-binaries:windows:2.8.11-b4:jar]

And finally, the generate goal fails (file not found):
[ERROR] Failed to execute goal com.googlecode.cmake-maven-project:cmake-maven-plugin:2.8.11-b4:generate (cmake-generate) on project exec_target_simwb4x: MojoExecutionException: Cannot run program "H:\develop\TRM-src\exectarget-simwb4x\target\dependency\cmake\bin\cmake" (in directory "H:\develop\TRM-src\exectarget-simwb4x\target\build"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden -> [Help 1]

I removed anything from my local maven cache and  ran maven with -U.

I guess it will even fail to download on Linux.

Martin



2014-02-02 Kevin S. Clarke <kscl...@gmail.com>:

Kevin

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

Kevin S. Clarke

unread,
Feb 4, 2014, 9:37:45 AM2/4/14
to cmake-maven-...@googlegroups.com
Is this a regional/local mirror of Maven central? I cannot access it
(behind a firewall?) to check but perhaps they have not synced with
Maven central since the update? The jar is in Maven central now:

http://repo1.maven.org/maven2/com/googlecode/cmake-maven-project/cmake-binaries/2.8.11-b4/

Can you try that same path with
http://archiva.ats-berlin.de/repository/internal and see if you see it
in there?

Kevin

cowwoc

unread,
Feb 4, 2014, 9:40:15 AM2/4/14
to cmake-maven-...@googlegroups.com
Kevin,

The "generate" command-line looks wrong for Windows. Going by memory, it should be invoking "cmd.exe /c cmake.exe" as opposed to "cmake" directly without even any extension.

I could be wrong, but it's worth a look.

Gili

15 knots

unread,
Feb 4, 2014, 9:49:18 AM2/4/14
to cmake-maven-...@googlegroups.com

2014-02-04 cowwoc <cow...@bbs.darktech.org>:

Kevin,

The "generate" command-line looks wrong for Windows. Going by memory, it should be invoking "cmd.exe /c cmake.exe" as opposed to "cmake" directly without even any extension.

Nope, cmake.exe should be ok. Why start a shell?
The real problem is the cmake-binaries not downloading.

 Martin

Kevin S. Clarke

unread,
Feb 4, 2014, 10:05:23 AM2/4/14
to cmake-maven-...@googlegroups.com
On Tue, Feb 4, 2014 at 9:49 AM, 15 knots <fifteen...@gmail.com> wrote:
>
> 2014-02-04 cowwoc <cow...@bbs.darktech.org>:
>
>> Kevin,
>>
>> The "generate" command-line looks wrong for Windows. Going by memory, it
>> should be invoking "cmd.exe /c cmake.exe" as opposed to "cmake" directly
>> without even any extension.
>>
> Nope, cmake.exe should be ok. Why start a shell?

What's the output from:

mvn help:active-profiles

> The real problem is the cmake-binaries not downloading.

Have you been able to confirm that the binaries are found or not found
at the repo source you're downloading from?

http://archiva.ats-berlin.de/repository/internal/com/googlecode/cmake-maven-project/cmake-binaries/2.8.11-b4/

Kevin

15 knots

unread,
Feb 4, 2014, 10:44:59 AM2/4/14
to cmake-maven-...@googlegroups.com
Problem solved!

Sorry, I forgot to delete the -DmavenDep.skip I introduced in my earlier experiments with cmake-maven-plugin.
Now it does work.

Apologies for the nois,
 Martin


2014-02-04 Kevin S. Clarke <kscl...@gmail.com>:

Kevin

Kevin S. Clarke

unread,
Feb 4, 2014, 10:47:39 AM2/4/14
to cmake-maven-...@googlegroups.com
Great! No problem. Glad to hear it's solved.

Kevin


--
"There are two kinds of people in this world: those who believe there
are two kinds of people in this world and those who know better."

15 knots

unread,
Feb 4, 2014, 11:47:59 AM2/4/14
to cmake-maven-...@googlegroups.com
2014-02-04 Kevin S. Clarke <kscl...@gmail.com>:
Great!  No problem.  Glad to hear it's solved.

Well, a problem with cmake remains:
cmake --build  -- target install/fast

gives a
mingw32-make.exe: *** No rule to make target 'install\fast'

 slash gets converted to backslash. Aarrgh!
Definitely a bug in cmake.

Martin

Reply all
Reply to author
Forward
0 new messages