新しい Java クラスの注釈を含むデフォルトのコメントを定義するコード スタイル テンプレートがあります (以下を参照)。
Maven からバージョンを挿入するにはどうすればよいpom.xml
ですか? 何かのようなもの
@since ${pom.project.version}
CodeStyle_codetemplates.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
Code Style Code Template
To start using open Window -> Preferences
Java \ Code Style \ Code Template
Press [Import...] button and select this file.
-->
<templates>
<template autoinsert="false" context="newtype_context" deleted="false" description="Newly created files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.newtype" name="newtype">${filecomment}
${package_declaration}
/**
*
* @since ${date}
* @author ${user}
* Reviewer
*/
${typecomment}
${type_declaration}</template></templates>