When I execute mvn clean I receive:

File or url 'E:\Softs\maven-2.0.4/lib/ant-optional-1.5.3-1.jar' could not be 
found
java.net.MalformedURLException: unknown protocol: e
        at java.net.URL.<init>(URL.java:574)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at com.werken.forehead.Forehead.loadFileOrUrl(Forehead.java:403)
        at com.werken.forehead.Forehead.load(Forehead.java:322)
        at com.werken.forehead.Forehead.config(Forehead.java:245)
        at com.werken.forehead.Forehead.config(Forehead.java:131)
        at com.werken.forehead.Forehead.main(Forehead.java:579)



-----Message d'origine-----
De : Dário Luís Coneglian Oliveros [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 19 janvier 2007 09:49
À : Maven Users List
Objet : RE: Maven2 and unknown protocol: e

That's an expected behaviour. You must provide at least one goal when running 
'mvn'.
If you already have a maven 2 project, change to its directory and run 'mvn 
clean' or 'mvn install'.

-----Original Message-----
From: Khabot, Zakaria [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 19 de janeiro de 2007 07:29
To: Maven Users List
Subject: RE: Maven2 and unknown protocol: e


Hi,

Thanks for your contribution.

When I tape mvn --version I receive : Maven version 2.0.4.

In my classpath of Eclipse I defined a variable : M2_REPO = C:/Documents and 
Settings/user/.m2/repository

When I run mvn -X 

 

+ Error stacktraces are turned on.

Maven version: 2.0.4

[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin

gs\user\.m2\plugin-registry.xml'

[DEBUG] Building Maven global-level plugin registry from: 'E:\Softs\maven-2.0.4\

bin\..\conf\plugin-registry.xml'

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] You must specify at least one goal. Try 'install'

[INFO] ------------------------------------------------------------------------

[DEBUG] Trace

org.apache.maven.BuildFailureException: You must specify at least one goal. Try

'install'

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:132)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

        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:585)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

 

 

I still have the same exception

 

Thanks for help.

 

 

-----Message d'origine-----
De : Dário Luís Coneglian Oliveros [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 18 janvier 2007 20:24
À : Maven Users List
Objet : RE: Maven2 and unknown protocol: e

 

It seems like your maven installation at E:\Softs\maven-2.0.4 is not 2.0.4, but 
1.0.2. The reason why is Maven 2 uses classworlds to load some classes instead 
of Forehead, which is not the case as shown in the stack trace below. Besides 
Maven 2 does not come with endorsed dir under lib. Also the default local 
repository for Maven 2 is located by default at <user home>/.m2/repository.

Hope it helps.

Dário

 

-----Original Message-----

From: Khabot, Zakaria [mailto:[EMAIL PROTECTED]

Sent: quinta-feira, 18 de janeiro de 2007 16:53

To: Maven Users List

Subject: Maven2 and unknown protocol: e

 

 

Hi all,

 

I was using Maven 1.0.2 and it works fine.

 

I migrated to maven 2.0.4 but when I try to execute a goal I have this

exception:

 

 

 

File or url 'E:\Softs\maven-2.0.4/lib/endorsed/xml-apis-1.0.b2.jar'

could not be found

 

java.net.MalformedURLException: unknown protocol: e

 

      at java.net.URL.<init>(URL.java:574)

 

      at java.net.URL.<init>(URL.java:464)

 

      at java.net.URL.<init>(URL.java:413)

 

      at com.werken.forehead.Forehead.loadFileOrUrl(Forehead.java:403)

 

      at com.werken.forehead.Forehead.load(Forehead.java:322)

 

      at com.werken.forehead.Forehead.config(Forehead.java:245)

 

      at com.werken.forehead.Forehead.config(Forehead.java:131)

 

      at com.werken.forehead.Forehead.main(Forehead.java:579)

 

 

 

I specified that my repo is user\.maven\repository 

 

The jar exists in this repo but why is he searching in

'E:\Softs\maven-2.0.4/lib  

 

 

 

Thanks in advance.

 

 

 

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

 

---------------------------------------------------------------------

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]


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

Reply via email to