Forum Discussion

jgriffin's avatar
jgriffin
New Contributor II
5 years ago
Solved

Maven Error Setting up for Snap Development

Maven is unable to retrieve project. Command: mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://maven.clouddev.snaplogic.com:8080/nexus/content/repositorie...
  • j_angelevski's avatar
    3 years ago

    @ykoppisetty

    It is because the parse method expects a number but you are providing a string value.
    You need to parse the “Modified_Date”, you can do so by using parseInt(string).

    In your case would be:

    parseInt($Modified_Date)
    

    And the full expression to format the date would be:

    Date.parse(parseInt($Modified_Date))