mojohaus / mojohaus/exec-maven-plugin
chmod: cannot access with exec-maven-plugin version later 1.1
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 191
- Forks
- 111
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
Consider a cofiguration:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
<executions>
<execution>
<id>script-chmod</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${project.build.directory}</workingDirectory>
<executable>chmod</executable>
<arguments>
<argument>+x</argument>
<argument>${project.build.directory}/target/tomcat/bin/*.sh</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>start-tomcat</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>target/tomcat/bin/startup.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
When exec-maven-plugin.version is 1.1 everything works, but when it 1.5.0, 1.4.0 ot 1.3.2 I got en error: chmod: cannot access ‘/mypath/tomcat/bin/*.sh’: No such file or directory
Note
version 1.1 works without workingDirectory tag.
To experiment you can download and extract tomcat version 7.0.68
Operation system is Ubuntu 15.10
java version is 1.8.0_66-b17
maven version 3.3.3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the exec-maven-plugin configuration shown in the issue and reproduce it using Tomcat 7.0.68, Ubuntu 15.10, Java 1.8.0_66-b17, and Maven 3.3.3. Compare versions 1.1, 1.3.2, 1.4.0, and 1.5.0, focusing on the chmod command, workingDirectory, and wildcard argument. Done means the later versions handle the target shell scripts consistently with version 1.1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100