scijava / scijava-maven-plugin

A Maven plugin to manage development of SciJava-based software.
BSD 2-Clause "Simplified" License
3 stars 5 forks source link

Issue with scijava-maven-plugin in 28.0.0 POM and miglayout #24

Closed skalarproduktraum closed 4 years ago

skalarproduktraum commented 4 years ago

Hi there,

in sciview's automagic deployment script, we discovered an issue with the copy-jars mojo in conjunction with miglayout:

[ERROR] Failed to execute goal org.scijava:scijava-maven-plugin:1.1.1:copy-jars (copy-jars) on project sciview: Couldn't determine scijava.app.subdirectory for com.miglayout:miglayout:jar:swing:3.7.4: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] 'profiles.profile.id' must be unique but found duplicate profile with id default @ line 138, column 18
[ERROR] [ERROR] 'profiles.profile.id' must be unique but found duplicate profile with id default @ line 155, column 18
[ERROR] [ERROR] 'profiles.profile.id' must be unique but found duplicate profile with id default @ line 172, column 18
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 232, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 243, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. @ line 383, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.geronimo.genesis.plugins:tools-maven-plugin is missing. @ line 218,
column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:retrotranslator-maven-plugin is missing. @ line 388, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 416, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 430, column 21

[ERROR] [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. @: 11 problems were encountered while building the effective model for com.miglayout:miglayout:3.7.4
[ERROR] [ERROR] 'profiles.profile.id' must be unique but found duplicate profile with id default @ line 138, column 18
[ERROR] [ERROR] 'profiles.profile.id' must be unique but found duplicate profile with id default @ line 155, column 18
[ERROR] [ERROR] 'profiles.profile.id' must be unique but found duplicate profile with id default @ line 172, column 18
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 232, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 243, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. @ line 383, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.geronimo.genesis.plugins:tools-maven-plugin is missing. @ line 218,
column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:retrotranslator-maven-plugin is missing. @ line 388, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 416, column 21
[ERROR] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 430, column 21

[ERROR] [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. @
[ERROR] -> [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/MojoExecutionException
Failed to copy dependencies into Fiji directory

We circumvent this for the moment by reverting back to 27.0.1, which is probably not ideal. Any ideas?

skalarproduktraum commented 4 years ago

Sorry, didn't see the issue at https://github.com/scijava/pom-scijava/issues/110. Closing this here.