<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moznion</author_name>
  <author_url>https://blog.hatena.ne.jp/moznion/</author_url>
  <blog_title>その手の平は尻もつかめるさ</blog_title>
  <blog_url>https://moznion.hatenadiary.com/</blog_url>
  <categories>
    <anon>java</anon>
    <anon>maven</anon>
  </categories>
  <description>Maven Archetype で archetype を作るとき，文字列を置換したくなることがあります． 例えば $artifactId に foo-bar と入っている時にこれを foo_bar という風に s/-/_/g したくなる事などがあるでしょう．世の中色々あるのです．そういう時は以下のように書いてやると良い． ${artifactId.replaceAll(&quot;-&quot;, &quot;_&quot;)} こういう感じで普通に replaceAll() 等の String のインスタンスメソッドを呼び出すことが出来るので便利． でもって pom.xml に #set($replaced = $artifac…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoznion.hatenadiary.com%2Fentry%2F2015%2F02%2F19%2F001659&quot; title=&quot;Maven Archetype で文字列を置換したりする - その手の平は尻もつかめるさ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-02-19 00:16:59</published>
  <title>Maven Archetype で文字列を置換したりする</title>
  <type>rich</type>
  <url>https://moznion.hatenadiary.com/entry/2015/02/19/001659</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
