Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As I understand it you are trying to keep the version up to date, while expecting the rest to stay the same. There are two alternatives.</p> <p>The first is to remove the version from the name so that the HTML need not change. You can see a practical example by searching for <code>archiva-applet</code> here: <a href="http://svn.apache.org/repos/asf/archiva/tags/archiva-1.3/archiva-modules/archiva-web/archiva-webapp/pom.xml" rel="nofollow noreferrer">http://svn.apache.org/repos/asf/archiva/tags/archiva-1.3/archiva-modules/archiva-web/archiva-webapp/pom.xml</a></p> <p>In this example, since you don't want the applet in <code>WEB-INF/classes</code> anyway, it is omitted from the webapp, and then included via the Dependency plugin:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt; &lt;version&gt;2.0&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;copy&lt;/id&gt; &lt;phase&gt;process-resources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;artifactItems&gt; &lt;artifactItem&gt; &lt;groupId&gt;${project.groupId}&lt;/groupId&gt; &lt;artifactId&gt;archiva-applet&lt;/artifactId&gt; &lt;version&gt;${project.version}&lt;/version&gt; &lt;outputDirectory&gt;src/main/webapp&lt;/outputDirectory&gt; &lt;destFileName&gt;archiva-applet.jar&lt;/destFileName&gt; &lt;/artifactItem&gt; &lt;/artifactItems&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>If you are using Maven 2.1.0+ you can use the <code>prepare-package</code> phase and copy it straight to the output without modifying your source directory.</p> <p>You then refer to the applet in HTML with the single name.</p> <p>An alternative solution if you want to continue filtering and keep the version, is to use a shared property:</p> <pre><code>&lt;properties&gt; &lt;applet.version&gt;1.2.3&lt;/applet.version&gt; &lt;/properties&gt; </code></pre> <p>...</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;my.group&lt;/groupId&gt; &lt;artifactId&gt;my.applet&lt;/artifactId&gt; &lt;version&gt;${applet.version}&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>...</p> <p>You can then use <code>${applet.version}</code> in the HTML and still only have to change it in one place.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload