[jira] Commented: (MINSTALL-70) install-file should take the version from the parent if the version for the artifact is missing in the POM
[ http://jira.codehaus.org/browse/MINSTALL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191173#action_191173 ] Benjamin Bentmann commented on MINSTALL-70: --- That's not what I asked for. You either need to tell the Maven version being used or attach the output of "mvn install:install-file ... > debug.log". > install-file should take the version from the parent if the version for the > artifact is missing in the POM > -- > > Key: MINSTALL-70 > URL: http://jira.codehaus.org/browse/MINSTALL-70 > Project: Maven 2.x Install Plugin > Issue Type: Bug > Components: install:install-file >Affects Versions: 2.3 >Reporter: Eric Lewis > Fix For: 2.3 > > > Spring Source seems to release POM which have no version. According to the > Maven philosophy this means that they inherit their parent's version. > However, if I try > {{mvn install:install-file -Dfile=spring-ldap-core-1.3.0.RELEASE.jar > -DpomFile=pom.xml}} > I get > {quote} > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'install'. > [INFO] > > [INFO] Building Spring LDAP Core > [INFO]task-segment: [install:install-file] (aggregator-style) > [INFO] > > [INFO] [install:install-file {execution: default-cli}] > [INFO] > > [ERROR] FATAL ERROR > [INFO] > > [INFO] An invalid artifact was detected. > This artifact might be in your project's POM, or it might have been included > transitively during the resolution process. Here is the information we do > have for this artifact: > o GroupID: org.springframework.ldap > o ArtifactID: spring-ldap-core > o Version: <<< MISSING >>> > o Type:pom > [INFO] > > [INFO] Trace > org.apache.maven.artifact.InvalidArtifactRTException: For artifact > {org.springframework.ldap:spring-ldap-core:null:pom}: The version cannot be > empty. > {quote} > The POM looks like this: > {quote} > > xmlns="http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd";> > > org.springframework.ldap > spring-ldap-parent > 1.3.0.RELEASE > > 4.0.0 > spring-ldap-core > jar > Spring LDAP Core > > ... > {quote} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MINSTALL-70) install-file should take the version from the parent if the version for the artifact is missing in the POM
[ http://jira.codehaus.org/browse/MINSTALL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191170#action_191170 ] Eric Lewis commented on MINSTALL-70: Here's the output from {{mvn:help effective-pom}} $ mvn help:effective-pom [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] artifact org.apache.maven.plugins:maven-help-plugin: checking for updates from Codehaus [INFO] [INFO] Building Spring LDAP Core [INFO]task-segment: [help:effective-pom] (aggregator-style) [INFO] [INFO] [help:effective-pom {execution: default-cli}] [INFO] Effective POMs, after inheritance, interpolation, and profiles are applied: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> 4.0.0 spring-ldap-parent org.springframework.ldap 1.3.0.RELEASE org.springframework.ldap spring-ldap-core 1.3.0.RELEASE Spring LDAP Core ... > install-file should take the version from the parent if the version for the > artifact is missing in the POM > -- > > Key: MINSTALL-70 > URL: http://jira.codehaus.org/browse/MINSTALL-70 > Project: Maven 2.x Install Plugin > Issue Type: Bug > Components: install:install-file >Affects Versions: 2.3 >Reporter: Eric Lewis > > Spring Source seems to release POM which have no version. According to the > Maven philosophy this means that they inherit their parent's version. > However, if I try > {{mvn install:install-file -Dfile=spring-ldap-core-1.3.0.RELEASE.jar > -DpomFile=pom.xml}} > I get > {quote} > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'install'. > [INFO] > > [INFO] Building Spring LDAP Core > [INFO]task-segment: [install:install-file] (aggregator-style) > [INFO] > > [INFO] [install:install-file {execution: default-cli}] > [INFO] > > [ERROR] FATAL ERROR > [INFO] > > [INFO] An invalid artifact was detected. > This artifact might be in your project's POM, or it might have been included > transitively during the resolution process. Here is the information we do > have for this artifact: > o GroupID: org.springframework.ldap > o ArtifactID: spring-ldap-core > o Version: <<< MISSING >>> > o Type:pom > [INFO] > > [INFO] Trace > org.apache.maven.artifact.InvalidArtifactRTException: For artifact > {org.springframework.ldap:spring-ldap-core:null:pom}: The version cannot be > empty. > {quote} > The POM looks like this: > {quote} > > xmlns="http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd";> > > org.springframework.ldap > spring-ldap-parent > 1.3.0.RELEASE > > 4.0.0 > spring-ldap-core > jar > Spring LDAP Core > > ... > {quote} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MINSTALL-70) install-file should take the version from the parent if the version for the artifact is missing in the POM
[ http://jira.codehaus.org/browse/MINSTALL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191168#action_191168 ] Benjamin Bentmann commented on MINSTALL-70: --- This looks like a duplicate of MINSTALL-55 so can you provide the debug logs of the above command to verify that you were actually using plugin version 2.3 and not something older? > install-file should take the version from the parent if the version for the > artifact is missing in the POM > -- > > Key: MINSTALL-70 > URL: http://jira.codehaus.org/browse/MINSTALL-70 > Project: Maven 2.x Install Plugin > Issue Type: Bug > Components: install:install-file >Affects Versions: 2.3 >Reporter: Eric Lewis > > Spring Source seems to release POM which have no version. According to the > Maven philosophy this means that they inherit their parent's version. > However, if I try > {{mvn install:install-file -Dfile=spring-ldap-core-1.3.0.RELEASE.jar > -DpomFile=pom.xml}} > I get > {quote} > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'install'. > [INFO] > > [INFO] Building Spring LDAP Core > [INFO]task-segment: [install:install-file] (aggregator-style) > [INFO] > > [INFO] [install:install-file {execution: default-cli}] > [INFO] > > [ERROR] FATAL ERROR > [INFO] > > [INFO] An invalid artifact was detected. > This artifact might be in your project's POM, or it might have been included > transitively during the resolution process. Here is the information we do > have for this artifact: > o GroupID: org.springframework.ldap > o ArtifactID: spring-ldap-core > o Version: <<< MISSING >>> > o Type:pom > [INFO] > > [INFO] Trace > org.apache.maven.artifact.InvalidArtifactRTException: For artifact > {org.springframework.ldap:spring-ldap-core:null:pom}: The version cannot be > empty. > {quote} > The POM looks like this: > {quote} > > xmlns="http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd";> > > org.springframework.ldap > spring-ldap-parent > 1.3.0.RELEASE > > 4.0.0 > spring-ldap-core > jar > Spring LDAP Core > > ... > {quote} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira