...
Wiki Markup |
---|
{snippet:url=geronimo/plugins/roller/trunk/geronimo-jetty-roller/pom.xml|lang=xml} |
Upgrading jars and plugins to a new version
Often you may need to upgrade a plugin or jar version, for instance if a new version of a dependency is released but you cannot rerelease all the artifacts that depend on it. Here are some methods to upgrade versions.
Upgrading a jar without releasing any plugins
If no plugins will be (re)-released using the new dependency, you have to do some work by hand. First copy the new jar into the appropriate place in your geronimo server's repository. Then add a line to var/config/artifact_aliases.properties (or the equivalent file for the server using the jar) like this, for org.foo:myjar:1.0:jar
Code Block |
---|
org.foo/myjar/1.0/jar=org.foo/myjar/1.1/jar
|
Upgrading a jar while releasing a plugin
If you are releasing a plugin, you can including configuration in the geronimo-plugin.xml to automatically install the jar upgrade entry when the plugin is installed. This is easiest in the car-maven-config configuration in the pom.xml.
Code Block |
---|
<artifact-alias key="org.foo/myjar/1.0/jar">org.foo/myjar/1.1/jar</artifact-alias>
|