You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2022/11/23 20:58:00 UTC
[jira] [Commented] (MDEP-777) String index out of range when using FlattenFileMapper
[ https://issues.apache.org/jira/browse/MDEP-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17637956#comment-17637956 ]
Elliotte Rusty Harold commented on MDEP-777:
--------------------------------------------
What's the chance that the bug is in org.codehaus.plexus.components.io.filemappers.FlattenFileMapper and not in Maven at all? A stack trace might tell us which project has the bug.
> String index out of range when using FlattenFileMapper
> ------------------------------------------------------
>
> Key: MDEP-777
> URL: https://issues.apache.org/jira/browse/MDEP-777
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: unpack
> Affects Versions: 3.2.0
> Reporter: Lieven Cardoen
> Priority: Minor
> Fix For: waiting-for-feedback
>
>
> When using FlattenFileMapper I'm getting a *String index out of range 0*
> If I comment out the FileMappers then everything runs fine.
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>3.2.0</version>
> <executions>
> <!-- Retrieve databases -->
> <execution>
> <id>copy-databases-to-dbf-folder</id>
> <phase>install</phase>
> <goals>
> <goal>unpack</goal>
> </goals>
> <configuration>
> <artifactItems>
> <artifactItem>
> <groupId>be.mips.appl.database</groupId>
> <artifactId>${db.variant}-db-oe${oe.major.version}-${os.classifier}</artifactId>
> <version>${be.mips.appl.database.version}</version>
> <type>zip</type>
> <overWrite>true</overWrite>
> <!-- Next fileMapper should get rid of the folders schema_holder and slq_scripts when extracting the artifact -->
> <fileMappers>
> <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FlattenFileMapper"/>
> </fileMappers>
> </artifactItem>
> <artifactItem>
> <groupId>be.mips.appl.database</groupId>
> <artifactId>name-db-oe${oe.major.version}-${os.classifier}</artifactId>
> <version>${be.mips.appl.database.version}</version>
> <type>zip</type>
> <overWrite>true</overWrite>
> </artifactItem>
> </artifactItems>
> <includes>**/*</includes>
> <outputDirectory>${custom.build.directory}/dbf</outputDirectory>
> <overWriteReleases>true</overWriteReleases>
> <overWriteSnapshots>true</overWriteSnapshots>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> {code}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.2.0:unpack (copy-databases-to-dbf-folder) on project build-appl: Execution copy-databases-to-dbf-folder of goal org.apache.maven.plugins:maven-dependency-plugin:3.2.0:unpack failed: String index out of range: 0 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
> {code}
> The ZIP contains two folders with files in both of the folders. So no empty folders.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)