mojohaus / mojohaus/exec-maven-plugin

chmod: cannot access with exec-maven-plugin version later 1.1

Open
#58 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.