AnsweredAssumed Answered

Update project to new 2.1 sdk issues

Question asked by gmccullough on Jun 15, 2015
Latest reply on Jun 16, 2015 by gmccullough
I'm trying to update a project from 2.0.0-beta sdk and 5.0.a alfresco to 2.1 sdk with 5.0.d alfresco.  Changed the versions in the pom, run maven and I get the following error:

.
.
.
[DEBUG] file meeting-agendas.get.js has a filtered file extension
[DEBUG] filtering C:\Users\Gene\Documents\GitHub\city-repo\src\main\amp\config\alfresco\extension\templates\webscripts\gov\clintonok\meeting-agendas.get.js to C:\Users\Gene\Documents\GitHub\city-repo\target\classes\..\city-repo\config\alfresco\extension\templates\webscripts\gov\clintonok\meeting-agendas.get.js
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 5.854 s
[INFO] Finished at: 2015-06-15T09:45:39-06:00
[INFO] Final Memory: 21M/309M
[INFO] ————————————————————————
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources (default-resources) on project city-repo: Mark invalid -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources (default-resources) on project city-repo: Mark invalid
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
   at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
   at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
   at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
   at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Mark invalid
   at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:306)
   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
   … 19 more
Caused by: org.apache.maven.shared.filtering.MavenFilteringException: Mark invalid
   at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:129)
   at org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering.filterResources(DefaultMavenResourcesFiltering.java:264)
   at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:300)
   … 21 more
Caused by: java.io.IOException: Mark invalid
   at java.io.BufferedReader.reset(BufferedReader.java:512)
   at org.apache.maven.shared.filtering.MultiDelimiterInterpolatorFilterReaderLineEnding.read(MultiDelimiterInterpolatorFilterReaderLineEnding.java:416)
   at org.apache.maven.shared.filtering.MultiDelimiterInterpolatorFilterReaderLineEnding.read(MultiDelimiterInterpolatorFilterReaderLineEnding.java:205)
   at java.io.Reader.read(Reader.java:140)
   at org.apache.maven.shared.utils.io.IOUtil.copy(IOUtil.java:181)
   at org.apache.maven.shared.utils.io.IOUtil.copy(IOUtil.java:168)
   at org.apache.maven.shared.utils.io.FileUtils.copyFile(FileUtils.java:1856)
   at org.apache.maven.shared.utils.io.FileUtils.copyFile(FileUtils.java:1804)
   at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:114)
   … 23 more


I don't see any other errors before this…any insight?

Trying not to have to recreate the project, again…
thanks,
gene

Outcomes