I've forked the apache scm repo on github and cloned it locally.

I'm simply trying to build it, before I start making any changes at all.

I've run into several issues, something is truly not right here, but I can
not quite work out what.

At the moment, either under 2.2.1 or 3.0.4, I'm getting a RAT failure.
Using IBM 1.6 JDK on XP.

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
(rat-check) on project maven-scm: Too many files with unapproved license:
1745 See RAT report in: C:\CALMData\Workspa
ces\RTC\Deb\maven-scm\target\rat.txt -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.rat:apache-rat-plugin:0.11:check (rat-check) on project
maven-scm: Too many files with unapproved lice
nse: 1745 See RAT report in:
C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.rat.mp.RatCheckException: Too many files with
unapproved license: 1745 See RAT report in:
C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt
        at org.apache.rat.mp.RatCheckMojo.check(RatCheckMojo.java:194)
        at org.apache.rat.mp.RatCheckMojo.execute(RatCheckMojo.java:182)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more

When I look at the report file, I can see that target is being included.
Huh????

*****************************************************
Summary
-------
Generated at: 2015-04-01T07:14:41+11:00
Notes: 176
Binaries: 1010
Archives: 80
Standards: 3075

Apache Licensed: 1305
Generated Documents: 0

JavaDocs are generated and so license header is optional
Generated files do not required license headers

1745 Unknown Licenses

*******************************

Unapproved licenses:

  maven-scm/..project
  maven-scm/.settings/org.maven.ide.eclipse.prefs
  maven-scm/maven-scm-api/.classpath
  maven-scm/maven-scm-api/.project
  maven-scm/maven-scm-api/.settings/org.eclipse.jdt.core.prefs
  maven-scm/maven-scm-api/.settings/org.maven.ide.eclipse.prefs
  maven-scm/maven-scm-api/target/.plxarc
  maven-scm/maven-scm-api/target/checkstyle-cachefile
  maven-scm/maven-scm-api/target/checkstyle-header.txt
  maven-scm/maven-scm-api/target/checkstyle-result.xml

maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst

maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
  maven-scm/maven-scm-api/target/rat.txt



Given that this was not my initial error, which was this:

ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on
project maven-scm-api: Execution default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: Unable to
load the mojo 'test' in the plugin
'org.apache.maven.plugins:maven-surefire-plugin:2.17'. A required class is
missing: javax.annotation.Nonnull


I'm kind of lost.

Anders has been able to confirm that it is buildable, but he is using a
slightly different commit (one that I can not find).

Can anyone shed any light on what's going on?

TIA,

-Chris
Hervé BOUTEMY        Apr 1
Hi, No such problem here. Can you try with an Oracle JDK, please? Since
this ...
Raphael Ackermann        Apr 1
Default clone doesn't get you master branch but some old and outdated
branch....
Chris Graham <chrisgw...@gmail.com>

Apr 1

to Maven
I will try to find an oracle one. Anders did manage to try the IBM one, and
it worked... :(
Chris Graham <chrisgw...@gmail.com>

Apr 1

to Maven
Hi Raphael!

Thanks for that. I thought that I was on master, but I'll double check!

Appreciate (from everyone) the help.
Anders Hammar        Apr 1
As I'm being mentioned here I'd like to clarify: I'm able to build with an
IB...
Chris Graham <chrisgw...@gmail.com>

Apr 1

to Maven
Heh. I was tired. For some reason, I was looking at the end of the hash,
not the beginning. Doh!

Brain fade. :-)

-Chris

Sent from my iPhone
Chris Graham <chrisgw...@gmail.com>

Apr 2

to Maven
Hey All.

I've tried updating to a sun VM. The same error as with the IBM JDK.

This is with wiping the entire local repo.

I've even also explicity included the exclusion of target/**

[INFO] Exclude: target/**

[INFO] 57 implicit excludes (use -debug for more details).
[INFO] Exclude: .gitignore
[INFO] Exclude: README.txt
[INFO] Exclude: *.sh
[INFO] Exclude: .git/**
[INFO] Exclude: .idea/**
[INFO] Exclude: **/generated-sources/**
[INFO] Exclude: **/.gitattributes
[INFO] Exclude: src/main/resources/repository/**
[INFO] Exclude: **/src/main/resources/tck-repository/**
[INFO] Exclude: src/test/resources/**
[INFO] Exclude: src/test/repository/**
[INFO] Exclude: src/test/tck-repository/**
[INFO] Exclude: src/main/resources/tck/**
[INFO] Exclude: .java-version
[INFO] Exclude: .repository/**
[INFO] Exclude: target/**
[INFO] Exclude: DEPENDENCIES
[INFO] 4341 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 1745 unknown: 1745
generated: 0 approved: 1305 licence.
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven SCM ......................................... FAILURE
[1:04.421s]
[INFO] Maven SCM API ..................................... SKIPPED
[INFO] Maven SCM Managers ................................ SKIPPED
[INFO] Maven SCM Manager for Plexus ...................... SKIPPED
[INFO] Maven SCM Test .................................... SKIPPED
[INFO] Maven SCM Providers ............................... SKIPPED
[INFO] Maven SCM AccuRev Provider ........................ SKIPPED
[INFO] Maven SCM Bazaar Provider ......................... SKIPPED
[INFO] Maven SCM Clearcase Provider ...................... SKIPPED
[INFO] Maven SCM CVS Provider - Parent ................... SKIPPED
[INFO] Maven SCM CVS Provider TCK tests .................. SKIPPED
[INFO] Maven SCM CVS Provider - Common library ........... SKIPPED
[INFO] Maven SCM CVS Provider - CVS Executable Impl. ..... SKIPPED
[INFO] Maven SCM CVS Provider - CVS Java Impl. ........... SKIPPED
[INFO] Maven SCM Mercurial (Hg) Provider ................. SKIPPED
[INFO] Maven SCM Git Provider - Parent ................... SKIPPED
[INFO] Maven SCM Git Provider - Common library ........... SKIPPED
[INFO] Maven SCM Git Provider TCK Tests .................. SKIPPED
[INFO] Maven SCM Git Provider - Git Executable Impl. ..... SKIPPED
[INFO] Maven SCM Git Provider - JGit Impl. ............... SKIPPED
[INFO] Maven SCM Local Provider .......................... SKIPPED
[INFO] Maven SCM Perforce Provider ....................... SKIPPED
[INFO] Maven SCM Starteam Provider ....................... SKIPPED
[INFO] Maven SCM Subversion Provider - Parent ............ SKIPPED
[INFO] Maven SCM Subversion Provider - Common library .... SKIPPED
[INFO] Maven SCM Subversion Provider TCK Tests ........... SKIPPED
[INFO] Maven SCM Subversion Provider - SVN Executable Impl.  SKIPPED
[INFO] Maven SCM Synergy Provider ........................ SKIPPED
[INFO] Maven SCM Visual Source Safe Provider ............. SKIPPED
[INFO] Maven SCM TFS Provider ............................ SKIPPED
[INFO] Maven SCM MKS Integrity Provider .................. SKIPPED
[INFO] Maven SCM Jazz/Rational Team Concert Provider ..... SKIPPED
[INFO] Maven SCM Standard Providers ...................... SKIPPED
[INFO] Maven SCM Client .................................. SKIPPED
[INFO] Maven SCM Plugin .................................. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:08.515s
[INFO] Finished at: Thu Apr 02 12:08:10 EST 2015
[INFO] Final Memory: 12M/47M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
(rat-check) on project maven-scm: Too many files with unapproved license:
1745 See RAT rep
ort in: C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
C:\CALMData\Workspaces\RTC\Deb\maven-scm>


C:\CALMData\Workspaces\RTC\Deb\maven-scm>mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 19:44:56+1100)
Maven home: C:\apache-maven-3.0.4\bin\..
Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
C:\CALMData\Workspaces\RTC\Deb\maven-scm>


C:\CALMData\Workspaces\RTC\Deb\maven-scm>git log

commit 4a4f362655a301c5112be633b31c2860644ba06f
Author: Herv<C3><A9> Boutemy <hbout...@apache.org>
Date:   Tue Mar 31 01:44:43 2015 +0200

    changed svnpubsub url from /content to /components

Can anyone else replicate this failure or confirm that it's working (and
what's different to my setup?)

In the interim, I'll try java 7 as well.
Chris Graham <chrisgw...@gmail.com>

Apr 2

to Maven
Another different version, another different set of issues to solve.

[INFO] --- apache-rat-plugin:0.11:check (rat-check) @ maven-scm ---
[INFO] 57 implicit excludes (use -debug for more details).
[INFO] Exclude: .gitignore
[INFO] Exclude: README.txt
[INFO] Exclude: *.sh
[INFO] Exclude: .git/**
[INFO] Exclude: .idea/**
[INFO] Exclude: **/generated-sources/**
[INFO] Exclude: **/.gitattributes
[INFO] Exclude: src/main/resources/repository/**
[INFO] Exclude: **/src/main/resources/tck-repository/**
[INFO] Exclude: src/test/resources/**
[INFO] Exclude: src/test/repository/**
[INFO] Exclude: src/test/tck-repository/**
[INFO] Exclude: src/main/resources/tck/**
[INFO] Exclude: .java-version
[INFO] Exclude: .repository/**
[INFO] Exclude: target/**
[INFO] Exclude: DEPENDENCIES
[INFO] 4341 resources included (use -debug for more details)
Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property '
http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not
recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property '
http://javax.xml.XMLConstants/property/accessExternalDTD' is not
recognized.'
Warning:  org.apache.xerces.parsers.SAXParser: Feature '
http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property '
http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property '
http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not
recognized.
[INFO] Rat check: Summary of files. Unapproved: 1745 unknown: 1745
generated: 0 approved: 1305 licence.
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven SCM ......................................... FAILURE [38.306s]
[INFO] Total time: 39.431s
[INFO] Finished at: Thu Apr 02 13:24:37 AEDT 2015
[INFO] Final Memory: 12M/40M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
(rat-check) on project maven-scm: Too many files with unapproved license:
1745 See RAT rep
ort in: C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
C:\CALMData\Workspaces\RTC\Deb\maven-scm>

Same error, kinda, but with different warnings.

C:\CALMData\Workspaces\RTC\Deb\maven-scm>mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 19:44:56+1100)
Maven home: C:\apache-maven-3.0.4\bin\..
Java version: 1.7.0_75, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_75\jre
jieryn        Apr 2
Please dockerize all maven developer environments.
Chris Graham <chrisgw...@gmail.com>

Apr 2

to Maven
Hey!

Still with IBM? I'm not. :( I've been out of work since my contract was
ended (from the US. not locally) on Nov 28th.

Dockerise, now what does that mean?
Chris Graham <chrisgw...@gmail.com>

Apr 2

to Maven
Is there a rat cache? The resultant failures are referencing files in the
target dir that do not exist. For the moment, I've had to exclude
everything, and I'll sort it out later.
Chris Graham <chrisgw...@gmail.com>

Apr 2

to Maven
This is nuts!

Has anyone else ever had the scm build hang at this point:

[INFO] [invoker:run {execution: integration-test}]
[INFO] Building: scm-741-validate-scm-url-matches-working-copy\pom.xml
[INFO] run script prepare.groovy

Looking at the process tree, it's called "svn.exe --version". The build
only continues once I kill svn.
Chris Graham <chrisgw...@gmail.com>

Apr 2

to jieryn
Sorry dude, I thought that I was replying privately.
jieryn        Apr 2
NP :-)
Chris Graham <chrisgw...@gmail.com>

Apr 2

to jieryn
So what do you mean dockerise?

I'm working from an old IBM XP VM that has RTC/RRM/RQM etc V3 installed
into it. That is my dev env, see:

http://nasoftware.ibm.com/tec/assets.nsf/doc/CTEP-8D8K2M

for details. All I had to do was to put an unlocked license in there.
That's what I've been using for the RTC/Jazz SCM dev.

Now that it's moved to git, I've added egit and git into it.

I've forked the apache cloned repo on github, and cloned it locally, and
since then I've done nothing but run into the strangest of issues.

It's nuts.

And about the 3rd day or so of it. So, if you've got any ideas, then I'm
all ears!

But, now I have to go and pack for a time away. So you've got lots of time
to think about it! :) HAHAHAHAHA

Take care,

-Chris
Hervé BOUTEMY        Apr 2
typical of process output consumption problems see
http://groovy-lang.org/gro...
Karl Heinz Marbaise        Apr 2
Hi Chris, I assume you are callling Maven from the root of SCM git
repository...
Chris Graham <chrisgw...@gmail.com>

Apr 2

to Maven
On 02/04/2015, at 5:15 PM, Karl Heinz Marbaise <khmarba...@gmx.de> wrote:

> Hi Chris,
>
> I assume you are callling Maven from the root of SCM git repository via
>
Yes, from the root.

> mvn clean package

Yes, this or

mvn clean install (mostly)

> or
>
> mvn -Prun-its clean verify
>
> What you can try is to use:
>
> mvn clean package -Drat.ignoreErrors=true
>

Good to know! I've currently included an exclude of ** :-) brute force but
it works. :-)

What worries me though us that the generated rat.txt file contains
references to files in /target that do not exist due to the mvn clean.

> which Maven Version do you use? (Can we first check to Maven 3.0.5)
>

2.2.1 and 3.0.4.

> Furthermore i would suggest to do a:
>
> mvn -X clean package >mvn.log
>

I'm away until Saturday night, so I will do when I get back.

> and past the log file to pastebin etc. so that some has a chance to take
a look at it...
>

Will do.

> BTW: I assume that you directly working on console?
>
Yes. Initially I was in the RTC eclipse client (3.5).

Had the same errors there.

But since then I've been using the command line exclusively.

Thanks for your thoughts. I will given them all a go when I'm back in front
of the VM. :-)
jieryn        Apr 3
I was referring to Docker. It would be nice if every supported environment
ha...
Chris Graham <chrisgw...@gmail.com>

Apr 4

to Maven
Hi Hervé

I modified prepare.groovy to include the consumeProcessOutput() line. Works
like a charm! Thanks!

I'm not sure why it's only occurring with me, but... shrug.

I'll include the change with my work.

Now that I can get started! :))))))
Chris Graham <chrisgw...@gmail.com>

Apr 4

to me
Given that I have several different issues, and I want to do them all
separately, how do I handle the version no? Introduce the issue no into the
1.9.5-SNAPSHOT (1.9.5-SCM-xxx-SNAPSHOT)? Or simply not bother?

-Chris

Sent from my iPad
Chris Graham <chrisgw...@gmail.com>

7:25 PM (1 hour ago)

to me
For all of those of you who helped comment on the building scm
1.9.5-SNAPSHOT under the IBM 1.6 JDK.

This fails:

C:\CALMData\Workspaces\RTC\Deb\maven-scm>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pwi3260sr5-20090529_04(SR5))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Windows XP x86-32
jvmwi3260sr5-20090519_35743 (JIT enabled, AOT enabled)
J9VM - 20090519_035743_lHdSMr
JIT  - r9_20090518_2017
GC   - 20090417_AA)
JCL  - 20090529_01

This is the error that it reports:

[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:00.226s
[INFO] Finished at: Tue Apr 21 19:05:30 EST 2015
[INFO] Final Memory: 28M/55M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on
project maven-scm-api: Execution default-test of goal org.a
pache.maven.plugins:maven-surefire-plugin:2.17:test failed: Unable to load
the mojo 'test' in the plugin
'org.apache.maven.plugins:maven-surefire-plugin:2.17'. A req
uired class is missing: javax.annotation.Nonnull
[ERROR] -----------------------------------------------------
[ERROR] realm =
plugin>org.apache.maven.plugins:maven-surefire-plugin:2.17
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/C:/Documents%20and%20Settings/admin/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.17/maven-surefire-plugin-2.17.jar
[ERROR] urls[1] =
file:/C:/Documents%20and%20Settings/admin/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.17/maven-surefire-common-2.17.jar
[ERROR] urls[2] =
file:/C:/Documents%20and%20Settings/admin/.m2/repository/org/apache/maven/surefire/surefire-booter/2.17/surefire-booter-2.17.jar
[ERROR] urls[3] =
file:/C:/Documents%20and%20Settings/admin/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
[ERROR] urls[4] =
file:/C:/Documents%20and%20Settings/admin/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.jar
[ERROR] urls[5] =
file:/C:/Documents%20and%20Settings/admin/.m2/repository/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar
[ERROR] urls[6] =
file:/C:/Documents%20and%20Settings/admin/.m2/repository/org/apache/maven/surefire/surefire-api/2.17/surefire-api-2.17.jar
[ERROR] urls[7] =
file:/C:/Documents%20and%20Settings/admin/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.ja
r
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent:
null]]
[ERROR]
[ERROR] -----------------------------------------------------

This is an updated version of the IBM JDK 1.6 that works:

C:\CALMData\Workspaces\RTC\Deb\maven-scm>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pwi3260sr10fp1-20120321_01(SR10 FP1))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32
jvmwi3260sr10fp1-20120202_101568 (JIT enabled, AOT enabled)
J9VM - 20120202_101568
JIT  - r9_20111107_21307ifx1
GC   - 20120202_AA)
JCL  - 20120320_01

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7:56.802s
[INFO] Finished at: Tue Apr 21 19:22:52 EST 2015
[INFO] Final Memory: 44M/121M
[INFO]
------------------------------------------------------------------------

So, I'd say that the issues that I had were internal to a specific rev of
the IBM JDK. I've also managed to find the IBM JDK 7.0 and 7.1 (don't ask
me what the difference is).



On Thu, Apr 2, 2015 at 9:19 PM, Chris Graham <chrisgw...@gmail.com> wrote:

>
> On 02/04/2015, at 5:15 PM, Karl Heinz Marbaise <khmarba...@gmx.de> wrote:
>
> > Hi Chris,
> >
> > I assume you are callling Maven from the root of SCM git repository via
> >
> Yes, from the root.
>
> > mvn clean package
>
> Yes, this or
>
> mvn clean install (mostly)
>
> > or
> >
> > mvn -Prun-its clean verify
> >
> > What you can try is to use:
> >
> > mvn clean package -Drat.ignoreErrors=true
> >
>
> Good to know! I've currently included an exclude of ** :-) brute force but
> it works. :-)
>
> What worries me though us that the generated rat.txt file contains
> references to files in /target that do not exist due to the mvn clean.
>
> > which Maven Version do you use? (Can we first check to Maven 3.0.5)
> >
>
> 2.2.1 and 3.0.4.
>
> > Furthermore i would suggest to do a:
> >
> > mvn -X clean package >mvn.log
> >
>
> I'm away until Saturday night, so I will do when I get back.
>
> > and past the log file to pastebin etc. so that some has a chance to take
> a look at it...
> >
>
> Will do.
>
> > BTW: I assume that you directly working on console?
> >
> Yes. Initially I was in the RTC eclipse client (3.5).
>
> Had the same errors there.
>
> But since then I've been using the command line exclusively.
>
> Thanks for your thoughts. I will given them all a go when I'm back in
> front of the VM. :-)
>
> -Chris
>
> > Kind regards
> > Karl Heinz Marbaise
> >
> >
> > On 4/2/15 3:11 AM, Chris Graham wrote:
> >> Hey All.
> >>
> >> I've tried updating to a sun VM. The same error as with the IBM JDK.
> >>
> >> This is with wiping the entire local repo.
> >>
> >> I've even also explicity included the exclusion of target/**
> >>
> >> [INFO] Exclude: target/**
> >>
> >> [INFO] 57 implicit excludes (use -debug for more details).
> >> [INFO] Exclude: .gitignore
> >> [INFO] Exclude: README.txt
> >> [INFO] Exclude: *.sh
> >> [INFO] Exclude: .git/**
> >> [INFO] Exclude: .idea/**
> >> [INFO] Exclude: **/generated-sources/**
> >> [INFO] Exclude: **/.gitattributes
> >> [INFO] Exclude: src/main/resources/repository/**
> >> [INFO] Exclude: **/src/main/resources/tck-repository/**
> >> [INFO] Exclude: src/test/resources/**
> >> [INFO] Exclude: src/test/repository/**
> >> [INFO] Exclude: src/test/tck-repository/**
> >> [INFO] Exclude: src/main/resources/tck/**
> >> [INFO] Exclude: .java-version
> >> [INFO] Exclude: .repository/**
> >> [INFO] Exclude: target/**
> >> [INFO] Exclude: DEPENDENCIES
> >> [INFO] 4341 resources included (use -debug for more details)
> >> [INFO] Rat check: Summary of files. Unapproved: 1745 unknown: 1745
> >> generated: 0 approved: 1305 licence.
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Reactor Summary:
> >> [INFO]
> >> [INFO] Maven SCM ......................................... FAILURE
> >> [1:04.421s]
> >> [INFO] Maven SCM API ..................................... SKIPPED
> >> [INFO] Maven SCM Managers ................................ SKIPPED
> >> [INFO] Maven SCM Manager for Plexus ...................... SKIPPED
> >> [INFO] Maven SCM Test .................................... SKIPPED
> >> [INFO] Maven SCM Providers ............................... SKIPPED
> >> [INFO] Maven SCM AccuRev Provider ........................ SKIPPED
> >> [INFO] Maven SCM Bazaar Provider ......................... SKIPPED
> >> [INFO] Maven SCM Clearcase Provider ...................... SKIPPED
> >> [INFO] Maven SCM CVS Provider - Parent ................... SKIPPED
> >> [INFO] Maven SCM CVS Provider TCK tests .................. SKIPPED
> >> [INFO] Maven SCM CVS Provider - Common library ........... SKIPPED
> >> [INFO] Maven SCM CVS Provider - CVS Executable Impl. ..... SKIPPED
> >> [INFO] Maven SCM CVS Provider - CVS Java Impl. ........... SKIPPED
> >> [INFO] Maven SCM Mercurial (Hg) Provider ................. SKIPPED
> >> [INFO] Maven SCM Git Provider - Parent ................... SKIPPED
> >> [INFO] Maven SCM Git Provider - Common library ........... SKIPPED
> >> [INFO] Maven SCM Git Provider TCK Tests .................. SKIPPED
> >> [INFO] Maven SCM Git Provider - Git Executable Impl. ..... SKIPPED
> >> [INFO] Maven SCM Git Provider - JGit Impl. ............... SKIPPED
> >> [INFO] Maven SCM Local Provider .......................... SKIPPED
> >> [INFO] Maven SCM Perforce Provider ....................... SKIPPED
> >> [INFO] Maven SCM Starteam Provider ....................... SKIPPED
> >> [INFO] Maven SCM Subversion Provider - Parent ............ SKIPPED
> >> [INFO] Maven SCM Subversion Provider - Common library .... SKIPPED
> >> [INFO] Maven SCM Subversion Provider TCK Tests ........... SKIPPED
> >> [INFO] Maven SCM Subversion Provider - SVN Executable Impl.  SKIPPED
> >> [INFO] Maven SCM Synergy Provider ........................ SKIPPED
> >> [INFO] Maven SCM Visual Source Safe Provider ............. SKIPPED
> >> [INFO] Maven SCM TFS Provider ............................ SKIPPED
> >> [INFO] Maven SCM MKS Integrity Provider .................. SKIPPED
> >> [INFO] Maven SCM Jazz/Rational Team Concert Provider ..... SKIPPED
> >> [INFO] Maven SCM Standard Providers ...................... SKIPPED
> >> [INFO] Maven SCM Client .................................. SKIPPED
> >> [INFO] Maven SCM Plugin .................................. SKIPPED
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 1:08.515s
> >> [INFO] Finished at: Thu Apr 02 12:08:10 EST 2015
> >> [INFO] Final Memory: 12M/47M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] Failed to execute goal
> org.apache.rat:apache-rat-plugin:0.11:check
> >> (rat-check) on project maven-scm: Too many files with unapproved
> license:
> >> 1745 See RAT rep
> >> ort in: C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt ->
> [Help 1]
> >> [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e
> >> switch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible solutions,
> >> please read the following articles:
> >> [ERROR] [Help 1]
> >> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >> C:\CALMData\Workspaces\RTC\Deb\maven-scm>
> >>
> >>
> >> C:\CALMData\Workspaces\RTC\Deb\maven-scm>mvn -version
> >> Apache Maven 3.0.4 (r1232337; 2012-01-17 19:44:56+1100)
> >> Maven home: C:\apache-maven-3.0.4\bin\..
> >> Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
> >> Java home: C:\Program Files\Java\jdk1.6.0_45\jre
> >> Default locale: en_US, platform encoding: Cp1252
> >> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
> >> C:\CALMData\Workspaces\RTC\Deb\maven-scm>
> >>
> >>
> >> C:\CALMData\Workspaces\RTC\Deb\maven-scm>git log
> >>
> >> commit 4a4f362655a301c5112be633b31c2860644ba06f
> >> Author: Herv<C3><A9> Boutemy <hbout...@apache.org>
> >> Date:   Tue Mar 31 01:44:43 2015 +0200
> >>
> >>     changed svnpubsub url from /content to /components
> >>
> >> Can anyone else replicate this failure or confirm that it's working (and
> >> what's different to my setup?)
> >>
> >> In the interim, I'll try java 7 as well.
> >>
> >>
> >> On Wed, Apr 1, 2015 at 5:23 PM, Chris Graham <chrisgw...@gmail.com>
> wrote:
> >>
> >>> Heh. I was tired. For some reason, I was looking at the end of the
> hash,
> >>> not the beginning. Doh!
> >>>
> >>> Brain fade. :-)
> >>>
> >>> -Chris
> >>>
> >>> Sent from my iPhone
> >>>
> >>> On 01/04/2015, at 5:03 PM, Anders Hammar <and...@hammar.net> wrote:
> >>>
> >>>> As I'm being mentioned here I'd like to clarify:
> >>>>
> >>>> I'm able to build with an IBM JDK 1.6 (included with WAS 8.0.0.10) on
> >>>> Windows 7. Some of the unit tests and int tests fail though, very
> likely
> >>>> due to the fact that I'm currently behind a corp firewall/proxy.
> >>>>
> >>>> Chris is on Windows XP I believe, and is possibly using a slightly
> >>>> different version of the IBM JDK 1.6. I think we were building from
> the
> >>>> same git commit (master, current HEAD,
> >>>> 4a4f362655a301c5112be633b31c2860644ba06f) though.
> >>>>
> >>>> Chris: git commits are identified by SHA-1 check sums, which is
> >>>> unambiguous. Most of the time though, it's enough to specify the
> "short
> >>>> SHA-1" to identify a specific commit. That's what I did in our private
> >>>> thread where I stated "4a4f36", which is in fact the same commit you
> were
> >>>> seeing with "git log" ("4a4f362655a301c5112be633b31c2860644ba06f").
> >>>>
> >>>> /Anders
> >>>>
> >>>> On Wed, Apr 1, 2015 at 5:15 AM, Chris Graham <chrisgw...@gmail.com>
> >>> wrote:
> >>>>
> >>>>> Hi Raphael!
> >>>>>
> >>>>> Thanks for that. I thought that I was on master, but I'll double
> check!
> >>>>>
> >>>>> Appreciate (from everyone) the help.
> >>>>>
> >>>>> -Chris
> >>>>>
> >>>>> On Wed, Apr 1, 2015 at 8:24 AM, Raphael Ackermann <
> >>>>> raphael.ackerm...@gmail.com> wrote:
> >>>>>
> >>>>>> Default clone doesn't get you master branch but some old and
> outdated
> >>>>>> branch. Had same problem with rat check.
> >>>>>> Switching to master made it pass.
> >>>>>>
> >>>>>> On Tue, Mar 31, 2015, 22:23 Chris Graham <chrisgw...@gmail.com>
> wrote:
> >>>>>>
> >>>>>>> Hi All.
> >>>>>>>
> >>>>>>> I've forked the apache scm repo on github and cloned it locally.
> >>>>>>>
> >>>>>>> I'm simply trying to build it, before I start making any changes at
> >>>>> all.
> >>>>>>>
> >>>>>>> I've run into several issues, something is truly not right here,
> but I
> >>>>>> can
> >>>>>>> not quite work out what.
> >>>>>>>
> >>>>>>> At the moment, either under 2.2.1 or 3.0.4, I'm getting a RAT
> failure.
> >>>>>>> Using IBM 1.6 JDK on XP.
> >>>>>>>
> >>>>>>> [ERROR] Failed to execute goal
> >>>>>> org.apache.rat:apache-rat-plugin:0.11:check
> >>>>>>> (rat-check) on project maven-scm: Too many files with unapproved
> >>>>> license:
> >>>>>>> 1745 See RAT report in: C:\CALMData\Workspa
> >>>>>>> ces\RTC\Deb\maven-scm\target\rat.txt -> [Help 1]
> >>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> >>>>> execute
> >>>>>>> goal org.apache.rat:apache-rat-plugin:0.11:check (rat-check) on
> >>> project
> >>>>>>> maven-scm: Too many files with unapproved lice
> >>>>>>> nse: 1745 See RAT report in:
> >>>>>>> C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt
> >>>>>>>        at
> >>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> >>>>>>> MojoExecutor.java:213)
> >>>>>>>        at
> >>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> >>>>>>> MojoExecutor.java:153)
> >>>>>>>        at
> >>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> >>>>>>> MojoExecutor.java:145)
> >>>>>>>        at
> >>>>>>>
> >>>>>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> >>>>>>> LifecycleModuleBuilder.java:84)
> >>>>>>>        at
> >>>>>>>
> >>>>>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> >>>>>>> LifecycleModuleBuilder.java:59)
> >>>>>>>        at
> >>>>>>>
> >>>>>
> >>>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
> >>>>>>> LifecycleStarter.java:183)
> >>>>>>>        at
> >>>>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.
> >>>>>>> execute(LifecycleStarter.java:161)
> >>>>>>>        at
> >>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> >>>>>>>        at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> >>>>>>>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> >>>>>>>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> >>>>>>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> >>>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >>>>>>>        at
> >>>>>>>
> >>>>>>
> >>>>>
> >>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> >>>>>>> 39)
> >>>>>>>        at
> >>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >>>>>>> DelegatingMethodAccessorImpl.java:37)
> >>>>>>>        at java.lang.reflect.Method.invoke(Method.java:599)
> >>>>>>>        at
> >>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.
> >>>>>>> launchEnhanced(Launcher.java:290)
> >>>>>>>        at
> >>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.
> >>>>>>> launch(Launcher.java:230)
> >>>>>>>        at
> >>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.
> >>>>>>> mainWithExitCode(Launcher.java:409)
> >>>>>>>        at
> >>>>>>>
> >>>>>
> >>>
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> >>>>>>> Caused by: org.apache.rat.mp.RatCheckException: Too many files with
> >>>>>>> unapproved license: 1745 See RAT report in:
> >>>>>>> C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt
> >>>>>>>        at
> org.apache.rat.mp.RatCheckMojo.check(RatCheckMojo.java:194)
> >>>>>>>        at
> >>>>> org.apache.rat.mp.RatCheckMojo.execute(RatCheckMojo.java:182)
> >>>>>>>        at
> >>>>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
> >>>>>>> DefaultBuildPluginManager.java:101)
> >>>>>>>        at
> >>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> >>>>>>> MojoExecutor.java:209)
> >>>>>>>        ... 19 more
> >>>>>>>
> >>>>>>> When I look at the report file, I can see that target is being
> >>>>> included.
> >>>>>>> Huh????
> >>>>>>>
> >>>>>>> *****************************************************
> >>>>>>> Summary
> >>>>>>> -------
> >>>>>>> Generated at: 2015-04-01T07:14:41+11:00
> >>>>>>> Notes: 176
> >>>>>>> Binaries: 1010
> >>>>>>> Archives: 80
> >>>>>>> Standards: 3075
> >>>>>>>
> >>>>>>> Apache Licensed: 1305
> >>>>>>> Generated Documents: 0
> >>>>>>>
> >>>>>>> JavaDocs are generated and so license header is optional
> >>>>>>> Generated files do not required license headers
> >>>>>>>
> >>>>>>> 1745 Unknown Licenses
> >>>>>>>
> >>>>>>> *******************************
> >>>>>>>
> >>>>>>> Unapproved licenses:
> >>>>>>>
> >>>>>>>  maven-scm/..project
> >>>>>>>  maven-scm/.settings/org.maven.ide.eclipse.prefs
> >>>>>>>  maven-scm/maven-scm-api/.classpath
> >>>>>>>  maven-scm/maven-scm-api/.project
> >>>>>>>  maven-scm/maven-scm-api/.settings/org.eclipse.jdt.core.prefs
> >>>>>>>  maven-scm/maven-scm-api/.settings/org.maven.ide.eclipse.prefs
> >>>>>>>  maven-scm/maven-scm-api/target/.plxarc
> >>>>>>>  maven-scm/maven-scm-api/target/checkstyle-cachefile
> >>>>>>>  maven-scm/maven-scm-api/target/checkstyle-header.txt
> >>>>>>>  maven-scm/maven-scm-api/target/checkstyle-result.xml
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>
> maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/compile/
> >>>>>>> default-compile/createdFiles.lst
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>
> maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/compile/
> >>>>>>> default-compile/inputFiles.lst
> >>>>>>>
> >>>>>>> maven-scm/maven-scm-api/target/maven-status/maven-
> >>>>>>> compiler-plugin/testCompile/default-testCompile/createdFiles.lst
> >>>>>>>
> >>>>>>> maven-scm/maven-scm-api/target/maven-status/maven-
> >>>>>>> compiler-plugin/testCompile/default-testCompile/inputFiles.lst
> >>>>>>>  maven-scm/maven-scm-api/target/rat.txt
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Given that this was not my initial error, which was this:
> >>>>>>>
> >>>>>>> ERROR] Failed to execute goal
> >>>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.17:test
> >>> (default-test)
> >>>>>> on
> >>>>>>> project maven-scm-api: Execution default-test of goal
> >>>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed:
> >>> Unable
> >>>>>> to
> >>>>>>> load the mojo 'test' in the plugin
> >>>>>>> 'org.apache.maven.plugins:maven-surefire-plugin:2.17'. A required
> >>> class
> >>>>>> is
> >>>>>>> missing: javax.annotation.Nonnull
> >>>>>>>
> >>>>>>>
> >>>>>>> I'm kind of lost.
> >>>>>>>
> >>>>>>> Anders has been able to confirm that it is buildable, but he is
> using
> >>> a
> >>>>>>> slightly different commit (one that I can not find).
> >>>>>>>
> >>>>>>> Can anyone shed any light on what's going on?
> >>>>>>>
> >>>>>>> TIA,
> >>>>>>>
> >>>>>>> -Chris
> >>>>>>>
> >>>>>>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > For additional commands, e-mail: dev-h...@maven.apache.org
> >
>

Reply via email to