Re: [Fink-users] Configuring Maven On OSX El Capitan

2015-11-11 Thread Martin Costabel
On 12/11/15 00:25, Buz Barstow wrote:
> Hi Martin,
>
> Many thanks for this!
>
> This trick totally works to get Maven working.

Good.

>
> However, unfortunately, once it is working, the install fails:
[]
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check 
> (default) on project zxing-parent: Too many files with unapproved license: 4 
> See RAT report in: /Users/buz/Downloads/zxing/target/rat.txt -> [Help 1]
[]
> I know that this is probably outside the scope of the fink list, but does any 
> one have any ideas that might help to resolve this?

Not me, in any case. But googling "Too many files with unapproved 
license" shows a couple of discussions of this point.

-- 
Martin



--
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Configuring Maven On OSX El Capitan

2015-11-11 Thread Martin Costabel
On 11/11/15 21:59, Buz Barstow wrote:
> Dear all,
>
> I’m trying to install the ZXing barcode reader software and python bindings 
> on OS X El Capitan.
>
> https://github.com/oostendo/python-zxing
>
> The installation requires the use of the Maven installer tool.
>
> I have installed Maven through Fink, but am getting an error when I try to 
> run it:
>
> apollo8:zxing buz$ mvn
> Error: JAVA_HOME is not defined correctly.
>We cannot execute /usr/libexec/java_home/bin/java
>
>
> Could someone help me to resolve this problem please?

This could be a problem with your java installation, but there is also a 
bug in the /sw/bin/mvn script: It contains the line

   export JAVA_HOME=/usr/libexec/java_home

This should certainly be

   export JAVA_HOME=`/usr/libexec/java_home`

You can work around the bug by executing the latter command in your 
shell before running mvn:

$ export JAVA_HOME=`/usr/libexec/java_home`
$ mvn

-- 
Martin







--
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Configuring Maven On OSX El Capitan

2015-11-11 Thread Buz Barstow
Hi Martin,

Many thanks for this! 

This trick totally works to get Maven working.

However, unfortunately, once it is working, the install fails:

[INFO] 57 implicit excludes (use -debug for more details).
[INFO] Exclude: **/.*
[INFO] Exclude: **/.settings/**
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.md
[INFO] Exclude: **/*.textile
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.html
[INFO] Exclude: **/*.js
[INFO] Exclude: **/*.css
[INFO] Exclude: **/*.properties
[INFO] Exclude: **/*.cfg
[INFO] Exclude: **/*.config
[INFO] Exclude: **/*.yaml
[INFO] Exclude: **/gen/**
[INFO] Exclude: **/resources/**
[INFO] Exclude: **/symbolMaps/**
[INFO] Exclude: **/target/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: private/**
[INFO] Exclude: CHANGES
[INFO] Exclude: false
[INFO] 188 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated: 0 
approved: 159 licence.
[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] ZXing .. FAILURE [01:02 min]
[INFO] ZXing Core . SKIPPED
[INFO] ZXing Java SE extensions ... SKIPPED
[INFO] ZXing Android Core . SKIPPED
[INFO] ZXing Android Integration lib .. SKIPPED
[INFO] ZXing Appspot-based encoder  SKIPPED
[INFO] ZXing zxing.org web app  SKIPPED
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 01:02 min
[INFO] Finished at: 2015-11-11T18:15:53-05:00
[INFO] Final Memory: 22M/211M
[INFO] 
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check 
(default) on project zxing-parent: Too many files with unapproved license: 4 
See RAT report in: /Users/buz/Downloads/zxing/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


I know that this is probably outside the scope of the fink list, but does any 
one have any ideas that might help to resolve this?

All the best, and many thanks,

—Buz




> On Nov 11, 2015, at 4:33 PM, Martin Costabel  wrote:
> 
> On 11/11/15 21:59, Buz Barstow wrote:
>> Dear all,
>> 
>> I’m trying to install the ZXing barcode reader software and python bindings 
>> on OS X El Capitan.
>> 
>> https://github.com/oostendo/python-zxing
>> 
>> The installation requires the use of the Maven installer tool.
>> 
>> I have installed Maven through Fink, but am getting an error when I try to 
>> run it:
>> 
>> apollo8:zxing buz$ mvn
>> Error: JAVA_HOME is not defined correctly.
>>   We cannot execute /usr/libexec/java_home/bin/java
>> 
>> 
>> Could someone help me to resolve this problem please?
> 
> This could be a problem with your java installation, but there is also a bug 
> in the /sw/bin/mvn script: It contains the line
> 
>  export JAVA_HOME=/usr/libexec/java_home
> 
> This should certainly be
> 
>  export JAVA_HOME=`/usr/libexec/java_home`
> 
> You can work around the bug by executing the latter command in your shell 
> before running mvn:
> 
> $ export JAVA_HOME=`/usr/libexec/java_home`
> $ mvn
> 
> -- 
> Martin
> 
> 
> 
> 
> 
> 


--
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users