cancel
Showing results for 
Search instead for 
Did you mean: 

Update project to new 2.1 sdk issues

gmccullough
Champ on-the-rise
Champ on-the-rise
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
3 REPLIES 3

hardik1512
Star Contributor
Star Contributor
Hello,

This is a maven issue. You need to add js extension as non filtering. To do that,

You can edit alfresco-sdk-parent-2.0.0.pom file which is located @ .m2\repository\org\alfresco\maven\alfresco-sdk-parent\2.0.0
in your local maven repository.  Search for nonFilteredFileExtension tag and add below entry in that

<nonFilteredFileExtension>js</nonFilteredFileExtension>

This should solve the issue. You can also have a look @ https://github.com/Alfresco/alfresco-sdk/issues/254

Hope this helps.

Hardik, thanks for the info.  I've been able to get this to build now, without the filtering addition, but not sure what the fix was.  Had maven 3.3.3, went back to 3.2.5.  Made sure windows java home was pointing to correct jdk.  Tried to make sure the js files (only 2 out of 3 caused issues) were encoded properly.  However, I can't reproduce the error now.  Thanks for looking, and thanks for pointing to more help, I will start checking the sdk issues.

sephiroth
Champ in-the-making
Champ in-the-making
i'm tying to run a project in netbeans IDE but i get following error,  please help me step by step

Usage:    [rbm minst-labels.gz minst-images.gz]
    [dbn minst-images.gz minst-labels.gz dbn.bin]
    [gen dbn.bin]
————————————————————————
BUILD FAILURE
————————————————————————
Total time: 0.693s
Finished at: Sun Jan 10 14:48:13 IRST 2016
Final Memory: 5M/286M
————————————————————————
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project rbm-dbn-mnist: Command execution failed. Process exited with an error: -1 (Exit value: -1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException