<project>
...
<properties>
<foo.version>1.5-SNAPSHOT</foo.version>
</properties>
...
<dependencies>
<dependency>
<groupId>com.bar</groupId>
<artifactId>foo</artifactId>
<version>${foo.version}</version>
</dependency>
</dependencies>
...
</project>

Sent from my iPod

On 24 Dec 2008, at 10:18, "Wim Deblauwe" <[email protected]> wrote:

Hi Stephen,

thank you for your quick reply, but I don't understand what you mean. What I have tried to test is create a test.properties file in my war project that
is being filtered. I've put in this:

aspectj=${org.aspectj.version}
aspectj.weaver=${org.aspectj.aspectjweaver.version}
swf=${com.mycomp.server-ria.version}

Only the first line gets replaced, the other 2 are not being replaced.

Can you elaborate on "you can either define a property with the version and
link the dependency's version to the property"?

regards,

Wim


2008/12/24 Stephen Connolly <[email protected]>

have the jsp page load a properties file which has the version within. if
performance is a proven concern, have a java class load and cache the
version into a singleton bean

as regards capturing the current version of a dependency, you can either define a property with the version and link the dependency's version to the
property, or hmm I've another idea for the versions maven plugin

Sent from my iPod


On 24 Dec 2008, at 09:46, "Wim Deblauwe" <[email protected]> wrote:

Hi,

I have a project (war) that has an other project (swf) as a dependency.
The
war contains an index.jsp that refers to the swf dependency. Currently, it is hardcode like 'myflexproject-1.0-SNAPSHOT.swf'. I would like to put
some
placeholder there and let maven filter this index.jsp and fill in the
correct version. Is this possible? How?

regards,

Wim


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to