thanks for your quick reply. I have now tried what you suggested and the outcome was not the expected; running the amp-to-war in the amp-project was successful.
1. Create an allinone archetype project. (alfresco-allinone-archetype, number 9)
2. Create an amp archetype project (alfresco-amp-archetype, number 8) and place this somewhere else (ie not inside the allinone project)
3. In the allinone/alfreso/pom.xml add the dependency to you new amp project (number 2), I'm posting the entire pom.xml at the bottom of this message for you to validate.
4. Running mvn clean install first in the amp-project, then in allinone produces the following output with the debug flag set:
Any help greatly appreciated.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project alfresco: Error unpacking file [c:\Maven3Repo\com\billerby\alfresco\testamp\1.0-SNAPSHOT\testamp-1.0-SNAPSHOT.amp]to [C:\projekt\testAllInOne\alfresco\target\war\work\com.billerby.alfresco\testamp]: Error while expanding c:\Maven3Repo\com\billerby\alfresco\testamp\1.0-SNAPSHOT\testamp-1.0-SNAPSHOT.amp: Problems while installing c:\Maven3Repo\com\billerby\alfresco\testamp\1.0-SNAPSHOT\testamp-1.0-SNAPSHOT.amp onto C:\projekt\testAllInOne\alfresco\target\alfresco: 01010000 An IO error was encountered during deployment of the AMP into the WAR: C:\projekt\testAllInOne\alfresco\target\alfresco\WEB-INF\classes\alfresco\module\backup\ae0c7a40-6c46-11e2-bcd4-1fd7cb50abce.bin -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project alfresco: Error unpacking file [c:\Maven3Repo\com\billerby\alfresco\testamp\1.0-SNAPSHOT\testamp-1.0-SNAPSHOT.amp]to [C:\projekt\testAllInOne\alfresco\target\war\work\com.billerby.alfresco\testamp]
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
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:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error unpacking file [c:\Maven3Repo\com\billerby\alfresco\testamp\1.0-SNAPSHOT\testamp-1.0-SNAPSHOT.amp]to [C:\projekt\testAllInOne\alfresco\target\war\work\com.billerby.alfresco\testamp]
at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.doUnpack(AbstractWarPackagingTask.java:256)
at org.apache.maven.plugin.war.packaging.OverlayPackagingTask.unpackOverlay(OverlayPackagingTask.java:122)
at org.apache.maven.plugin.war.packaging.OverlayPackagingTask.performPackaging(OverlayPackagingTask.java:73)
at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:472)
at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:404)
at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:215)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:177)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Error while expanding c:\Maven3Repo\com\billerby\alfresco\testamp\1.0-SNAPSHOT\testamp-1.0-SNAPSHOT.amp
at org.alfresco.maven.plugin.archiver.AmpUnArchiver.execute(AmpUnArchiver.java:66)
at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:119)
at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.doUnpack(AbstractWarPackagingTask.java:252)
... 27 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Problems while installing c:\Maven3Repo\com\billerby\alfresco\testamp\1.0-SNAPSHOT\testamp-1.0-SNAPSHOT.amp onto C:\projekt\testAllInOne\alfresco\target\alfresco
at org.alfresco.maven.plugin.archiver.AmpUnArchiver.execute(AmpUnArchiver.java:61)
... 29 more
Caused by: org.alfresco.repo.module.tool.ModuleManagementToolException: 01010000 An IO error was encountered during deployment of the AMP into the WAR
at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:283)
at org.alfresco.maven.plugin.archiver.AmpUnArchiver.execute(AmpUnArchiver.java:54)
... 29 more
Caused by: java.nio.file.NoSuchFileException: C:\projekt\testAllInOne\alfresco\target\alfresco\WEB-INF\classes\alfresco\module\backup\ae0c7a40-6c46-11e2-bcd4-1fd7cb50abce.bin
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:229)
at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:430)
at java.nio.file.Files.newOutputStream(Files.java:170)
at de.schlichtherle.truezip.fs.nio.file.FileOutputSocket$1OutputStream.<init>(FileOutputSocket.java:219)
at de.schlichtherle.truezip.fs.nio.file.FileOutputSocket.newOutputStream(FileOutputSocket.java:234)
at de.schlichtherle.truezip.socket.IOSocket.copy(IOSocket.java:107)
at de.schlichtherle.truezip.file.TBIO.cp0(TBIO.java:221)
at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:179)
at de.schlichtherle.truezip.file.TBIO.cp_r(TBIO.java:138)
at de.schlichtherle.truezip.file.TFile.cp_rp(TFile.java:3211)
at org.alfresco.repo.module.tool.ModuleManagementTool.calculateCopyToWar(ModuleManagementTool.java:580)
at org.alfresco.repo.module.tool.ModuleManagementTool.calculateChanges(ModuleManagementTool.java:373)
at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:248)
... 30 more
[ERROR]