You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by bantling <gr...@bantling.me> on 2017/06/06 19:03:56 UTC

Spring boot thymeleaf 3

Hello.I want to use Spring boot and Thymeleaf 3 with Ant+Ivy. Spring boot
1.5.3 (current release) by default loads older thymeleaf 2. Apparently, the
solution in a Maven POM is to specify the following properties: 
3.0.2.RELEASE  2.1.1See  for reference.I tried setting these as Ant
properties before getting Ivy running, it makes no difference. I can use
override in my dependencies to bring in version 3, but then it doesn't work,
the code in spring boot is expecting version 2. I tried the following
overrides:
<https://github.com/spring-projects/spring-boot/blob/v1.5.3.RELEASE/spring-boot-samples/spring-boot-sample-web-thymeleaf3/pom.xml>
I'm not sure how those Maven properties actually get used when pulling
dependencies, I only know basics of Maven usage.Can anyone help me with
this? Can't seem to find or figure out the solution.



--
View this message in context: http://apache-ivy.996301.n3.nabble.com/Spring-boot-thymeleaf-3-tp9959.html
Sent from the ivy-user mailing list archive at Nabble.com.

Re: Spring boot thymeleaf 3

Posted by J Pai <ja...@gmail.com>.
A pull request containing this enhancement has been submitted https://github.com/apache/ant-ivy/pull/44. It will go through a review process and if it gets accepted and merged, then this enhancement will be available in the upcoming release. 

Once/if that PR is merged, you can test it out through our nightly builds, details of which is explained in this mail https://www.mail-archive.com/ivy-user@ant.apache.org/msg06244.html.
 
-Jaikiran
On 09-Jun-2017, at 7:07 AM, bantling <gr...@bantling.me> wrote:

I raised issue IVY-1561 <https://issues.apache.org/jira/browse/IVY-1561>
for this.

Thanks.

On Thu, Jun 8, 2017 at 12:38 AM, Jaikiran Pai [via Apache Ivy] <
ml+s996301n9962h64@n3.nabble.com> wrote:

> Could you please create an enhancement request for this here
> https://issues.apache.org/jira/browse/IVY so that the changes can be
> tracked against it? I’ll try and get this done for the upcoming release.
> 
> -Jaikiran
> On 07-Jun-2017, at 3:44 PM, bantling <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=9962&i=0>> wrote:
> 
> Hi, Jaikiran.
> 
> Yes, that sounds correct correct If Ivy could process the POM with
> property
> overrides, that would be great :)
> 
> Tx.
> 
> On Wed, Jun 7, 2017 at 1:28 AM, Jaikiran Pai [via Apache Ivy] <
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=9962&i=1>>
> wrote:
> 
>> From what I understand, you have a (spring boot) pom.xml which declares
>> <properties> element with certain values. When running via Maven ("mvn
>> clean install" for example) you can have those values overridden by
>> specifying JVM system properties, that match the property names, to the
> mvn
>> command.
>> 
>> You now want to use Ivy and add a dependency on that sprint boot
> artifact
>> and want to pass system properties to Ivy so that when it parses the
>> pom.xml, it too overrides the properties with whatever value you passed
> as
>> JVM system properties to Ivy? If that’s what you are after, then looking
> at
>> the Ivy code, it currently doesn’t do this substitution of pom
> properties
>> with the system properties you pass to Ivy. Someone more familiar with
> the
>> code might confirm or correct me, I just did a brief check of the code.
> If
>> in fact, it’s not currently supported, then maybe we could add it as an
>> enhancement. I don’t see any obvious issues in adding that support.
>> 
>> -Jaikiran
>> 
>> 
>> On 07-Jun-2017, at 12:33 AM, bantling <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=9960&i=0>> wrote:
>> 
>> Hello.I want to use Spring boot and Thymeleaf 3 with Ant+Ivy. Spring
> boot
>> 1.5.3 (current release) by default loads older thymeleaf 2. Apparently,
>> the
>> solution in a Maven POM is to specify the following properties:
>> 3.0.2.RELEASE  2.1.1See  for reference.I tried setting these as Ant
>> properties before getting Ivy running, it makes no difference. I can use
>> override in my dependencies to bring in version 3, but then it doesn't
>> work,
>> the code in spring boot is expecting version 2. I tried the following
>> overrides:
>> <https://github.com/spring-projects/spring-boot/blob/v1.
>> 5.3.RELEASE/spring-boot-samples/spring-boot-sample-web-thymeleaf3/pom.xml>
> 
>> 
>> I'm not sure how those Maven properties actually get used when pulling
>> dependencies, I only know basics of Maven usage.Can anyone help me with
>> this? Can't seem to find or figure out the solution.
>> 
>> 
>> 
>> --
>> View this message in context: http://apache-ivy.996301.n3.
>> nabble.com/Spring-boot-thymeleaf-3-tp9959.html
>> Sent from the ivy-user mailing list archive at Nabble.com.
>> 
>> 
>> 
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://apache-ivy.996301.n3.nabble.com/Spring-boot-
>> thymeleaf-3-tp9959p9960.html
>> To unsubscribe from Spring boot thymeleaf 3, click here
>> <
>> .
>> NAML
>> <http://apache-ivy.996301.n3.nabble.com/template/
> NamlServlet.jtp?macro=macro_viewer&id=instant_html%
> 21nabble%3Aemail.naml&base=nabble.naml.namespaces.
> BasicNamespace-nabble.view.web.template.NabbleNamespace-
> nabble.view.web.template.NodeNamespace&breadcrumbs=
> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-ivy.996301.n3.
> nabble.com/Spring-boot-thymeleaf-3-tp9959p9961.html
> Sent from the ivy-user mailing list archive at Nabble.com.
> 
> 
> 
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ivy.996301.n3.nabble.com/Spring-boot-
> thymeleaf-3-tp9959p9962.html
> To unsubscribe from Spring boot thymeleaf 3, click here
> <http://apache-ivy.996301.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=9959&code=Z3JlZ2hhbGxAYmFudGxpbmcubWV8OTk1OXwtNDM1ODk1MDYx>
> .
> NAML
> <http://apache-ivy.996301.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> 




--
View this message in context: http://apache-ivy.996301.n3.nabble.com/Spring-boot-thymeleaf-3-tp9959p9964.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Spring boot thymeleaf 3

Posted by bantling <gr...@bantling.me>.
I raised issue IVY-1561 <https://issues.apache.org/jira/browse/IVY-1561>
for this.

Thanks.

On Thu, Jun 8, 2017 at 12:38 AM, Jaikiran Pai [via Apache Ivy] <
ml+s996301n9962h64@n3.nabble.com> wrote:

> Could you please create an enhancement request for this here
> https://issues.apache.org/jira/browse/IVY so that the changes can be
> tracked against it? I’ll try and get this done for the upcoming release.
>
> -Jaikiran
> On 07-Jun-2017, at 3:44 PM, bantling <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=9962&i=0>> wrote:
>
> Hi, Jaikiran.
>
> Yes, that sounds correct correct If Ivy could process the POM with
> property
> overrides, that would be great :)
>
> Tx.
>
> On Wed, Jun 7, 2017 at 1:28 AM, Jaikiran Pai [via Apache Ivy] <
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=9962&i=1>>
> wrote:
>
> > From what I understand, you have a (spring boot) pom.xml which declares
> > <properties> element with certain values. When running via Maven ("mvn
> > clean install" for example) you can have those values overridden by
> > specifying JVM system properties, that match the property names, to the
> mvn
> > command.
> >
> > You now want to use Ivy and add a dependency on that sprint boot
> artifact
> > and want to pass system properties to Ivy so that when it parses the
> > pom.xml, it too overrides the properties with whatever value you passed
> as
> > JVM system properties to Ivy? If that’s what you are after, then looking
> at
> > the Ivy code, it currently doesn’t do this substitution of pom
> properties
> > with the system properties you pass to Ivy. Someone more familiar with
> the
> > code might confirm or correct me, I just did a brief check of the code.
> If
> > in fact, it’s not currently supported, then maybe we could add it as an
> > enhancement. I don’t see any obvious issues in adding that support.
> >
> > -Jaikiran
> >
> >
> > On 07-Jun-2017, at 12:33 AM, bantling <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=9960&i=0>> wrote:
> >
> > Hello.I want to use Spring boot and Thymeleaf 3 with Ant+Ivy. Spring
> boot
> > 1.5.3 (current release) by default loads older thymeleaf 2. Apparently,
> > the
> > solution in a Maven POM is to specify the following properties:
> > 3.0.2.RELEASE  2.1.1See  for reference.I tried setting these as Ant
> > properties before getting Ivy running, it makes no difference. I can use
> > override in my dependencies to bring in version 3, but then it doesn't
> > work,
> > the code in spring boot is expecting version 2. I tried the following
> > overrides:
> > <https://github.com/spring-projects/spring-boot/blob/v1.
> > 5.3.RELEASE/spring-boot-samples/spring-boot-sample-web-thymeleaf3/pom.xml>
>
> >
> > I'm not sure how those Maven properties actually get used when pulling
> > dependencies, I only know basics of Maven usage.Can anyone help me with
> > this? Can't seem to find or figure out the solution.
> >
> >
> >
> > --
> > View this message in context: http://apache-ivy.996301.n3.
> > nabble.com/Spring-boot-thymeleaf-3-tp9959.html
> > Sent from the ivy-user mailing list archive at Nabble.com.
> >
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> > http://apache-ivy.996301.n3.nabble.com/Spring-boot-
> > thymeleaf-3-tp9959p9960.html
> > To unsubscribe from Spring boot thymeleaf 3, click here
> > <
> > .
> > NAML
> > <http://apache-ivy.996301.n3.nabble.com/template/
> NamlServlet.jtp?macro=macro_viewer&id=instant_html%
> 21nabble%3Aemail.naml&base=nabble.naml.namespaces.
> BasicNamespace-nabble.view.web.template.NabbleNamespace-
> nabble.view.web.template.NodeNamespace&breadcrumbs=
> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
>
>
>
> --
> View this message in context: http://apache-ivy.996301.n3.
> nabble.com/Spring-boot-thymeleaf-3-tp9959p9961.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ivy.996301.n3.nabble.com/Spring-boot-
> thymeleaf-3-tp9959p9962.html
> To unsubscribe from Spring boot thymeleaf 3, click here
> <http://apache-ivy.996301.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=9959&code=Z3JlZ2hhbGxAYmFudGxpbmcubWV8OTk1OXwtNDM1ODk1MDYx>
> .
> NAML
> <http://apache-ivy.996301.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-ivy.996301.n3.nabble.com/Spring-boot-thymeleaf-3-tp9959p9964.html
Sent from the ivy-user mailing list archive at Nabble.com.

Re: Spring boot thymeleaf 3

Posted by J Pai <ja...@gmail.com>.
Could you please create an enhancement request for this here https://issues.apache.org/jira/browse/IVY so that the changes can be tracked against it? I’ll try and get this done for the upcoming release.

-Jaikiran
On 07-Jun-2017, at 3:44 PM, bantling <gr...@bantling.me> wrote:

Hi, Jaikiran.

Yes, that sounds correct correct If Ivy could process the POM with property
overrides, that would be great :)

Tx.

On Wed, Jun 7, 2017 at 1:28 AM, Jaikiran Pai [via Apache Ivy] <
ml+s996301n9960h2@n3.nabble.com> wrote:

> From what I understand, you have a (spring boot) pom.xml which declares
> <properties> element with certain values. When running via Maven ("mvn
> clean install" for example) you can have those values overridden by
> specifying JVM system properties, that match the property names, to the mvn
> command.
> 
> You now want to use Ivy and add a dependency on that sprint boot artifact
> and want to pass system properties to Ivy so that when it parses the
> pom.xml, it too overrides the properties with whatever value you passed as
> JVM system properties to Ivy? If that’s what you are after, then looking at
> the Ivy code, it currently doesn’t do this substitution of pom properties
> with the system properties you pass to Ivy. Someone more familiar with the
> code might confirm or correct me, I just did a brief check of the code. If
> in fact, it’s not currently supported, then maybe we could add it as an
> enhancement. I don’t see any obvious issues in adding that support.
> 
> -Jaikiran
> 
> 
> On 07-Jun-2017, at 12:33 AM, bantling <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=9960&i=0>> wrote:
> 
> Hello.I want to use Spring boot and Thymeleaf 3 with Ant+Ivy. Spring boot
> 1.5.3 (current release) by default loads older thymeleaf 2. Apparently,
> the
> solution in a Maven POM is to specify the following properties:
> 3.0.2.RELEASE  2.1.1See  for reference.I tried setting these as Ant
> properties before getting Ivy running, it makes no difference. I can use
> override in my dependencies to bring in version 3, but then it doesn't
> work,
> the code in spring boot is expecting version 2. I tried the following
> overrides:
> <https://github.com/spring-projects/spring-boot/blob/v1.
> 5.3.RELEASE/spring-boot-samples/spring-boot-sample-web-thymeleaf3/pom.xml>
> 
> I'm not sure how those Maven properties actually get used when pulling
> dependencies, I only know basics of Maven usage.Can anyone help me with
> this? Can't seem to find or figure out the solution.
> 
> 
> 
> --
> View this message in context: http://apache-ivy.996301.n3.
> nabble.com/Spring-boot-thymeleaf-3-tp9959.html
> Sent from the ivy-user mailing list archive at Nabble.com.
> 
> 
> 
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ivy.996301.n3.nabble.com/Spring-boot-
> thymeleaf-3-tp9959p9960.html
> To unsubscribe from Spring boot thymeleaf 3, click here
> <http://apache-ivy.996301.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=9959&code=Z3JlZ2hhbGxAYmFudGxpbmcubWV8OTk1OXwtNDM1ODk1MDYx>
> .
> NAML
> <http://apache-ivy.996301.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> 




--
View this message in context: http://apache-ivy.996301.n3.nabble.com/Spring-boot-thymeleaf-3-tp9959p9961.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Spring boot thymeleaf 3

Posted by bantling <gr...@bantling.me>.
Hi, Jaikiran.

Yes, that sounds correct correct If Ivy could process the POM with property
overrides, that would be great :)

Tx.

On Wed, Jun 7, 2017 at 1:28 AM, Jaikiran Pai [via Apache Ivy] <
ml+s996301n9960h2@n3.nabble.com> wrote:

> From what I understand, you have a (spring boot) pom.xml which declares
> <properties> element with certain values. When running via Maven ("mvn
> clean install" for example) you can have those values overridden by
> specifying JVM system properties, that match the property names, to the mvn
> command.
>
> You now want to use Ivy and add a dependency on that sprint boot artifact
> and want to pass system properties to Ivy so that when it parses the
> pom.xml, it too overrides the properties with whatever value you passed as
> JVM system properties to Ivy? If that’s what you are after, then looking at
> the Ivy code, it currently doesn’t do this substitution of pom properties
> with the system properties you pass to Ivy. Someone more familiar with the
> code might confirm or correct me, I just did a brief check of the code. If
> in fact, it’s not currently supported, then maybe we could add it as an
> enhancement. I don’t see any obvious issues in adding that support.
>
> -Jaikiran
>
>
> On 07-Jun-2017, at 12:33 AM, bantling <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=9960&i=0>> wrote:
>
> Hello.I want to use Spring boot and Thymeleaf 3 with Ant+Ivy. Spring boot
> 1.5.3 (current release) by default loads older thymeleaf 2. Apparently,
> the
> solution in a Maven POM is to specify the following properties:
> 3.0.2.RELEASE  2.1.1See  for reference.I tried setting these as Ant
> properties before getting Ivy running, it makes no difference. I can use
> override in my dependencies to bring in version 3, but then it doesn't
> work,
> the code in spring boot is expecting version 2. I tried the following
> overrides:
> <https://github.com/spring-projects/spring-boot/blob/v1.
> 5.3.RELEASE/spring-boot-samples/spring-boot-sample-web-thymeleaf3/pom.xml>
>
> I'm not sure how those Maven properties actually get used when pulling
> dependencies, I only know basics of Maven usage.Can anyone help me with
> this? Can't seem to find or figure out the solution.
>
>
>
> --
> View this message in context: http://apache-ivy.996301.n3.
> nabble.com/Spring-boot-thymeleaf-3-tp9959.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ivy.996301.n3.nabble.com/Spring-boot-
> thymeleaf-3-tp9959p9960.html
> To unsubscribe from Spring boot thymeleaf 3, click here
> <http://apache-ivy.996301.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=9959&code=Z3JlZ2hhbGxAYmFudGxpbmcubWV8OTk1OXwtNDM1ODk1MDYx>
> .
> NAML
> <http://apache-ivy.996301.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-ivy.996301.n3.nabble.com/Spring-boot-thymeleaf-3-tp9959p9961.html
Sent from the ivy-user mailing list archive at Nabble.com.

Re: Spring boot thymeleaf 3

Posted by J Pai <ja...@gmail.com>.
From what I understand, you have a (spring boot) pom.xml which declares <properties> element with certain values. When running via Maven ("mvn clean install" for example) you can have those values overridden by specifying JVM system properties, that match the property names, to the mvn command.

You now want to use Ivy and add a dependency on that sprint boot artifact and want to pass system properties to Ivy so that when it parses the pom.xml, it too overrides the properties with whatever value you passed as JVM system properties to Ivy? If that’s what you are after, then looking at the Ivy code, it currently doesn’t do this substitution of pom properties with the system properties you pass to Ivy. Someone more familiar with the code might confirm or correct me, I just did a brief check of the code. If in fact, it’s not currently supported, then maybe we could add it as an enhancement. I don’t see any obvious issues in adding that support.

-Jaikiran


On 07-Jun-2017, at 12:33 AM, bantling <gr...@bantling.me> wrote:

Hello.I want to use Spring boot and Thymeleaf 3 with Ant+Ivy. Spring boot
1.5.3 (current release) by default loads older thymeleaf 2. Apparently, the
solution in a Maven POM is to specify the following properties: 
3.0.2.RELEASE  2.1.1See  for reference.I tried setting these as Ant
properties before getting Ivy running, it makes no difference. I can use
override in my dependencies to bring in version 3, but then it doesn't work,
the code in spring boot is expecting version 2. I tried the following
overrides:
<https://github.com/spring-projects/spring-boot/blob/v1.5.3.RELEASE/spring-boot-samples/spring-boot-sample-web-thymeleaf3/pom.xml>
I'm not sure how those Maven properties actually get used when pulling
dependencies, I only know basics of Maven usage.Can anyone help me with
this? Can't seem to find or figure out the solution.



--
View this message in context: http://apache-ivy.996301.n3.nabble.com/Spring-boot-thymeleaf-3-tp9959.html
Sent from the ivy-user mailing list archive at Nabble.com.