Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • J jruby-maven-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The TorqueBox Project
  • jruby-maven-plugins
  • Merge requests
  • !67

Options to exclude maven classpath from gem-maven-plugin:exec

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/leonidv/exclude-maven-cp into master Mar 11, 2015
  • Overview 5
  • Commits 2
  • Pipelines 0
  • Changes 6

Created by: leonidv

I got createprocess error=206 the filename or extension is too long when try to use gem-maven-plugin in javaee project. It's because we have very many dependencies and windows can't execute process with huge comand line.

For fix this problem I added options to exclude (exactly, it's named add project classpath) to AbstractJRubyMojo.

Example of usage:

            <plugin>
                <groupId>de.saumya.mojo</groupId>
                <artifactId>gem-maven-plugin</artifactId>
                <version>1.0.9-SNAPSHOT</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <addProjectClasspath>false</addProjectClasspath>
                            <skipGemInstall>true</skipGemInstall>
                            <execArgs>${gem.home}\bin\compass compile
                                ${basedir}\src\main\sass
                                --sass-dir ${basedir}\src\main\sass\
                                --css-dir ${project.build.directory}\css</execArgs>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>rubygems</groupId>
                        <artifactId>compass</artifactId>
                        <version>1.0.3</version>
                        <type>gem</type>
                    </dependency>
                </dependencies>
            </plugin>
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/leonidv/exclude-maven-cp