jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-404

add a required-maven-version to the POM

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0-beta-1
  • Component/s: None
  • Labels:
    None

Description

add the ability to fail if not >= a specified version of Maven (plugin requirement as well?).

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-4840 Prerequisites is not working on m3

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
John Casey added a comment - 14/Jul/05 1:54 PM

how do we tell what version of maven we're running?

Show
John Casey added a comment - 14/Jul/05 1:54 PM how do we tell what version of maven we're running?
Hide
Permalink
John Casey added a comment - 14/Jul/05 1:55 PM

if we apply vesion ranges to plugins just as we plan to do for dependencies, this should take care of plugin-version requirements, I think. So, let's be general about that implementation for dependencies, and apply it to plugin-versions as well.

Show
John Casey added a comment - 14/Jul/05 1:55 PM if we apply vesion ranges to plugins just as we plan to do for dependencies, this should take care of plugin-version requirements, I think. So, let's be general about that implementation for dependencies, and apply it to plugin-versions as well.
Hide
Permalink
Trygve Laugstol added a comment - 15/Jul/05 9:52 AM

From https://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/DefaultContinuumCore.java

private String getVersion()
{
InputStream resourceAsStream;
try

{ Properties properties = new Properties(); resourceAsStream = this.getClass().getClassLoader().getResourceAsStream( "META-INF/maven/org.apache.maven.continuum/continuum-core/pom.properties" ); properties.load( resourceAsStream ); return properties.getProperty( "version", "unknown" ); }

catch ( Exception e )

{ return "unknown"; }

}

Show
Trygve Laugstol added a comment - 15/Jul/05 9:52 AM From https://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/DefaultContinuumCore.java private String getVersion() { InputStream resourceAsStream; try { Properties properties = new Properties(); resourceAsStream = this.getClass().getClassLoader().getResourceAsStream( "META-INF/maven/org.apache.maven.continuum/continuum-core/pom.properties" ); properties.load( resourceAsStream ); return properties.getProperty( "version", "unknown" ); } catch ( Exception e ) { return "unknown"; } }

People

  • Assignee:
    Brett Porter
    Reporter:
    Brett Porter
Vote (0)
Watch (1)

Dates

  • Created:
    25/Jan/05 6:01 AM
    Updated:
    01/Oct/10 10:23 AM
    Resolved:
    18/Jul/05 2:16 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.