Hi,

I am using the exec:java goal to run a java program within my project. The plugin configuration is as shown below

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>java</goal>
            </goals>
          </execution>
        </executions>
        <configuration>

<mainClass>au.com.observant.ringocore.dispatcher.tools.SpringMessagePump</mainClass>
        </configuration>
      </plugin>
    </plugins>


When I run mvn exec:java on the command line I get the exception show below. When I execute the same command from a batch file it all works as expected. This seems to only happen on the W2K machine and works perfectly fine on Linux and on Mac. I am using java 1.5.0_09.

Any ideas?

cheers
</jima>

 C:\observant\projects\modules\ringo\ringo-core\ringocore-dispatcher>mvn
 -Dappcontext=classpath:au/com/observant/ringocore/dispatcher
 /tools/msg-queue-dispatcher.xml exec:java
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'exec'.
 [INFO]
 ------------------------------------------------------------------------
 [INFO] Building ringocore-dispatcher
 [INFO]    task-segment: [exec:java]
 [INFO]
 ------------------------------------------------------------------------
 [INFO] Preparing exec:java
 [INFO] No goals needed for project - skipping
 [INFO] [exec:java]
 log4j:WARN No appenders could be found for logger
 (org.springframework.beans.factory.xml.XmlBeanDefinitionReader).
 log4j:WARN Please initialize the log4j system properly.
 [INFO]
 ------------------------------------------------------------------------
 [ERROR] BUILD ERROR
 [INFO]
 ------------------------------------------------------------------------
 [INFO] Exception during program execution

 Prohibited package name: java.math
 [INFO]
 ------------------------------------------------------------------------
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 ------------------------------------------------------------------------
 [INFO] Total time: 5 seconds
 [INFO] Finished at: Mon Jan 21 22:41:16 EST 2008
 [INFO] Final Memory: 10M/18M
 [INFO]
 ------------------------------------------------------------------------

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

   http://xircles.codehaus.org/manage_email

Reply via email to