I think the problem is that you're using a JBoss patched version of
the plugin (1.2.1.jbossorg-3), but you don't have the JBoss.org repo
configured as a plugin repository. As you're using Maven 2, you might
need to configure it as a repo as well to get any JBoss patched
dependencies of that plugin (if there are any) as well.

Any specific reason you're not using stock v1.2.1?

/Anders

On Fri, May 18, 2012 at 3:26 PM, Emmett Walsh <[email protected]> wrote:
>
>>
>> Hi,
>>
>> im trying to execute something from a maven pom using
>> the exec-maven-plugin
>>
>> so I have this:
>>
>>
>>          </executions>
>>                 </plugin>
>>                 <plugin>
>>                                <artifactId>exec-maven-plugin</artifactId>
>>                                <groupId>org.codehaus.mojo</groupId>
>>                                <executions>
>>                                    <execution><!-- Run our version
>> calculation script -->
>>                                        <id>Package cms</id>
>>                                        <phase>compile</phase>
>>                                        <goals>
>>                                                <goal>exec</goal>
>>                                        </goals>
>>                                        <configuration>
>>
>>  <executable>echo</executable>
>>                                            <arguments>
>>
>>  <argument>asdas</argument>
>>                                            </arguments>
>>                                        </configuration>
>>                                    </execution>
>>                                 </executions>
>>                             </plugin>
>>
>>
>>
>> but when i run mvn I get this error below - any idea whats wrong :
>>
>>
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> AdminsMacBook-2:tabber Emmett$ clear
>>
>> AdminsMacBook-2:tabber Emmett$ mvn exec:exec
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO]    QL project
>> [INFO]    QL data module
>> [INFO]    QL service module
>> [INFO]    QL web module
>> [INFO]    QL CMS module
>> [INFO]    QL Solr
>> [INFO] Searching repository for plugin with prefix: 'exec'.
>> Downloading:
>> http://repo1.maven.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1.jbossorg-3/exec-maven-plugin-1.2.1.jbossorg-3.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Funnel Scope QL project
>> [INFO]    task-segment: [exec:exec]
>> [INFO]
>> ------------------------------------------------------------------------
>> -----------------------------------------------------
>> this realm =
>> app0.child-container[org.codehaus.mojo:exec-maven-plugin:1.2.1.jbossorg-3]
>> urls[0] =
>> file:/Users/Emmett/.m2/repository/org/codehaus/mojo/exec-maven-plugin/1.2.1.jbossorg-3/exec-maven-plugin-1.2.1.jbossorg-3.jar
>> urls[1] =
>> file:/Users/Emmett/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>> Number of imports: 10
>> import: org.codehaus.classworlds.Entry@a6c57a42
>> import: org.codehaus.classworlds.Entry@12f43f3b
>> import: org.codehaus.classworlds.Entry@20025374
>> import: org.codehaus.classworlds.Entry@f8e44ca4
>> import: org.codehaus.classworlds.Entry@92758522
>> import: org.codehaus.classworlds.Entry@ebf2705b
>> import: org.codehaus.classworlds.Entry@bb25e54
>> import: org.codehaus.classworlds.Entry@bece5185
>> import: org.codehaus.classworlds.Entry@3fee8e37
>> import: org.codehaus.classworlds.Entry@3fee19d8
>>
>>
>> this realm = plexus.core
>> urls[0] =
>> file:/Developer/tools/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
>> Number of imports: 10
>> import: org.codehaus.classworlds.Entry@a6c57a42
>> import: org.codehaus.classworlds.Entry@12f43f3b
>> import: org.codehaus.classworlds.Entry@20025374
>> import: org.codehaus.classworlds.Entry@f8e44ca4
>> import: org.codehaus.classworlds.Entry@92758522
>> import: org.codehaus.classworlds.Entry@ebf2705b
>> import: org.codehaus.classworlds.Entry@bb25e54
>> import: org.codehaus.classworlds.Entry@bece5185
>> import: org.codehaus.classworlds.Entry@3fee8e37
>> import: org.codehaus.classworlds.Entry@3fee19d8
>> -----------------------------------------------------
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Internal error in the plugin manager executing goal
>> 'org.codehaus.mojo:exec-maven-plugin:1.2.1.jbossorg-3:exec': Unable to load
>> the mojo 'org.codehaus.mojo:exec-maven-plugin:1.2.1.jbossorg-3:exec' in the
>> plugin 'org.codehaus.mojo:exec-maven-plugin'. A required class is missing:
>> org/apache/commons/exec/ExecuteStreamHandler
>> org.apache.commons.exec.ExecuteStreamHandler
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 second
>> [INFO] Finished at: Fri May 18 14:57:28 CEST 2012
>> [INFO] Final Memory: 3M/81M
>> [INFO]
>> ------------------------------------------------------------------------
>> AdminsMacBook-2:tabber Emmett$ mvn exec:exec
>>
>>
>>
>>
>> --
>> Emmett
>
>
>
>
>
> --
> Emmett

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to