leave list

2022-05-17 Thread Marc Hoppins
unsubscribe

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



RE: Maven Book recommendation

2022-01-27 Thread Marc Hoppins
I am not sure anything exists, but I would appreciate such a thing also.


-Original Message-
From: Bruno Melloni  
Sent: Thursday, January 27, 2022 3:10 PM
To: users@maven.apache.org
Subject: Maven Book recommendation

EXTERNAL

It became very clear to me that my current approach of googling tutorials, 
guides and solutions is a wildly inadequate approach to learn Maven.  Mainly 
because all of those are either far too basic for "real life" projects, or 
because they assume prior knowledge that I don't yet have.

So, I am looking to buy a good book to methodically learn all I need about 
Maven.

Because of how I learn best I would like to find a book that uses the following 
as its presentation approach:

  * It must be gradual, starting from the assumption that I know nothing
and only learn what is taught in the book.
  * New concepts must include sample code that I can type and test,
either complete code or as an extension to a previous example.
Absolutely no "loose snippets" that assume prior knowledge (for
example this is what makes most formal Spring documentation
completely useless to me, as I often can't follow it to a complete
functioning solution, and I had similar but not as severe issues
with the formal Apache Maven documentation).
  * The end of each chapter must have exercises that I can code and run
to test my understanding, with the ability to download the solution
from a website in those cases when my code fails to function correctly.
  * Not essential but it would be ideal if the book was available in
electronic form and readable through an ebook reader that functions
on a Microsoft Surface tablet (Windows 10/11) and remembers the last
page I read (even better if position syncs between the tablet and my
desktop so that I can continue reading on either).

If _you learned Maven from a book that matches at least the first 3 criteria_, 
please recommend it.  I'd greatly appreciate it.


RE: Ambari 2.7.6 build questions

2022-01-12 Thread Marc Hoppins
Thanks.  You are clearly helpful.

If I may prod you regarding manual download/install of items in .m2

When I originally initiated the project (following ambari docs) and used:

mvn versions:set -DnewVersion=2.7.6.0.0

and again for ambari-metrics

a bunch of things got downloaded. When I ran clean/test/compile builds more 
items were downloaded and dropped into my local .m2

What did NOT get downloaded were two items. One of which is 
maven-source-plugin. MVNRepository shows (for 3.2.1)



org.apache.maven.plugins
maven-source-plugin
3.2.1
 

Which matches other org.apache.maven plugins such as shade and surefire and 
these WERE downloaded.  Is there some reason these missing two were left out?

Importantly, if I go to 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/3.2.1/
../
maven-source-plugin-3.2.1-javadoc.jar 2019-12-16 18:21 69893
  
maven-source-plugin-3.2.1-javadoc.jar.asc 2019-12-16 18:21   488
  
maven-source-plugin-3.2.1-javadoc.jar.md5 2019-12-16 18:2132
  
maven-source-plugin-3.2.1-javadoc.jar.sha12019-12-16 18:2140
  
maven-source-plugin-3.2.1-source-release.zip  2019-12-16 18:21204286
  
maven-source-plugin-3.2.1-source-release.zip  2019-12-16 18:21   488
  
maven-source-plugin-3.2.1-source-release.zip  2019-12-16 18:2132
  
maven-source-plugin-3.2.1-source-release.zip  2019-12-16 18:2140
  
maven-source-plugin-3.2.1-sources.jar 2019-12-16 18:21 23814
  
maven-source-plugin-3.2.1-sources.jar.asc 2019-12-16 18:21   488
  
maven-source-plugin-3.2.1-sources.jar.md5 2019-12-16 18:2132
  
maven-source-plugin-3.2.1-sources.jar.sha12019-12-16 18:2140
  
maven-source-plugin-3.2.1.jar 2019-12-16 18:21 32159
  
maven-source-plugin-3.2.1.jar.asc 2019-12-16 18:21   488
  
maven-source-plugin-3.2.1.jar.md5 2019-12-16 18:2132
  
maven-source-plugin-3.2.1.jar.sha12019-12-16 18:2140
  
maven-source-plugin-3.2.1.pom 2019-12-16 18:21  6924
  
maven-source-plugin-3.2.1.pom.asc 2019-12-16 18:21   488
  
maven-source-plugin-3.2.1.pom.md5 2019-12-16 18:2132
  
maven-source-plugin-3.2.1.pom.sha12019-12-16 18:2140   

Could I just grab the jar, pom and sha1, copy these to my .m2 repo and they 
would get picked up by the build?

I notice that the local repo versions of things have extra items such as : 
several m2e-lastUpdated and _remote.repositories  I understand these may only 
be relative to ECLIPSE. 

-Original Message-
From: Delany  
Sent: Wednesday, January 12, 2022 11:30 AM
To: Maven Users List 
Subject: Re: Ambari 2.7.6 build questions

EXTERNAL

Hi Marc,
The "2.1.4" line should be left out. Clearly the authors are 
not following standard practice for managing dependencies, so do not assume 
that they know what they're doing.
Change the version in the dependencyManagement section if you need it to be 
v2.1.4.
Delany


On Wed, 12 Jan 2022 at 12:13, Marc Hoppins  wrote:

> HI all,
>
> I get a ‘overriding managed version 2.0.1 for rpm-maven.plugin’ 
> message and I see two plugin definitions for this artifact, with two 
> versions, in the same ‘build’ block in the top-level 
> (ambari-2.7.6.0.0) POM. From what I see, does this mean that the plugin must 
> be declared in both places:
>
> build>pluginManagement>plugins>plugin>rpm-maven-plugin
> and
> build>plugins>plugin>rpm-maven-plugin?
>
> In any case, why is the version different for these declarations?
>
>   
> 
>   
> 
>   org.apache.rat
>   apache-rat-plugin
>   0.12
> 
> 
>   org.apache.maven.plugins
>   maven-surefire-plugin
>   2.20
> 
> 
>   org.codehaus.mojo
>   rpm-maven-plugin
>   2.0.1
> 
> 
>   org.vafer
>   jdeb
>   1.8
> 
> 
>   org.apache.maven.plugins
>   maven-clean-plugin
>   2.5
> 
> 
>   maven-assembly-plugin
>   2.2-beta-5
> 
>   
> 
> 
>   
> org.codehaus.mojo
> build-helper-maven-plugin
> 1.8
> 
>   
> parse-package-version
> 
>   regex-property
> 
> 
>   package-version
>   ${project.version}
>
> ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)((\.|-).*)?
> 

Ambari 2.7.6 build questions

2022-01-12 Thread Marc Hoppins
HI all,

I get a ‘overriding managed version 2.0.1 for rpm-maven.plugin’ message and I 
see two plugin definitions for this artifact, with two versions, in the same 
‘build’ block in the top-level (ambari-2.7.6.0.0) POM. From what I see, does 
this mean that the plugin must be declared in both places:

build>pluginManagement>plugins>plugin>rpm-maven-plugin
and
build>plugins>plugin>rpm-maven-plugin?

In any case, why is the version different for these declarations?

  

  

  org.apache.rat
  apache-rat-plugin
  0.12


  org.apache.maven.plugins
  maven-surefire-plugin
  2.20


  org.codehaus.mojo
  rpm-maven-plugin
  2.0.1


  org.vafer
  jdeb
  1.8


  org.apache.maven.plugins
  maven-clean-plugin
  2.5


  maven-assembly-plugin
  2.2-beta-5

  


  
org.codehaus.mojo
build-helper-maven-plugin
1.8

  
parse-package-version

  regex-property


  package-version
  ${project.version}
  ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)((\.|-).*)?
  $1.$2.$3.$4
  true

  
  
parse-package-release

  regex-property


  package-release
  ${project.version}
  
^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)((\.|-)(([0-9]+)|(SNAPSHOT)|(techwin)).*)?
  $7
  true

  

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

  1.8
  1.8

  
  
maven-assembly-plugin

  

${ambari.dir}/ambari-project/src/main/assemblies/empty.xml
  


  
make-assembly
package

  single

  

  
  
org.codehaus.mojo
rpm-maven-plugin
2.1.4

  

none

  attached-rpm

  


  2012, Apache Software Foundation
  Development
  Maven Recipe: RPM Package.
  ${package-release}
  ${package-version}
  

  


RE: Ambari build

2022-01-07 Thread Marc Hoppins
Thanks, I was following those but they fail to explain that RAT throws a 
shedload of licence errors, or that some portions of the process fail to 
download as non central repositories have been altered, etc.

-Original Message-
From: Sylwester Lachiewicz  
Sent: Friday, January 7, 2022 4:58 PM
To: Maven Users List 
Subject: Re: Ambari build

EXTERNAL

Also please check instructions
 here

https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.6

pt., 7 sty 2022, 13:28 użytkownik Delany 
napisał:

> Hi Marc
> -DskipTests is case sensitive. You can also skip compilation of tests 
> with -Dmaven.test.skip Eclipse is probably using a bundled JDK - 
> version 11+ since you're getting javax errors.
> Intellij is using a bundled Maven since its complaining about https repos.
> Check Intellij's Maven configuration page.
> Delany
>
>
> On Fri, 7 Jan 2022 at 14:16, Marc Hoppins  wrote:
>
> > Hi all,
> >
> > This is a stock ambari 2.7.6 build attempt on Ubuntu 18.04.  I am 
> > not a java entity but I am interested in understanding how these 
> > tools operate with a view to getting away from Cloudera. We 
> > currently run with CDH 6.3, the free/express version and this leaves 
> > us stuck with Centos7, or Ubuntu18, both of which are EOL, or fast 
> > approaching.  Given the
> exorbitant
> > pricing per node for ANY version of Cloudera, it is prohibitive to
> justify
> > the cost when making money off data is not a thing we could possibly 
> > contemplate.
> >
> > Aside from the obvious fact that every build produces errors which 
> > seem
> to
> > have been ignored by whoever created this,  I am mystified as to why 
> > the errors are different depending on how I run a build.
> >
> > I have OpenJDK 8 installed, as well as the general pre-requisites 
> > according to the Ambari documentation.
> >
> > Maven 3.6.0
> > Eclipse 2021-12 (4.22.0)
> > IntelliJ IDEA 2021.3.1 (Community)
> >
> > Below are the output errors from OS CLI, Eclipse and IntelliJ. All 
> > three produce DIFFERENT errors and this is confusing as I thought 
> > they all used Maven.  I run an INSTALL build with rat.skip as RAT 
> > seems to produce thousands of licence errors for every item in the 
> > project.  If RAT is so important, why have these errors not been sorted?
> >
> > Also, if I have -Dskiptests, why do tests still get run?
> >
> > I am sure that there are folk who have successfully built Ambari but 
> > useful and successful attempts have not been published for any 
> > recent version.
> >
> > Any information would be helpful.
> >
> > Thanks.
> >
> > Marc
> >
> > ** When run from CLI **
> >
> > mvn install -Drat.skip=true -Dskiptests=true -X [INFO] Running 
> > org.apache.ambari.server.metric.system.impl.MetricsServiceTest
> > [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > 0.359 s - in
> org.apache.ambari.server.metric.system.impl.MetricsServiceTest
> > [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > 30.001 s - in
> > org.apache.ambari.server.checks.AmbariMetricsHadoopSinkVersionCheckT
> > est [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time 
> > elapsed:
> > 6.232 s - in 
> > org.apache.ambari.server.upgrade.SchemaUpgradeHelperTest
> > [WARNING] Tests run: 6, Failures: 0, Errors: 0, Skipped: 1, Time elapsed:
> > 5.677 s - in
> org.apache.ambari.server.metric.system.impl.MetricsSourceTest
> > [INFO]
> > [INFO] Results:
> > [INFO]
> > [ERROR] Failures:
> > [ERROR]   ExecutionCommandWrapperTest.testGetExecutionCommand:247
> > [ERROR]   AmbariErrorHandlerTest.testHandleInternalServerError:119
> Nothing
> > captured yet
> > [ERROR] Errors:
> > [ERROR]
> >
> RootServiceComponentConfigurationResourceProviderTest.shouldUpdatePass
> wordInCredentialStoreIfSecurityPasswordEncryptionIsEnabled:534
> > > ConstructorNotFound
> > [ERROR]
> >
> PasswordUtilsTest.shouldReadPasswordFromCredentialStoreOfAnAlias:67->s
> etupBasicCredentialProviderExpectations:127
> > > ConstructorNotFound
> > [ERROR]
> >
> PasswordUtilsTest.shouldResolveEncryptedPaswordIfWeStoreTheAliasInPass
> wordFile:103->setupBasicCredentialProviderExpectations:127
> > > ConstructorNotFound
> > [INFO]
> > [ERROR] Tests run: 5271, Failures: 2, Errors: 3, Skipped: 60 [INFO] 
> > [INFO]
> > 
> > 
> > [INFO] Reactor Summary:
> > [IN

Ambari build

2022-01-07 Thread Marc Hoppins
Hi all,

This is a stock ambari 2.7.6 build attempt on Ubuntu 18.04.  I am not a java 
entity but I am interested in understanding how these tools operate with a view 
to getting away from Cloudera. We currently run with CDH 6.3, the free/express 
version and this leaves us stuck with Centos7, or Ubuntu18, both of which are 
EOL, or fast approaching.  Given the exorbitant pricing per node for ANY 
version of Cloudera, it is prohibitive to justify the cost when making money 
off data is not a thing we could possibly contemplate.

Aside from the obvious fact that every build produces errors which seem to have 
been ignored by whoever created this,  I am mystified as to why the errors are 
different depending on how I run a build.

I have OpenJDK 8 installed, as well as the general pre-requisites according to 
the Ambari documentation.

Maven 3.6.0
Eclipse 2021-12 (4.22.0)
IntelliJ IDEA 2021.3.1 (Community)

Below are the output errors from OS CLI, Eclipse and IntelliJ. All three 
produce DIFFERENT errors and this is confusing as I thought they all used 
Maven.  I run an INSTALL build with rat.skip as RAT seems to produce thousands 
of licence errors for every item in the project.  If RAT is so important, why 
have these errors not been sorted?

Also, if I have -Dskiptests, why do tests still get run?

I am sure that there are folk who have successfully built Ambari but useful and 
successful attempts have not been published for any recent version.

Any information would be helpful.

Thanks.

Marc

** When run from CLI **

mvn install -Drat.skip=true -Dskiptests=true -X
[INFO] Running org.apache.ambari.server.metric.system.impl.MetricsServiceTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.359 s 
- in org.apache.ambari.server.metric.system.impl.MetricsServiceTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.001 s 
- in org.apache.ambari.server.checks.AmbariMetricsHadoopSinkVersionCheckTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.232 s 
- in org.apache.ambari.server.upgrade.SchemaUpgradeHelperTest
[WARNING] Tests run: 6, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 5.677 
s - in org.apache.ambari.server.metric.system.impl.MetricsSourceTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   ExecutionCommandWrapperTest.testGetExecutionCommand:247
[ERROR]   AmbariErrorHandlerTest.testHandleInternalServerError:119 Nothing 
captured yet
[ERROR] Errors:
[ERROR]   
RootServiceComponentConfigurationResourceProviderTest.shouldUpdatePasswordInCredentialStoreIfSecurityPasswordEncryptionIsEnabled:534
 > ConstructorNotFound
[ERROR]   
PasswordUtilsTest.shouldReadPasswordFromCredentialStoreOfAnAlias:67->setupBasicCredentialProviderExpectations:127
 > ConstructorNotFound
[ERROR]   
PasswordUtilsTest.shouldResolveEncryptedPaswordIfWeStoreTheAliasInPasswordFile:103->setupBasicCredentialProviderExpectations:127
 > ConstructorNotFound
[INFO]
[ERROR] Tests run: 5271, Failures: 2, Errors: 3, Skipped: 60
[INFO]
[INFO] 
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main 2.7.6.0.0 .. SUCCESS [  0.651 s]
[INFO] Apache Ambari Project POM 2.7.6.0.0  SUCCESS [  0.009 s]
[INFO] Ambari Web 2.7.6.0.0 ... SUCCESS [01:20 min]
[INFO] Ambari Views 2.7.6.0.0 . SUCCESS [  1.149 s]
[INFO] Ambari Admin View 2.7.6.0.0  SUCCESS [ 26.216 s]
[INFO] ambari-utility 1.0.0.0-SNAPSHOT  SUCCESS [  2.062 s]
[INFO] ambari-metrics 2.7.6.0.0 ... SUCCESS [  0.109 s]
[INFO] Ambari Metrics Common 2.7.6.0.0  SUCCESS [ 37.461 s]
[INFO] Ambari Metrics Hadoop Sink 2.7.6.0.0 ... SUCCESS [  6.900 s]
[INFO] Ambari Metrics Flume Sink 2.7.6.0.0  SUCCESS [  4.742 s]
[INFO] Ambari Metrics Kafka Sink 2.7.6.0.0  SUCCESS [  3.439 s]
[INFO] Ambari Metrics Storm Sink 2.7.6.0.0  SUCCESS [  1.970 s]
[INFO] Ambari Metrics Storm Sink (Legacy) 2.7.6.0.0 ... SUCCESS [  1.802 s]
[INFO] Ambari Metrics Collector 2.7.6.0.0 . SUCCESS [02:38 min]
[INFO] Ambari Metrics Monitor 2.7.6.0.0 ... SUCCESS [  1.998 s]
[INFO] Ambari Metrics Grafana 2.7.6.0.0 ... SUCCESS [  3.006 s]
[INFO] Ambari Metrics Host Aggregator 2.7.6.0.0 ... SUCCESS [  8.727 s]
[INFO] Ambari Metrics Assembly 2.7.6.0.0 .. SUCCESS [01:57 min]
[INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT  SUCCESS [  0.268 s]
[INFO] Ambari Server 2.7.6.0.0  FAILURE [11:12 min]
[INFO] Ambari Functional Tests 2.7.6.0.0 .. SKIPPED
[INFO] Ambari Agent 2.7.6.0.0 . SKIPPED
[INFO] ambari-logsearch 2.7.6.0.0 . SKIPPED
[INFO] Ambari Logsearch Appender 2