You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Emmanuel Lécharny <el...@gmail.com> on 2013/01/28 19:11:37 UTC

SSHD build failure...

Hi,

as I tried to build SSHD (from git), I got this error :

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Mina SSHD .................................. SUCCESS [1.820s]
[INFO] Apache Mina SSHD :: Core .......................... FAILURE [4.552s]
[INFO] Apache Mina SSHD :: PAM ........................... SKIPPED
[INFO] Apache Mina SSHD :: SFTP .......................... SKIPPED
[INFO] Apache Mina SSHD :: Assembly ...................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6.805s
[INFO] Finished at: Mon Jan 28 19:03:35 CET 2013
[INFO] Final Memory: 20M/218M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project sshd-core: Compilation failure: Compilation
failure:
[ERROR]
/Users/elecharny/mina/sshd-git/sshd-core/src/main/java/org/apache/sshd/common/forward/DefaultTcpIpForwarder.java:[47,7]
error: class DefaultTcpipForwarder is public, should be declared in a
file named DefaultTcpipForwarder.java
[ERROR]
[ERROR]
/Users/elecharny/mina/sshd-git/sshd-core/src/main/java/org/apache/sshd/common/TcpIpForwarder.java:[22,7]
error: class TcpipForwarder is public, should be declared in a file
named TcpipForwarder.java
[ERROR]
[ERROR]
/Users/elecharny/mina/sshd-git/sshd-core/src/main/java/org/apache/sshd/common/forward/TcpIpServerChannel.java:[49,7]
error: class TcpipServerChannel is public, should be declared in a file
named TcpipServerChannel.java
[ERROR]
[ERROR]
/Users/elecharny/mina/sshd-git/sshd-core/src/main/java/org/apache/sshd/common/forward/TcpIpClientChannel.java:[40,7]
error: class TcpipClientChannel is public, should be declared in a file
named TcpipClientChannel.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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :sshd-core

I'm quite sure that the problem is about a case sensitive file being
used in a case insensitive env (like on a mac). For instance, the
TcpIpForwarder interface is named TcpipForwarder, and it's not seen as
the class name is not the same as the class file.

I can fix that, but the question is to know if the 'i' in ip should be
upper cased or not : TcpIp or Tcpip ?

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 


Re: SSHD build failure...

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 1/28/13 7:22 PM, Guillaume Nodet a écrit :
> I think I used a lower case i.  The refactoring must have failed.
> I'll do that tomorrow if you don't beat me to it.

i'll let you manage the change. I'm not sure if you wanted to name the
class Tcpip instead of TcpIp (I prefer the second, but this is up to you).



-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 


Re: SSHD build failure...

Posted by Guillaume Nodet <gn...@gmail.com>.
I think I used a lower case i.  The refactoring must have failed.
I'll do that tomorrow if you don't beat me to it.


On Mon, Jan 28, 2013 at 7:11 PM, Emmanuel Lécharny <el...@gmail.com>wrote:

> Hi,
>
> as I tried to build SSHD (from git), I got this error :
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Mina SSHD .................................. SUCCESS [1.820s]
> [INFO] Apache Mina SSHD :: Core .......................... FAILURE [4.552s]
> [INFO] Apache Mina SSHD :: PAM ........................... SKIPPED
> [INFO] Apache Mina SSHD :: SFTP .......................... SKIPPED
> [INFO] Apache Mina SSHD :: Assembly ...................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6.805s
> [INFO] Finished at: Mon Jan 28 19:03:35 CET 2013
> [INFO] Final Memory: 20M/218M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project sshd-core: Compilation failure: Compilation
> failure:
> [ERROR]
>
> /Users/elecharny/mina/sshd-git/sshd-core/src/main/java/org/apache/sshd/common/forward/DefaultTcpIpForwarder.java:[47,7]
> error: class DefaultTcpipForwarder is public, should be declared in a
> file named DefaultTcpipForwarder.java
> [ERROR]
> [ERROR]
>
> /Users/elecharny/mina/sshd-git/sshd-core/src/main/java/org/apache/sshd/common/TcpIpForwarder.java:[22,7]
> error: class TcpipForwarder is public, should be declared in a file
> named TcpipForwarder.java
> [ERROR]
> [ERROR]
>
> /Users/elecharny/mina/sshd-git/sshd-core/src/main/java/org/apache/sshd/common/forward/TcpIpServerChannel.java:[49,7]
> error: class TcpipServerChannel is public, should be declared in a file
> named TcpipServerChannel.java
> [ERROR]
> [ERROR]
>
> /Users/elecharny/mina/sshd-git/sshd-core/src/main/java/org/apache/sshd/common/forward/TcpIpClientChannel.java:[40,7]
> error: class TcpipClientChannel is public, should be declared in a file
> named TcpipClientChannel.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
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :sshd-core
>
> I'm quite sure that the problem is about a case sensitive file being
> used in a case insensitive env (like on a mac). For instance, the
> TcpIpForwarder interface is named TcpipForwarder, and it's not seen as
> the class name is not the same as the class file.
>
> I can fix that, but the question is to know if the 'i' in ip should be
> upper cased or not : TcpIp or Tcpip ?
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>


-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/