You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Boris Horvat <ho...@gmail.com> on 2014/08/21 23:01:06 UTC
Provide application version in jetty pom definition
Hi all,
I have tried to provide application version in the jetty plugin but it wont
work
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.13.v20130916</version>
<configuration>
<stopPort>9966</stopPort>
<stopKey>stop</stopKey>
<!-- Log to the console. -->
<requestLog
implementation="org.eclipse.jetty.server.NCSARequestLog">
<append>true</append>
</requestLog>
<systemProperties>
<systemProperty>
<name>tapestry.execution-mode</name>
<value>dev</value>
</systemProperty>
*<systemProperty>*
*
<name>tapestry.tapestry.application-version/name>*
* <value>1.0</value>*
* </systemProperty>*
</systemProperties>
</configuration>
</plugin>
public static MyServicebuild(@Symbol(SymbolConstants.EXECUTION_MODE) String
environment, @Symbol(SymbolConstants.APPLICATION_VERSION) String
appVersion) {
Properties props = new Properties();
props.put("environment", environment);
props.put("appVersion", appVersion);
return new MyService(props);
}
Any idea why is this not working? For the version I get some random number
that means the version is not set so tapestry pick something
Thanks
--
Sincerely
*Boris Horvat*
Re: Provide application version in jetty pom definition
Posted by Boris Horvat <ho...@gmail.com>.
Found it. Thanks for help
Cheers
On Fri, Aug 22, 2014 at 12:05 AM, Boris Horvat <ho...@gmail.com>
wrote:
> Alas still the same, but the other property is working fine...maybe I have
> a bug somewhere and the information is lost...
>
>
> On Thu, Aug 21, 2014 at 11:47 PM, Michael Gentry <mg...@masslight.net>
> wrote:
>
>> Looking at our POM for the Jetty configuratin, we have:
>>
>> <systemProperties>
>>
>>
>> <org.apache.tapestry.disable-caching>true</org.apache.tapestry.disable-caching>
>> <tapestry.secure-enabled>false</tapestry.secure-enabled>
>> <tapestry.production-mode>false</tapestry.production-mode>
>> ...
>>
>> Maybe try it that way.
>>
>> mrg
>>
>>
>>
>> On Thu, Aug 21, 2014 at 5:16 PM, Boris Horvat <ho...@gmail.com>
>> wrote:
>>
>> > Hi.
>> >
>> > Yea it is written correctly, probably when I was copy/pasting stuff I
>> > messed it up.
>> >
>> > <plugin>
>> > <groupId>org.mortbay.jetty</groupId>
>> > <artifactId>jetty-maven-plugin</artifactId>
>> > <version>8.1.13.v20130916</version>
>> > <configuration>
>> > <stopPort>9966</stopPort>
>> > <stopKey>stop</stopKey>
>> > <!-- Log to the console. -->
>> > <requestLog
>> > implementation="org.eclipse.jetty.server.NCSARequestLog">
>> > <!-- This doesn't do anything for Jetty,
>> > but is a workaround for a Maven bug that prevents the requestLog from
>> being
>> > set. -->
>> > <append>true</append>
>> > </requestLog>
>> > <systemProperties>
>> > <systemProperty>
>> > <name>tapestry.execution-mode</name>
>> > <value>dev</value>
>> > </systemProperty>
>> > * <systemProperty>*
>> > *
>> > <name>tapestry.application-version</name>*
>> > * <value>1.0</value>*
>> > * </systemProperty>*
>> > <systemProperty>
>> > <name>catalogue.online</name>
>> > <value>false</value>
>> > </systemProperty>
>> > </systemProperties>
>> > </configuration>
>> > </plugin>
>> >
>> > but sadly it wont work. But it should work like this, right?
>> >
>> >
>> > On Thu, Aug 21, 2014 at 11:13 PM, Michael Gentry <mgentry@masslight.net
>> >
>> > wrote:
>> >
>> > > Hi Boris,
>> > > Perhaps it didn't get e-mailed out very well, but you appear to have
>> one
>> > > too many "tapestry." strings in your name and your name is missing a
>> > > bracket. Try:
>> > >
>> > > <name>tapestry.application-version</name>
>> > >
>> > > mrg
>> > >
>> > >
>> > >
>> > > On Thu, Aug 21, 2014 at 5:01 PM, Boris Horvat <
>> horvat.z.boris@gmail.com>
>> > > wrote:
>> > >
>> > > > Hi all,
>> > > >
>> > > > I have tried to provide application version in the jetty plugin but
>> it
>> > > wont
>> > > > work
>> > > >
>> > > > <plugin>
>> > > > <groupId>org.mortbay.jetty</groupId>
>> > > > <artifactId>jetty-maven-plugin</artifactId>
>> > > > <version>8.1.13.v20130916</version>
>> > > > <configuration>
>> > > > <stopPort>9966</stopPort>
>> > > > <stopKey>stop</stopKey>
>> > > > <!-- Log to the console. -->
>> > > > <requestLog
>> > > > implementation="org.eclipse.jetty.server.NCSARequestLog">
>> > > > <append>true</append>
>> > > > </requestLog>
>> > > > <systemProperties>
>> > > > <systemProperty>
>> > > >
>> > <name>tapestry.execution-mode</name>
>> > > > <value>dev</value>
>> > > > </systemProperty>
>> > > > *<systemProperty>*
>> > > > *
>> > > > <name>tapestry.tapestry.application-version/name>*
>> > > > * <value>1.0</value>*
>> > > > * </systemProperty>*
>> > > > </systemProperties>
>> > > > </configuration>
>> > > > </plugin>
>> > > >
>> > > > public static MyServicebuild(@Symbol(SymbolConstants.EXECUTION_MODE)
>> > > String
>> > > > environment, @Symbol(SymbolConstants.APPLICATION_VERSION) String
>> > > > appVersion) {
>> > > >
>> > > > Properties props = new Properties();
>> > > > props.put("environment", environment);
>> > > > props.put("appVersion", appVersion);
>> > > >
>> > > > return new MyService(props);
>> > > > }
>> > > >
>> > > >
>> > > > Any idea why is this not working? For the version I get some random
>> > > number
>> > > > that means the version is not set so tapestry pick something
>> > > >
>> > > > Thanks
>> > > > --
>> > > > Sincerely
>> > > > *Boris Horvat*
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > Sincerely
>> > *Boris Horvat*
>> >
>>
>
>
>
> --
> Sincerely
> *Boris Horvat*
>
--
Sincerely
*Boris Horvat*
Re: Provide application version in jetty pom definition
Posted by Boris Horvat <ho...@gmail.com>.
Alas still the same, but the other property is working fine...maybe I have
a bug somewhere and the information is lost...
On Thu, Aug 21, 2014 at 11:47 PM, Michael Gentry <mg...@masslight.net>
wrote:
> Looking at our POM for the Jetty configuratin, we have:
>
> <systemProperties>
>
>
> <org.apache.tapestry.disable-caching>true</org.apache.tapestry.disable-caching>
> <tapestry.secure-enabled>false</tapestry.secure-enabled>
> <tapestry.production-mode>false</tapestry.production-mode>
> ...
>
> Maybe try it that way.
>
> mrg
>
>
>
> On Thu, Aug 21, 2014 at 5:16 PM, Boris Horvat <ho...@gmail.com>
> wrote:
>
> > Hi.
> >
> > Yea it is written correctly, probably when I was copy/pasting stuff I
> > messed it up.
> >
> > <plugin>
> > <groupId>org.mortbay.jetty</groupId>
> > <artifactId>jetty-maven-plugin</artifactId>
> > <version>8.1.13.v20130916</version>
> > <configuration>
> > <stopPort>9966</stopPort>
> > <stopKey>stop</stopKey>
> > <!-- Log to the console. -->
> > <requestLog
> > implementation="org.eclipse.jetty.server.NCSARequestLog">
> > <!-- This doesn't do anything for Jetty,
> > but is a workaround for a Maven bug that prevents the requestLog from
> being
> > set. -->
> > <append>true</append>
> > </requestLog>
> > <systemProperties>
> > <systemProperty>
> > <name>tapestry.execution-mode</name>
> > <value>dev</value>
> > </systemProperty>
> > * <systemProperty>*
> > *
> > <name>tapestry.application-version</name>*
> > * <value>1.0</value>*
> > * </systemProperty>*
> > <systemProperty>
> > <name>catalogue.online</name>
> > <value>false</value>
> > </systemProperty>
> > </systemProperties>
> > </configuration>
> > </plugin>
> >
> > but sadly it wont work. But it should work like this, right?
> >
> >
> > On Thu, Aug 21, 2014 at 11:13 PM, Michael Gentry <mg...@masslight.net>
> > wrote:
> >
> > > Hi Boris,
> > > Perhaps it didn't get e-mailed out very well, but you appear to have
> one
> > > too many "tapestry." strings in your name and your name is missing a
> > > bracket. Try:
> > >
> > > <name>tapestry.application-version</name>
> > >
> > > mrg
> > >
> > >
> > >
> > > On Thu, Aug 21, 2014 at 5:01 PM, Boris Horvat <
> horvat.z.boris@gmail.com>
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > I have tried to provide application version in the jetty plugin but
> it
> > > wont
> > > > work
> > > >
> > > > <plugin>
> > > > <groupId>org.mortbay.jetty</groupId>
> > > > <artifactId>jetty-maven-plugin</artifactId>
> > > > <version>8.1.13.v20130916</version>
> > > > <configuration>
> > > > <stopPort>9966</stopPort>
> > > > <stopKey>stop</stopKey>
> > > > <!-- Log to the console. -->
> > > > <requestLog
> > > > implementation="org.eclipse.jetty.server.NCSARequestLog">
> > > > <append>true</append>
> > > > </requestLog>
> > > > <systemProperties>
> > > > <systemProperty>
> > > >
> > <name>tapestry.execution-mode</name>
> > > > <value>dev</value>
> > > > </systemProperty>
> > > > *<systemProperty>*
> > > > *
> > > > <name>tapestry.tapestry.application-version/name>*
> > > > * <value>1.0</value>*
> > > > * </systemProperty>*
> > > > </systemProperties>
> > > > </configuration>
> > > > </plugin>
> > > >
> > > > public static MyServicebuild(@Symbol(SymbolConstants.EXECUTION_MODE)
> > > String
> > > > environment, @Symbol(SymbolConstants.APPLICATION_VERSION) String
> > > > appVersion) {
> > > >
> > > > Properties props = new Properties();
> > > > props.put("environment", environment);
> > > > props.put("appVersion", appVersion);
> > > >
> > > > return new MyService(props);
> > > > }
> > > >
> > > >
> > > > Any idea why is this not working? For the version I get some random
> > > number
> > > > that means the version is not set so tapestry pick something
> > > >
> > > > Thanks
> > > > --
> > > > Sincerely
> > > > *Boris Horvat*
> > > >
> > >
> >
> >
> >
> > --
> > Sincerely
> > *Boris Horvat*
> >
>
--
Sincerely
*Boris Horvat*
Re: Provide application version in jetty pom definition
Posted by Michael Gentry <mg...@masslight.net>.
Looking at our POM for the Jetty configuratin, we have:
<systemProperties>
<org.apache.tapestry.disable-caching>true</org.apache.tapestry.disable-caching>
<tapestry.secure-enabled>false</tapestry.secure-enabled>
<tapestry.production-mode>false</tapestry.production-mode>
...
Maybe try it that way.
mrg
On Thu, Aug 21, 2014 at 5:16 PM, Boris Horvat <ho...@gmail.com>
wrote:
> Hi.
>
> Yea it is written correctly, probably when I was copy/pasting stuff I
> messed it up.
>
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>jetty-maven-plugin</artifactId>
> <version>8.1.13.v20130916</version>
> <configuration>
> <stopPort>9966</stopPort>
> <stopKey>stop</stopKey>
> <!-- Log to the console. -->
> <requestLog
> implementation="org.eclipse.jetty.server.NCSARequestLog">
> <!-- This doesn't do anything for Jetty,
> but is a workaround for a Maven bug that prevents the requestLog from being
> set. -->
> <append>true</append>
> </requestLog>
> <systemProperties>
> <systemProperty>
> <name>tapestry.execution-mode</name>
> <value>dev</value>
> </systemProperty>
> * <systemProperty>*
> *
> <name>tapestry.application-version</name>*
> * <value>1.0</value>*
> * </systemProperty>*
> <systemProperty>
> <name>catalogue.online</name>
> <value>false</value>
> </systemProperty>
> </systemProperties>
> </configuration>
> </plugin>
>
> but sadly it wont work. But it should work like this, right?
>
>
> On Thu, Aug 21, 2014 at 11:13 PM, Michael Gentry <mg...@masslight.net>
> wrote:
>
> > Hi Boris,
> > Perhaps it didn't get e-mailed out very well, but you appear to have one
> > too many "tapestry." strings in your name and your name is missing a
> > bracket. Try:
> >
> > <name>tapestry.application-version</name>
> >
> > mrg
> >
> >
> >
> > On Thu, Aug 21, 2014 at 5:01 PM, Boris Horvat <ho...@gmail.com>
> > wrote:
> >
> > > Hi all,
> > >
> > > I have tried to provide application version in the jetty plugin but it
> > wont
> > > work
> > >
> > > <plugin>
> > > <groupId>org.mortbay.jetty</groupId>
> > > <artifactId>jetty-maven-plugin</artifactId>
> > > <version>8.1.13.v20130916</version>
> > > <configuration>
> > > <stopPort>9966</stopPort>
> > > <stopKey>stop</stopKey>
> > > <!-- Log to the console. -->
> > > <requestLog
> > > implementation="org.eclipse.jetty.server.NCSARequestLog">
> > > <append>true</append>
> > > </requestLog>
> > > <systemProperties>
> > > <systemProperty>
> > >
> <name>tapestry.execution-mode</name>
> > > <value>dev</value>
> > > </systemProperty>
> > > *<systemProperty>*
> > > *
> > > <name>tapestry.tapestry.application-version/name>*
> > > * <value>1.0</value>*
> > > * </systemProperty>*
> > > </systemProperties>
> > > </configuration>
> > > </plugin>
> > >
> > > public static MyServicebuild(@Symbol(SymbolConstants.EXECUTION_MODE)
> > String
> > > environment, @Symbol(SymbolConstants.APPLICATION_VERSION) String
> > > appVersion) {
> > >
> > > Properties props = new Properties();
> > > props.put("environment", environment);
> > > props.put("appVersion", appVersion);
> > >
> > > return new MyService(props);
> > > }
> > >
> > >
> > > Any idea why is this not working? For the version I get some random
> > number
> > > that means the version is not set so tapestry pick something
> > >
> > > Thanks
> > > --
> > > Sincerely
> > > *Boris Horvat*
> > >
> >
>
>
>
> --
> Sincerely
> *Boris Horvat*
>
Re: Provide application version in jetty pom definition
Posted by Boris Horvat <ho...@gmail.com>.
Hi.
Yea it is written correctly, probably when I was copy/pasting stuff I
messed it up.
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.13.v20130916</version>
<configuration>
<stopPort>9966</stopPort>
<stopKey>stop</stopKey>
<!-- Log to the console. -->
<requestLog
implementation="org.eclipse.jetty.server.NCSARequestLog">
<!-- This doesn't do anything for Jetty,
but is a workaround for a Maven bug that prevents the requestLog from being
set. -->
<append>true</append>
</requestLog>
<systemProperties>
<systemProperty>
<name>tapestry.execution-mode</name>
<value>dev</value>
</systemProperty>
* <systemProperty>*
*
<name>tapestry.application-version</name>*
* <value>1.0</value>*
* </systemProperty>*
<systemProperty>
<name>catalogue.online</name>
<value>false</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
but sadly it wont work. But it should work like this, right?
On Thu, Aug 21, 2014 at 11:13 PM, Michael Gentry <mg...@masslight.net>
wrote:
> Hi Boris,
> Perhaps it didn't get e-mailed out very well, but you appear to have one
> too many "tapestry." strings in your name and your name is missing a
> bracket. Try:
>
> <name>tapestry.application-version</name>
>
> mrg
>
>
>
> On Thu, Aug 21, 2014 at 5:01 PM, Boris Horvat <ho...@gmail.com>
> wrote:
>
> > Hi all,
> >
> > I have tried to provide application version in the jetty plugin but it
> wont
> > work
> >
> > <plugin>
> > <groupId>org.mortbay.jetty</groupId>
> > <artifactId>jetty-maven-plugin</artifactId>
> > <version>8.1.13.v20130916</version>
> > <configuration>
> > <stopPort>9966</stopPort>
> > <stopKey>stop</stopKey>
> > <!-- Log to the console. -->
> > <requestLog
> > implementation="org.eclipse.jetty.server.NCSARequestLog">
> > <append>true</append>
> > </requestLog>
> > <systemProperties>
> > <systemProperty>
> > <name>tapestry.execution-mode</name>
> > <value>dev</value>
> > </systemProperty>
> > *<systemProperty>*
> > *
> > <name>tapestry.tapestry.application-version/name>*
> > * <value>1.0</value>*
> > * </systemProperty>*
> > </systemProperties>
> > </configuration>
> > </plugin>
> >
> > public static MyServicebuild(@Symbol(SymbolConstants.EXECUTION_MODE)
> String
> > environment, @Symbol(SymbolConstants.APPLICATION_VERSION) String
> > appVersion) {
> >
> > Properties props = new Properties();
> > props.put("environment", environment);
> > props.put("appVersion", appVersion);
> >
> > return new MyService(props);
> > }
> >
> >
> > Any idea why is this not working? For the version I get some random
> number
> > that means the version is not set so tapestry pick something
> >
> > Thanks
> > --
> > Sincerely
> > *Boris Horvat*
> >
>
--
Sincerely
*Boris Horvat*
Re: Provide application version in jetty pom definition
Posted by Michael Gentry <mg...@masslight.net>.
Hi Boris,
Perhaps it didn't get e-mailed out very well, but you appear to have one
too many "tapestry." strings in your name and your name is missing a
bracket. Try:
<name>tapestry.application-version</name>
mrg
On Thu, Aug 21, 2014 at 5:01 PM, Boris Horvat <ho...@gmail.com>
wrote:
> Hi all,
>
> I have tried to provide application version in the jetty plugin but it wont
> work
>
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>jetty-maven-plugin</artifactId>
> <version>8.1.13.v20130916</version>
> <configuration>
> <stopPort>9966</stopPort>
> <stopKey>stop</stopKey>
> <!-- Log to the console. -->
> <requestLog
> implementation="org.eclipse.jetty.server.NCSARequestLog">
> <append>true</append>
> </requestLog>
> <systemProperties>
> <systemProperty>
> <name>tapestry.execution-mode</name>
> <value>dev</value>
> </systemProperty>
> *<systemProperty>*
> *
> <name>tapestry.tapestry.application-version/name>*
> * <value>1.0</value>*
> * </systemProperty>*
> </systemProperties>
> </configuration>
> </plugin>
>
> public static MyServicebuild(@Symbol(SymbolConstants.EXECUTION_MODE) String
> environment, @Symbol(SymbolConstants.APPLICATION_VERSION) String
> appVersion) {
>
> Properties props = new Properties();
> props.put("environment", environment);
> props.put("appVersion", appVersion);
>
> return new MyService(props);
> }
>
>
> Any idea why is this not working? For the version I get some random number
> that means the version is not set so tapestry pick something
>
> Thanks
> --
> Sincerely
> *Boris Horvat*
>