[ 
https://issues.apache.org/jira/browse/MNG-5810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-5810:
-----------------------------------
    Attachment: MNG-5810.DOTS.IN.DIRECTORY.NAME.zip

Example project demonstrating the issue is not reproducible with 
[3.4.0-SNAPSHOT|https://builds.apache.org/view/All/job/maven-3.3-release-status-build/].

{code}
Apache Maven 3.4.0-SNAPSHOT (5c98a4261f7e50ee0197902c5737ebfc0acac724; 
2016-01-26T02:49:41+01:00)
{code}


{code}
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building MNG-5810 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ MNG-5810 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/tmp/MNG-5810.DOTS.IN.DIRECTORY.NAME/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ MNG-5810 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 
/tmp/MNG-5810.DOTS.IN.DIRECTORY.NAME/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] 
/tmp/MNG-5810.DOTS.IN.DIRECTORY.NAME/src/main/java/localhost/App.java:[3,8] 
class AppProducingCompilerError is public, should be declared in a file named 
AppProducingCompilerError.java
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.511 s
[INFO] Finished at: 2016-01-27T03:04:16+01:00
[INFO] Final Memory: 12M/41M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.5:compile (default-compile) on 
project MNG-5810: Compilation failure
[ERROR] 
/tmp/MNG-5810.DOTS.IN.DIRECTORY.NAME/src/main/java/localhost/App.java:[3,8] 
class AppProducingCompilerError is public, should be declared in a file named 
AppProducingCompilerError.java
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{code}

Error output does not show translation of dots in directory names occuring.


> "mvn compile" changes "/" to "." in ERROR messages in directory names
> ---------------------------------------------------------------------
>
>                 Key: MNG-5810
>                 URL: https://issues.apache.org/jira/browse/MNG-5810
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>         Environment: linux / gentoo.
>            Reporter: John Smith
>            Priority: Minor
>         Attachments: MNG-5810.DOTS.IN.DIRECTORY.NAME.zip
>
>
> First, it's incredible how long it takes until one can submit an issue here 
> ... searching for the right place, then registering ... takes substantially 
> longer than filing the issue itself. Pretty annoying.
> Error description: when doing an "mvn compile", dots in directory names are 
> replaced by slashes. Now you can't just copy & paste the file name anymore to 
> the shell to do a  "vi <middle-mouse-button", for instance, but you have to 
> undo maven's replacement by changing back the "/" to "." whereever needed.
> Example:
> [ERROR] 
> /data/people/XXXX/MINECRAFT/WORLD/TARZAN/1/8/src/spigot-1/8/3/Spigot/Spigot-Server/src/main/java/org/spigotmc/Metrics.java:[142]
>  blahfurz cannot be resolved to a variable
> The directory names are "WORLD.TARZAN.1.8" and "spigot-1.8.3".
> And NO, telling me to "well, don't use dots in directory names" or "well, 
> don't use vi, use one of the fancy IDEs around" is not an option for me, 
> thanks a lot.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to