Я создаю две банки из одного проекта maven, где добавляются теги include / exclude. Но файлы из моей второй банки переопределяются первой - PullRequest
0 голосов
/ 02 марта 2020

При создании двух банок из одного проекта maven я хочу получить

  1. банку с пакетом ab c .pqr. *
  2. Вторая банка с исключением ab c .pqr. * Пакет. Ниже я пытаюсь добиться того же самого, но один мой кувшин заменяется другим.
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>2.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <id>assesspolicy</id>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <!-- <minimizeJar>true</minimizeJar> -->
                            <transformers>
                                <transformer
                                    implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <mainClass>..</mainClass>
                                </transformer>
                            </transformers>
                            <filters>
                                <filter>
                                    <artifact>groupId:artifactId</artifact>
                                    <includes>
                                        <include>..</include>
                                        <include>log4j2.properties</include>
                                    </includes>
                                </filter>
                            </filters>
                        </configuration>
                    </execution>
                    <execution>
                        <phase>package</phase>
                        <id>datapipeline</id>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <classifier>client</classifier>
                            <filters>
                                <filter>
                                    <artifact>artifactId:groupId</artifact>
                                    <includes>
                                        <include>..</include>
                                        <include>..</include>
                                    </includes>
                                </filter>
                            </filters>
                            <finalName>datapipeline</finalName>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
     <plugins>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...