0

プロジェクトでコマンド「mvn package」を実行すると、src/main/resources/META-INF の persistence.xml、persistence.xml.dev、persistence.xml.qa などのリソース ファイルがバンドルにパックされます。ターゲット フォルダーにはリソース ファイル persistence.xml が 1 つしかないため、src フォルダーではなくターゲット フォルダーを参照するように mvn-bundle-plugin を作成する方法を教えてください。私のpom mave-bundle-pluginは以下にあります

<plugin>
                      <groupId>org.apache.felix</groupId>
                      <artifactId>maven-bundle-plugin</artifactId>
                      <extensions>true</extensions>
                      <executions>
                          <execution>
                              <id>bundle</id>
                              <phase>package</phase>
                              <goals>
                                  <goal>bundle</goal>
                              </goals>
                          </execution>
                      </executions>
                      <configuration>
                          <instructions>
                              <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                              <Bundle-Classpath>.</Bundle-Classpath>
                              <Meta-Persistence>META-INF/persistence.xml</Meta-Persistence>
                              <Embed-Dependency>
                                  my-project-api
                              </Embed-Dependency>
                              <Export-Package></Export-Package>
                              <Import-Package>
                                  javax.ws.rs;version="[2.0,3)",
                                  javax.ws.rs.core;version="[2.0,3)",
                                  *</Import-Package>
                         </instructions>
                      </configuration>
</plugin>
4

2 に答える 2