Re: maven-checkstyle-plugin does not include test resources

2015-06-07 Thread Csaba Kozák
Hi Karl,

i would love to fix this issue, i think this should be easy.
Who should i contact for information? I read the site, but did not found
that, maybe i looked in the wrong place.

Thanks,
Csaba


Do not run some Checkstyle rules in a specific Maven profile

2015-06-07 Thread WonderCsabo
We use a different profile for development, and a different profile for the
CI. The latter is more strict in the manner of Checkstyle rules. My question
is: how can i easily *turn off executing some of the rules in the
development profile*? One possible solution is just using `configLocation`
property in the `maven-checkstyle-plugin`, and adding the different configs
in two locations:


CI




maven-checkstyle-plugin


ci-checks.xml







development




maven-checkstyle-plugin


dev-checks.xml






However this leads to the duplication of the check file. Is there a way to
dynamically skip parts of the file?

**Edit**: my motivation is that we run the Checkstyle rules when developing
in Eclipse, in the incremental compilation (every time when a file is saved)
and also when compiling from Maven command line. This is very convenient,
but there are some rules which take a [long time][1], and that makes this
kind of development impossible, so i want to turn them off.

Question copied from [here][2].


  [1]: http://github.com/checkstyle/checkstyle/issues/1064
  [2]:
http://stackoverflow.com/questions/30691673/do-not-run-some-checkstyle-rules-in-a-specific-maven-profile





--
View this message in context: 
http://maven.40175.n5.nabble.com/Do-not-run-some-Checkstyle-rules-in-a-specific-Maven-profile-tp5836995.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: maven-checkstyle-plugin does not include test resources

2015-06-07 Thread Karl Heinz Marbaise

Hi,

On 6/7/15 3:38 PM, Csaba Kozák wrote:

Hi Karl,

i would love to fix this issue, i think this should be easy.


on which issue do you referencing to ?


Who should i contact for information? I read the site, but did not found
that, maybe i looked in the wrong place.


Best is to reference to a jira issue and if you like please attach a 
patch to the issue...and please add appropriate integration/unit tests 
to it...



Kind regards
Karl Heinz Marbaise

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



Re: maven-checkstyle-plugin does not include test resources

2015-06-07 Thread Csaba Kozák
Hi Karl!

Thanks for the quick answer. This is the ticket:
https://issues.apache.org/jira/browse/MCHECKSTYLE-295

OK, i will do by best, however i did not use JIRA ever for development, and
svn only a long time ago, so maybe i will ask some questions.


Re: maven-checkstyle-plugin does not include test resources

2015-06-07 Thread Karl Heinz Marbaise

Hi,

On 6/7/15 4:15 PM, Csaba Kozák wrote:

Hi Karl!

Thanks for the quick answer. This is the ticket:
https://issues.apache.org/jira/browse/MCHECKSTYLE-295

OK, i will do by best, however i did not use JIRA ever for development, and
svn only a long time ago, so maybe i will ask some questions.



Don't hesitate to ask questions...

but they are releated to the development so we should change to the 
development list


Many thanks for helping here...

Kind regards
Karl Heinz Marbaise

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



Where's the new home for the clirr-maven-plugin?

2015-06-07 Thread Martijn Dashorst
The clirr-maven-plugin was one of the unfortunate casualties of
codehaus' demise.

It should get a new home, but my google-fu leaves me without any
results. Where does this plugin live on?

Martijn

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



Re: Where's the new home for the clirr-maven-plugin?

2015-06-07 Thread Thomas Broyer
https://github.com/mojohaus/clirr-maven-plugin ?


On Mon, Jun 8, 2015 at 12:26 AM Martijn Dashorst 
wrote:

> The clirr-maven-plugin was one of the unfortunate casualties of
> codehaus' demise.
>
> It should get a new home, but my google-fu leaves me without any
> results. Where does this plugin live on?
>
> Martijn
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Creating Mojo: Can I have access to the repository information stored in settings.xml?

2015-06-07 Thread Néstor Boscán
Hi

I am creating a mojo that requires to get information on the repositories
stored in settings.xml? Is this possible?

Regards,

Néstor


Re: Creating Mojo: Can I have access to the repository information stored in settings.xml?

2015-06-07 Thread Dan Tran
Hi Néstor,

Could you elaborate on your use case? you may not need access to maven
settings to look for repos.

-Dan


On Sun, Jun 7, 2015 at 4:24 PM, Néstor Boscán  wrote:

> Hi
>
> I am creating a mojo that requires to get information on the repositories
> stored in settings.xml? Is this possible?
>
> Regards,
>
> Néstor
>


Re: Do not run some Checkstyle rules in a specific Maven profile

2015-06-07 Thread Christopher
I don't think that's possible currently. I have a similar use case
(which is also not possible): I want to use a provided xml
configuration file (Google Style), but with some project-specific
alterations. There's no way to merge these configurations. I'm sure
others have wanted to do the same (some basic additions to the
sun_checks.xml without rewriting it).

It would be nice if there was a way to have a given style, and with an
option, provide additions/removals. This option could be activated in
a profile, and would satisfy your use case as well as mine.

--
Christopher L Tubbs II
http://gravatar.com/ctubbsii


On Sun, Jun 7, 2015 at 9:41 AM, WonderCsabo  wrote:
> We use a different profile for development, and a different profile for the
> CI. The latter is more strict in the manner of Checkstyle rules. My question
> is: how can i easily *turn off executing some of the rules in the
> development profile*? One possible solution is just using `configLocation`
> property in the `maven-checkstyle-plugin`, and adding the different configs
> in two locations:
>
> 
> CI
>
> 
> 
> 
> 
> maven-checkstyle-plugin
> 
> 
> ci-checks.xml
> 
> 
> 
> 
> 
>
> 
> development
>
> 
> 
> 
> 
> maven-checkstyle-plugin
> 
> 
> dev-checks.xml
> 
> 
> 
> 
> 
>
> However this leads to the duplication of the check file. Is there a way to
> dynamically skip parts of the file?
>
> **Edit**: my motivation is that we run the Checkstyle rules when developing
> in Eclipse, in the incremental compilation (every time when a file is saved)
> and also when compiling from Maven command line. This is very convenient,
> but there are some rules which take a [long time][1], and that makes this
> kind of development impossible, so i want to turn them off.
>
> Question copied from [here][2].
>
>
>   [1]: http://github.com/checkstyle/checkstyle/issues/1064
>   [2]:
> http://stackoverflow.com/questions/30691673/do-not-run-some-checkstyle-rules-in-a-specific-maven-profile
>
>
>
>
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Do-not-run-some-Checkstyle-rules-in-a-specific-Maven-profile-tp5836995.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

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



Blog: List Maven POMs phases and goals bounds to the phases

2015-06-07 Thread Sandip Chitale
http://sandipchitale.blogspot.com/2015/06/list-maven-poms-phases-and-goals-bounds.html


AW: Help needed with a strange fixed filename

2015-06-07 Thread Thomas Klöber
Hi Karl Heinz,

thanks for your answer.

Yes, we could change the code with the filename check. But I'm loath to do it 
since it is a 3rd party jar file and we had to do this every time a new version 
is released...

I'm just surprised that there is no other way or means to tell Maven that a 
different naming scheme should be used...

Deployment at customer site is no problem, the nexus and naming issue only 
affects us during development.


-Ursprüngliche Nachricht-
Von: Karl Heinz Marbaise [mailto:khmarba...@gmx.de] 
Gesendet: Freitag, 5. Juni 2015 14:34
An: Maven Users List
Betreff: Re: Help needed with a strange fixed filename

Hi Thomas,


That the file is names in Nexus is the default naming schema within a 
maven repository so there is no chance to change it.

So first question: Why not changing the code which checks the filename 
and follow the naming convention..?

What you can do is to get the appropriate artifact via plugin (like 
maven-dependency-plugin) and rename it during the packaging of your 
distribution archive (which i assume you have?) Or are we talking about 
an EAR file?




On 6/5/15 1:58 PM, Thomas Klöber wrote:
> Hi folks'es,
>
> I am having some problems, getting an external jar-file into my Maven project.
> Here is the issue:
>
> · the jar file has a fixed name, lets say jarfile3.jar (digit 3 is 
> important!)
>
> · it's name cannot be changed because during runtime it is checked 
> and if changed a runtime exception is thrown
>
> ·  if I create an artefact for it in my nexus, the file name is 
> changed to jarfile-3.x.x
>
> · adding this to my pom.xml as a dependency everything builds just 
> fine
>
> · however, if I run my application now, it falls over with the above 
> runtime exception
>
> What would be the best way of incoorporating an external jar into my project 
> without having hard-coded pathnames?
> We are using Eclipse Kepler as IDE and Maven 3
>
> Thanks,
> _
> SecurIntegration
> Thomas Klöber
> Software Engineer
> Rösrather Str. 702
> 51107 Köln
> Fon: +49 (221) 71 99 00-0
> Fax: +49 (221) 71 99 00-23
>
> www.SecurIntegration.com
>
> Amtsgericht Köln HRB 35063
> Geschäftsführer: Guido Schneider
>
> Determine your actual SAP license needs
>
>

Kind regards
Karl Heinz Marbaise

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