Problem about failing maven intall

2014-07-16 Thread Grace
Hello. I was faced with some problem when I was executing maven install goal. I added one dependency in pom.xml and then executed mvn install command. Some error came up during build. Using connector WagonRepositoryConnector with priority 0.0 for http://repo.maven.apache.org/maven2 via [my proxy

Re: move data from pom to class or class to pom

2014-07-16 Thread Curtis Rueden
Hi Alejandro, > In my case the constant is package protected (it would be private > if it wasn't because i need it in unit tests) Right, so the only (hopefully unlikely) problem would be a class in the same package but in a different JAR relying on the value. If it is a serious concern you can wr

Re: move data from pom to class or class to pom

2014-07-16 Thread Alejandro . Endo
Hi Curtis, I *think* i see you point, but wouldn't that happen ONLY if the constant is public and referenced in a separate jar?? where it would be inlined in the referring class (right?). In my case the constant is package protected (it would be private if it wasn't because i need it in unit te

Re: move data from pom to class or class to pom

2014-07-16 Thread Curtis Rueden
Hi Alejandro, > I have a java class that has a constant in it (static final String). > This string is a version number, e.g. "1.3.2-test". Beware: the Java compiler often inlines constants, _including String constants_, into classes that reference the value. So if you compile a class "Foo" agains

Re: move data from pom to class or class to pom

2014-07-16 Thread Robert Scholte
http://mojo.codehaus.org/templating-maven-plugin/ is probably the best matching solution for you. thanks, Robert Op Wed, 16 Jul 2014 20:18:01 +0200 schreef : I have a java class that has a constant in it (static final String). This string is a version number, e.g. "1.3.2-test". I need to hav

move data from pom to class or class to pom

2014-07-16 Thread Alejandro . Endo
I have a java class that has a constant in it (static final String). This string is a version number, e.g. "1.3.2-test". I need to have this same value in a maven plugin configuration (the jaxb plugin) so I am wondering, is it better to keep the actual declaration in the code and somehow tell m

[ANN] Release appassembler-maven-plugin Version 1.8.1 - Released

2014-07-16 Thread Karl Heinz Marbaise
Hi, The Mojo team is pleased to announce the release of the Appassembler Maven Plugin version 1.8.1. The Application Assembler Plugin is a Maven plugin for generating scripts for starting java applications. All dependencies and the artifact of the project itself are placed in a generated Maven