mirror of https://github.com/apache/maven.git
Correcting module-path validation to error on '..' rather than '/'...'/' causes problems when modules are not direct subdirs of the current basedir.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168639 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b90399de88
commit
f1d5f829f2
|
@ -188,7 +188,7 @@ public class DefaultMaven
|
|||
for ( Iterator i = project.getModules().iterator(); i.hasNext(); )
|
||||
{
|
||||
String name = (String) i.next();
|
||||
if ( name.indexOf( '/' ) >= 0 )
|
||||
if ( name.indexOf( ".." ) >= 0 )
|
||||
{
|
||||
String message = "Illegal module name: " + name + " (cannot contain path characters)";
|
||||
throw new ReactorException( message );
|
||||
|
|
Loading…
Reference in New Issue