Joe*_*Joe 1 ear plugins dependencies maven-3 maven
环境:
\n我添加了对子模块 pom.xml EJB 的以下依赖项,问题出现了
\n <dependency>\n <groupId>com.sun.xml.ws</groupId>\n <artifactId>jaxws-ri</artifactId>\n <version>2.3.3</version>\n <type>pom</type>\n </dependency>\nRun Code Online (Sandbox Code Playgroud)\npom.xml 根目录
\n <dependencyManagement>\n <dependencies>\n ...\n <dependency>\n <groupId>org.jvnet.mimepull</groupId>\n <artifactId>mimepull</artifactId>\n <version>1.9.13</version>\n </dependency>\n <dependency>\n <groupId>com.sun.activation</groupId>\n <artifactId>jakarta.activation</artifactId>\n <version>1.2.2</version>\n </dependency>\n <dependency>\n <groupId>com.sun.xml.bind</groupId>\n <artifactId>jaxb-jaxb-xjc</artifactId>\n <version>2.3.3</version>\n </dependency>\n <dependency>\n <groupId>com.sun.xml.bind</groupId>\n <artifactId>jaxb-impl</artifactId>\n <version>2.1.13</version>\n </dependency>\n <dependency>\n <groupId>javax.xml.bind</groupId>\n <artifactId>jaxb-api</artifactId>\n <version>2.3.1</version>\n </dependency>\n <dependency>\n <groupId>javax.xml.bing</groupId>\n <artifactId>jaxb-api</artifactId>\n <version>2.3.1</version>\n </dependency>\n ...\n </dependencies>\n </dependencyManagement>\nRun Code Online (Sandbox Code Playgroud)\npom.xml(耳朵)
\n<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\n \n <modelVersion>4.0.0</modelVersion>\n <parent>\n <groupId>es.domain.app</groupId>\n <artifactId>app2</artifactId>\n <version>8.0.0</version>\n </parent>\n\n <artifactId>app-ear</artifactId>\n <packaging>ear</packaging>\n <name>app-ear</name>\n <description>Arxiu d'aplicacio EAR de app</description>\n \n <dependencies>\n <!-- Especificacions i llibreries proporcionades per JBoss -->\n <dependency>\n <groupId>org.jboss.spec</groupId>\n <artifactId>jboss-javaee-8.0</artifactId>\n <type>pom</type>\n <scope>provided</scope>\n </dependency>\n <dependency>\n <groupId>org.slf4j</groupId>\n <artifactId>slf4j-api</artifactId>\n <scope>provided</scope>\n </dependency>\n <!-- M\xc3\xb2duls que van dins l'application.xml -->\n <dependency>\n <groupId>es.domain.app</groupId>\n <artifactId>app-back</artifactId>\n <type>war</type>\n </dependency>\n <dependency>\n <groupId>es.domain.app</groupId>\n <artifactId>app-commons</artifactId>\n <type>jar</type>\n </dependency>\n <dependency>\n <groupId>es.domain.app</groupId>\n <artifactId>app-ejb</artifactId>\n <type>ejb</type>\n </dependency>\n <dependency>\n <groupId>es.domain.app</groupId>\n <artifactId>app-front</artifactId>\n <type>war</type>\n </dependency>\n <dependency>\n <groupId>es.domain.app</groupId>\n <artifactId>app-ws</artifactId>\n <type>ejb</type>\n </dependency>\n </dependencies>\n \n <build>\n <finalName>${project.parent.artifactId}</finalName>\n <plugins>\n <plugin>\n <groupId>org.apache.maven.plugins</groupId>\n <artifactId>maven-ear-plugin</artifactId>\n <configuration>\n <generateApplicationXml>true</generateApplicationXml>\n <defaultLibBundleDir>lib</defaultLibBundleDir>\n <includeLibInApplicationXml>false</includeLibInApplicationXml>\n <outputFileNameMapping>@{artifactId}@-@{version}@.@{extension}@</outputFileNameMapping>\n <version>8</version>\n <archive>\n <manifestEntries>\n <project-version>${project.version}</project-version>\n <project-buildtime>${maven.build.timestamp}</project-buildtime>\n <scm-revision>${buildNumber}</scm-revision>\n </manifestEntries>\n </archive>\n <modules>\n <webModule>\n <groupId>es.domain.app</groupId>\n <artifactId>app-back</artifactId>\n <bundleFileName>app-back.war</bundleFileName>\n <contextRoot>/app2back</contextRoot>\n </webModule>\n <ejbModule>\n <groupId>es.domain.app</groupId>\n <artifactId>app-ejb</artifactId>\n <bundleFileName>app-ejb.jar</bundleFileName>\n </ejbModule>\n <webModule>\n <groupId>es.domain.app</groupId>\n <artifactId>app-front</artifactId>\n <bundleFileName>app-front.war</bundleFileName>\n <contextRoot>/app2front</contextRoot>\n </webModule>\n <ejbModule>\n <groupId>es.domain.app</groupId>\n <artifactId>app-ws</artifactId>\n <bundleFileName>app-ws.jar</bundleFileName>\n </ejbModule>\n </modules>\n </configuration>\n </plugin>\n <plugin>\n <groupId>org.codehaus.cargo</groupId>\n <artifactId>cargo-maven2-plugin</artifactId>\n <configuration>\n <skip>false</skip>\n <deployables>\n <deployable>\n <properties>\n <name>${project.build.finalName}</name>\n </properties>\n </deployable>\n </deployables>\n </configuration>\n </plugin>\n <!-- Defineix la propietat ${buildNumber} que s'empra al filtrat -->\n <plugin>\n <groupId>org.codehaus.mojo</groupId>\n <artifactId>buildnumber-maven-plugin</artifactId>\n </plugin>\n </plugins>\n </build>\n</project>\nRun Code Online (Sandbox Code Playgroud)\n我对以下命令没有任何问题:
\nmvn dependency:resolve\nmvn dependency:tree\nRun Code Online (Sandbox Code Playgroud)\n不知道如何找出发生了什么......
\n错误日志
\n...\n[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:3.1.0:generate-application-xml (default-generate-application-xml) on project app-ear: Failed to initialize ear modules: Unknown artifact type[zip] for relea\nse-documentation -> [Help 1]\n[ERROR]\n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\n[ERROR]\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\n[ERROR]\n[ERROR] After correcting the problems, you can resume the build with the command\n[ERROR] mvn <args> -rf :app-ear\n...\nRun Code Online (Sandbox Code Playgroud)\n
小智 6
尝试排除文档。您可能还必须排除样本。
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-ri</artifactId>
<version>2.3.3</version>
<type>pom</type>
<exclusions>
<exclusion>
<groupId>com.sun.xml.ws</groupId>
<artifactId>release-documentation</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.ws</groupId>
<artifactId>samples</artifactId>
</exclusion>
</exclusions>
</dependency>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2557 次 |
| 最近记录: |