Giter Club home page Giter Club logo

Comments (8)

ntbshishen avatar ntbshishen commented on June 8, 2024 1

我也是这个问题,看了很多回复,好像是maven版本太高或者太低都不行,3.5.x好像可以

from datax.

zipper-meng avatar zipper-meng commented on June 8, 2024 1

assembly:assembly 是 maven-assembly-plugin 2.x 的编译目标,3.x 版本没有这个,取而代之的是 assembly:single。

而 package.xml 中的 id 属性,在 2.2 的正式版本后,就成了必填项了,不能为空值,所以,你应该使用 maven-plugin-plugin-2.2 的 Beta 或 RC 版本,比如 2.2-beta-5。为何不使用 2.1 版本,是因为 datax 在 package.xml 中,使用了一个只能在 2.2 或更高的版本中才能识别的属性 useProjectArtifact。

from datax.

dengchuncui avatar dengchuncui commented on June 8, 2024

自己改呗,也不难

from datax.

IKE612 avatar IKE612 commented on June 8, 2024

这个要怎么改?

from datax.

gaorenyusi avatar gaorenyusi commented on June 8, 2024

用idea中的maven来进行编译

from datax.

as7212325 avatar as7212325 commented on June 8, 2024

MAVEN 3.5.x版本一把过 其他版本都不行

from datax.

kaiyuansos avatar kaiyuansos commented on June 8, 2024

用现成的tar.gz 包,无需 maven, 只需要java即可运行

from datax.

mizuhokaga avatar mizuhokaga commented on June 8, 2024

assembly:assembly 是 maven-assembly-plugin 2.x 的编译目标,3.x 版本没有这个,取而代之的是 assembly:single。

而 package.xml 中的 id 属性,在 2.2 的正式版本后,就成了必填项了,不能为空值,所以,你应该使用 maven-plugin-plugin-2.2 的 Beta 或 RC 版本,比如 2.2-beta-5。为何不使用 2.1 版本,是因为 datax 在 package.xml 中,使用了一个只能在 2.2 或更高的版本中才能识别的属性 useProjectArtifact。

就是这个问题对于高版本 maven (如 3.6.X、3.9.X), 根pom.xml maven-assembly-plugin需要指定版本

  <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-3</version>
                ...
            </plugin>
<plugins>

from datax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.