Mike, Sean:

I don't know if there are deficiencies with this approach, but if you make
project.clj the 'original source of truth', and generate pom.xml via 'lein
install', does the auto-generated pom.xml contain everything you would need?

Andy

On Sat, Aug 8, 2015 at 1:02 AM, Mikera <mike.r.anderson...@gmail.com> wrote:

> Here's the situation:
> 1) I have projects that I manage and release using Maven (e.g.
> core.matrix). The pom.xml is the "master" for project configuration which I
> edit directly.
> 2) I'd like to have a project.clj as well, as a convenience for other
> developers (there is clearly a demand - people sometimes contribute these
> to my Maven-managed libraries)
> 3) It would be nice if the project.clj could be updated automatically
> (with dependencies and version numbers at least)
>
> I don't think it is a CCW issue as such, or at least it should probably be
> addressed in a way that is IDE-independent. Seems like the most appropriate
> solution would be some kind of config in clojure-maven-plugin that does
> this as a (optional?) build step, but I'm not expert enough on the Maven
> lifecycle to pinpoint exactly how this could be done.
>
> Alternative option: have a warning when the pom.xml and project.clj are
> out of sync. Requires more manual work to fix, but at least reduces the
> risk of accidentally getting out of sync.
>
> On Saturday, 8 August 2015 15:22:25 UTC+8, Laurent PETIT wrote:
>>
>> Hello Mike, I'd like to understand why you feel the need to convert the
>> pom to project.clj?
>>
>> Knowing those use cases better might help me think about what could be
>> done in ccw, or in clojure-maven-plugin, to remove this need.
>>
>> Le samedi 8 août 2015, Mikera <mike.r.an...@gmail.com> a écrit :
>>
>>> Has anyone found a good way to automatically keep project.clj in sync
>>> with the official pom.xml? Maybe using the clojure-maven-plugin or similar?
>>>
>>> I do this too for a number of libraries, but it's always a manual task
>>> and prone to error at present....
>>>
>>> On Saturday, 8 August 2015 07:45:41 UTC+8, Sean Corfield wrote:
>>>>
>>>> Clojure contrib projects are built via pom.xml so that’s where you
>>>> should look for version information.
>>>>
>>>> The project.clj file is a convenience for the developers/maintainers
>>>> and has nothing to do with the actual project version (although some
>>>> developers/maintainers try to keep their project.clj in sync).
>>>>
>>>> Sean Corfield -- (904) 302-SEAN
>>>> An Architect's View -- http://corfield.org/
>>>>
>>>> "If you're not annoying somebody, you're not really alive."
>>>> -- Margaret Atwood
>>>>
>>>>
>>>> From: <clo...@googlegroups.com> on behalf of Daniel Compton
>>>> Reply-To: <clo...@googlegroups.com>
>>>> Date: Friday, August 7, 2015 at 3:50 PM
>>>> To: Clojure
>>>> Subject: Re: 0.1.0 core.async release?
>>>>
>>>> The version in the project.clj file is 0.1.0-SNAPSHOT, that'll probably
>>>> be it.
>>>> On Sat, 8 Aug 2015 at 9:12 AM Alex Miller <al...@puredanger.com> wrote:
>>>>
>>>>> I don't where the 0.1.0 number is coming from, but yes there are plans
>>>>> to do a round of work on core.async and release in the near future.
>>>>>
>>>>>
>>>>> On Friday, August 7, 2015 at 1:16:19 PM UTC-5, Kyle Burton wrote:
>>>>>>
>>>>>> Is there a new release planned for core.async anytime in the near
>>>>>> future?
>>>>>>
>>>>>> The docs show some functionality that's not in the current release
>>>>>> [1].  Specifically offer! [2] which looks like it's slated for 0.1.0 
>>>>>> (love
>>>>>> to switch to that from alts+timeout).
>>>>>>
>>>>>> Are there (perhaps) tasks that need a dev? (yes, I'm offering to help)
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Kyle
>>>>>>
>>>>>>
>>>>>>
>>>>>> [1] https://github.com/clojure/core.async shows Latest release:
>>>>>> 0.1.346.0-17112a-alpha
>>>>>> [2] http://clojure.github.io/core.async/#clojure.core.async/offer!
>>>>>>
>>>>>> --
>>>>>> Twitter: @kyleburton
>>>>>> Github: https://github.com/kyleburton
>>>>>> Blog: http://asymmetrical-view.com/
>>>>>> Fun: http://snapclean.me/
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Clojure" group.
>>>>> To post to this group, send email to clo...@googlegroups.com
>>>>> Note that posts from new members are moderated - please be patient
>>>>> with your first post.
>>>>> To unsubscribe from this group, send email to
>>>>> clojure+u...@googlegroups.com
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/clojure?hl=en
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Clojure" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to clojure+u...@googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>>> --
>>>> Daniel
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Clojure" group.
>>>> To post to this group, send email to clo...@googlegroups.com
>>>> Note that posts from new members are moderated - please be patient with
>>>> your first post.
>>>> To unsubscribe from this group, send email to
>>>> clojure+u...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/clojure?hl=en
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Clojure" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to clojure+u...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clojure@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojure+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Laurent Petit
>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to