Global plugins and properties for multi maven project with different parent-child structure

2022-06-24 Thread Philipp Kraus
Hello,

I try to optimize my maven build structure. My goal is that I can manage the 
build plugins and properties globally. I have got a multi maven project with 
this structure

Pom.xml
|
| service
|parent/pom.xml => has got a  section to external spring-boot
|apiservice/pom.xml. => referees  to ../parent
|
| container
|   parent/pom.xml.  => own parent pom.xml
|   containerA/pom.xml => has got a  section to ../parent

For all my submodules a lot of plugins and properties are equal, so I would 
like to manage it in a central place e.g. the root/pom.xml if possible. I have 
also tested the maven-properties-plugin 
But I would like to manage also plugin version central and this does not work 
with the plugin.

So my question is, how can I define the these section build/plugins and 
build/pluginManagement for all modules?

Thanks


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



MultiMaven project with by sharing dependencyManagement on parent pom

2022-06-06 Thread Philipp Kraus
Hello,

I have got a MultiMaven project and within this project I have got two parent 
poms. One of these parent inherits from an external parent. So I would like to 
share all my build plugins and pluginManagemnt section, like

My-multi-maven-pom.xml

my-plugins-and-pluginDependencies-pom.xml

my-parent-pom.xml 
-> includes -> my-plugins-and-pluginDependencies-pom.xml

my-external-parent-pom.xml 
-> inherits -> external-parent-pom.xml 
-> includes -> my-plugins-and-pluginDependencies-pom.xml

How is this possible?

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



Re: Kubernetes Build Environment

2022-06-06 Thread Philipp Kraus


> Am 06.06.2022 um 05:55 schrieb Bernd Eckenfels :
> 
> do you need to test K8s or just have some external containers to set up, 
> maybe using Testcontainers with Docker APi is an alternative? (Advantage is 
> you can simpler test it locally)

Yes I’m using TestContainers for some test, but here I would like to focus on a 
full test-case of the whole system, so interaction between all components

> 
> Another alternative is to use a CI pipeline script/system instead of 
> orchestrating it in maven - at least if there is no plugin which does what 
> you need, instead from junit/testng (IT) test cases, using the kubernetes or 
> f8 client might also be an option.

Yes this sound something what is possible, I would like to do some 
stress-testing with JMeter and also some integration testing, so I’m think 
about Kubernetes KinD within the CI pipeline. But so you would like to suggest 
to use Maven to build the artifact
And run it in a Kubernetes cluster via some CI pipeline scripts.

So based on your answer there is no pure Maven solution for this testing?

Thanks for the ideas

> ________
> Von: Philipp Kraus 
> Gesendet: Monday, June 6, 2022 5:38:58 AM
> An: users@maven.apache.org 
> Betreff: Kubernetes Build Environment
> 
> Hello,
> 
> I need some idea how to solve this issue. I have got a MultiMaven project, 
> which has got multiple web services. Each service will be run later in a 
> container in Kubernetes.
> I have found this plugin 
> https://www.eclipse.org/jkube/docs/kubernetes-maven-plugin to build 
> everything, but I would like to get integration testing within the Kubernetes 
> environment,
> Because all services has got a Kafka connection and I would like to run some 
> complex integration test directly from the Maven build.
> 
> Can you give me some ideas how to do it?
> 
> Thanks a lot


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


Kubernetes Build Environment

2022-06-05 Thread Philipp Kraus
Hello,

I need some idea how to solve this issue. I have got a MultiMaven project, 
which has got multiple web services. Each service will be run later in a 
container in Kubernetes.
I have found this plugin 
https://www.eclipse.org/jkube/docs/kubernetes-maven-plugin to build everything, 
but I would like to get integration testing within the Kubernetes environment,
Because all services has got a Kafka connection and I would like to run some 
complex integration test directly from the Maven build.

Can you give me some ideas how to do it?

Thanks a lot


Re: A import B and B should import A where it is included

2019-03-26 Thread Philipp Kraus
Hello,

Thanks for your idea, and yes I think I have got a chick-egg problem, but the 
solution, which works for me, was easy.
The testing framework is used only on „testing“ goal and the test source code 
contains 3 classes only, so I have stored
these classes in a single Git repository and include the classes in defined 
package within my project as a Git submodule.
With this each of my projects has got an equal testing structure without any 
Maven structure. The Maven project contains
The whole project data.

See here 
https://github.com/LightJason/AgentSpeak-Java/tree/developing/src/test/java/org/lightjason/agentspeak

Thanks

Phil




Am 25.03.2019 um 22:44 schrieb Anthony Whitford 
mailto:anth...@whitford.com>>:

You can specify a dependency version using an expression like this:  
${project.version}

${project.version} refers to the POM’s project/version value.

Note that you can declare project properties, and use those in expressions too. 
 See this for more details:
- 
https://books.sonatype.com/mvnref-book/reference/resource-filtering-sect-properties.html
 
<https://books.sonatype.com/mvnref-book/reference/resource-filtering-sect-properties.html>


Having said that…. It sounds like you have a chicken-egg problem and that 
really needs to be fixed.  While Maven certainly supports dynamic dependency 
management, it will highlight and prevent poor software engineering practices 
such as cyclic dependencies.  You will discover that even if you can get a 
cyclic build working, the release process will be broken.  And, you will 
undoubtedly run into build race conditions and other bad things.

So, you need to figure out how to isolate the common dependencies into a third 
library to break the cyclic dependency.  Instead of something like this:
-  A depends on B, B depends on A (BAD!)
How about:
-  A depends on C, B depends on C (OK!)

C may be just Interfaces — maybe no implementation.
Your Tess can depend on A — but A should not depend on the Tests — it defeats 
the value of isolating the Tests.


Hope this helps,

Anthony


On Mar 25, 2019, at 11:28 AM, Philipp Kraus 
mailto:philipp.kr...@tu-clausthal.de>> wrote:

Hello,

I am building an additional testing framework for my framework. I now have the 
following cyclic import of the dependencies "MyFramework imports 
MyTestingFramework" and "MyTestingFramework imports MyFramework".
For example, if MyFramework is version 0.2.1-SNAPSHOT, then MyTestingFramework 
should use the version 0.2.1-SNAPSHOT. Is there a way to get the dependency 
dynamically?

I hope it was understandable
Thanks a lot

Phil


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




A import B and B should import A where it is included

2019-03-25 Thread Philipp Kraus
Hello,

I am building an additional testing framework for my framework. I now have the 
following cyclic import of the dependencies "MyFramework imports 
MyTestingFramework" and "MyTestingFramework imports MyFramework".
For example, if MyFramework is version 0.2.1-SNAPSHOT, then MyTestingFramework 
should use the version 0.2.1-SNAPSHOT. Is there a way to get the dependency 
dynamically?

I hope it was understandable
Thanks a lot

Phil


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



site with file copy

2018-05-02 Thread Philipp Kraus
Hello,

I’m using „mvn site“ command to build for my project the project website as 
HTML code,
During the site goal is running I need to copy some files into the target/site 
directory, how can I do this?
I need to copy some single files to the output director, but only on the site 
goal.

Thanks

Phil



Maven Site with responsive design

2017-03-13 Thread Philipp Kraus
Hello

I’m generating with „mvn site“ the project documentation structure, but the 
HTML result is not responsive.
I’m searching for a skin / theme in the best case with Bootstrap and a 
responsive layout (especially for mobile devices).

I have tested http://andriusvelykis.github.io/reflow-maven-skin/ 
 but with the current 
plugin version 3.5.1 this plugin does not
work anymore. 
Did you know any skins which I can used to get responsive design of the maven 
site?

Thanks
Phil

own Maven Site plugin

2016-06-25 Thread Philipp Kraus
Hello,

I try to build my first Maven site plugin.
I have defined a class based on AbstractMojo and
put the annotation @Mojo( name = "rrd-antlr4", defaultPhase = 
LifecyclePhase.SITE )
on top.

I overload the execute-method and put my plugin content to the method. I build 
the plugin and deploy
it my local Maven repository. I’m testing my plugin in a testing project with 
the pom content





de.flashpixx
rrd-antlr4
0.1.0

…..

If I run "mvn site“ I get "[INFO] configuring report plugin 
de.flashpixx:rrd-antlr4:0.1.0“ but
the execute method is not run / called.

How I can debug the plugin or fix the execution of the plugin?

Thanks

Phil

Re: class path within framework

2016-05-26 Thread Philipp Kraus
Thanks a lot, it was my mistake, I have got an wrong path for my resources


Am 26.05.2016 um 13:14 schrieb Robert Patrick :

> I assume that you don't want to put the properties file inside the framework 
> jar (which is the easiest solution).
> 
> If the properties file is always at the same relative path to the framework 
> jar, then you can simply add a Class-Path element in the framework jar's 
> Manifest to include the directory where the properties file lives and it 
> should "just work" without anyone needing to set the Classpath explicitly...
> 
>> On May 26, 2016, at 5:50 AM, Philipp Kraus  
>> wrote:
>> 
>> Hello,
>> 
>> I’m deploying with Maven a framework (at the moment to my local repository) 
>> and
>> include this framework into other projects.
>> 
>> Within the framework I read a property file with:
>> 
>> final Properties l_property = new Properties();
>> l_property.load( 
>> a_class_within_my_framework.getClassLoader().getResourceAsStream( 
>> "configuration.properties" ) );
>> 
>> On the framework codes this works fine, but if I include with my framework 
>> in another project, it try to read the configuration.properties
>> from the project, not from the framework.
>> I have found out, that I should define the class path, but I don’t know how.
>> In my case the „configuration.property“ should read every time relative to 
>> the framework.
>> 
>> How I can fix this problem?
>> 
>> Thanks
>> 
>> Phil 
>> -
>> 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
> 


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



class path within framework

2016-05-26 Thread Philipp Kraus
Hello,

I’m deploying with Maven a framework (at the moment to my local repository) and
include this framework into other projects.

Within the framework I read a property file with:

final Properties l_property = new Properties();
l_property.load( 
a_class_within_my_framework.getClassLoader().getResourceAsStream( 
"configuration.properties" ) );

On the framework codes this works fine, but if I include with my framework in 
another project, it try to read the configuration.properties
from the project, not from the framework.
I have found out, that I should define the class path, but I don’t know how.
In my case the „configuration.property“ should read every time relative to the 
framework.

How I can fix this problem?

Thanks

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



Re: deployment to local repository

2016-05-26 Thread Philipp Kraus
Hi,


Am 25.05.2016 um 23:26 schrieb Adrien Rivard :

> Hello,
> 
> On Wed, May 25, 2016 at 10:14 PM, Philipp Kraus <
> philipp.kr...@tu-clausthal.de> wrote:
> 
>> Hello,
>> 
>> I’m working on my first Maven framework, I would like to test the
>> framework in another project,
>> so I build a jar file with „mvn package", and then I install the jar into
>> my local repository with „mvn install:install-file -Dfile=myjar.jar“.
>> 
>> 
> When you have the project source, you should do "mvn install" and not "mvn
> install:install-file -Dx", it will take the right
> parameters(groupId/artifactid/version ...)  from the project pom.

thanks that was my mistake. I have got the sources and I run „mvn package“, not 
„mvn install“.
With install everything works fine

Phil

deployment to local repository

2016-05-25 Thread Philipp Kraus
Hello,

I’m working on my first Maven framework, I would like to test the framework in 
another project,
so I build a jar file with „mvn package", and then I install the jar into my 
local repository with „mvn install:install-file -Dfile=myjar.jar“.

I can use the package in another project with a dependency entry, but my 
framework has got different dependencies e.g. to AntLR, Guava
or Apache Commons, but in my project the dependencies are not found.

The pom of the framework is defined with:

mygroup
framework
0.1-SNAPSHOT
jar

and the project has got


mygroup
framework
0.1-SNAPSHOT
compile


IMHO I create a incomplete pom.xml on my framework, but I don’t know how I can 
create it with the correct
way, so I can deploy the framework to my local repository only for 
testing-case. Two other test projects should
use this deployed framework.

Can you help me to create a correct pom.xml?

Thanks for help

Phil


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: plugin and executable jar

2016-03-01 Thread Philipp Kraus
Hi,

Am 01.03.2016 um 23:00 schrieb Manfred Moser :

> 1 pom that acts as parent and aggregator to tie it all together

thanks for your answer, but this is the problem how can I create the 
„aggregated pom file“

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



Re: plugin and executable jar

2016-03-01 Thread Philipp Kraus
Hi,

Am 01.03.2016 um 22:47 schrieb youssef boujallab :

> Did you have a look on shade plugin?

thanks for your answer, I’m using the shade plugin at the moment, but I cannot
create the different Jar files

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



plugin and executable jar

2016-03-01 Thread Philipp Kraus
Hallo,

I have created my first Maven plugin with Mojo, but I would like to create also 
a executable Jar.
The plugin should be run as a standalone program and also as a Maven plugin. 
The Pom
can be found here https://github.com/flashpixx/RRD-AntLR4/blob/master/pom.xml
so my question is how can I create two different Jar files one with the 
packaging jar (and
all dependencies) and one with the packaging „maven-plugin“?

Thanks a lot

Phil




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: own target / goal after packaging

2015-10-17 Thread Philipp Kraus

Am 17.10.2015 um 20:54 schrieb Glenn Brown :

> You use plugins and define executions to hang off those phases.  In your
> case I would use the maven exec plugin and probably attach it to the
> integration test phase

Okay I should describe the problem a little more detailed. 

I build my Jar and I would like to create a goal or something else,
which can be optional run, to build a complex package with the Jar. 
This package command is running at the moment on the command line,
so I would like to integrate it within the maven lifecycle. At the moment I
run

mvn (with default package)
build with echo a XML with the Maven definitions
run build command of the external package tool with input the path of the XML 
and the path of the Jar file 

I would like to integrate the last two command e.g. in a call like "mvn 
externalpackage“.

At the moment I run with exec-maven-plugin in the exec-goal some commands to 
build resource files,
so which goal should be the best to do the external packaging? Can I use the 
exec-maven-plugin for this?

Thanks

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



own target / goal after packaging

2015-10-17 Thread Philipp Kraus
Hello,

I would like to create an own goal / target, that is run after the packaging 
goal.
At the moment my default target is package, so I get a Jar file, so I would 
like to
create an optional call „mvn executepackage“, which can be run after package.
The goal should run a defined shell command with the Jar filename as input.

How can I do this?

Thanks

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



modify goal

2015-08-18 Thread Philipp Kraus
Hello,

I would like to modify a goal. I run with

package
the packaging and I would like to run also every time 

versions:display-dependency-updates

How can I add the versions:display-dependency-updates goal to my package 
default goal?

Thanks

Phil

Git / Mercurial repository

2015-03-29 Thread Philipp Kraus
Hello,

in my project I would like to use a Mercurial and Git repository of a library, 
so my project should use the master branch of a repository. 
Can I add a dependency in my pom.xml, which is point to the master branch of a 
repository, so on a mvm package / compile the local
data is updated?

How can I do this? Does any build plugins exist?

Thanks a lot

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



write developers & contributors into Jar

2015-03-01 Thread Philipp Kraus

Hello,

I use Maven 3.0 with the developers and contributors inside the pom.xml. I use 
also the manifestEntries with the maven-assembly-plugin to add some flags to 
the Jar manifest file.
I would like to add the developer and contributors list to the Jar, but I don’t 
know in which way I can add a list with name, email, and role types. My idea is 
that I create a comma separated list
list with the data, but how can I create within the pom.xml the correct output 
list? E.g. the pom.xml stores:


   
   myID
   myName
   myName@myDomain
   
architect
developer
  
   


so in the manifest should be a line e.g.

Developers = myName - myName@myDomain - architect / developer,

I have tried to define it with


${project.developers}


but this writes only the Java object items to the entry. How can I create a 
loop / xquery within the pom.xml to iterate over the developer items?

Thanks

Phil




Re: access to license node

2015-02-20 Thread Philipp Kraus
Thanks a lot, the [0] works well

Phil

Am 19.02.2015 um 18:16 schrieb Andreas Sewe 
:

> Hi,
> 
>>> Have a look at . While it
>>> is marked as fixed, apparently things like
>>> ${project.licenses.0.license.name} did not (and still do not; I just
>>> checked) work. :-(
>> 
>> The following works for me:
>> 
>>${project.licenses[0].name}
> 
> Yes, I spoke too soon. "${project.licenses[0].name}" works! :-)
> 
> Best wishes,
> 
> Andreas
> 
> 
> -
> 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



access to license node

2015-02-19 Thread Philipp Kraus
Hello,

I’m using Maven 3.2 with the pom definition

http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://maven.apache.org/POM/4.0.0";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
4.0.0


I have added this items to my pom



GNU General Public License 3
http://www.gnu.org/licenses/gpl-3.0.en.html



and I would like to reference to the items with

${project.licenses.license.url}
${project.licenses.license.name}

but these lines does not work - empty result, so I would like to reread the 
items of my license node, how can I do this?

Thanks

Phil


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



Re: compile with different source option

2015-02-16 Thread Philipp Kraus
I have removed the profile options, I use it with the Maven default compile 
plugin:


maven-compiler-plugin
3.2


default-compile

1.8
1.8

**/CMainBootstrap.java




bootstrap-compile

compile


1.7
1.7

**/CMainBootstrap.java






This configuration works well

Thanks

Phil


Am 16.02.2015 um 20:02 schrieb Jörg Schaible :

> Hi Philipp,
> 
> Philipp Kraus wrote:
> 
>> Hello,
>> 
>> thanks a lot. I’m using Maven 3 (3.2.0) and I have added
>> 
>> 
>>
>>jdk-default
>>
>>true
> 
> Just remove this activeByDefault, it simply does not make sense.
> 
>>[1.8,)
>>
>>
>>
>>
>>org.apache.maven.plugins
>>maven-compiler-plugin
>>
>>
>>
>>
>>1.8
>>1.8
>>
>>
>>compile
>>
>>
>>
>>
>>
>>
>>
>> 
>> 
>> The uncommented block should be changed for the two Java versions also the
>> target item. But if I remove the maven.compiler.soource and .target from
>> the properties part, the default profile is not used at the moment. IMHO I
>> have configured the profile „default“. I have tried to use it with mvn -P
>> jdk-default or anything else.
>> 
>> My idea is that I use a „default profile“, which defines the JDK 1.8 and a
>> „old“ profile which uses JDK 1.7 and the difference of the both is the
>> exclude / include and target items, but both profiles should be used on
>> Maven defaults
> 
> In this case you have no "default" profile. You need a second one that is 
> activated for any JDK below 1.8. Look at the XStream example, it uses 3 
> different profiles for its cases. It does not even define the compiler 
> plugin outside a profile - on purpose.
> 
> Cheers,
> Jörg
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org




Re: compile with different source option

2015-02-16 Thread Philipp Kraus
Hello,

thanks a lot. I’m using Maven 3 (3.2.0) and I have added



jdk-default

true
[1.8,)




org.apache.maven.plugins
maven-compiler-plugin




1.8
1.8


compile









The uncommented block should be changed for the two Java versions also the 
target item. But if I remove
the maven.compiler.soource and .target from the properties part, the default 
profile is not used at the moment.
IMHO I have configured the profile „default“. I have tried to use it with mvn 
-P jdk-default or anything else.

My idea is that I use a „default profile“, which defines the JDK 1.8 and a 
„old“ profile which uses JDK 1.7 and
the difference of the both is the exclude / include and target items, but both 
profiles should be used on Maven
defaults

Thanks


Am 16.02.2015 um 14:57 schrieb Jörg Schaible :

> Hi Philipp,
> 
> Philipp Kraus wrote:
> 
>> Hello,
>> 
>> I use in my pom.xml the items:
>> 
>> 
>>UTF-8
>> 
> UTF-8
>>1.8
>>1.8
>> 
>> 
>> and I would like to compile only one Java file with Javac 1.7, the whole
>> project / all other files should use 1.8. How can I define in my pom.xml,
>> that the target compiler value (and the source compiler value) are for
>> only one file is set to a different value?
> 
> Use two different executions. XStream is doing this in its head, but the 
> other way round: Some files with Java 8 the rest with Java 7. Have a look at 
> the Java 8 profile.
> 
> https://fisheye.codehaus.org/browse/xstream/trunk/xstream/pom.xml?r=2320
> 
> Cheers,
> Jörg
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org




compile with different source option

2015-02-16 Thread Philipp Kraus
Hello,

I use in my pom.xml the items:


UTF-8
UTF-8
1.8
1.8


and I would like to compile only one Java file with Javac 1.7, the whole 
project / all other files should use 1.8.
How can I define in my pom.xml, that the target compiler value (and the source 
compiler value) are for only one file is set to a different value?

Thanks

Phil


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



Maven 3 with newest Checkstyle

2015-02-13 Thread Philipp Kraus
Hello,

I'm using Maven 3.2.5 and I would like to use the Checkstyle plugin in the 
newest version (6.3).
The default installation is 5.8, so how can I add the 6.3 version of the plugin 
at my pom.xml and
use it on the check goal at the validate phase?

Thanks a lot

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



Re: Maven 3 with newest Checkstyle 6.3

2015-02-13 Thread Philipp Kraus

Thanks I have read these instructions, but check style uses the sun_checks.xml
I have add to my build section:




org.apache.maven.plugins
maven-checkstyle-plugin
2.14


com.puppycrawl.tools
checkstyle
6.3








org.apache.maven.plugins
maven-checkstyle-plugin
2.14


validate
validate

src/main/styleguide/style.xml
UTF-8
true
true


check






On running mvn check style:checkstyle I get:

[WARNING] Unable to locate Source XRef to link to - DISABLED and it uses the 
sun_checks.xml

On running mvn compile or package I get

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-checkstyle-plugin:2.14:check (validate) on 
project myProject: Failed during checkstyle configuration: cannot initialize 
module TreeWalker - Unable to instantiate RedundantThrows: Unable to 
instantiate RedundantThrowsCheck -> [Help 1]

so it seems that it uses the old 5.4 version.

How can I fix this?
I’m not confirm with the correct syntax & semantic structure of the pom.xml

Thanks

Phil



Am 13.02.2015 um 21:45 schrieb Vincent Latombe :

> Hi,
> 
> apply
> http://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html#Checking_for_Violations_as_Part_of_the_Build
> 
> and
> http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/upgrading-checkstyle.html
> 
> Vincent
> 
> 2015-02-13 21:28 GMT+01:00 Philipp Kraus :
> 
>> Hello,
>> 
>> I'm using Maven 3.2.5 and I would like to use the Checkstyle plugin in the
>> newest version (6.3).
>> The default installation is 5.8, so how can I add the 6.3 version of the
>> plugin at my pom.xml and
>> use it on the check goal at the validate phase?
>> 
>> I don’t found the correct pom entries to do that.
>> 
>> Thanks a lot
>> 
>> Phil
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 



Maven 3 with newest Checkstyle 6.3

2015-02-13 Thread Philipp Kraus
Hello,

I'm using Maven 3.2.5 and I would like to use the Checkstyle plugin in the 
newest version (6.3).
The default installation is 5.8, so how can I add the 6.3 version of the plugin 
at my pom.xml and
use it on the check goal at the validate phase?

I don’t found the correct pom entries to do that.

Thanks a lot

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