开发者

Artifacts with classifiers not copying to local repository

I am using Maven version 2.0.7 and I am using the javadoc and source plugins to cr开发者_如何学运维eate additional artifacts for deploy. All of the generated artifacts are deploying correctly but it seems that when someone else builds they are only getting the specific artifact they specify. I don't want to have to add the source and javadoc artifacts as explicit dependencies i nthe other projects but I can't see any other way without changing something.

  • Is this expected behaviour for the Maven version I'm using?
  • What version does this stop, if any?
  • Is there another way around the problem?


I don't want to have to add the source and javadoc artifacts as explicit dependencies in the other projects but I can't see any other way without changing something.

You can use the following goals to get the sources artifacts and the javadoc artifacts respectively:

mvn dependency:sources
mvn dependency:resolve -Dclassifier=javadoc

The three major IDEs offer similar features (probably using the same goals under the hood).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜