bug-obsolete-packages
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-obsolete-packages] WG: A question from me to you !


From: Stadelmann Josef
Subject: [bug-obsolete-packages] WG: A question from me to you !
Date: Thu, 25 Aug 2011 19:24:44 +0200

Dear Bug SH utils, I have no other name! J

 

What is wrong with my character passing ?

 

This on a OpenVMS 8.4 and bash

 

 

Von: Stadelmann Josef
Gesendet: Donnerstag, 25. August 2011 17:01
An: 'Philippe Vouters'
Betreff: AW: A question from me to you !

 

Hi Philippe

 

Here my $ bash environment

bash$ printenv

CATALINA_HOME=/dkba/apache/jakarta/tomcat

MAVEN_HOME=/dkb3/apache-maven-1_0_2

MAVEN=/dkb3/apache-maven-1_0_2/bin

TERM=vt400-132

M2=/dka3/apache-maven-2.2.1/bin

HOSTTYPE=ia64

PATH=/dka3/apache-maven-2.2.1:/dka3/apache-maven-2.2.1/bin:/dka3/stadelma:::/dka3/stadelma:/bin:/gnu/bin:/GNU/BIN:/usr/bin:/usr/loca

l/bin:.

HOME=/dka3/stadelma

M2_REPO=/dka3/stadelma/.m2/

SHELL=/bin/sh

USER=STADELMA

CATALINA_BASE=/dkba/apache/jakarta/tomcat

JAVA_HOME=/dka3/java_60

mvn=/dka3/apache-maven-2.2.1/bin/mvn

M2_HOME=/dka3/apache-maven-2.2.1

OSTYPE=VMS

MAVEN_REPO=/dka3/stadelma/.maven/

SHLVL=1

MAVEN_OPTS=-Xmx1024m

_=/gnu/bin/printenv

bash$

 

and what is exported or defined in a .BASHRC

bash$ export -p

declare -x CATALINA_BASE="/dkba/apache/jakarta/tomcat"

declare -x CATALINA_HOME="/dkba/apache/jakarta/tomcat"

declare -x HOME="/dka3/stadelma"

declare -x HOSTTYPE="ia64"

declare -x JAVA_HOME="/dka3/java_60"

declare -x M2="/dka3/apache-maven-2.2.1/bin"

declare -x M2_HOME="/dka3/apache-maven-2.2.1"

declare -x M2_REPO="/dka3/stadelma/.m2/"

declare -x MAVEN="/dkb3/apache-maven-1_0_2/bin"

declare -x MAVEN_HOME="/dkb3/apache-maven-1_0_2"

declare -x MAVEN_OPTS="-Xmx1024m"

declare -x MAVEN_REPO="/dka3/stadelma/.maven/"

declare -x OSTYPE="VMS"

declare -x PATH="/dka3/apache-maven-2.2.1:/dka3/apache-maven-2.2.1/bin:/dka3/stadelma:::/dka3/stadelma:/bin:/gnu/bin:/GNU/BIN:/usr/b

in:/usr/local/bin:."

declare -x SHELL="/bin/sh"

declare -x SHLVL="1"

declare -x TERM="vt400-132"

declare -x USER="STADELMA"

declare -x mvn="/dka3/apache-maven-2.2.1/bin/mvn"

bash$

 

and watch what mvn help provides under bash, mainly due to the inability to treat/pass-on uper and lower case chars

 

bash$ mvn help

0: DKA3:[JAVA$60.BIN]JAVA$JAVA.EXE;1

1: -Dclassworlds.conf=/dka3/apache-maven-2_2_1/bin/m2.conf

2: -Duser.home=/dka3/stadelma

3: -Dmaven.home=/dka3/apache-maven-2_2_1

4: -Dhttp.auth.preference=Basic

5: org.codehaus.classworlds.Launcher

6: HELP   I was using a lower case help in the bash command but somehow it gets HELP and then maven claims later; see below

[INFO] Scanning for projects...

[INFO] Reactor build order:

[INFO]   Apache Axis2 - Parent

[INFO]   Apache Axis2 - Resource bundle

[INFO]   Apache Axis2 - Kernel

[INFO]   Apache Axis2 - Data Binding

[INFO]   Apache Axis2 - Transport - Local

[INFO]   Apache Axis2 - Transport - HTTP

[INFO]   Apache Axis2 - Code Generation

[INFO]   Apache Axis2 - ADB Codegen

[INFO]   Apache Axis2 - tool - MAR Maven Plugin

[INFO]   Apache Axis2 - Addressing

[INFO]   Apache Axis2 - Java2WSDL

[INFO]   Apache Axis2 - tool - Repository Maven Plugin

[INFO]   Apache Axis2 - Fast Infoset

[INFO]   Apache Axis2 - Clustering

[INFO]   Apache Axis2 - Scripting

[INFO]   Apache Axis2 - JAXB-RI Data Binding

[INFO]   Apache Axis2 - SAAJ

[INFO]   Apache Axis2 - Metadata

[INFO]   Apache Axis2 - JAXWS

[INFO]   Apache Axis2 - Test Utilities

[INFO]   Apache Axis2 - XMLBeans Data Binding

[INFO]   Apache Axis2 - tool - WSDL2Code Maven Plugin

[INFO]   Apache Axis2 - JAXWS Integration Tests

[INFO]   Apache Axis2 - JiBX Data Binding

[INFO]   Apache Axis2 - JSON

[INFO]   Apache Axis2 - MTOM Policy

[INFO]   Apache Axis2 - spring

[INFO]   Apache Axis2 - OSGi Integration

[INFO]   Apache Axis2 - Integration

[INFO]   Apache Axis2 - MEX

[INFO]   Apache Axis2 - MTOM Policy module

[INFO]   Apache Axis2 - Ping

[INFO]   Apache Axis2 - tool - AAR Maven Plugin

[INFO]   Apache Axis2 - Version Service

[INFO]   Apache Axis2 - SOAP Monitor Servlet

[INFO]   Apache Axis2 - SOAP Monitor Module

[INFO]   Apache Axis2 - tool - Ant Plugin

[INFO]   Apache Axis2 - tool - Eclipse Codegen Plugin

[INFO]   Apache Axis2 - tool - Eclipse service Plugin

[INFO]   Apache Axis2 - tool - Intellij IDEA Plugin

[INFO]   Apache Axis2 - tool - Java2WSDL Maven Plugin

[INFO]   Apache Axis2 - CORBA

[INFO]   Apache Axis2 - JAXWS (mar)

[INFO]   Apache Axis2 - Web Application module

[INFO]   Apache Axis2 - Root

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Invalid task 'HELP': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArt

ifactId:pluginVersion:goal

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 3 seconds

[INFO] Finished at: Thu Aug 25 16:57:53 CEST 2011

[INFO] Final Memory: 16M/154M

[INFO] ------------------------------------------------------------------------

bash$ mvn help

 

Even mvn "help" under bash goes wrong

bash$ mvn "help"

0: DKA3:[JAVA$60.BIN]JAVA$JAVA.EXE;1

1: -Dclassworlds.conf=/dka3/apache-maven-2_2_1/bin/m2.conf

2: -Duser.home=/dka3/stadelma

3: -Dmaven.home=/dka3/apache-maven-2_2_1

4: -Dhttp.auth.preference=Basic

5: org.codehaus.classworlds.Launcher

6: HELP

[INFO] Scanning for projects...

[INFO] Reactor build order:

[INFO]   Apache Axis2 - Parent

[INFO]   Apache Axis2 - Resource bundle

[INFO]   Apache Axis2 - Kernel

 

I reported that a year ago to our local HP staff but got told that BASH is a never ending construction site, very help full?

Why is this help argument passed wrong while all other args are passed well?

 

 

Since I use the command as

 

$ Bash mvn install –e DforkMode=never –skipTests=true

 

I get only this error for which you should note that sh is not at /bin/sh but at /gnu/bin/sh

 

Maybe you have an idea why my GNU BASH does not have the sh at /bin but at /gnu/bin/sh?

 

There is somewhere said that the root is "/"

So /bin/sh should in fact work

 

And /bin/sh –c ls 1nlaR /path should work to

 

Any  clue

 

Josef

 

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Failed to create assembly: Error creating assembly archive test-zip: Failed to retrieve numeric file attributes using: '/bin/

sh -c ls -1nlaR /dka3/sw-projekte/asf/axis/axis2/java/core/trunk/modules/kernel/test-zip'

 

Child creation error: no such file or directory

 

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create assembly: Error creating assembly archive test-zip: Failed

to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /dka3/sw-projekte/asf/axis/axis2/java/core/trunk/modules/kernel/tes

t-zip'

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create assembly: Error creating assembly archive test-zip: Fail

ed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /dka3/sw-projekte/asf/axis/axis2/java/core/trunk/modules/kernel/

test-zip'

        at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:429)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

        ... 17 more

Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error creating assembly archive test-zip: Failed to re

trieve numeric file attributes using: '/bin/sh -c ls -1nlaR /dka3/sw-projekte/asf/axis/axis2/java/core/trunk/modules/kernel/test-zip

'

        at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:197)

        at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:378)

        ... 19 more

Caused by: org.codehaus.plexus.archiver.ArchiverException: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /

dka3/sw-projekte/asf/axis/axis2/java/core/trunk/modules/kernel/test-zip'

        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:427)

        at org.apache.maven.plugin.assembly.filter.ComponentsXmlArchiverFileFilter.finalizeArchiveCreation(ComponentsXmlArchiverFile

Filter.java:166)

        at org.codehaus.plexus.archiver.AbstractArchiver.runArchiveFinalizers(AbstractArchiver.java:826)

        at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:850)

        at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:496)

        at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:193)

        ... 20 more

Caused by: java.io.IOException: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /dka3/sw-projekte/asf/axis/a

xis2/java/core/trunk/modules/kernel/test-zip'

        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java

:287)

        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttri

buteUtils.java:222)

        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttri

buteUtils.java:188)

        at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.ja

va:175)

        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:423)

        ... 25 more

Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while executing process.

        at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:656)

        at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:140)

        at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:103)

        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java

:277)

        ... 29 more

Caused by: java.io.IOException: Cannot run program "/bin/sh": Child creation error: no such file or directory

 

        at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)

       at java.lang.Runtime.exec(Runtime.java:593)

        at java.lang.Runtime.exec(Runtime.java:509)

        at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:636)

        ... 32 more

Caused by: java.io.IOException: Child creation error: no such file or directory

 

        at java.lang.UNIXProcess.forkAndExec(Native Method)

        at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)

        at java.lang.ProcessImpl.start(ProcessImpl.java:65)

        at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)

        ... 35 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 29 seconds

[INFO] Finished at: Thu Aug 25 19:18:05 CEST 2011

[INFO] Final Memory: 72M/208M

[INFO] ------------------------------------------------------------------------

bash$

 

Josef

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]