1

I have a project that some ant files target to extract different packages (I'm the guy who comes and see this ugliness, not the one who did it).

So, one package, one ant, one jar.

And different OTHERS projects use one or more of this jars.

I can't touch the folder structure.

I have to migrate this (and the other projects) to maven, but other than make several poms that exclude all others packages and compile it's own, I don't know how to solve this problem.

I'm not very good with ant, but I read here that ant-task can install into the local repository, so it can make easy for the dependent projects to use those jars.

Can anyone can help me with an example of how to use the ant-task-plugin to achive this, or a better approach?

4

1 回答 1

0

我所做的和为我工作的是添加一个新的 maven-jar 项目并更改源文件夹,使其指向提到的文件夹。然后我排除这些包,以便它可以生成所需的 jar。对我必须以这种方式制作的每个罐子重复此操作。

将此项目添加到父 pom,以便可以使用依赖项目立即创建。

希望这对某人有所帮助。

于 2015-02-06T00:40:57.467 回答