Re: Error running Maven

2012-04-08 Thread nanosoft
Thanks Wayne, It now works.



--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5625692.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Error running Maven

2012-04-06 Thread nanosoft
I have installed maven in C:\apache-maven-3.0.4-bin. Its installed
successfully as mvn --version gives expected o/p.

I have wifi internet connection for which I have changed proxy settings in
conf/settings.xml to following:

 proxies
 
proxy
  idoptional/id
  activetrue/active
  protocolhttp/protocol
  usernamesanp/username
  passwordpwd/password
  host/host
  port80/port
  nonProxyHostslocalhost/nonProxyHosts
/proxy

  /proxies



Here sanp is the name of wifi connection I connect and pwd is the
password.
In IE under tools-internet options-connections-lan settings  no proxy
address is defined so i have left host tag empty. Other parts of
settings.xml is untouched.

when I execute below command I get error :

*C:\Maven Workspacesmvn archetype:generate -DgroupId=com.mycompany.app
-Dartifac
tId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=fa
lse -eX*


[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1.676s
[INFO] Finished at: Fri Apr 06 17:04:53 IST 2012
[INFO] Final Memory: 3M/245M
[INFO]

[ERROR] The goal you specified requires a project to execute but there is no
POM
 in this directory (C:\Maven Workspaces). Please verify you invoked Maven
from t
he correct directory. - [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified
requi
res a project to execute but there is no POM in this directory (C:\Maven
Workspa
ces). Please verify you invoked Maven from the correct directory.
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:89)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
C:\Maven Workspaces

Please help what should i do?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622633.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Error running Maven

2012-04-06 Thread Guillaume Polet
Wheter you are connected through a WIFI connection or a wired connection 
should not make a difference.


Poxy settings should be set if you need to go through a proxy server to 
access internet. Otherwise don't put anything in it.


I believe you are confusing a proxy server with a wifi access point 
which are two very different things.


Cheers,
Guillaume
Le 6/04/2012 14:18, nanosoft a écrit :

I have installed maven in C:\apache-maven-3.0.4-bin. Its installed
successfully as mvn --version gives expected o/p.

I have wifi internet connection for which I have changed proxy settings in
conf/settings.xml to following:

  proxies

 proxy
   idoptional/id
   activetrue/active
   protocolhttp/protocol
   usernamesanp/username
   passwordpwd/password
   host/host
   port80/port
   nonProxyHostslocalhost/nonProxyHosts
 /proxy

   /proxies



Here sanp is the name of wifi connection I connect and pwd is the
password.
In IE under tools-internet options-connections-lan settings  no proxy
address is defined so i have lefthost  tag empty. Other parts of
settings.xml is untouched.

when I execute below command I get error :

*C:\Maven Workspacesmvn archetype:generate -DgroupId=com.mycompany.app
-Dartifac
tId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=fa
lse -eX*


[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1.676s
[INFO] Finished at: Fri Apr 06 17:04:53 IST 2012
[INFO] Final Memory: 3M/245M
[INFO]

[ERROR] The goal you specified requires a project to execute but there is no
POM
  in this directory (C:\Maven Workspaces). Please verify you invoked Maven
from t
he correct directory. -  [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified
requi
res a project to execute but there is no POM in this directory (C:\Maven
Workspa
ces). Please verify you invoked Maven from the correct directory.
 at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:89)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
 at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
C:\Maven Workspaces

Please help what should i do?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622633.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Error running Maven

2012-04-06 Thread nanosoft
So I commented the proxy settings, still i am getting the same error.

Do I need to put any repository settings in settings.xml or it will connect
automatically to some default repository. I am just trying to execute the
first command to build the project directory structure still its failing.
Please help what else I need to do?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-tp5622633p5622651.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Error running Maven

2012-04-06 Thread Wayne Fay
 I have wifi internet connection for which I have changed proxy settings in
 conf/settings.xml to following:

Where did you get the idea this was necessary? It is possible some
documentation is not sufficiently clear and should be improved. You
only need to configure the proxy when you actually have a proxy
between yourself and the Internet.

 *C:\Maven Workspacesmvn archetype:generate -DgroupId=com.mycompany.app
 -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart
 -DinteractiveMode=false -eX*

Try just mvn archetype:generate and pick the quickstart from the
list provided, then supply the groupId and artifactId etc. OR you need
to provide other details on the command line:
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart
-DarchetypeVersion=1.0
-DgroupId=com.company
-DartifactId=project
-Dversion=1.0
-Dpackage=1.5

Again, I have to ask, where did you get the idea that you could run
archetype:generate without all of the required parameters? There may
be some bad documentation that needs updating.

 org.apache.maven.lifecycle.MissingProjectException: The goal you specified
 requi
 res a project to execute but there is no POM in this directory (C:\Maven
 Workspa
 ces). Please verify you invoked Maven from the correct directory.

This is an odd error to receive from trying to run archetype:generate.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Error running Maven Tests with powermock and junit

2011-07-15 Thread Chiara
Hi,
I am not being able to run Powermock through maven. 
I've an ejb 2.0 project and i've put under test folder my test's classes.

Here's the test:

*@RunWith(PowerMockRunner.class)
public class AdapterTest{

@Test
public void testForSqlDate() {
   ..*

I haven't configured anyting special for running my test. My pom references
the following deps:

   
 *   * junit | junit | 4.8.2
* org.easymock |easymock |3.0
* org.powermock | powermock-easymock-release-full |1.4.7*


This part of pom is like this : 

*...
   dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.8.2/version
typejar/type
scopetest/scope
/dependency
dependency
groupIdorg.easymock/groupId
artifactIdeasymock/artifactId
version3.0/version
typejar/type
scopetest/scope
/dependency
dependency
groupIdorg.powermock/groupId
artifactIdpowermock-easymock-release-full/artifactId
version1.4.7/version
typejar/type
classifierfull/classifier
scopetest/scope
/dependency
...*

When i run Maven Test i obtain the following error :

*---
 T E S T S
---
Running TestSuite
Running TestSuite
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.454 sec
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
*


why it doesn't recognise my tests??

Pls help me, i'm new in maven..

Thk's a lot

Chiara




--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590688p4590688.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Error running Maven Tests with powermock and junit

2011-07-15 Thread Greg Akins
On Fri, Jul 15, 2011 at 9:35 AM, Chiara chiara_sime...@hotmail.it wrote:
 Hi,
 I am not being able to run Powermock through maven.
 I've an ejb 2.0 project and i've put under test folder my test's classes.

Everything looked ok to me.  But to make sure.. Did you put the tests
in project root/src/test/java ?

-- 
Greg Akins
http://twitter.com/akinsgre

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Error running Maven Tests with powermock and junit

2011-07-15 Thread Chiara

Hi, yes i've put all test under this folder.
I don't know what to do seriously.. 'cause if i try to run test using run as 
junit tests it works..

Date: Fri, 15 Jul 2011 06:42:28 -0700
From: ml-node+4590720-191037357-230...@n5.nabble.com
To: chiara_sime...@hotmail.it
Subject: Re: Error running Maven Tests with powermock and junit



On Fri, Jul 15, 2011 at 9:35 AM, Chiara [hidden email] wrote:

 Hi,

 I am not being able to run Powermock through maven.

 I've an ejb 2.0 project and i've put under test folder my test's classes.


Everything looked ok to me.  But to make sure.. Did you put the tests

in project root/src/test/java ?


-- 

Greg Akins

http://twitter.com/akinsgre

-

To unsubscribe, e-mail: [hidden email]

For additional commands, e-mail: [hidden email]










If you reply to this email, your message will be added to the 
discussion below:

http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590720.html



To unsubscribe from Error running Maven Tests with powermock 
and junit, click here.
  

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590726.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Error running Maven Tests with powermock and junit

2011-07-15 Thread Greg Akins
On Fri, Jul 15, 2011 at 9:44 AM, Chiara chiara_sime...@hotmail.it wrote:

 Hi, yes i've put all test under this folder.
 I don't know what to do seriously.. 'cause if i try to run test using run as 
 junit tests it works..

So the only change you make.. after the JUnit tests run, is to add the
@RunWith(PowerMockRunner.class) attribute?

And then the tests are not recognized?

-- 
Greg Akins
http://twitter.com/akinsgre

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Error running Maven Tests with powermock and junit

2011-07-15 Thread Guillaume Polet

Does your class containing the tests matches the default include patterns?
 
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes


includes
include**/Test*.java/include
include**/*Test.java/include
include**/*TestCase.java/include
/includes

Guillaume

Le 15/07/2011 15:51, Greg Akins a écrit :

On Fri, Jul 15, 2011 at 9:44 AM, Chiarachiara_sime...@hotmail.it  wrote:

Hi, yes i've put all test under this folder.
I don't know what to do seriously.. 'cause if i try to run test using run as 
junit tests it works..

So the only change you make.. after the JUnit tests run, is to add the
@RunWith(PowerMockRunner.class) attribute?

And then the tests are not recognized?




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Error running Maven Tests with powermock and junit

2011-07-15 Thread Chiara
Hi,
I am not being able to run Powermock through maven. 
I've an ejb 2.0 project and i've put under test folder my test's classes.

Here's the test:

*@RunWith(PowerMockRunner.class)
public class AdapterTest{

@Test
public void testForSqlDate() {
   ..*

I haven't configured anyting special for running my test. My pom references
the following deps:

   
 *   * junit | junit | 4.8.2
* org.easymock |easymock |3.0
* org.powermock | powermock-easymock-release-full |1.4.7*


This part of pom is like this : 

*...
   dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.8.2/version
typejar/type
scopetest/scope
/dependency
dependency
groupIdorg.easymock/groupId
artifactIdeasymock/artifactId
version3.0/version
typejar/type
scopetest/scope
/dependency
dependency
groupIdorg.powermock/groupId
artifactIdpowermock-easymock-release-full/artifactId
version1.4.7/version
typejar/type
classifierfull/classifier
scopetest/scope
/dependency
...*

When i run Maven Test i obtain the following error :

*---
 T E S T S
---
Running TestSuite
Running TestSuite
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.454 sec
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
*


why it doesn't recognise my tests??

Pls help me, i'm new in maven..

Thk's a lot

Chiara




--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590673.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Error running Maven Tests with powermock and junit

2011-07-15 Thread Chiara

Yes 'cause my test class is AdapterTest.java

I have to add some specific plugin ??

Plugin i've added to project are :

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdwas6-maven-plugin/artifactId
version1.1.2/version
executions
execution
goals
goalejbdeploy/goal
/goals
/execution
/executions
configuration
wasHome${was61.home}/wasHome
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ejb-plugin/artifactId
version2.3/version
configuration
ejbVersion2.1/ejbVersion
generateClienttrue/generateClient
archive
manifest
addClasspathtrue/addClasspath
/manifest
indexfalse/index
addMavenDescriptorfalse/addMavenDescriptor
/archive
/configuration
/plugin 

thk a lot

Date: Fri, 15 Jul 2011 07:05:39 -0700
From: ml-node+4590805-1772571158-230...@n5.nabble.com
To: chiara_sime...@hotmail.it
Subject: Re: Error running Maven Tests with powermock and junit



Does your class containing the tests matches the default include 
patterns?

  

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes

includes

include**/Test*.java/include

include**/*Test.java/include

include**/*TestCase.java/include

/includes


Guillaume


Le 15/07/2011 15:51, Greg Akins a écrit :

 On Fri, Jul 15, 2011 at 9:44 AM, Chiara[hidden email]  wrote:

 Hi, yes i've put all test under this folder.

 I don't know what to do seriously.. 'cause if i try to run test using run as 
 junit tests it works..

 So the only change you make.. after the JUnit tests run, is to add the

 @RunWith(PowerMockRunner.class) attribute?



 And then the tests are not recognized?





-

To unsubscribe, e-mail: [hidden email]

For additional commands, e-mail: [hidden email]










If you reply to this email, your message will be added to the 
discussion below:

http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590805.html



To unsubscribe from Error running Maven Tests with powermock 
and junit, click here.
  

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590845.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Error running Maven Tests with powermock and junit

2011-07-15 Thread Wayne Fay
 Yes 'cause my test class is AdapterTest.java

 I have to add some specific plugin ??

Perhaps try mvn -X ... and see if you notice anything interesting in
the debug output? Otherwise maybe post the output of that command to
www.pastebin.com and send a link here (please do NOT send the full log
via email) and someone can take a look at it.

Also, if you can package up a sample project that demonstrates this
behavior consistently, that may be helpful for diagnosing the problem
and providing a fix.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Error running maven: The prefix ant for element ant:ant is not bound.

2004-08-02 Thread Stijn de Witt
Hi,

I have an error when trying to call an ant file from maven as in the example
on the website ( http://maven.apache.org/ant-guide/qna/antfarming.html ).
Here is my maven.xml and my build output. Can anyone help me with this?

Thanks,
-Stijn


maven.xml

?xml version=1.0 encoding=ISO-8859-1?
project xmlns:j=jelly:core
preGoal name=java:compile
 echo message=preGoal running.../
ant:ant dir=${basedir} antfile=build.xml/
/preGoal
/project

build output

Fatal Error [line 5, row 52]: The prefix ant for element ant:ant is not
bound.
org.apache.maven.MavenException: Error parsing plugin script
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:165
)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177
)
 at
org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:479)
 at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:551)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
 at org.apache.maven.cli.App.doMain(App.java:486)
 at org.apache.maven.cli.App.main(App.java:1215)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)
--- Nested Exception ---
org.xml.sax.SAXParseException: The prefix ant for element ant:ant is not
bound.
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at javax.xml.parsers.SAXParser.parse(Unknown Source)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:157
)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177
)
 at
org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:479)
 at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:551)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
 at org.apache.maven.cli.App.doMain(App.java:486)
 at org.apache.maven.cli.App.main(App.java:1215)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)

You have encountered an unknown error running Maven. Please help us to
correct
this problem by following these simple steps:
- read the Maven FAQ at http://maven.apache.org/faq.html
- run the same command again with the '-e' parameter, eg maven -e jar
- search the maven-user archives for the error at
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
- post the output of maven -e to JIRA at
http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up
first)
- run 'maven --info' and post the output as the environment to the bug above


Total time: 2 seconds
Finished at: Mon Aug 02 12:26:37 CEST 2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error running maven: The prefix ant for element ant:ant is not bound.

2004-08-02 Thread Peter Nabbefeld
Hello,
You haven't defined the ant namespace, just add xmlns:ant=jelly:ant to 
Your project tag.

Kind regards
Peter

Stijn de Witt schrieb:
Hi,
I have an error when trying to call an ant file from maven as in the example
on the website ( http://maven.apache.org/ant-guide/qna/antfarming.html ).
Here is my maven.xml and my build output. Can anyone help me with this?
Thanks,
-Stijn
maven.xml

?xml version=1.0 encoding=ISO-8859-1?
project xmlns:j=jelly:core
preGoal name=java:compile
 echo message=preGoal running.../
ant:ant dir=${basedir} antfile=build.xml/
/preGoal
/project
build output

Fatal Error [line 5, row 52]: The prefix ant for element ant:ant is not
bound.
org.apache.maven.MavenException: Error parsing plugin script
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:165
)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177
)
 at
org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:479)
 at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:551)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
 at org.apache.maven.cli.App.doMain(App.java:486)
 at org.apache.maven.cli.App.main(App.java:1215)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)
--- Nested Exception ---
org.xml.sax.SAXParseException: The prefix ant for element ant:ant is not
bound.
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at javax.xml.parsers.SAXParser.parse(Unknown Source)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:157
)
 at
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177
)
 at
org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:479)
 at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:551)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
 at org.apache.maven.cli.App.doMain(App.java:486)
 at org.apache.maven.cli.App.main(App.java:1215)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)
You have encountered an unknown error running Maven. Please help us to
correct
this problem by following these simple steps:
- read the Maven FAQ at http://maven.apache.org/faq.html
- run the same command again with the '-e' parameter, eg maven -e jar
- search the maven-user archives for the error at
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
- post the output of maven -e to JIRA at
http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up
first)
- run 'maven --info' and post the output as the environment to the bug above
Total time: 2 seconds
Finished at: Mon Aug 02 12:26:37 CEST 2004

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error running maven: The prefix ant for element ant:ant is not bound.

2004-08-02 Thread Stijn de Witt
Thanks Peter, that did the trick!

- Original Message - 
From: Peter Nabbefeld [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 02, 2004 1:03 PM
Subject: Re: Error running maven: The prefix ant for element ant:ant is
not bound.



 Hello,

 You haven't defined the ant namespace, just add xmlns:ant=jelly:ant to
 Your project tag.

 Kind regards

 Peter



 Stijn de Witt schrieb:
  Hi,
 
  I have an error when trying to call an ant file from maven as in the
example
  on the website (
http://maven.apache.org/ant-guide/qna/antfarming.html ).
  Here is my maven.xml and my build output. Can anyone help me with this?
 
  Thanks,
  -Stijn
 
 
  maven.xml
  
  ?xml version=1.0 encoding=ISO-8859-1?
  project xmlns:j=jelly:core
  preGoal name=java:compile
   echo message=preGoal running.../
  ant:ant dir=${basedir} antfile=build.xml/
  /preGoal
  /project
 
  build output
  
  Fatal Error [line 5, row 52]: The prefix ant for element ant:ant is
not
  bound.
  org.apache.maven.MavenException: Error parsing plugin script
   at
 
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:165
  )
   at
 
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177
  )
   at
 
org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:479)
   at
 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:551)
   at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
   at org.apache.maven.cli.App.doMain(App.java:486)
   at org.apache.maven.cli.App.main(App.java:1215)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)
  --- Nested Exception ---
  org.xml.sax.SAXParseException: The prefix ant for element ant:ant is
not
  bound.
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(Unknown Source)
   at
 
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:157
  )
   at
 
org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177
  )
   at
 
org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:479)
   at
 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:551)
   at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
   at org.apache.maven.cli.App.doMain(App.java:486)
   at org.apache.maven.cli.App.main(App.java:1215)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)
 
  You have encountered an unknown error running Maven. Please help us to
  correct
  this problem by following these simple steps:
  - read the Maven FAQ at http://maven.apache.org/faq.html
  - run the same command again with the '-e' parameter, eg maven -e jar
  - search the maven-user archives for the error at
 
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
  - post the output of maven -e to JIRA at
  http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up
  first)
  - run 'maven --info' and post the output as the environment to the bug
above
 
 
  Total time: 2 seconds
  Finished at: Mon Aug 02 12:26:37 CEST 2004


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]