Maven 无法使用mvn生成FOP

Maven 无法使用mvn生成FOP,maven,apache-fop,Maven,Apache Fop,在使用svn更新FOP的代码之后,我尝试使用mvn构建可执行文件,因为ant即将被弃用,但我在尝试构建FOP util时出错。这是我运行的脚本: #!/bin/bash echo About to fetch updates: svn co https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk || exit echo About to build FOP: mvn -f trunk clean install && ec

在使用
svn
更新FOP的代码之后,我尝试使用
mvn
构建可执行文件,因为
ant
即将被弃用,但我在尝试构建
FOP util
时出错。这是我运行的脚本:

#!/bin/bash
echo About to fetch updates:
svn co https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk || exit

echo About to build FOP:
mvn -f trunk clean install && echo Done. || echo Failed.
脚本结束时回显
失败。

About to fetch updates:

Fetching external item into 'trunk/docs':
Checked out external at revision 1883833.

Checked out revision 1883833.
About to build FOP:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache FOP Parent                                                  [pom]
[INFO] Apache FOP Utilities                                               [jar]
[INFO] Apache FOP Events                                                  [jar]
[INFO] Apache FOP Core                                                    [jar]
[INFO] Apache FOP All-In-One                                              [jar]
[INFO] Apache FOP Sandbox                                                 [jar]
[INFO] Apache FOP Servlet                                                 [war]
[INFO] Apache FOP Transcoder                                              [jar]
[INFO] Apache FOP Transcoder All-In-One                                   [jar]
[INFO] 
[INFO] -----------------< org.apache.xmlgraphics:fop-parent >------------------
[INFO] Building Apache FOP Parent 2.3.0-SNAPSHOT                          [1/9]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-parent ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ fop-parent ---
[INFO] Installing /home/pf/MEGA/prg/java/fop/trunk/pom.xml to /home/pf/.m2/repository/org/apache/xmlgraphics/fop-parent/2.3.0-SNAPSHOT/fop-parent-2.3.0-SNAPSHOT.pom
[INFO] 
[INFO] ------------------< org.apache.xmlgraphics:fop-util >-------------------
[INFO] Building Apache FOP Utilities 2.3.0-SNAPSHOT                       [2/9]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fop-util ---
[INFO] Deleting /home/pf/MEGA/prg/java/fop/trunk/fop-util/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ fop-util ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pf/MEGA/prg/java/fop/trunk/fop-util/src/main/resources
[INFO] Copying 2 resources to META-INF
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ fop-util ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/pf/MEGA/prg/java/fop/trunk/fop-util/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache FOP Parent 2.3.0-SNAPSHOT:
[INFO] 
[INFO] Apache FOP Parent .................................. SUCCESS [  1.409 s]
[INFO] Apache FOP Utilities ............................... FAILURE [  1.814 s]
[INFO] Apache FOP Events .................................. SKIPPED
[INFO] Apache FOP Core .................................... SKIPPED
[INFO] Apache FOP All-In-One .............................. SKIPPED
[INFO] Apache FOP Sandbox ................................. SKIPPED
[INFO] Apache FOP Servlet ................................. SKIPPED
[INFO] Apache FOP Transcoder .............................. SKIPPED
[INFO] Apache FOP Transcoder All-In-One ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.939 s
[INFO] Finished at: 2020-11-26T09:58:44+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project fop-util: Compilation failure -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :fop-util
Failed.

我不知道如何解决这个问题。

我找到了一个解决方案,删除存储库的本地副本,再次下载并重新编译所有内容:

rm -rf trunk
svn co https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
mvn -f trunk clean install

使用
-X
开关重新运行Maven,以启用完整的调试日志记录,并向我们展示您的
pom.xml
@JanezKuhar:我的荣幸。我会这样做,并相应地编辑我上面的帖子。@JanezKuhar:我找到了一种方法来发布
mvn-X…
命令的巨大输出:通过链接到云中,正如你在上面编辑的答案中所看到的。有人否决了我的问题。奇怪,因为一个类似的问题得到了167张选票,我不明白他为什么这么做,我为什么不。伤心,因为我真的面临一个问题。
rm -rf trunk
svn co https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
mvn -f trunk clean install