[
http://jira.codehaus.org/browse/MGROOVY-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104158
]
Mauro Talevi commented on MGROOVY-64:
-------------------------------------
Below is a stack trace (not from jMock) that seems to indicate the problem is
indeed in the spaces, but not in maven - rather in the Ant class source
locator. Look for <username> to identifiy the paths where C:\Documents and
Settings\<username> are used.
Note that we found a workaround, setting a different local repo path:
<settings>
<localRepository>C:\path\without\spaces\repo</localRepository>
</settings>
[DEBUG] Retrieving parent-POM: org.codehaus.mojo.groovy:groovy::1.0-beta-1
for p
roject: null:groovy-plexus-factory:jar:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::15 for project:
org.codeh
aus.mojo.groovy:groovy:pom:1.0-beta-1 from the repository.
[DEBUG]
org.codehaus.mojo.groovy:groovy-plexus-factory:jar:1.0-beta-1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-containers::1.0-alpha-
14 for project: null:plexus-container-default:jar:1.0-alpha-14 from the
reposito
ry.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.9 for
project: or
g.codehaus.plexus:plexus-containers:pom:1.0-alpha-14 from the repository.
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-14:runtim
e (removed - nearer found: 1.0-alpha-9)
[DEBUG] org.codehaus.groovy:groovy-all:jar:1.1-beta-2:runtime (selected
for
runtime)
[DEBUG] junit:junit:jar:3.8.2:runtime (removed - nearer found: 3.8.1)
[DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime)
[DEBUG] commons-logging:commons-logging:jar:1.0:runtime (removed -
neare
r found: 1.0.4)
[DEBUG] commons-lang:commons-lang:jar:1.0:runtime (removed - nearer
foun
d: 2.3)
[DEBUG] Retrieving parent-POM: org.apache.ant:ant-parent::1.7.0 for project:
org
.apache.ant:ant:jar:1.7.0 from the repository.
[DEBUG] org.apache.ant:ant:jar:1.7.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.ant:ant-parent::1.7.0 for project:
org
.apache.ant:ant-launcher:jar:1.7.0 from the repository.
[DEBUG] org.apache.ant:ant-launcher:jar:1.7.0:runtime (selected for
runt
ime)
[DEBUG] Retrieving parent-POM: org.apache.ant:ant-parent::1.7.0 for project:
org
.apache.ant:ant-junit:jar:1.7.0 from the repository.
[DEBUG] org.apache.ant:ant-junit:jar:1.7.0:runtime (selected for
runtime)
[DEBUG] junit:junit:jar:3.8.2:runtime (removed - nearer found:
3.8.1)
[DEBUG] org.apache.ant:ant-launcher:jar:1.7.0:runtime (selected for
runtim
e)
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
bsf:bsf:jar:2.4
.0 from the repository.
[DEBUG] bsf:bsf:jar:2.4.0:runtime (selected for runtime)
[DEBUG] mx4j:mx4j:jar:3.0.2:runtime (selected for runtime)
[DEBUG] mockobjects:mockobjects-core:jar:0.09:runtime (selected for
runtim
e)
[DEBUG] castor:castor:jar:0.9.9:runtime (selected for runtime)
[DEBUG] openejb:openejb-loader:jar:1.0:runtime (selected for runtime)
[DEBUG] log4j:log4j:jar:1.2.8:runtime (selected for runtime)
[DEBUG] javax.servlet:servlet-api:jar:2.4:runtime (selected for
runtime)
[DEBUG] javax.servlet:jsp-api:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM:
com.thoughtworks.xstream:xstream-parent::1.2.2 fo
r project: null:xstream:jar:null from the repository.
[DEBUG] com.thoughtworks.xstream:xstream:jar:1.2.2:runtime (selected
for r
untime)
[DEBUG] xpp3:xpp3_min:jar:1.1.3.4.O:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.9 for
project: or
g.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-7 from the repository.
[DEBUG] org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-7:runtime
(sele
cted for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.mojo.groovy:groovy::1.0-beta-1
for p
roject: null:groovy-mojo-common:jar:null from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::15 for project:
org.codeh
aus.mojo.groovy:groovy:pom:1.0-beta-1 from the repository.
[DEBUG] org.codehaus.mojo.groovy:groovy-mojo-common:jar:1.0-beta-1:runtime
(se
lected for runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.5:runtime (removed -
neare
r found: 2.0.4)
[DEBUG] org.apache.ant:ant:jar:1.7.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.ant:ant-parent::1.7.0 for project:
org
.apache.ant:ant-nodeps:jar:1.7.0 from the repository.
[DEBUG] org.apache.ant:ant-nodeps:jar:1.7.0:runtime (selected for
runtime)
[DEBUG] org.apache.ant:ant-launcher:jar:1.7.0:runtime (selected for
runtime)
[DEBUG] Configuring mojo
'org.codehaus.mojo.groovy:groovy-maven-plugin:1.0-beta-
1:execute' -->
[DEBUG] (f) artifactRepository = [local] -> file://C:\Documents and
Settings\<username>\.m2\repository
[DEBUG] (f) project = [EMAIL PROTECTED]
[DEBUG] (f) scriptpath = [Ljava.io.File;@118cb3a
[DEBUG] (f) session = [EMAIL PROTECTED]
[DEBUG] (f) source = { url: null, file: null, body: if ( "pom" == "pom" ){
r = new Resources();
def sourceDir = "distribution/src/conf";
def targetDir = "misc/ide";
def filterset = "c:/Documents and
Settings/<username>/project.properties";
r.copy(sourceDir, targetDir, filterset);
} }
[DEBUG] (f) trapAssertionErrors = true
[DEBUG] -- end configuration --
[INFO] [groovy:execute {execution: default}]
[DEBUG] Classpath:
[DEBUG] file:/C:/dev/trunk/target/classes
[DEBUG] file:/C:/Documents and
Settings/<username>/.m2/repository/commons-logging
/commons-logging/1.1/commons-logging-1.1.jar
[DEBUG] file:/C:/Documents and
Settings/<username>/.m2/repository/asm/asm/2.1/asm
-2.1.jar
[DEBUG] file:/C:/Documents and
Settings/<username>/.m2/repository/log4j/log4j/1.2
.12/log4j-1.2.12.jar
[DEBUG] file:/C:/Documents and
Settings/<username>/.m2/repository/cglib/cglib-nod
ep/2.1_3/cglib-nodep-2.1_3.jar
[DEBUG] file:/C:/Documents and
Settings/<username>/.m2/repository/commons-beanuti
ls/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
[DEBUG] Scriptpath:
[DEBUG] C:\dev\trunk\distribution\src\groovy
[DEBUG] C:\dev\trunk\src\groovy
[DEBUG] C:\dev\..\..\distribution\src\groovy
[DEBUG] Adding reference: ant.PropertyHelper
[DEBUG] Detected Java version: 1.5 in: c:\Program Files\Java\jdk1.5.0_06\jre
[DEBUG] Detected OS: Windows XP
[DEBUG] (org.codehaus.mojo.pluginsupport.logging.Logging) Resetting
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
Illegal character in path at index 18: file:/C:/Documents and
Settings/<username>/.m2
/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException
at
org.codehaus.mojo.pluginsupport.MojoSupport.execute(MojoSupport.java:
137)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:420)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
... 16 more
Caused by: java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:11
9)
at
org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at
org.codehaus.mojo.groovy.util.AntBuilder.createProject(AntBuilder.jav
a:65)
at
org.codehaus.mojo.groovy.util.AntBuilder.<init>(AntBuilder.java:39)
at
org.codehaus.mojo.groovy.ExecuteMojo.doExecute(ExecuteMojo.java:176)
at
org.codehaus.mojo.pluginsupport.MojoSupport.execute(MojoSupport.java:
122)
... 18 more
Caused by: java.net.URISyntaxException: Illegal character in path at index
18: f
ile:/C:/Documents and
Settings/<username>/.m2/repository/org/apache/ant/ant/1.7.0/ant
-1.7.0.jar
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URI.create(URI.java:840)
... 32 more
> Invalid dependency path on Windows
> ----------------------------------
>
> Key: MGROOVY-64
> URL: http://jira.codehaus.org/browse/MGROOVY-64
> Project: Maven 2.x Groovy Integration
> Issue Type: Bug
> Components: execute
> Affects Versions: 1.0-beta-1
> Environment: Windows XP
> Reporter: Mauro Talevi
> Assignee: Jason Dillon
> Priority: Blocker
> Fix For: 1.0-beta-2
>
>
> On Windows XP - use of AntBuilder in the groovy script is not possible as the
> path to the Ant dependency contains illegal characters.
> Caused by: java.net.URISyntaxException: Illegal character in path at index
> 18:
> file:/C:/Documents and
> Settings/<username>/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
> Presumably the spaces in the "Documents and Settings".
> The problem does not manifest itself in 1.0-alpha-3.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email