问题描述
所以我创建了一个回购和共享的amp项目,每次尝试构建或运行该项目时,它都会失败:
So I created an amp project, both repo and share, and every time I try to build or run the project it fails with:
java.lang.NoClassDefFoundError: de/schlichtherle/truezip/fs/FsSyncExceptionBuilder
at de.schlichtherle.truezip.fs.FsManager.sync(FsManager.java:99)
at de.schlichtherle.truezip.fs.FsSyncShutdownHook$Hook.run(FsSyncShutdownHook.java:93)
Caused by: java.lang.ClassNotFoundException: de.schlichtherle.truezip.fs.FsSyncExceptionBuilder
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
... 2 more
pom.xml
<project [...]>
<modelVersion>4.0.0</modelVersion>
<groupId>com.someco</groupId>
<artifactId>someco-repo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>someco-repo AMP project</name>
<packaging>amp</packaging>
[...]
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-parent</artifactId>
<version>1.1.1</version> // same with 1.1.0
</parent>
可以将模块版本从1.0.0-SNAPSHOT
更改为1.0.0
,但是后来我无法使用快照(或者至少将它们标识为-SNAPSHOT
).
Changing the module version from 1.0.0-SNAPSHOT
to 1.0.0
works, but then I cannot work with snapshots (or at least identify them as -SNAPSHOT
).
有什么想法吗?
推荐答案
这应该可以正常工作.因此,我想知道您的环境中是否存在一些奇怪的问题.您是否有机会删除该库的本地副本(~/.m2/repository/de/schlichterle/truezip
)并重试?
This should actually work. So I wonder if there's something weird in your env. Any chance you can delete the local copy of that library (~/.m2/repository/de/schlichterle/truezip
) and retry?
我想知道您的版本是否损坏.
I wonder if you have a corrupted version.
当您更改版本时,声音听起来很奇怪,
Sounds weird though that it works when you change the version...
这篇关于Alfresco Maven SDK-如果模块版本字符串以"-SNAPSHOT"结尾,则失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!