GithubHelp home page GithubHelp logo

silviuilie / intellij-plugin-pom-template-variables Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 127 KB

IntelliJ IDEA plugin that exposes project build data (version/artifactId) as file template variables

License: GNU General Public License v3.0

Java 100.00%

intellij-plugin-pom-template-variables's Introduction

intellij-plugin-pom-template-variables

IntelliJ IDEA plugin that exposes project build data (version/artifactId) as file template variables

sample :
* ..
* @since ${CURRENT_VERSION} for ${ARTIFACT_ID}
* ..
TODOs
ref:
issues
  1. load pom as MavenDomProjectModel instead of POMProject #1
  1. use org.jetbrains.idea.maven.dom.model.MavenDomProjectModel #2 (see eu.pm.idea.project.maven.ProjectModelDomFileDescription)

intellij-plugin-pom-template-variables's People

Contributors

silviuilie avatar

Watchers

 avatar

intellij-plugin-pom-template-variables's Issues

random class cast exception (POMProject vs MavenDomProjectModel) on domManager.getFileElement(xmlFile)

class cast exception when using deprecated domManager.getFileElement(xmlFile) :
DomFileElement domFileElement = domManager.getFileElement(asXMLFile)

java.lang.ClassCastException: class org.jetbrains.idea.maven.dom.model.MavenDomProjectModel$$EnhancerByJetBrainsMainCglib$$8ae7e121 cannot be cast to class eu.pm.idea.project.maven.POMProject (org.jetbrains.idea.maven.dom.model.MavenDomProjectModel$$EnhancerByJetBrainsMainCglib$$8ae7e121 is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @6572421; eu.pm.idea.project.maven.POMProject is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @2d2b379d)
at eu.pm.idea.project.filetemplate.POMPropertiesProvider.fillProperties(POMPropertiesProvider.java:52)
at com.intellij.ide.fileTemplates.FileTemplateUtil.fillDefaultProperties(FileTemplateUtil.java:362)
at com.intellij.ide.fileTemplates.FileTemplateUtil.createFromTemplate(FileTemplateUtil.java:299)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.