0
我有以下两束:第谷包括捆绑成另一个
Master: - lib/ - META-INT/MANIFEST.MF - plugin.xml - build.properties Dependency: - src/some_package/ - META-INT/MANIFEST.MF - build.properties
而且我想使用Maven-第谷到最终使用以下罐结构:
Master.jar: - lib/Dependency.jar: - some_package/ - META-INT/MANIFEST.MF - build.properties - META-INF/MANIFEST.MF - plugin.xml - build.properties
任何想法我怎么能做到这一点?我想我将不得不使用汇编插件,但我正在努力与Maven部分...
Thx!
编辑:我目前这个pom.xml的试穿主
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2011, EclipseSource and others All rights reserved. This
program and the accompanying materials are made available under the terms
of the Eclipse Public License v1.0 which accompanies this distribution, and
is available at http://www.eclipse.org/legal/epl-v10.html -->
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>group</groupId>
<artifactId>plugins</artifactId>
<version>0.0.0</version>
</parent>
<artifactId>Master</artifactId>
<packaging>eclipse-plugin</packaging>
<version>0.0.0</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-version}</version>
<executions>
<execution>
<id>copy-dependency</id>
<phase>verify</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<item>
<groupId>${project.groupId}</groupId>
<artifactId>Dependency</artifactId>
<version>${project.version}</version>
</item>
</artifactItems>
<outputDirectory>lib</outputDirectory>
<stripVersion>true</stripVersion>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
您可以显示您当前的pom吗?除了汇编插件,你可能会看到maven树荫插件 – Adonis
@asettouf我已经使用当前POM更新了我的文章,但这些文章并不符合我的期望。我会看看这个插件thx! – Jerome
问题是在这里,依赖插件不包括jar中的依赖关系。你要么需要程序集插件,要么可能是阴影插件 – Adonis