You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alberto Ivo <al...@gmail.com> on 2012/10/26 20:03:11 UTC

Maven and Macker

I know there is a specific discussion list for Macker but I think this
question could be here too (if not, please, excuse me):

In my pom parent, I put the makcer plugin. But I have a lot of projects,
with its onw pom child.
My question is: I have to put a macker-rules.xml in each /src/resource
project?
there is a way to write only one macker-rule.xml e this one file fits for
all projects?

thanks in advance!

Re: Maven and Macker

Posted by Alberto Ivo <al...@gmail.com>.
hmmm.. I got it now.
Thanks Anders!

Ivo


On Fri, Oct 26, 2012 at 6:46 PM, Anders Hammar <an...@hammar.net> wrote:

> If it has to be in src/main/resources I guess you're out of luck. It's
> technically possible to have a rules file copied to that folder during
> the build process, but it's against the Maven laws. Anything
> copied/generated during the build process should be to the target
> folder.
>
> Please note that the macker-maven-plugin at Codehaus Mojo (that's the
> one you're talking about, isn't it?) is in sandbox. So there is no
> release. You have to get the source and build it yourself. So you
> could change the code to have the path for the rules file fully
> configurable.
>
> /Anders
>
> On Fri, Oct 26, 2012 at 10:20 PM, Alberto Ivo <al...@gmail.com>
> wrote:
> > According to the Macker usage, the macker-rules.xml MUST be in the
> > scr/main/resource.
> >
> > Ansgar, I liked you idea but I'm still very noob to understand how to do
> > it. I will research about that.
> >
> > Ivo
> >
> >
> > On Fri, Oct 26, 2012 at 5:03 PM, Anders Hammar <an...@hammar.net>
> wrote:
> >
> >> I guess the Maven Remote Resources Plugin could be used as well. But
> >> it depends on if the macker rules file has to be in src/main/resources
> >> or if it could be somewhere else.
> >>
> >> /Anders
> >>
> >> On Fri, Oct 26, 2012 at 8:57 PM, Ansgar Konermann
> >> <an...@googlemail.com> wrote:
> >> > Deploy macker-rules.xml to repository.
> >> >
> >> > Use m-dependency-p to fetch these rules from repo during build.
> >> >
> >> > Configure m-macker-p to pick up rule file where m-dependency-p put it.
> >> > Am 26.10.2012 20:04 schrieb "Alberto Ivo" <al...@gmail.com>:
> >> >
> >> >> I know there is a specific discussion list for Macker but I think
> this
> >> >> question could be here too (if not, please, excuse me):
> >> >>
> >> >> In my pom parent, I put the makcer plugin. But I have a lot of
> projects,
> >> >> with its onw pom child.
> >> >> My question is: I have to put a macker-rules.xml in each
> /src/resource
> >> >> project?
> >> >> there is a way to write only one macker-rule.xml e this one file fits
> >> for
> >> >> all projects?
> >> >>
> >> >> thanks in advance!
> >> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven and Macker

Posted by Anders Hammar <an...@hammar.net>.
If it has to be in src/main/resources I guess you're out of luck. It's
technically possible to have a rules file copied to that folder during
the build process, but it's against the Maven laws. Anything
copied/generated during the build process should be to the target
folder.

Please note that the macker-maven-plugin at Codehaus Mojo (that's the
one you're talking about, isn't it?) is in sandbox. So there is no
release. You have to get the source and build it yourself. So you
could change the code to have the path for the rules file fully
configurable.

/Anders

On Fri, Oct 26, 2012 at 10:20 PM, Alberto Ivo <al...@gmail.com> wrote:
> According to the Macker usage, the macker-rules.xml MUST be in the
> scr/main/resource.
>
> Ansgar, I liked you idea but I'm still very noob to understand how to do
> it. I will research about that.
>
> Ivo
>
>
> On Fri, Oct 26, 2012 at 5:03 PM, Anders Hammar <an...@hammar.net> wrote:
>
>> I guess the Maven Remote Resources Plugin could be used as well. But
>> it depends on if the macker rules file has to be in src/main/resources
>> or if it could be somewhere else.
>>
>> /Anders
>>
>> On Fri, Oct 26, 2012 at 8:57 PM, Ansgar Konermann
>> <an...@googlemail.com> wrote:
>> > Deploy macker-rules.xml to repository.
>> >
>> > Use m-dependency-p to fetch these rules from repo during build.
>> >
>> > Configure m-macker-p to pick up rule file where m-dependency-p put it.
>> > Am 26.10.2012 20:04 schrieb "Alberto Ivo" <al...@gmail.com>:
>> >
>> >> I know there is a specific discussion list for Macker but I think this
>> >> question could be here too (if not, please, excuse me):
>> >>
>> >> In my pom parent, I put the makcer plugin. But I have a lot of projects,
>> >> with its onw pom child.
>> >> My question is: I have to put a macker-rules.xml in each /src/resource
>> >> project?
>> >> there is a way to write only one macker-rule.xml e this one file fits
>> for
>> >> all projects?
>> >>
>> >> thanks in advance!
>> >>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven and Macker

Posted by Alberto Ivo <al...@gmail.com>.
According to the Macker usage, the macker-rules.xml MUST be in the
scr/main/resource.

Ansgar, I liked you idea but I'm still very noob to understand how to do
it. I will research about that.

Ivo


On Fri, Oct 26, 2012 at 5:03 PM, Anders Hammar <an...@hammar.net> wrote:

> I guess the Maven Remote Resources Plugin could be used as well. But
> it depends on if the macker rules file has to be in src/main/resources
> or if it could be somewhere else.
>
> /Anders
>
> On Fri, Oct 26, 2012 at 8:57 PM, Ansgar Konermann
> <an...@googlemail.com> wrote:
> > Deploy macker-rules.xml to repository.
> >
> > Use m-dependency-p to fetch these rules from repo during build.
> >
> > Configure m-macker-p to pick up rule file where m-dependency-p put it.
> > Am 26.10.2012 20:04 schrieb "Alberto Ivo" <al...@gmail.com>:
> >
> >> I know there is a specific discussion list for Macker but I think this
> >> question could be here too (if not, please, excuse me):
> >>
> >> In my pom parent, I put the makcer plugin. But I have a lot of projects,
> >> with its onw pom child.
> >> My question is: I have to put a macker-rules.xml in each /src/resource
> >> project?
> >> there is a way to write only one macker-rule.xml e this one file fits
> for
> >> all projects?
> >>
> >> thanks in advance!
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven and Macker

Posted by Anders Hammar <an...@hammar.net>.
I guess the Maven Remote Resources Plugin could be used as well. But
it depends on if the macker rules file has to be in src/main/resources
or if it could be somewhere else.

/Anders

On Fri, Oct 26, 2012 at 8:57 PM, Ansgar Konermann
<an...@googlemail.com> wrote:
> Deploy macker-rules.xml to repository.
>
> Use m-dependency-p to fetch these rules from repo during build.
>
> Configure m-macker-p to pick up rule file where m-dependency-p put it.
> Am 26.10.2012 20:04 schrieb "Alberto Ivo" <al...@gmail.com>:
>
>> I know there is a specific discussion list for Macker but I think this
>> question could be here too (if not, please, excuse me):
>>
>> In my pom parent, I put the makcer plugin. But I have a lot of projects,
>> with its onw pom child.
>> My question is: I have to put a macker-rules.xml in each /src/resource
>> project?
>> there is a way to write only one macker-rule.xml e this one file fits for
>> all projects?
>>
>> thanks in advance!
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven and Macker

Posted by Ansgar Konermann <an...@googlemail.com>.
Deploy macker-rules.xml to repository.

Use m-dependency-p to fetch these rules from repo during build.

Configure m-macker-p to pick up rule file where m-dependency-p put it.
Am 26.10.2012 20:04 schrieb "Alberto Ivo" <al...@gmail.com>:

> I know there is a specific discussion list for Macker but I think this
> question could be here too (if not, please, excuse me):
>
> In my pom parent, I put the makcer plugin. But I have a lot of projects,
> with its onw pom child.
> My question is: I have to put a macker-rules.xml in each /src/resource
> project?
> there is a way to write only one macker-rule.xml e this one file fits for
> all projects?
>
> thanks in advance!
>