AW: how to add classpath in MAVEN

2005-03-18 Thread Bernhard Slominski
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1527)
at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:203)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:143)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25
)
at java.lang.reflect.Method.invoke(Method.java:324)
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]
.org
- 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: 1 seconds
Finished at: Fri Mar 18 16:53:23 IST 2005

-----Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 18, 2005 4:41 PM
To: Maven Users List
Subject: AW: how to add classpath in MAVEN

Sorry this was just a typo
Just use mcone_cmn.jar

-Ursprüngliche Nachricht-
Von: GOKULAM Jayaram [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. März 2005 12:08
An: Maven Users List; Hamza Hydri; Bernhard Slominski
Betreff: RE: how to add classpath in MAVEN


Hamza & Bernhard,
Thanks dudes, it worked.The path of my local repository was wrong in the
build.properties file, when I changed it, it worked.
Thank you very much for your support.

Now am with the next problem. I have a jar file without a version,I did the
same local repository placement for this jar file, and added it in the
dependency section, as suggested by benhard
mcone_cmn.jar
This time I got the following error. How should I avoid the version.
Expecting your help again.

Thanks in advance,
Jayaram

Error:
 Parse Fatal Error at line 74 column 23: The element type "jar" must be
terminated by the matchi
ng end-tag "".
org.xml.sax.SAXParseException: The element type "jar" must be terminated by
the matching end-ta
g "".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.disp
atch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1527)
at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:203)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:143)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMe

AW: how to add classpath in MAVEN

2005-03-18 Thread Bernhard Slominski
Sorry this was just a typo
Just use mcone_cmn.jar

-Ursprüngliche Nachricht-
Von: GOKULAM Jayaram [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. März 2005 12:08
An: Maven Users List; Hamza Hydri; Bernhard Slominski
Betreff: RE: how to add classpath in MAVEN


Hamza & Bernhard,
Thanks dudes, it worked.The path of my local repository was wrong in the
build.properties file, when I changed it, it worked.
Thank you very much for your support.

Now am with the next problem. I have a jar file without a version,I did the
same local repository placement for this jar file, and added it in the
dependency section, as suggested by benhard
mcone_cmn.jar
This time I got the following error. How should I avoid the version.
Expecting your help again.

Thanks in advance,
Jayaram

Error:
 Parse Fatal Error at line 74 column 23: The element type "jar" must be
terminated by the matchi
ng end-tag "".
org.xml.sax.SAXParseException: The element type "jar" must be terminated by
the matching end-ta
g "".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.disp
atch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1527)
at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:203)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:143)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25
)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
org.apache.maven.MavenException: Error parsing project.xml 'C:\Maven
1.0.2\bin\project.xml'
at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:207)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:143)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25
)
at java.lang.reflect.Method.invoke(Method.java:324)
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 element type "jar" must be terminated by
the matching end-ta
g "".
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1527)
at
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:203)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:143)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
su

AW: how to add classpath in MAVEN

2005-03-18 Thread Bernhard Slominski
Hi Jayaram,

when maven looks for the jar in the ibiblio central repository it means it
did not find it in you local repository.
So I think you just didn't put it in the right folder.
My Example:
   
  servletapi
  servlet-api
  2.4
   

It looks under this location:
{user.home}\.maven\repository\servletapi\jars\servletapi-2.4.jar

be careful with the directories you need the struture
.maven\repository\\jars
Also when you have the version this is included automatically in the
filename.
When you want to select you own filename you have to use
myjar.jar 

When you still have problems send your  entry + the exact
location of your file.

Good luck.

Bernhard

-Ursprüngliche Nachricht-
Von: GOKULAM Jayaram [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. März 2005 11:26
An: Maven Users List
Betreff: RE: how to add classpath in MAVEN


Thanks Bernhard,
 I placed the jar files as per your suggestion.I then added the dependency
in the Project.xml file. Now I executed maven, which attempts to download
the dependent file and build fails, as it is looking to download from the
ibiblio central repository.
Can u help me solving this please.
Thanks in advance,
Jayaram

-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 18, 2005 3:42 PM
To: 'Maven Users List'
Subject: AW: how to add classpath in MAVEN

Hi Jayaram,

I has a similar question yesterday,
Hamza posted the following answer, which solved my problem:

when you are asking maven to load the dependencies locally, you have
to place the jars in the {user.home}\.maven\repository\ location ...
under the appropriate subfolder
 
for eg:
{user.home}\.maven\repository\servletapi\jar\servletapi-2.4-20040521.jar

store all your dependencies this way in the repository folder.

cheers !

-Ursprüngliche Nachricht-
Von: GOKULAM Jayaram [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. März 2005 10:46
An: Maven Users List
Betreff: how to add classpath in MAVEN


Hi I want to add j2ee.jar file in the classpath of MAVEN , so that it
picks up my ejb files and compile.

Also I may want to add other library files to the classpath. Can anybody
help me in this regard please?

 

 

Thanks in advance

Jayaram

Confidentiality Statement:

This message is intended only for the individual or entity to which it is
addressed. It may contain privileged, confidential information which is
exempt from disclosure under applicable laws. If you are not the intended
recipient, please note that you are strictly prohibited from disseminating
or distributing this information (other than to the intended recipient) or
copying this information. If you have received this communication in error,
please notify us immediately by return email.


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

Confidentiality Statement:

This message is intended only for the individual or entity to which it is
addressed. It may contain privileged, confidential information which is
exempt from disclosure under applicable laws. If you are not the intended
recipient, please note that you are strictly prohibited from disseminating
or distributing this information (other than to the intended recipient) or
copying this information. If you have received this communication in error,
please notify us immediately by return email.


-
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]



AW: how to add classpath in MAVEN

2005-03-18 Thread Bernhard Slominski
Hi Jayaram,

I has a similar question yesterday,
Hamza posted the following answer, which solved my problem:

when you are asking maven to load the dependencies locally, you have
to place the jars in the {user.home}\.maven\repository\ location ...
under the appropriate subfolder
 
for eg:
{user.home}\.maven\repository\servletapi\jar\servletapi-2.4-20040521.jar

store all your dependencies this way in the repository folder.

cheers !

-Ursprüngliche Nachricht-
Von: GOKULAM Jayaram [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. März 2005 10:46
An: Maven Users List
Betreff: how to add classpath in MAVEN


Hi I want to add j2ee.jar file in the classpath of MAVEN , so that it
picks up my ejb files and compile.

Also I may want to add other library files to the classpath. Can anybody
help me in this regard please?

 

 

Thanks in advance

Jayaram

Confidentiality Statement:

This message is intended only for the individual or entity to which it is
addressed. It may contain privileged, confidential information which is
exempt from disclosure under applicable laws. If you are not the intended
recipient, please note that you are strictly prohibited from disseminating
or distributing this information (other than to the intended recipient) or
copying this information. If you have received this communication in error,
please notify us immediately by return email.


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



AW: Newbi dependencies file protocol

2005-03-17 Thread Bernhard Slominski
Hamza,

thanks a lot! That also fixes it and solves my problem!

Cheers

Bernhard

-Ursprüngliche Nachricht-
Von: Hamza Hydri [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 17. März 2005 16:54
An: Maven Users List
Betreff: Re: Newbi dependencies file protocol


Bernhard,

when you are asking maven to load the dependencies locally, you have
to place the jars in the {user.home}\.maven\repository\ location ...
under the appropriate subfolder
 
for eg:
{user.home}\.maven\repository\servletapi\jar\servletapi-2.4-20040521.jar

store all your dependencies this way in the repository folder.

cheers !

-
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]



Newbi dependencies file protocol

2005-03-17 Thread Bernhard Slominski
Hi,

I'm new to Maven and try to get my dependencies working and have problems
with the file protocol.
I'm using Windows 2000, SP4.

I have the follwing dependecy:

  servletapi
  servlet-api
  2.4-20040521

I have stored the file under: 
D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4-20040521.jar

It works fine when I download via the remote repository, but when trying to
load it locally with the file protocol it does not work, even I tried the
file url in my browser.


I tried two things:
1. with  (I renamed the Version to 2.4 otherwise it will pick up the
one at http://www.ibiblio.org/maven)
project.xml:

  servletapi
  servlet-api
  2.4
  file:///d:/java_dev/maven/lib


File location:
D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4.jar
Error message:
Error retrieving artifact from
[file://d:/java_dev/maven/lib/servletapi/jars/servlet-api-2.4.jar]:
java.net.UnknownHostException: d
WARNING: Failed to download servlet-api-2.4.jar.
The build cannot continue because of the following unsatisfied
dependency:...

2. Change repository
project.properties
maven.repo.remote=file:///d:/java_dev/maven/lib
project.xml:

  servletapi
  servlet-api
  2.4-20040521


file location
D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4-20040521.jar
Error Message
Attempting to download servlet-api-2.4-20040521.jar.
Error retrieving artifact from
[file://d:/java_dev/maven/lib/servletapi/jars/se
vlet-api-2.4-20040521.jar]: java.net.UnknownHostException: d
WARNING: Failed to download servlet-api-2.4-20040521.jar.


I'm sure it's some thing wrong in the syntax, But I could not find any
example, so any hint will help me.
Thanks

Bernhard

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