Hi
As I was preparing to build latest WARs for testing I noticed that samples and
DMS modules fail to build (both in reactor mode and individually) with error
message at the end of this email...
In order to fix this your local Maven repository path must NOT have spaces in
it.
The issue occurs "naturally" on Windows platforms because by default maven
repository is located in user's home directory which is located under:
C:\Documents and Settings\[username]\
The fix is fairly simple:
1. edit your MAVEN_HOME\conf\settings.xml
2. add entry:
<localRepository>C:\mycompany\java\maven\repository</localRepository> (of
course you can use any location as long as there are no spaces in it)
That is it....After doing this everything works
Here is an error I was getting:
[INFO]
----------------------------------------------------------------------------
[INFO] Building magnolia-module-samples
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce}]
[INFO] [setproperty:set-property {execution: currentDate}]
[INFO] property magnolia.currentDate set to value 21. October 2007 (scope:
project)
[INFO] property magnolia.niceVersion set to value 3.1 (Snapshot: 21.10.2007
13:50:32) (scope: project)
[INFO] property magnolia.releaseDate set to value 21. October 2007 (scope:
project)
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [jspc:compile {execution: default}]
[WARNING] Compiled JSPs will not be added to the project and web.xml will not
be modified, either because includeInProject is set to false or because the
project's packaging is not 'war'.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
Illegal character in path at index 18: file:/C:/Documents and
Settings/amistric/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Trace
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(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
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.java:65)
at org.codehaus.mojo.groovy.util.AntBuilder.<init>(AntBuilder.java:39)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:563)
at
groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:1864)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:804)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:734)
at
org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.java:143)
at
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:114)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:214)
at
org.codehaus.mojo.groovy.GroovyMojoSupport.getAnt(GroovyMojoSupport.groovy:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:52)
at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:714)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:936)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:2183)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:52)
at
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:714)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:583)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:476)
at
org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:104)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:77)
at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
at
org.codehaus.mojo.groovy.GroovyMojoSupport.getProperty(GroovyMojoSupport.groovy)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getGroovyObjectProperty(ScriptBytecodeAdapter.java:527)
at
org.codehaus.mojo.jspc.CompilationMojoSupport.execute(CompilationMojoSupport.groovy:311)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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: java.net.URISyntaxException: Illegal character in path at index 18:
file:/C:/Documents and
Settings/amistric/.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)
... 64 more
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------