Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to Use Properties Files with Jetty Maven Plugin?

I don't have a specific answer to your question but I do something similar by creating a Maven project out of my configuration files and adding that to the plugin dependencies. So I have a section:

<dependencies>
            <dependency>
              <groupId>org.mygroupid</groupId>
              <artifactId>config</artifactId>
              <version>${project.version}</version>
            </dependency>
</dependencies>

in my Jetty plugin configuration. I think it would just come down to getting your path added as a 'resource' path to the Maven POM which the Jetty plugin uses to construct the classpath. So this might be a better question for the Maven mailing list than the Jetty list.

-mike


 | Mike Pilone | Software Architect, Distribution | mpilone@xxxxxxx | o: 202-513-2679  m: 703-969-7493


-----Original Message-----
From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Ari King
Sent: Wednesday, November 23, 2011 6:10 PM
To: jetty-users@xxxxxxxxxxx
Subject: [jetty-users] How to Use Properties Files with Jetty Maven Plugin?

I've configured my application to search for configuration details in
properties files located on the classpath. Does anyone know how to
configure the jetty-maven plugin so that when "jetty:run" is executed
it looks for properties files in
"${user.home}/${project.artifactId}/"?

Thanks.

-Ari
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users




Back to the top