- mvn clean compile assembly:single
Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default-cli) on project : Failed to create assembly: Error adding file-set for to archive: Expected org.codehaus.plexus.components.io.resources.PlexusIoArchivedResourceCollection, got org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection -> [Help 1]
This may happen if by any chances maven project structure is not standard.For example: if it misses src/main/java
Non-standard structure:
src->com->company->package->files
Standard structure:
src->main->java->com->company->package->files
Solution:
- #navigate to project dir where pom.xml exists
- cd PROJECT_DIR
- cd src
- #create directories
- mkdir main/
- mkdir main/java/
- #move source packages & files into src/main/java directory.
- mv com/ main/java/
No comments:
Post a Comment