public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Windows Path issue with maven/java on cygwin ("/C:/cygwin64/git...")
@ 2017-01-13 10:36 Chris Brokes
  2017-01-14 20:50 ` Andrey Repin
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Brokes @ 2017-01-13 10:36 UTC (permalink / raw)
  To: cygwin

First time sending an email to the list.  Thanks for all the patience of 
everyone involved.

Due to a work requirement, I'm trying to get the following working:
git - repository successfully downloaded.  Original code was written for 
linux and is java based
java - Windows java JDK 8u112 apparently successfully installed and 
apparently recognized by maven, etc
apache-maven - downloaded and apparently installed successfully. All 
articles I've found with setup instructions stop after having verified 
that maven is 'working'. Apparently I've succeeded with this.

As you can see from the below text, maven is apparently working and 
finds my java successfully
$ mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
2015-11-10T11:41:47-05:00)
Maven home: C:\cygwin64\usr\local\apache-maven-3.3.9
Java version: 1.8.0_112, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_112\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

Now this is where it gets weird.  When I try the following:
$ mvn compile
in the appropriate git directory everything seems to be working fine 
until I start seeing this:

.
.
.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
dataflow-impl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
C:\cygwin64\git\dfimpl\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ 
dataflow-impl ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 202 source files to C:\cygwin64\git\dfimpl\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] 
/C:/cygwin64/git/dfimpl/src/main/java/com/gamma/ats/dataflow/utils/GGSNRecordIngestion.java:[5,44] 
package com.google.cloud.dataflow.sdk.coders does not exist
[ERROR] 
/C:/cygwin64/git/dfimpl/src/main/java/com/gamma/ats/dataflow/utils/GGSNRecordIngestion.java:[6,44] 
package com.google.cloud.dataflow.sdk.coders does not exist
[ERROR] 
/C:/cygwin64/git/dfimpl/src/main/java/com/gamma/ats/dataflow/utils/GGSNRecordIngestion.java:[7,44] 
package com.google.cloud.dataflow.sdk.coders does not exist
.
.
.

I can confirm that the files listed exist.
If you type the path as any of the following:
/cygdrive/c/cygwin64/git/  <continue path as appropriate>
C:/cygwin64/git/   <continue path as appropriate>
/git/   <continue path as appropriate>

The issue apparently is the leading "/"

So...my question goes like this:
a) is there something in my configuration which is causing this? (i.e. 
should I have the linux version of java installed under cygwin or am I 
missing a setting someplace?)
b) is there a fix/hack I can apply to cause the leading / to be a non 
issue? (i.e. a ln configured a specific way or an alias?  I've attempted 
both but neither seem to have fixed the issue...possibly because I 
didn't setup the correction properly?)
c) has anyone seen anything like this?  due to the special characters 
involved, searching was relatively useless (just about every search 
found me C/C++/gcc related results...)

Thanks for taking the time to read this.  Any help is appreciated.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Windows Path issue with maven/java on cygwin ("/C:/cygwin64/git...")
  2017-01-13 10:36 Windows Path issue with maven/java on cygwin ("/C:/cygwin64/git...") Chris Brokes
@ 2017-01-14 20:50 ` Andrey Repin
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Repin @ 2017-01-14 20:50 UTC (permalink / raw)
  To: Chris Brokes, cygwin

Greetings, Chris Brokes!

> I can confirm that the files listed exist.
> If you type the path as any of the following:
> /cygdrive/c/cygwin64/git/  <continue path as appropriate>
> C:/cygwin64/git/   <continue path as appropriate>
> /git/   <continue path as appropriate>

> The issue apparently is the leading "/"

No, the issue is that you're trying to mix native and Cygwin tools with not
much of an understanding.

> So...my question goes like this:
> a) is there something in my configuration which is causing this? (i.e. 
> should I have the linux version of java installed under cygwin or am I 
> missing a setting someplace?)

Mating Cynwin and Windows tools is possible, but tricky and requires clear
understanding of implications.

> b) is there a fix/hack I can apply to cause the leading / to be a non 
> issue? (i.e. a ln configured a specific way or an alias?  I've attempted 
> both but neither seem to have fixed the issue...possibly because I 
> didn't setup the correction properly?)

You should probably look into native git port. Or host a VM with native Linux
environment for your compilation needs.

> c) has anyone seen anything like this?  due to the special characters 
> involved, searching was relatively useless (just about every search 
> found me C/C++/gcc related results...)

These two links should be a good read:
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html



-- 
With best regards,
Andrey Repin
Saturday, January 14, 2017 23:32:44

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-14 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-13 10:36 Windows Path issue with maven/java on cygwin ("/C:/cygwin64/git...") Chris Brokes
2017-01-14 20:50 ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).