当前位置: 首页 > 知识库问答 >
问题:

使用maven构建最新轴2的问题

邹高峻
2023-03-14

我从中查看了axis2的最新版本http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/安装了最新的maven。

在执行mvn安装后,我得到了以下信息。请帮帮我,我做错了什么?

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.axis2:axis2-transport-http:bundle:1.7.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.httpcomponents:httpclient:jar -> duplicate declaration of version (?) @ line 116, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Axis2 - Parent
[INFO] Apache Axis2 - Resource bundle
[INFO] Apache Axis2 - Kernel
[INFO] Apache Axis2 - Data Binding
[INFO] Apache Axis2 - Transport - Local
[INFO] Apache Axis2 - Addressing
[INFO] Apache Axis2 - Transport - Base
[INFO] Apache Axis2 - Transport - testkit
[INFO] Apache Axis2 - Transport - HTTP
[INFO] Apache Axis2 - Code Generation
[INFO] Apache Axis2 - ADB Codegen
[INFO] Apache Axis2 - Java2WSDL
[INFO] Apache Axis2 - tool - Repository Maven Plugin
[INFO] Apache Axis2 - Fast Infoset
[INFO] Apache Axis2 - Clustering
[INFO] Apache Axis2 - Scripting
[INFO] Apache Axis2 - SAAJ
[INFO] Apache Axis2 - Metadata
[INFO] Apache Axis2 - JAXWS
[INFO] Apache Axis2 - Test Utilities
[INFO] Apache Axis2 - XMLBeans Data Binding
[INFO] Apache Axis2 - tool - WSDL2Code Maven Plugin
[INFO] Apache Axis2 - JAXWS Integration Tests
[INFO] Apache Axis2 - MTOM Policy
[INFO] Apache Axis2 - spring
[INFO] Apache Axis2 - OSGi Integration
[INFO] Apache Axis2 - Integration
[INFO] Apache Axis2 - JiBX Data Binding
[INFO] Apache Axis2 - JSON
[INFO] Apache Axis2 - MEX
[INFO] Apache Axis2 - MTOM Policy module
[INFO] Apache Axis2 - Ping
[INFO] Apache Axis2 - Version Service
[INFO] Apache Axis2 - SOAP Monitor Servlet
[INFO] Apache Axis2 - SOAP Monitor Module
[INFO] Apache Axis2 - tool - AAR Maven Plugin
[INFO] Apache Axis2 - tool - Ant Plugin
[INFO] Apache Axis2 - tool - Eclipse Codegen Plugin
[INFO] Apache Axis2 - tool - Eclipse service Plugin
[INFO] Apache Axis2 - tool - Intellij IDEA Plugin
[INFO] Apache Axis2 - tool - Java2WSDL Maven Plugin
[INFO] Apache Axis2 - tool - MAR Maven Plugin
[INFO] Apache Axis2 Simple HTTP server Maven Plugin
[INFO] Axis2 quickstart archetype
[INFO] Axis2 quickstart-web archetype
[INFO] Apache Axis2 - JAXB-RI Data Binding
[INFO] Apache Axis2 - CORBA
[INFO] Apache Axis2 - JAXWS (mar)
[INFO] Apache Axis2 - Web Application module
[INFO] Apache Axis2 - Transport - JMS
[INFO] Apache Axis2 - Transport - Mail
[INFO] Apache Axis2 - Transport - TCP
[INFO] Apache Axis2 - Transport - UDP
[INFO] Apache Axis2 - Transport - XMPP
[INFO] Apache Axis2 - Root
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Axis2 - Parent 1.7.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.1:enforce (default) @ axis2-parent ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ axis2-parent ---
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] 
[INFO] --- maven-install-plugin:2.2:install (default-install) @ axis2-parent ---
[INFO] Installing C:\Axis2\modules\parent\pom.xml to C:\Users\serge\.m2\repository\org\apache\axis2\axis2-parent\1.7.0-SNAPSHOT\axis2-parent-1.7.0-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Axis2 - Resource bundle 1.7.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.1:enforce (default) @ axis2-resource-bundle ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.1:bundle (default) @ axis2-resource-bundle ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ axis2-resource-bundle ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.2:resources (default-resources) @ axis2-resource-bundle ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ axis2-resource-bundle ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.4.2:testResources (default-testResources) @ axis2-resource-bundle ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Axis2\modules\resource-bundle\src\test\resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile) @ axis2-resource-bundle ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.13:test (default-test) @ axis2-resource-bundle ---
[INFO] 
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ axis2-resource-bundle ---
[INFO] Building jar: C:\Axis2\modules\resource-bundle\target\axis2-resource-bundle-1.7.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-install-plugin:2.2:install (default-install) @ axis2-resource-bundle ---
[INFO] Installing C:\Axis2\modules\resource-bundle\target\axis2-resource-bundle-1.7.0-SNAPSHOT.jar to C:\Users\serge\.m2\repository\org\apache\axis2\axis2-resource-bundle\1.7.0-SNAPSHOT\axis2-resource-bundle-1.7.0-SNAPSHOT.jar
[INFO] Installing C:\Axis2\modules\resource-bundle\pom.xml to C:\Users\serge\.m2\repository\org\apache\axis2\axis2-resource-bundle\1.7.0-SNAPSHOT\axis2-resource-bundle-1.7.0-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Axis2 - Kernel 1.7.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.1:enforce (default) @ axis2-kernel ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ axis2-kernel ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.2:resources (default-resources) @ axis2-kernel ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.2:run (process-resources) @ axis2-kernel ---
[INFO] Executing tasks
     [copy] Copying 1 file to C:\Axis2\modules\kernel\target\classes\org\apache\axis2\i18n
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ axis2-kernel ---
[INFO] Compiling 349 source files to C:\Axis2\modules\kernel\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[30,26] error: package javax.mail.internet does not exist

[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[31,26] error: package javax.mail.internet does not exist

[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\DataSourceBuilder.java:[63,62] error: package javax.mail.util does not exist

[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[42,8] error: cannot find symbol

[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[44,21] error: cannot find symbol

[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[45,17] error: cannot find symbol

[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\DataSourceBuilder.java:[60,22] error: no suitable method found for createOMElement(DataSourceBuilder.ByteArrayDataSourceEx,String,OMNamespace)

[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\DataSourceBuilder.java:[80,24] error: cannot find symbol

[INFO] 8 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Axis2 - Parent ............................. SUCCESS [0.437s]
[INFO] Apache Axis2 - Resource bundle .................... SUCCESS [0.328s]
[INFO] Apache Axis2 - Kernel ............................. FAILURE [2.948s]
[INFO] Apache Axis2 - Data Binding ....................... SKIPPED
[INFO] Apache Axis2 - Transport - Local .................. SKIPPED
[INFO] Apache Axis2 - Addressing ......................... SKIPPED
[INFO] Apache Axis2 - Transport - Base ................... SKIPPED
[INFO] Apache Axis2 - Transport - testkit ................ SKIPPED
[INFO] Apache Axis2 - Transport - HTTP ................... SKIPPED
[INFO] Apache Axis2 - Code Generation .................... SKIPPED
[INFO] Apache Axis2 - ADB Codegen ........................ SKIPPED
[INFO] Apache Axis2 - Java2WSDL .......................... SKIPPED
[INFO] Apache Axis2 - tool - Repository Maven Plugin ..... SKIPPED
[INFO] Apache Axis2 - Fast Infoset ....................... SKIPPED
[INFO] Apache Axis2 - Clustering ......................... SKIPPED
[INFO] Apache Axis2 - Scripting .......................... SKIPPED
[INFO] Apache Axis2 - SAAJ ............................... SKIPPED
[INFO] Apache Axis2 - Metadata ........................... SKIPPED
[INFO] Apache Axis2 - JAXWS .............................. SKIPPED
[INFO] Apache Axis2 - Test Utilities ..................... SKIPPED
[INFO] Apache Axis2 - XMLBeans Data Binding .............. SKIPPED
[INFO] Apache Axis2 - tool - WSDL2Code Maven Plugin ...... SKIPPED
[INFO] Apache Axis2 - JAXWS Integration Tests ............ SKIPPED
[INFO] Apache Axis2 - MTOM Policy ........................ SKIPPED
[INFO] Apache Axis2 - spring ............................. SKIPPED
[INFO] Apache Axis2 - OSGi Integration ................... SKIPPED
[INFO] Apache Axis2 - Integration ........................ SKIPPED
[INFO] Apache Axis2 - JiBX Data Binding .................. SKIPPED
[INFO] Apache Axis2 - JSON ............................... SKIPPED
[INFO] Apache Axis2 - MEX ................................ SKIPPED
[INFO] Apache Axis2 - MTOM Policy module ................. SKIPPED
[INFO] Apache Axis2 - Ping ............................... SKIPPED
[INFO] Apache Axis2 - Version Service .................... SKIPPED
[INFO] Apache Axis2 - SOAP Monitor Servlet ............... SKIPPED
[INFO] Apache Axis2 - SOAP Monitor Module ................ SKIPPED
[INFO] Apache Axis2 - tool - AAR Maven Plugin ............ SKIPPED
[INFO] Apache Axis2 - tool - Ant Plugin .................. SKIPPED
[INFO] Apache Axis2 - tool - Eclipse Codegen Plugin ...... SKIPPED
[INFO] Apache Axis2 - tool - Eclipse service Plugin ...... SKIPPED
[INFO] Apache Axis2 - tool - Intellij IDEA Plugin ........ SKIPPED
[INFO] Apache Axis2 - tool - Java2WSDL Maven Plugin ...... SKIPPED
[INFO] Apache Axis2 - tool - MAR Maven Plugin ............ SKIPPED
[INFO] Apache Axis2 Simple HTTP server Maven Plugin ...... SKIPPED
[INFO] Axis2 quickstart archetype ........................ SKIPPED
[INFO] Axis2 quickstart-web archetype .................... SKIPPED
[INFO] Apache Axis2 - JAXB-RI Data Binding ............... SKIPPED
[INFO] Apache Axis2 - CORBA .............................. SKIPPED
[INFO] Apache Axis2 - JAXWS (mar) ........................ SKIPPED
[INFO] Apache Axis2 - Web Application module ............. SKIPPED
[INFO] Apache Axis2 - Transport - JMS .................... SKIPPED
[INFO] Apache Axis2 - Transport - Mail ................... SKIPPED
[INFO] Apache Axis2 - Transport - TCP .................... SKIPPED
[INFO] Apache Axis2 - Transport - UDP .................... SKIPPED
[INFO] Apache Axis2 - Transport - XMPP ................... SKIPPED
[INFO] Apache Axis2 - Root ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.852s
[INFO] Finished at: Wed Jul 31 07:25:36 CDT 2013
[INFO] Final Memory: 35M/362M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project axis2-kernel: Compilation failure: Compilation failure:
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[30,26] error: package javax.mail.internet does not exist
[ERROR] 
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[31,26] error: package javax.mail.internet does not exist
[ERROR] 
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\DataSourceBuilder.java:[63,62] error: package javax.mail.util does not exist
[ERROR] 
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[42,8] error: cannot find symbol
[ERROR] 
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[44,21] error: cannot find symbol
[ERROR] 
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\MIMEBuilder.java:[45,17] error: cannot find symbol
[ERROR] 
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\DataSourceBuilder.java:[60,22] error: no suitable method found for createOMElement(DataSourceBuilder.ByteArrayDataSourceEx,String,OMNamespace)
[ERROR] 
[ERROR] \Axis2\modules\kernel\src\org\apache\axis2\builder\DataSourceBuilder.java:[80,24] error: cannot find symbol
[ERROR] -> [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 <goals> -rf :axis2-kernel

这是pom的部分,因为整个东西太大了

<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <parent>
        <groupId>org.apache</groupId>
        <artifactId>apache</artifactId>
        <version>8</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2</artifactId>
    <version>1.7.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>Apache Axis2 - Root</name>
    <inceptionYear>2004</inceptionYear>
    <url>http://axis.apache.org/axis2/java/core/</url>
    <issueManagement>
        <system>jira</system>
        <url>http://issues.apache.org/jira/browse/AXIS2</url>
    </issueManagement>
    <modules>
        <module>modules/resource-bundle</module> <!-- Must be first in the list! -->
        <module>modules/adb</module>
        <module>modules/adb-codegen</module>
        <module>modules/addressing</module>
        <module>modules/codegen</module>
        <module>modules/fastinfoset</module>
        <module>modules/integration</module>
        <module>modules/java2wsdl</module>
        <module>modules/jibx</module>
        <module>modules/json</module>
        <module>modules/kernel</module>
        <module>modules/mex</module>
        <module>modules/mtompolicy</module>
        <module>modules/mtompolicy-mar</module>
        <module>modules/parent</module>
        <module>modules/ping</module>
        <module>modules/samples/version</module>
        <module>modules/soapmonitor/servlet</module>
        <module>modules/soapmonitor/module</module>
        <module>modules/spring</module>
        <module>modules/testutils</module>
        <module>modules/tool/axis2-aar-maven-plugin</module>
        <module>modules/tool/axis2-ant-plugin</module>
        <module>modules/tool/axis2-eclipse-codegen-plugin</module>
        <module>modules/tool/axis2-eclipse-service-plugin</module>
        <module>modules/tool/axis2-idea-plugin</module>
        <module>modules/tool/axis2-java2wsdl-maven-plugin</module>
        <module>modules/tool/axis2-mar-maven-plugin</module>
        <module>modules/tool/axis2-repo-maven-plugin</module>
        <module>modules/tool/axis2-wsdl2code-maven-plugin</module>
        <module>modules/tool/simple-server-maven-plugin</module>
        <module>modules/tool/archetype/quickstart</module>
        <module>modules/tool/archetype/quickstart-webapp</module>
        <module>modules/webapp</module>
        <module>modules/xmlbeans</module>
        <module>modules/scripting</module>
        <module>modules/jaxbri</module>
        <module>modules/metadata</module>
        <module>modules/saaj</module>
        <module>modules/jaxws</module>
        <module>modules/jaxws-mar</module>
        <module>modules/jaxws-integration</module>
        <module>modules/clustering</module>
        <module>modules/corba</module>
        <module>modules/osgi</module>
        <module>modules/transport/local</module>
        <module>modules/transport/http</module>
        <module>modules/transport/base</module>
        <module>modules/transport/jms</module>
        <module>modules/transport/mail</module>
        <module>modules/transport/tcp</module>
        <module>modules/transport/testkit</module>
        <module>modules/transport/udp</module>
        <module>modules/transport/xmpp</module>
    </modules>
    <profiles>
        <profile>
            <!-- This profile needs to be activated when doing the release:prepare
                 (by adding -Peverything) to make sure that the release plugin updates
                 the version numbers of all relevant submodules. It must contain
                 all modules not built by default, i.e. the set of modules used
                 by this profile must be the union of the module sets of all
                 other profiles. -->
            <id>everything</id>
            <modules>
                <module>modules/distribution</module>
                <module>modules/samples/java_first_jaxws</module>
                <module>modules/samples/jaxws-addressbook</module>
                <module>modules/samples/jaxws-calculator</module>
                <module>modules/samples/jaxws-interop</module>
                <module>modules/samples/jaxws-samples</module>
                <module>modules/samples/jaxws-version</module>
            </modules>
        </profile>
        <profile>
            <id>apache-release</id>
            <modules>
                <module>modules/distribution</module>
            </modules>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <version>1.0-beta-1</version>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <configuration>
                                    <rules>
                                        <!-- We need Maven 2.1 because the prepare-package phase
                                             doesn't exist in Maven 2.0 -->
                                        <requireMavenVersion>
                                            <version>2.1.0</version>
                                        </requireMavenVersion>
                                    </rules>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.gmaven</groupId>
                        <artifactId>gmaven-plugin</artifactId>
                        <version>1.2</version>
                        <executions>
                            <execution>
                                <id>generate-timestamp</id>
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                                    <source>
                                        import java.util.Date 
                                        import java.text.MessageFormat 
                                        project.properties['buildTimestamp'] = MessageFormat.format("{0,date,dd-MM-yyyy}", new Date())
                                    </source>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <!-- Configure an additional execution. The configuration
                             is the same as the one specified together with the execution
                             in the pre-site phase.  -->
                        <executions>
                            <execution>
                                <id>distribution-javadoc</id>
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>aggregate</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-site-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>site</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <executions>
                            <execution>
                                <!-- Override the execution defined in org.apache:apache
                                     so that the source-release assembly is not built.
                                     We define our own source distribution in modules/distribution. -->
                                <id>source-release-assembly</id>
                                <configuration>
                                    <phase>package</phase>
                                    <goals>
                                        <goal>single</goal>
                                    </goals>
                                    <skipAssembly>true</skipAssembly>
                                </configuration>
                            </execution>
                            <execution>
                                <id>package-other-distributions</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>single</goal>
                                </goals>
                                <configuration>
                                    <descriptors>
                                        <descriptor>src/main/assembly/doc.xml</descriptor>
                                    </descriptors>
                                </configuration>
                            </execution>
                            <execution>
                                <id>prepare-dists</id>
                                <!-- Must be done in the install phase after the checksum and signature for
                                     the docs distribution has been generated. -->
                                <phase>install</phase>
                                <goals>
                                    <goal>single</goal>
                                </goals>
...

共有2个答案

李谦
2023-03-14

从主干构建源代码是不好的做法,因为它正在开发中。。。请从下载一个版本http://axis.apache.org/axis2/java/core/download.cgi并按规定准备好您的环境http://axis.apache.org/axis2/java/core/docs/installationguide.html#env-src

彭朝
2023-03-14

你错过了javax。邮政互联网和javax。邮政util库。在你发布的输出中清楚地表明了这一点。你需要将它们添加到你的项目中。

可能会有更多的问题,但即使没有发布你的pom,我们也无法知道。

此外,一个简单的谷歌搜索就可以提供答案。

 类似资料:
  • 问题内容: 我对Maven的口头禅还比较陌生,但是我正在尝试使用Maven构建命令行可运行jar。我已经设置了依赖项,但是当我运行并尝试运行jar时,会发生两件事。首先,没有找到可纠正的主类。更正此错误后,在运行时出现错误,指出找不到类。 Maven没有将我的依赖库打包在jar中,因此我无法将jar作为独立应用程序运行。我该如何纠正? 问题答案: 最简单的方法是使用和预定义描述符创建一个程序集。您

  • 我是maven的新手,并用hello World创建了一个简单的maven项目。当我尝试运行Maven项目时,它会说:- [错误]尚未为此生成指定目标。必须指定有效的生命周期阶段或格式为:或:[:]:的目标。可用的生命周期阶段有:验证、初始化、生成源、过程源、生成资源、过程资源、编译、过程类、生成测试源、过程测试源、生成测试资源、过程测试资源、测试编译、过程测试类、测试、准备包、包、集成前测试、集

  • 我正试图使用Maven构建一个新的Grails2.5.0应用程序,但不断出现与GrailsMaven插件相关的错误。 复制步骤: grails创建应用程序测试 我在JDK 1.7上运行这个。 同样的例子也适用于Grails2.4.4。我是否遗漏了什么,或者这是2.5.0中的一个bug? 波姆。XML

  • 重新安装了Eclipse 4.9,无法再在Eclipse中构建Java项目(仍然可以从命令行构建)。 控制台输出并没有给我太多的继续下去。。。只是抱怨插件。。。 我在OSX High Sierra上运行Eclipse 4.9,带JDK 1。8_191。Maven版本是3.5.4,Eclipse配置为使用这个外部Maven。JAVA_HOME和M2_HOME已经设置好(尽管我认为OSX不需要它们)。

  • 我试图使用maven插件为maven java项目添加一个源文件夹到Eclipse。 从http://mojo.codehaus.org/build-helper-maven-plugin/usage.html上的文档来看,这应该是正确的吧?文件夹target/sources/mygeneratedfiles存在。