Re: [m2] install non-maven 3rd party libraries with snapshots

2005-12-02 Thread Brett Porter
That document is the original design, but has evolved.

the metadata files are not design for manual editing.

I would recommend not attempting to install it as a snapshot since the
version is fixed (even if the version is a timestamp)..

Brett

On 12/3/05, Martin van der Plas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Instead of maven-repository.xml I mean maven-metadata.xml.
>
> BTW, can somebody tell me which files are needed in the repository ?
>  From http://docs.codehaus.org/pages/viewpage.action?pageId=22230 I get
> the impression that -SNAPSHOT.release.txt plays a role,
> altough this file is not used anywhere in the maven code.
>
> Martin van der Plas wrote:
>
> > Hi,
> >
> > My project depends on artifacts delivered by a 3rd party supplier.
> > The supplier delivers major releases and bug fix releases on these
> > deliveres once a while.
> > Major releases have a name, minor releases are datestamped.
> >
> > I want to import the  3rd party artifact as  snapshots per major
> > release in our company maven repository.
> > It seems that the maven-install-plugin  command install:installfile
> > cannot handle this usecase.
> > I now add the 3rd party artifacts manually,  editting the
> > maven-repository.xml files where needed.
> > My questions are:
> >
> >   1. Is it possible to add the 3rd party snapshot requirement to
> >  maven-install-plugin
> >   2. Why is buildNumber so important in the snapshot section of
> > maven-repository.xml when  timestamp is also available.  When
> >  buildNumber is not specified, mvn refused to download the artifact
> >  from the central repository.
> >
>
>
> --
> Groeten,
>
> Martin
>
> mailto:[EMAIL PROTECTED]
> tel: +31 (0) 20-7988464
> mob: +31 (0) 6-21551921
>
>
>
> -
> 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]



Re: [m1.2b2] get parent directory of ${basedir}

2005-12-02 Thread Lukas Theussl





something like ${basedir}/../resource dir/file.txt (this doesn't work) ?


Is there a space in 'resource dir'? Can you try if it works with 
directories without spaces?


-Lukas


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



Re: short-circuit default lifecycle phases...

2005-12-02 Thread Anuerin Diaz
On 12/2/05, Michael Chiem <[EMAIL PROTECTED]> wrote:
> Hi,
>   I want to short circuit the build/package/deploy process so that developers 
> can get a quick on-demand build/deploy to an integration box, possibly not 
> wanting to wait for reporting and/or unit tests. However, the full build and 
> the short build should be all executable from the same server/environment. 
> What's the best way to do this, I guess without too much customization (i.e. 
> creating new package).
>   Thanks,
> Mike
>

you could create a specific profile that skips the reporting and test
phases. what we do is the reverse, we have a separate profile for
generating site documentation so the developers can quickly view the
apt documentation in the main project without waiting for clover and
pmd executions to finish.

ciao!

--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



Re: [m1] Publishing identifiable/reproducible snapshots

2005-12-02 Thread Lukas Theussl




Should the filename for the .jar and the .pom match?  I suppose it
won't matter for Maven 1, but this is what got uploaded:


I fixed this one just yesterday 
(http://jira.codehaus.org/browse/MPARTIFACT-56), but it will be in 
artifact-plugin-1.7 only, which means you won't profit from it in m1.0.2...


-Lukas



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



Re: [m1] Publishing identifiable/reproducible snapshots

2005-12-02 Thread Wendy Smoak
On 12/2/05, Lukas Theussl <[EMAIL PROTECTED]> wrote:
> 1.5.2 should work with maven 1.0.2, the documentation is not completely
> accurate. I just did a successful jar:deploy using scp protocol and
> private key. Did you specify the maven.repo.list=apache property and the
> maven.repo.apache.privatekey as an absolute path?

Yes and yes, but it doesn't like something about the path to id_dsa. 
I copied it into the project, used 
-Dmaven.repo.apache.privatekey=id_dsa and then it worked.  (Maybe the
dot in the path, which included /wsmoak/.ssh/id_dsa, was a problem.)

Should the filename for the .jar and the .pom match?  I suppose it
won't matter for Maven 1, but this is what got uploaded:

jar:deploy:
Uploading to tiles/poms/tiles-core-0.2-20051203.055537.pom:
Uploading to tiles/jars/tiles-core-0.2-20051203.01.jar:

Thanks,
--
Wendy

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



Re: [m2] HIbernate/Spring/Myfaces dependency hell

2005-12-02 Thread Richard Wallace
Well, I'm not sure exactly what the problem was but I upgraded to tomcat 
5.5.12 and everything started working just fine.


Thanks for all the help,
Rich

Matt Raible wrote:

It looks like they've updated the POM.  Formerly, I didn't have
commons-codec and everything worked fine - but it's possible I'm not
using advanced features in JSF.  The NoClassDefFound usually happens
when you have different versions of a library in your classpath.

Since MEV-136 has been fixed (commons-codec version), I updated my
pom.xml to be the following:

http://jira.codehaus.org/browse/MEV-136


myfaces-all
myfaces
1.1.1


xml-apis
xml-apis




... and all the other ones previously listed of course.

Matt


On 12/2/05, Richard Wallace <[EMAIL PROTECTED]> wrote:
  

Arg! Ok I tried accessing a jsf page and I got a
"java.lang.NoClassDefFoundError:
org/apache/commons/codec/binary/Base64".  So I removed the exclusion on
commons-codec and now I'm back to getting the "Caused by:
java.io.FileNotFoundException: /files1142159423 (Permission denied)"
which cause" and "2005-12-02 09:18:07,310 1332557 ERROR
[http-8080-Processor25] org.apache.jasper.compiler.Compiler
(Compiler.java:407) - Error compiling file:
/opt/tomcat5/work/Catalina/localhost/revman//org/apache/jsp/index_jsp.java
[javac] Compiling 1 source file"

Any ideas why this is happening?  What would cause tomcat to try and
compile to /?

Richard Wallace wrote:


Ok, I found the problem with compiling the JSPs.  What I was trying to
do was use the separate jars, like spring-hibernate, spring-dao, etc.
But they aren't complete by any means.  Once I switched to using the
spring-1.2.6.jar the problem went away.

I'm still not sure what to do about the dependency on both
commons-collections-3.1 and commons-collections-2.1.  Can I include
them both in the dependencies to have them both included in my war or
will only one ever be included?

Thanks,
Rich

PS Sorry about the last message having a screwy time, I didn't have
the clock type set on my machine for local and was dual-booting with
Windows.

Richard Wallace wrote:
  

One other thing having to do with dependencies that I'm worried is an
issue is that I'm using struts and it and spring want
commons-collections-2.1 but one of my utilities needs
commons-collections-3.1 as does myfaces it looks like.  What's the
best way to solve this conflict?

I did change it so that commons-collections-2.1 was used but now I
get a different error when trying to access a jsp for the first time:

Error creating temporary file
   at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:426)

   at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:371)

   at
org.apache.tools.ant.taskdefs.compilers.Jikes.execute(Jikes.java:202)
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
   at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)

   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)

   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)


and

Caused by: java.io.FileNotFoundException: /files273067436 (Permission
denied)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.(FileOutputStream.java:179)
   at java.io.FileOutputStream.(FileOutputStream.java:131)
   at java.io.FileWriter.(FileWriter.java:73)
   at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:412)

   ... 41 more
--- Nested Exception ---
java.io.FileNotFoundException: /files273067436 (Permission denied)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.(FileOutputStream.java:179)
   at java.io.FileOutputStream.(FileOutputStream.java:131)
   at java.io.FileWriter.(FileWriter.java:73)
   at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:412)

   at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(

Re: [m1] Publishing identifiable/reproducible snapshots

2005-12-02 Thread Lukas Theussl
1.5.2 should work with maven 1.0.2, the documentation is not completely 
accurate. I just did a successful jar:deploy using scp protocol and 
private key. Did you specify the maven.repo.list=apache property and the 
maven.repo.apache.privatekey as an absolute path?


-Lukas



Wendy Smoak wrote:

On 12/1/05, Brett Porter <[EMAIL PROTECTED]> wrote:



Just use the "artifact" deployment mechanism (ie, maven.repo.*, not
maven.repo.central).

A recent version of the artifact plugin (1.5.2 added to Maven 1.0.2,
or the version included with Maven 1.1 beta-2+) is highly recommended.



Is 1.5.2 known to work with Maven 1.0.2?  The docs say that Maven 1.1
is required.
   http://maven.apache.org/maven-1.x/reference/plugins/artifact/

I tried both 1.5.1 and 1.5.2, and I always get the following exception
from jar:deploy :

Failed to deploy to: apache Reason:
org.apache.maven.wagon.authentication.AuthenticationException: Cannot
connect. Reason: Private key was not found. You must define a private
key or a password for repo: apache

I'm sure my key is fine, because I can ssh or scp to people.apache.org
with no password.  I'll go triple-check that the path and filename of
the private key are correct in maven.repo.apache.privatekey.

Please let me know which version of the artifact plugin I should use
with Maven 1.0.2, and I'll check in my changes so one of the other
developers can try it.  Maybe it's just me.

--
Wendy

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



--
__

Lukas Theussl
TRIUMF  email: [EMAIL PROTECTED]
4004 Wesbrook Mall  tel.: + 1 604 222 1047 ext. 6446
Vancouver, British Columbia http://www.triumf.ca/people/theussl/
Canada V6T 2A3
__

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



First Project setup .. problem with POL for log4:log4j

2005-12-02 Thread Peter Narloch
Trying to set up my first project and get the following error message. Am 
I missing a pre-req or something?  Any insight appreciated.

Thanks...


Downloading: 
http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-dep-1.4.pom
1K downloaded
Downloading: 
http://repo1.maven.org/maven2/log4j/log4j/1.2.8/log4j-1.2.8.pom
145b downloaded
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Error building POM (may not be this project's POM).


Project ID: log4j:log4j

Reason: Error getting POM for 'log4j:log4j' from the repository: Error 
transferring file
  log4j:log4j:1.2.8:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.maven.codehaus.org/maven2)



[INFO] 

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get 
dependency information: Unable to read the metada
a file for artifact 'log4j:log4j:jar': Error getting POM for 'log4j:log4j' 
from the repository: Error transferring file
  log4j:log4j:1.2.8:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.maven.codehaus.org/maven2)

  log4j:log4j:1.2.8:jar

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),



short-circuit default lifecycle phases...

2005-12-02 Thread Michael Chiem
Hi,
  I want to short circuit the build/package/deploy process so that developers 
can get a quick on-demand build/deploy to an integration box, possibly not 
wanting to wait for reporting and/or unit tests. However, the full build and 
the short build should be all executable from the same server/environment. 
What's the best way to do this, I guess without too much customization (i.e. 
creating new package).
  Thanks,
Mike
  


-
 Yahoo! DSL Something to write home about. Just $16.99/mo. or less

Re: [m2] include additional report to the site

2005-12-02 Thread Allan Ramirez

Hi there,

I believe that this is already fixed in the SVN

http://jira.codehaus.org/browse/MOJO-100

regards,
-allan

Yuriy Ivanov wrote:


I add to reporting section xml:



org.codehaus.mojo
surefire-report-maven-plugin

true




I have Russian locale, don't know may be it's the reason.
And when run mvn site I got this error:

[INFO] Generate "Maven Surefire Report" report.
java.lang.NumberFormatException: For input string: "0,046"
   at
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:12
24)
   at java.lang.Float.parseFloat(Float.java:394)
   at
org.codehaus.mojo.surefire.ReportTestSuite.startElement(ReportTestSui
te.java:78)
   at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
ment(AbstractSAXParser.java:533)
   at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElem
ent(XMLDTDValidator.java:798)
   at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanStartElement(XMLDocumentFragmentScannerImpl.java:878)
   at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Conten
tDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:1157)
   at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:179
4)
   at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)

 


-Original Message-
From: Anuerin Diaz [mailto:[EMAIL PROTECTED]
Sent: Friday, December 02, 2005 11:39 AM
To: Maven Users List
Subject: Re: [m2] include additional report to the site

On 12/2/05, Yuriy Ivanov <[EMAIL PROTECTED]> wrote:
   


Hello,

I have tests and reports for surefire plugin. How can I include junit
 


report
   


in my site ?

Also how can I add pdm report to the site?

Not clear where and what should I insert in pom.xml. In site.xml I
 


already
   


added ${reports} tag.

 


add the plugin in the reporting section of your project descriptor.

the pmd plugin is currently locked into the "controversial" ruleset
which is why we are running pmd as an Ant task. i would like to extend
the original question to how can we add it on the reports menu without
hardcoding each module's site.xml file. i am not sure if we can attach
an antrun to the reporting section and have it pickup the generated
pmd reports.

thanks.

ciao!


--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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

Re: [m2] How to install 3rd party libraries to remote repository

2005-12-02 Thread dan tran
jusst check snapshot at codehaus, dont think the latest snapshot of
maven-deploy-plugin is there yet!!!

-Dan



On 12/2/05, Allan Ramirez <[EMAIL PROTECTED]> wrote:
>
> Hi again,
>
> Good news, deploy:deploy-file is now available in the SVN,
> http://docs.codehaus.org/display/MAVENUSER/FAQs
> and look for the question "How to install artifacts in a remote
> repository?"
>
> You may also refer to this page
>
> http://maven.apache.org/guides/development/guide-testing-development-plugins.html
> to know how to use snapshots version plugins.
>
> regards,
> -allan
>
> Mordo, Aviran (EXP N-NANNATEK) wrote:
>
> >
> >
> >I have set up a corporate remote repository, in which we plan to put our
> >artifacts and 3rd party dependencies.
> >
> >I could not find how to install 3rd party jar files into the remote
> >repository. The mvn install:install-file goal only installs to the local
> >repository.
> >
> >Can anyone tell me how to install 3rd party libraries to a remote
> >repository ?
> >
> >Thanks,
> >
> >Aviran
> >
> >-
> >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]
>
>


Re: Maven2 dependency classpath in Java plugin

2005-12-02 Thread Allan Ramirez

Hi there,

I think this is what you are looking for

getCompileClasspathElements()

you can find it in the maven-project component  source.
org\apache\maven\project\MavenProject.java

Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) 
wrote:




Hi,
I am trying to get the mvn dependency classpath inside the plugin
written using java.
In maven 1 there seems to be a way for ant using
{maven.dependency.classpath}. 


Does anyone know how to get this classpath in maven2 

Also in org.apache.maven.project.Project seems to have a method
getdependecyClassPath(). But I am not sure which jar file is this
Project class is in. when I put the above class in import statement its
erroring out.

Please let me know 


Thanks
Jagan



 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 12/2/2005
 



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

Re: [m1] Publishing identifiable/reproducible snapshots

2005-12-02 Thread Wendy Smoak
On 12/1/05, Brett Porter <[EMAIL PROTECTED]> wrote:

> Just use the "artifact" deployment mechanism (ie, maven.repo.*, not
> maven.repo.central).
>
> A recent version of the artifact plugin (1.5.2 added to Maven 1.0.2,
> or the version included with Maven 1.1 beta-2+) is highly recommended.

Is 1.5.2 known to work with Maven 1.0.2?  The docs say that Maven 1.1
is required.
   http://maven.apache.org/maven-1.x/reference/plugins/artifact/

I tried both 1.5.1 and 1.5.2, and I always get the following exception
from jar:deploy :

Failed to deploy to: apache Reason:
org.apache.maven.wagon.authentication.AuthenticationException: Cannot
connect. Reason: Private key was not found. You must define a private
key or a password for repo: apache

I'm sure my key is fine, because I can ssh or scp to people.apache.org
with no password.  I'll go triple-check that the path and filename of
the private key are correct in maven.repo.apache.privatekey.

Please let me know which version of the artifact plugin I should use
with Maven 1.0.2, and I'll check in my changes so one of the other
developers can try it.  Maybe it's just me.

--
Wendy

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



RE: m2 maven-plugin-plugin report not creating correct links

2005-12-02 Thread Brian E. Fox
Nvm. I didn't undertand what "add maven-plugin-plugin report" meant. I
was trying to run it as a plugin. 

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 9:20 PM
To: Maven Users List
Subject: m2 maven-plugin-plugin report not creating correct links

I'm trying to create a plugin report and it runs without errors, but the
only html is the plugin-info.html. This appears correct and has
references to my 2 goals, but the only generated files are xmls, not the
html files linked to. Did I miss something?



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



Re: [m2] HIbernate/Spring/Myfaces dependency hell

2005-12-02 Thread Matt Raible
It looks like they've updated the POM.  Formerly, I didn't have
commons-codec and everything worked fine - but it's possible I'm not
using advanced features in JSF.  The NoClassDefFound usually happens
when you have different versions of a library in your classpath.

Since MEV-136 has been fixed (commons-codec version), I updated my
pom.xml to be the following:

http://jira.codehaus.org/browse/MEV-136


myfaces-all
myfaces
1.1.1


xml-apis
xml-apis




... and all the other ones previously listed of course.

Matt


On 12/2/05, Richard Wallace <[EMAIL PROTECTED]> wrote:
> Arg! Ok I tried accessing a jsf page and I got a
> "java.lang.NoClassDefFoundError:
> org/apache/commons/codec/binary/Base64".  So I removed the exclusion on
> commons-codec and now I'm back to getting the "Caused by:
> java.io.FileNotFoundException: /files1142159423 (Permission denied)"
> which cause" and "2005-12-02 09:18:07,310 1332557 ERROR
> [http-8080-Processor25] org.apache.jasper.compiler.Compiler
> (Compiler.java:407) - Error compiling file:
> /opt/tomcat5/work/Catalina/localhost/revman//org/apache/jsp/index_jsp.java
> [javac] Compiling 1 source file"
>
> Any ideas why this is happening?  What would cause tomcat to try and
> compile to /?
>
> Richard Wallace wrote:
> > Ok, I found the problem with compiling the JSPs.  What I was trying to
> > do was use the separate jars, like spring-hibernate, spring-dao, etc.
> > But they aren't complete by any means.  Once I switched to using the
> > spring-1.2.6.jar the problem went away.
> >
> > I'm still not sure what to do about the dependency on both
> > commons-collections-3.1 and commons-collections-2.1.  Can I include
> > them both in the dependencies to have them both included in my war or
> > will only one ever be included?
> >
> > Thanks,
> > Rich
> >
> > PS Sorry about the last message having a screwy time, I didn't have
> > the clock type set on my machine for local and was dual-booting with
> > Windows.
> >
> > Richard Wallace wrote:
> >> One other thing having to do with dependencies that I'm worried is an
> >> issue is that I'm using struts and it and spring want
> >> commons-collections-2.1 but one of my utilities needs
> >> commons-collections-3.1 as does myfaces it looks like.  What's the
> >> best way to solve this conflict?
> >>
> >> I did change it so that commons-collections-2.1 was used but now I
> >> get a different error when trying to access a jsp for the first time:
> >>
> >> Error creating temporary file
> >>at
> >> org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:426)
> >>
> >>at
> >> org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:371)
> >>
> >>at
> >> org.apache.tools.ant.taskdefs.compilers.Jikes.execute(Jikes.java:202)
> >>at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
> >>at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
> >>at
> >> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
> >>at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
> >>at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> >>at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> >>at
> >> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
> >>
> >>at
> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
> >>
> >>at
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> >>at
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> >>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> >>
> >>
> >> and
> >>
> >> Caused by: java.io.FileNotFoundException: /files273067436 (Permission
> >> denied)
> >>at java.io.FileOutputStream.open(Native Method)
> >>at java.io.FileOutputStream.(FileOutputStream.java:179)
> >>at java.io.FileOutputStream.(FileOutputStream.java:131)
> >>at java.io.FileWriter.(FileWriter.java:73)
> >>at
> >> org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:412)
> >>
> >>... 41 more
> >> --- Nested Exception ---
> >> java.io.FileNotFoundException: /files273067436 (Permission denied)
> >>at java.io.FileOutputStream.open(Native Method)
> >>at java.io.FileOutputStream.(FileOutputStream.java:179)
> >>at java.io.FileOutputStream.(FileOutputStream.java:131)
> >>at java.io.FileWriter.(FileWriter.java:73)
> >>at
> >> org.apache.tools.ant.tas

m2 maven-plugin-plugin report not creating correct links

2005-12-02 Thread Brian E. Fox
I'm trying to create a plugin report and it runs without errors, but the
only html is the plugin-info.html. This appears correct and has
references to my 2 goals, but the only generated files are xmls, not the
html files linked to. Did I miss something?


Re: M2 : How to add local NON-installed JARs to the build path for projects.

2005-12-02 Thread Henry Isidro

Matthew Wheaton wrote:


Hello,

I am an avid Maven fan, and am struggling to understand how to model my new
projects based on my Maven 1.x experience.

I have a number of Eclipse projects, one called csi_libs.
csi_libs, contains all the compile time (and some deployment) 3rd party jars
needed across all projects.

In Maven 1.x, I simply had a simple Ant task that added all the jars to the
classpath for builds, like so:

   

   

   

 
 
   
 

 
 
   
 

   

   

   

I'm struggling on how to replicate this behavior in Maven 2.

Anyone out there who can assist ?

Thank you.
Sincerely,
Matthew Wheaton

 

One of Maven's strengths is its dependency handling mechanism. If you 
manually add your dependencies to the classpath, then you're not using 
Maven's full potential. Although this would work, (you could use the 
antrun plugin) it is better to register your dependencies in the pom and 
let Maven handle them. This entails placing your dependencies in your 
repository which organizes and centralizes the location of your 
artifacts. Check this link out for more info on the dependency mechanism 
of M2: 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html


Regards,
- Henry

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



Re: M2 : How to add local NON-installed JARs to the build path for projects.

2005-12-02 Thread Maria Odea Ching

Hi Matthew,

You should specify the scope of your dependency in the pom.xml file. If 
the scope is set to "compile" (default value), then the dependency will 
automatically be included in the compile time classpath. If it is set to 
"runtime", then the dependency would be added in the runtime classpath 
by maven. And so on..


Check out the Dependency Mechanism section 
(http://maven.apache.org/guides/index.html) of the Maven 2 documentation 
for more details.


Regards,
Odea Ching


Matthew Wheaton wrote:


Hello,

I am an avid Maven fan, and am struggling to understand how to model my new
projects based on my Maven 1.x experience.

I have a number of Eclipse projects, one called csi_libs.
csi_libs, contains all the compile time (and some deployment) 3rd party jars
needed across all projects.

In Maven 1.x, I simply had a simple Ant task that added all the jars to the
classpath for builds, like so:

   

   

   

 
 
   
 

 
 
   
 

   

   

   

I'm struggling on how to replicate this behavior in Maven 2.

Anyone out there who can assist ?

Thank you.
Sincerely,
Matthew Wheaton

 




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



Maven2 dependency classpath in Java plugin

2005-12-02 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
 
Hi,
I am trying to get the mvn dependency classpath inside the plugin
written using java.
In maven 1 there seems to be a way for ant using
{maven.dependency.classpath}. 
 
Does anyone know how to get this classpath in maven2 
 
Also in org.apache.maven.project.Project seems to have a method
getdependecyClassPath(). But I am not sure which jar file is this
Project class is in. when I put the above class in import statement its
erroring out.
 
Please let me know 
 
Thanks
Jagan
 
 


Re: [m2] How to install 3rd party libraries to remote repository

2005-12-02 Thread Allan Ramirez

Hi again,

Good news, deploy:deploy-file is now available in the SVN, 
http://docs.codehaus.org/display/MAVENUSER/FAQs

and look for the question "How to install artifacts in a remote repository?"

You may also refer to this page 
http://maven.apache.org/guides/development/guide-testing-development-plugins.html

to know how to use snapshots version plugins.

regards,
-allan

Mordo, Aviran (EXP N-NANNATEK) wrote:




I have set up a corporate remote repository, in which we plan to put our
artifacts and 3rd party dependencies.

I could not find how to install 3rd party jar files into the remote
repository. The mvn install:install-file goal only installs to the local
repository.

Can anyone tell me how to install 3rd party libraries to a remote
repository ?

Thanks,

Aviran

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

RE: maven2 deploy using wagon-ftp

2005-12-02 Thread Brian E. Fox
You want alpha-5, I had crashes before using an earlier version. Not
this exact one, but alpha-5 has been perfect for me. 

-Original Message-
From: Michael Fiedler [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 12:08 PM
To: Maven Users List (E-mail)
Subject: maven2 deploy using wagon-ftp

Hi,

   I am trying to deploy for the first time.  I am using wagon-ftp,
1.0-alpha-4 as an extension for a maven 2 deploy.  The repository
location (on the host) is new and empty.  Besides copying my local
repository to the new location, is there anything else I can do?  Should
I file a bug in jira?

c:\...> .../bin/mvn clean:clean install deploy ...
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from M2_repo_ftp
Uploading:
ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-
1.pom
4K uploaded
[INFO] Retrieving previous metadata from M2_repo_ftp [INFO]


[ERROR] FATAL ERROR
[INFO]


[INFO] 0
[INFO]


[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.jav
a:326)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(Defa
ultWagonManager.java:367)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadat
a(DefaultWagonManager.java:295)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.deploy(DefaultRepositoryMetadataManager.java:379)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
tArtifactDeployer.java:83)
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:137)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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)
[INFO]





Thank you,
Michael 


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



RE: M2 : Having problems with a javac on a very simple build of my first M2 project.

2005-12-02 Thread Sean Hennessy
Check that your system is not subject to the JRE XP issue.
There was gap in JRE packaging by Msoft..see
http://www.microsoft.com/windowsxp/evaluation/news/jre.mspx
The result is on some installations of XP the JRE has issues.

as you explicitely path
C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk\jdk1.5.0_04\bin;
 in one instance you are OK.
however you might look closer at the JRE as packaged with XP.

-Original Message-
From: Matthew Wheaton [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 1:09 PM
To: Maven Users List
Subject: Re: M2 : Having problems with a javac on a very simple build of
my first M2 project.


Hi Bill,

I have nothing else, in fact, in my system environment there is no
JAVA_HOME at all, and absolutely no java references in the system path.

Matthew Wheaton

On 12/2/05, Bill Siggelkow <[EMAIL PROTECTED]> wrote:
>
> Are you sure that there is not another JAVA_HOME environment variable 
> defined; maybe like a system-level one? Or maybe something else weird 
> in your PATH variable?
>
> -Bill Siggelkow
>
> On Dec 2, 2005, at 9:53 AM, Matthew Wheaton wrote:
>
> > A little background first.
> > I've been using Maven even before the 1.0 release, and have been 
> > very happy with it. I've created very complex builds and have a very

> > good working knowledge of Maven 1.x. The structure I describe below,

> > is precisely how
> > I've successfully built projects with Maven 1.x countless times.
> >
> > I'm starting a whole new project, and would like to see if Maven 2 
> > is going to be something I want to use.
> >
> > Now on to my problem. Maven 2 cannot find the Javac Compiler that I 
> > believe I pointed it to.
> >
> > I'm running the latest Maven download, version 2.0, on Windows XP
> >
> > I've created two project modules :
> >
> > csi_build
> > csi_common
> >
> > csi_common  contains my first simple project I'd like to build with 
> > Maven 2
> >
> > csi_build  contains my Maven 2 binaries, AND a number of JDKs I use 
> > for builds. I store my JDKs in version control (Subversion), as some
> > deployments
> > require different versions of the JDK and because I want anyone to
> > be able
> > to pull down the latest code from the repository and immediately be
> > able to
> > execute a build, even if they don't have the JDK installed.
> >
> > I simply go to the csi_common directory and execute the following 
> > build.batfile ===
> > echo off
> > set
> > JAVA_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk
> > \jdk1.5.0_04
> > set
> > MAVEN_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven
> > \maven-2.0
> > set PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH%
> > echo PATH=%PATH%
> > mvn package -e
> > ===
> >
> > Here's my simple pom.xml for csi_common 
> > ===
> > http://maven.apache.org/POM/4.0.0"; xmlns:xsi=" 
> > http://www.w3.org/2001/XMLSchema-instance";
> >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >   4.0.0
> >   com.csi.common
> >   csi_common
> >   jar
> >   1.0-SNAPSHOT
> >   Maven Quick Start Archetype
> >   http://maven.apache.org
> >   
> >   src/java
> >   
> >   
> > 
> >   junit
> >   junit
> >   3.8.1
> >   test
> > 
> >   
> > 
> > ===
> >
> > The output complains "Unable to locate the Javac Compiler in: 
> > C:\jre1.5.0_04\..\lib\tools.jar" Here's the output:
> > ===
> > C:\CSI\eclipse_workspaces\CSI\csi_common>echo off
> > PATH=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk
> > \jdk1.5.0_04\bin;
> >
C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven\maven-2.0\bin;
> > C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO]
> > 
> > --
> > --
> > [INFO] Building Maven Quick Start Archetype
> > [INFO]task-segment: [package]
> > [INFO]
> >
--
> > --
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:compile]
> > Compiling 4 source files to
> > C:\CSI\eclipse_workspaces\CSI\csi_common\target\classes
> > [INFO]
> >
--
> > --
> > [ERROR] BUILD FAILURE
> > [INFO]
> >
--
> > --
> > [INFO] Compilation failure
> >
> > Unable to locate the Javac Compiler in:
> >   C:\jre1.5.0_04\..\lib\tools.jar
> > Please ensure you are using JDK 1.4 or above and
> > not a JRE (the com.sun.tools.javac.Main class is required). In most 
> > cases you can change the location of your Java installation

RE: [m2] How to install 3rd party libraries to remote repository

2005-12-02 Thread Richard Coad at HQ x4263
I'm trying to do the same thing.  I understand about installing locally,
but what should I use as a default for the pom file?  Is there a
template available somewhere?

Thanks,

Rich

-Original Message-
From: Frank Russo [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 1:10 PM
To: Maven Users List
Subject: RE: [m2] How to install 3rd party libraries to remote
repository

You install them locally, first, along with their .pom files (which you
have to create). Then ftp, or copy depending on network access, to the
company repository. 

I assume you could install maven on the repository server and treat it
as a local repository, but I think that's overkill...


-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 10:35 AM
To: Maven Users List
Subject: [m2] How to install 3rd party libraries to remote repository

I have set up a corporate remote repository, in which we plan to put our
artifacts and 3rd party dependencies.

I could not find how to install 3rd party jar files into the remote
repository. The mvn install:install-file goal only installs to the local
repository.

Can anyone tell me how to install 3rd party libraries to a remote
repository ?

Thanks,

Aviran

-
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]
 
NOTICE: This message, including any attachments, is intended for the use of the 
party to which it is addressed and may contain information that is privileged, 
confidential and exempt from disclosure.  If you are not the intended 
recipient, any dissemination, distribution or copying of this communication is 
strictly prohibited.  If you have received this communication in error, please 
contact the sender immediately by reply e-mail, and delete the original and any 
copies of this message.  It is the sole responsibility of the recipient to 
ensure that this message and any attachments are virus free.

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



Re: [M1] preparing release of checkstyle plugin 3.0 with support for java 1.5

2005-12-02 Thread Lukas Theussl
We have to publish the artifact-plugin-1.7 and plugin-plugin-1.7 first 
to satisfy the dependency chain. Problem is that in the current state, 
these are maven-1.1 plugins only.


-Lukas



Joshua Smith wrote:

Carlos (and others)-

I installed the plugin using the command below, but when I build my project
I get the following error message:

 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2


BUILD FAILED
File.. C:\Documents and
Settings\joshua.smith\.maven\cache\maven-xdoc-plugin
-1.8\plugin.jelly
Element... attainGoal
Line.. 694
Column 60
C:\Documents and Settings\joshua.smith\.maven\cache\maven-
checkstyle-plugin-3.0-
SNAPSHOT\plugin.jelly:38:134: 
java.lang.NullPoint
erException
Total time: 5 seconds
Finished at: Fri Dec 02 11:59:28 EST 2005

I've looked at line 38 of plugin.jelly and found the following:
  



  

The assertion for 1.7 of maven-plugin-plugin is line 38. Version 1.6 is the
latest in the repository. Is 1.7 required for the snapshot of the checkstyle
plugin to work?

Have others got the snapshot of the checkstyle plugin to work? I'm running
Maven 1.0.2.

Thanks,
Josh

On 12/1/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:


Hi,

For those of you interested, there's a snapshot of the maven 1
checkstyle plugin that is using the latest just released checkstyle
4.0, which among other features provides Java 5 support.

I'm not using this plugin actively so if you guys can test it and
provide feedback checking that everything is working as expected I'll
try to make an official release asap.

You can install the plugin with the following line

maven plugin:download -DartifactId=maven-checkstyle-plugin
-DgroupId=maven -Dversion=3.0-SNAPSHOT
-Dmaven.repo.remote=http://cvs.apache.org/repository

Regards










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



Re: M2 : Having problems with a javac on a very simple build of my first M2 project.

2005-12-02 Thread Matthew Wheaton
Hi Bill,

I have nothing else, in fact, in my system environment there is no JAVA_HOME
at all, and absolutely no java references in the system path.

Matthew Wheaton

On 12/2/05, Bill Siggelkow <[EMAIL PROTECTED]> wrote:
>
> Are you sure that there is not another JAVA_HOME environment variable
> defined; maybe like a system-level one? Or maybe something else weird
> in your PATH variable?
>
> -Bill Siggelkow
>
> On Dec 2, 2005, at 9:53 AM, Matthew Wheaton wrote:
>
> > A little background first.
> > I've been using Maven even before the 1.0 release, and have been
> > very happy
> > with it. I've created very complex builds and have a very good working
> > knowledge of Maven 1.x. The structure I describe below, is
> > precisely how
> > I've successfully built projects with Maven 1.x countless times.
> >
> > I'm starting a whole new project, and would like to see if Maven 2
> > is going
> > to be something I want to use.
> >
> > Now on to my problem. Maven 2 cannot find the Javac Compiler that I
> > believe
> > I pointed it to.
> >
> > I'm running the latest Maven download, version 2.0, on Windows XP
> >
> > I've created two project modules :
> >
> > csi_build
> > csi_common
> >
> > csi_common  contains my first simple project I'd like to build with
> > Maven 2
> >
> > csi_build  contains my Maven 2 binaries, AND a number of JDKs I use
> > for
> > builds. I store my JDKs in version control (Subversion), as some
> > deployments
> > require different versions of the JDK and because I want anyone to
> > be able
> > to pull down the latest code from the repository and immediately be
> > able to
> > execute a build, even if they don't have the JDK installed.
> >
> > I simply go to the csi_common directory and execute the following
> > build.batfile
> > ===
> > echo off
> > set
> > JAVA_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk
> > \jdk1.5.0_04
> > set
> > MAVEN_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven
> > \maven-2.0
> > set PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH%
> > echo PATH=%PATH%
> > mvn package -e
> > ===
> >
> > Here's my simple pom.xml for csi_common
> > ===
> > http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance";
> >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >   4.0.0
> >   com.csi.common
> >   csi_common
> >   jar
> >   1.0-SNAPSHOT
> >   Maven Quick Start Archetype
> >   http://maven.apache.org
> >   
> >   src/java
> >   
> >   
> > 
> >   junit
> >   junit
> >   3.8.1
> >   test
> > 
> >   
> > 
> > ===
> >
> > The output complains "Unable to locate the Javac Compiler in:
> > C:\jre1.5.0_04\..\lib\tools.jar"
> > Here's the output:
> > ===
> > C:\CSI\eclipse_workspaces\CSI\csi_common>echo off
> > PATH=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk
> > \jdk1.5.0_04\bin;
> > C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven\maven-2.0\bin;
> > C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO]
> > --
> > --
> > [INFO] Building Maven Quick Start Archetype
> > [INFO]task-segment: [package]
> > [INFO]
> > --
> > --
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:compile]
> > Compiling 4 source files to
> > C:\CSI\eclipse_workspaces\CSI\csi_common\target\classes
> > [INFO]
> > --
> > --
> > [ERROR] BUILD FAILURE
> > [INFO]
> > --
> > --
> > [INFO] Compilation failure
> >
> > Unable to locate the Javac Compiler in:
> >   C:\jre1.5.0_04\..\lib\tools.jar
> > Please ensure you are using JDK 1.4 or above and
> > not a JRE (the com.sun.tools.javac.Main class is required).
> > In most cases you can change the location of your Java
> > installation by setting the JAVA_HOME environment variable.
> >
> > [INFO]
> > --
> > --
> > [INFO] Trace
> > org.apache.maven.BuildFailureException: Compilation failure
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java:540)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif
> > ecycle
> > (DefaultLifecycleExecutor.java:469)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> > DefaultLifecycleExecutor.java:448)
> > at
> > org.apache.maven.

Re: [m2] HIbernate/Spring/Myfaces dependency hell

2005-12-02 Thread Richard Wallace
Arg! Ok I tried accessing a jsf page and I got a 
"java.lang.NoClassDefFoundError: 
org/apache/commons/codec/binary/Base64".  So I removed the exclusion on 
commons-codec and now I'm back to getting the "Caused by: 
java.io.FileNotFoundException: /files1142159423 (Permission denied)" 
which cause" and "2005-12-02 09:18:07,310 1332557 ERROR 
[http-8080-Processor25] org.apache.jasper.compiler.Compiler  
(Compiler.java:407) - Error compiling file: 
/opt/tomcat5/work/Catalina/localhost/revman//org/apache/jsp/index_jsp.java 
[javac] Compiling 1 source file"


Any ideas why this is happening?  What would cause tomcat to try and 
compile to /?


Richard Wallace wrote:
Ok, I found the problem with compiling the JSPs.  What I was trying to 
do was use the separate jars, like spring-hibernate, spring-dao, etc.  
But they aren't complete by any means.  Once I switched to using the 
spring-1.2.6.jar the problem went away.


I'm still not sure what to do about the dependency on both 
commons-collections-3.1 and commons-collections-2.1.  Can I include 
them both in the dependencies to have them both included in my war or 
will only one ever be included?


Thanks,
Rich

PS Sorry about the last message having a screwy time, I didn't have 
the clock type set on my machine for local and was dual-booting with 
Windows.


Richard Wallace wrote:
One other thing having to do with dependencies that I'm worried is an 
issue is that I'm using struts and it and spring want 
commons-collections-2.1 but one of my utilities needs 
commons-collections-3.1 as does myfaces it looks like.  What's the 
best way to solve this conflict?


I did change it so that commons-collections-2.1 was used but now I 
get a different error when trying to access a jsp for the first time:


Error creating temporary file
   at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:426) 

   at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:371) 

   at 
org.apache.tools.ant.taskdefs.compilers.Jikes.execute(Jikes.java:202)

   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
   at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)

   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) 

   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) 

   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) 



and

Caused by: java.io.FileNotFoundException: /files273067436 (Permission 
denied)

   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.(FileOutputStream.java:179)
   at java.io.FileOutputStream.(FileOutputStream.java:131)
   at java.io.FileWriter.(FileWriter.java:73)
   at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:412) 


   ... 41 more
--- Nested Exception ---
java.io.FileNotFoundException: /files273067436 (Permission denied)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.(FileOutputStream.java:179)
   at java.io.FileOutputStream.(FileOutputStream.java:131)
   at java.io.FileWriter.(FileWriter.java:73)
   at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:412) 

   at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:371) 

   at 
org.apache.tools.ant.taskdefs.compilers.Jikes.execute(Jikes.java:202)

   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
   at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)

   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) 

   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) 

   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at 
org.apache.jasper.

RE: RE : War phases, binding a custom plugin to the war creation

2005-12-02 Thread Brian E. Fox
I actually have this same issue and created a separate plugin to do this. It 
grabs a specified dependancy from the repository and explodes it where I tell 
it to. As long as this happens before the war plugin is called, everything 
seems ok. It doesn't merge the web.xml but we decided that would be ok and we 
just use the one from the dependant project. Since the pom will need to know 
all the dependancies, the web.xml can be preconfigured as well. The plugin can 
also copy artifacts without exploding them. I'm exploring what to do with this 
code, if I should release it somewhere or add it to another plugin etc. 
Suggestions welcome. 
 

-Original Message-
From: Richard Allen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 7:42 PM
To: Maven Users List
Subject: Re: RE : War phases, binding a custom plugin to the war creation

I'm definitely interested in this. We use Struts modules and we keep each 
Struts module in a separate project. We have to merge the various Struts 
modules during the build process (which are each like a WAR). I'm currently 
using a maven-war-plugin hack that a previous user posted to the list (may have 
been you Kevin), but I would like to see something more standard in place, 
especially since this seems to be a common use case.

Thanks,
Richard Allen


Kevin Galligan wrote:

> I've hacked up the maven-war-plugin to merge war dependencies into the 
> final product.  I posted the code originally, but I've added a few 
> things since then.  These include an updated version of the cargo 
> web.xml merging code.  The current version only merges certain parts 
> of the web.xml.  Internally we needed more.
>
> I also track the war file version to we don't need a full extract of 
> dependent wars every time a build is done.  The way I do this is very 
> hacky, but functional.
>
> Anyway, wondering if anybody would be interested, and/or if this kind 
> of functionality would be considered for a future add.
>
> Olivier Lamy wrote:
>
>> Hi,
>> I'm happy to see that some users needs more feature in the 
>> maven-war-plugin !!
>> It works but for simple webapp and you need to add some embedeed ant 
>> scripts in order to copy some files (it's really clean).
>> I have provided a patch http://jira.codehaus.org/browse/MNG-1683 
>> which add some features.
>> Take this
>> http://jira.codehaus.org/secure/attachment/17799/maven-war-plugin.tar
>> .gz
>>
>> - Unzip it - install the plugin : mvn -DupdateReleaseInfo=true clean 
>> install
>> - look at the documentation : mvn site
>>
>> Exemple :
>> To add jsp files add this in the configuration :
>> > implementation="java.io.File">${basedir}/webappdir
>>   
>> 
>>   ${basedir}/src/main/jsp
>>
>>   ${basedir}/webappdir
>>   
>> 
>> 
>>
>> I don't really know if this kind of features will be added one day in 
>> the maven-war-plugin (because in some contexts create a war is 
>> more complicated than the jobs provided by the default plugin)
>>
>> Note the issue http://jira.codehaus.org/browse/MNG-791 (mark as fixed 
>> in 2.0.1).
>>
>> HTH,
>>
>> - Olivier
>>
>> -Message d'origine-
>> De : Bruno Aranda [mailto:[EMAIL PROTECTED] Envoyé : mardi 29 
>> novembre 2005 18:46 À : Maven Users List Objet : War phases, binding 
>> a custom plugin to the war creation
>>
>>
>> Hi all,
>>
>> I would like to know what phase I have to use to bind a plugin to the 
>> war creation (war:war).
>>
>>  
>>  my.groupId
>>  maven-myPlugin-plugin
>>  
>>
>>  WHAT TO PUT HERE
>>  
>>myPluginGoal
>>  
>>
>>  
>>
>>
>> It works ok for the process-resources and package phases, but the 
>> first is too early, and the other is too late. I am trying to copy 
>> some JSP pages in a specific way to the exploded war folder before 
>> creating the war file,
>>
>> TIA,
>>
>> Bruno
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> This e-mail, any attachments and the information contained therein 
>> ("this message") are confidential and intended solely for the use of 
>> the addressee(s). If you have received this message in error please 
>> send it back to the sender and delete it. Unauthorized publication, 
>> use, dissemination or disclosure of this message, either in whole or 
>> in part is strictly prohibited.
>> *
>> * Ce message électronique et tous les fichiers joints ainsi que  les 
>> informations contenues dans ce message ( ci après "le message" ), 
>> sont confidentiels et destinés exclusivement à l'usage de la personne 
>> à laquelle ils sont adressés. Si vous avez reçu ce message par 
>> erreur, merci  de le renvoyer à son émetteur et de le détruire.
>> Toutes diffusion, publication,

Re: [M1] preparing release of checkstyle plugin 3.0 with support for java 1.5

2005-12-02 Thread Joshua Smith
Carlos (and others)-

I installed the plugin using the command below, but when I build my project
I get the following error message:

 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2


BUILD FAILED
File.. C:\Documents and
Settings\joshua.smith\.maven\cache\maven-xdoc-plugin
-1.8\plugin.jelly
Element... attainGoal
Line.. 694
Column 60
C:\Documents and Settings\joshua.smith\.maven\cache\maven-
checkstyle-plugin-3.0-
SNAPSHOT\plugin.jelly:38:134: 
java.lang.NullPoint
erException
Total time: 5 seconds
Finished at: Fri Dec 02 11:59:28 EST 2005

I've looked at line 38 of plugin.jelly and found the following:
  



  

The assertion for 1.7 of maven-plugin-plugin is line 38. Version 1.6 is the
latest in the repository. Is 1.7 required for the snapshot of the checkstyle
plugin to work?

Have others got the snapshot of the checkstyle plugin to work? I'm running
Maven 1.0.2.

Thanks,
Josh

On 12/1/05, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> For those of you interested, there's a snapshot of the maven 1
> checkstyle plugin that is using the latest just released checkstyle
> 4.0, which among other features provides Java 5 support.
>
> I'm not using this plugin actively so if you guys can test it and
> provide feedback checking that everything is working as expected I'll
> try to make an official release asap.
>
> You can install the plugin with the following line
>
> maven plugin:download -DartifactId=maven-checkstyle-plugin
> -DgroupId=maven -Dversion=3.0-SNAPSHOT
> -Dmaven.repo.remote=http://cvs.apache.org/repository
>
> Regards
>
>
>


[M2] maven & svn

2005-12-02 Thread Volker Hartmann

Hi,

I've problems using the release plugin.

I'm not very familar with svn so I'm not sure how to create the 
repository and how to

declare it in pom.xml.
I tried to find a complete HowTo but without any success!?

I always got the following error:
*svn*: Cannot *copy path* '.' into its own *child* '..\*tags*\test-*tag*-1'
svn version: 1.1.3

What I've done:
svnadmin create  [pathToSVNRepos]/myFirstProject

Maven has the following structure.

FirstProject
   pom.xml
   src/
   target/

Inside the pom.xml I declared the scm as follows:
  
   
scm:svn:file:///[pathToSVNRepos]/myFirstProject

 

How has the file structure to look like?
Do I have to create the tags and branches directory
locally or only in the svn repos?

What's the command for importing data to svn.

svn import  [which path] file:///[pathToSVNRepos]/myFirstProject ?

It shouldn't be that complicated.

Any help appreciated.

Regards,
 Volker





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



RE: [m2] How to install 3rd party libraries to remote repository

2005-12-02 Thread Frank Russo
You install them locally, first, along with their .pom files (which you
have to create). Then ftp, or copy depending on network access, to the
company repository. 

I assume you could install maven on the repository server and treat it
as a local repository, but I think that's overkill...


-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 10:35 AM
To: Maven Users List
Subject: [m2] How to install 3rd party libraries to remote repository

I have set up a corporate remote repository, in which we plan to put our
artifacts and 3rd party dependencies.

I could not find how to install 3rd party jar files into the remote
repository. The mvn install:install-file goal only installs to the local
repository.

Can anyone tell me how to install 3rd party libraries to a remote
repository ?

Thanks,

Aviran

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



[m2] How to install 3rd party libraries to remote repository

2005-12-02 Thread Mordo, Aviran (EXP N-NANNATEK)
 

I have set up a corporate remote repository, in which we plan to put our
artifacts and 3rd party dependencies.

I could not find how to install 3rd party jar files into the remote
repository. The mvn install:install-file goal only installs to the local
repository.

Can anyone tell me how to install 3rd party libraries to a remote
repository ?

Thanks,

Aviran

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



maven2 deploy using wagon-ftp

2005-12-02 Thread Michael Fiedler
Hi,

   I am trying to deploy for the first time.  I am using wagon-ftp, 1.0-alpha-4 
as an extension for a maven 2 deploy.  The repository location (on the host) is 
new and empty.  Besides copying my local repository to the new location, is 
there anything else I can do?  Should I file a bug in jira?

c:\...> .../bin/mvn clean:clean install deploy
...
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from M2_repo_ftp
Uploading: 
ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-1.pom
4K uploaded
[INFO] Retrieving previous metadata from M2_repo_ftp
[INFO] 

[ERROR] FATAL ERROR
[INFO] 

[INFO] 0
[INFO] 

[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 0
at 
org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
at 
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
at 
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)
at 
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)
at 
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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: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)
[INFO] 




Thank you,
Michael 


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



[m1.2b2] get parent directory of ${basedir}

2005-12-02 Thread Antonyan, Tigran\(GE Infrastructure\)

Hi all,

I'm trying to access a directory which is on the same level as ${basedir} like

projects
   maven project
   resource dir

running maven from "maven project" I'm trying to access the "resource dir" 
within maven.xml to copy a file, and I didn't find any way to specify relative 
path, is there any way of doing this?
something like ${basedir}/../resource dir/file.txt (this doesn't work) ?

thank you in advance!

Regards,
Tigran Antonyan

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



methods for developing web applications

2005-12-02 Thread Kevin Galligan
I'm currently finishing up a reorganization of our build process.  I'm 
almost done.  As far as transparency of build process, and how it works 
with maven, I love it.  Works great.  However, I'm not focusing on day 
to day development, and I'm not so sure how it will go.


The plan is to use eclipse.  Our application is built into an ear with 
several ejb's and war's.  Just doing a build works ok.  However, lets 
say you were developing something.  Change a jsp.  Right now I'd have to 
rebuild the war, and then the ear.  I have the webapps and ear in a 
multi-build, so I just run mvn install on all of them.  I'm thinking 
there has to be a better way.  Any thoughts?


Also, I sent an email last night about the jar build process, but I 
think it extends to wars, ears, etc.  When I run 'mvn install' on a jar 
project, even if no java files change, it'll rebuild the jar.  Is there 
any way to prevent that?


Thanks in advance,
-Kevin

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



get parent directory of ${basedir}

2005-12-02 Thread Antonyan, Tigran\(GE Infrastructure\)

Hi all,

I'm trying to access a directory which is on the same level as ${basedir} like

projects
   maven project
   resource dir

running maven from "maven project" I'm trying to access the "resource dir" 
within maven.xml to copy a file, and I didn't find any way to specify relative 
path, is there any way of doing this?
something like ${basedir}/../resource dir/file.txt (this doesn't work) ?

thank you in advance!

Regards,
Tigran Antonyan

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



Re: [M2] clean life cycle phase

2005-12-02 Thread Anuerin Diaz
yes it is supported. you can look at this page for more information :
http://docs.codehaus.org/display/MAVENUSER/Mini+Guides

ciao!

On 12/2/05, Ruel Loehr <[EMAIL PROTECTED]> wrote:
> Because we can use the antrun plugin to do things, we may need to clean
> up directories that are not the maven defaults.
>
> While the clean plugin allows you to specify which directory to remove,
> it does not let you specify > 1.
>
> I read earlier through some posts which said you can bind to the clean
> lifecycle phase.  Is this still supported?  It doesn't seem to work for
> me.
>
> Any other ideas on how to accomplish this?
>
> Ruel Loehr
> JBoss QA
>
> -
> 512-347-7840 ext 2011
> Yahoo: ruelloehr
> Skype: ruelloehr
> AOL: dokoruel
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



[m1.2b2] get parent directory of ${basedir}

2005-12-02 Thread Antonyan, Tigran\(GE Infrastructure\)

Hi all,

I'm trying to access a directory which is on the same level as ${basedir} like

projects
   maven project
   resource dir

running maven from "maven project" I'm trying to access the "resource dir" 
within maven.xml to copy a file, and I didn't find any way to specify relative 
path, is there any way of doing this?
something like ${basedir}/../resource dir/file.txt (this doesn't work) ?

thank you in advance!

Regards,
Tigran Antonyan



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



Re: [m2] How to install 3rd party libraries to remote repository

2005-12-02 Thread Allan Ramirez

Hi there,

There is already an jira issue for this, 
http://jira.codehaus.org/browse/MNG-1551.


I already submitted a patch, but still needed some review.

regards,
-allan

Mordo, Aviran (EXP N-NANNATEK) wrote:


I have set up a corporate remote repository, in which we plan to put our
artifacts and 3rd party dependencies.

I could not find how to install 3rd party jar files into the remote
repository. The mvn install:install-file goal only installs to the local
repository.

Can anyone tell me how to install 3rd party libraries to a remote
repository ?

Thanks,

Aviran

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

M2 Kodo Plugin

2005-12-02 Thread Brian E. Fox
Anyone have an M2 Kodo plugin? We currently use Ant to do it, but I was
thinking about making a plugin. Didn't want to reinvent the wheel...


M2 : How to add local NON-installed JARs to the build path for projects.

2005-12-02 Thread Matthew Wheaton
Hello,

I am an avid Maven fan, and am struggling to understand how to model my new
projects based on my Maven 1.x experience.

I have a number of Eclipse projects, one called csi_libs.
csi_libs, contains all the compile time (and some deployment) 3rd party jars
needed across all projects.

In Maven 1.x, I simply had a simple Ant task that added all the jars to the
classpath for builds, like so:







  
  

  

  
  

  







I'm struggling on how to replicate this behavior in Maven 2.

Anyone out there who can assist ?

Thank you.
Sincerely,
Matthew Wheaton


RE: The getting started example - Maven 2

2005-12-02 Thread Haigh, Andrew J
Hi,
It was all to do with proxies.
Thanks

Andrew John Haigh
CA
Senior Software Engineer
tel:+1 631 342-3109
fax: +1 631 342-6863
[EMAIL PROTECTED]

-Original Message-
From: Nik Gonzalez [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 3:49 AM
To: Maven Users List
Subject: Re: The getting started example - Maven 2

Hello,

What error did you get? Please post the stacktrace here.

Nik

Haigh, Andrew J wrote:

>Hi,
>I'm using Windows XP. I downloaded Maven 2, unzipped and started on the
>getting started - How do I make my first Maven project?
>
>I am getting so many problems with the archetype plugin. I downloaded
>1.0-alpha-3.jar, but it now complains about a Plexus container.
>
>Is there an example configuration that grabs the requisite files from a
>repository, so that I have something to show from running the - 
>'mvn archetype:create ...' command.
>
>Thanks
>
>Andrew John Haigh
>CA
>Senior Software Engineer
>tel:+1 631 342-3109
>fax: +1 631 342-6863
>[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]



RE: Problem finding my plugin in remote repository

2005-12-02 Thread André Isaksson
The problem was in the settings.xml. Only a normal repository was defined, not 
a plugin repository.

/André 

-Original Message-
From: André Isaksson [mailto:[EMAIL PROTECTED] 
Sent: den 2 december 2005 13:22
To: Maven Users List
Subject: RE: Problem finding my plugin in remote repository

The strangest thing about this problem is these two lines:

Downloading: 
file:///m2_repo/repository/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-baseline-plugin-1.0.0.pom
3K downloaded
Downloading: 
http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-baseline-plugin-1.0.0.jar


Why does it decide to download the jar-file from repo1.maven.org when the pom 
is not located there? And why doesn't it try get the jar-file from 
file:///m2_repo when it fails to fetch it from repo1.maven.org? Could it be a 
bug?


Regards,

André


-Original Message-
From: André Isaksson [mailto:[EMAIL PROTECTED]
Sent: den 2 december 2005 10:55
To: users@maven.apache.org
Subject: Problem finding my plugin in remote repository


Hello!

I have created a plugin and deployed it to a remote repository 
(file:///m2_repo/repository). To test that the plugin can be downloaded from 
the remote repository I have removed it from my local repository. When I try to 
use the plugin the following error occurs:

--
[INFO] Scanning for projects...
Downloading: 
http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/mave
n-baseline-plugin-1.0.0.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://gotdevmq/maven/se.zystems.maven.plugins/poms/maven-baseline-plugin-1.0.0.pom
[WARNING] Unable to get resource from repository gotdevmq 
(http://gotdevmq/maven)
Downloading: 
file:///m2_repo/repository/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-b
aseline-plugin-1.0.0.pom
3K downloaded
Downloading: 
http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/mave
n-baseline-plugin-1.0.0.jar
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2) [INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Plugin could not be found - check that the goal name is correct: Unable 
to download the artif act from any repository
  se.zystems.maven.plugins:maven-baseline-plugin:1.0.0:maven-plugin

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

  se.zystems.maven.plugins:maven-baseline-plugin:1.0.0:maven-plugin

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
--

What puzzles me is that the pom is located correctly but the actual jar-file 
can't be found. It seems like Maven only searches the repositories I have 
defined in settings.xml when it tries to find the correct pom, not when it 
tries to locate the jar-file. Is this true, and if yes, how can I solve the 
problem?


Best Regards / Vänliga hälsningar
André Isaksson
System Integrator
Zystems by Semcon
___
This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose or take any action based on this message or any information 
herein. If you have received this message in error, please advise the sender 
immediately by reply e-mail and delete this message.
Thank you for your cooperation 



Best Regards / Vänliga hälsningar 
André Isaksson
System Integrator
Zystems by Semcon
Theres Svenssons Gata 15
417 80 Göteborg
( Telefon: +46 (0)707-77 86 02 
* E-mail: [EMAIL PROTECTED] 
WWW: http://www.zystems.se http://www.zystems.se/>  
___
This message may contain confidential and/or privileged information. If you are 
not
the addressee or authorized to receive this for the addressee, you must not 
use, copy,
disclose or take any action based on this message or any information herein. If 
you
have received this message in error, please advise the sender immediately by 
reply
e-mail and delete this message.
Thank you for your cooperation 



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



!DSPAM:43903959197151680526813!


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



[m2] How to install 3rd party libraries to remote repository

2005-12-02 Thread Mordo, Aviran (EXP N-NANNATEK)
I have set up a corporate remote repository, in which we plan to put our
artifacts and 3rd party dependencies.

I could not find how to install 3rd party jar files into the remote
repository. The mvn install:install-file goal only installs to the local
repository.

Can anyone tell me how to install 3rd party libraries to a remote
repository ?

Thanks,

Aviran

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



Re: M2 : Having problems with a javac on a very simple build of my first M2 project.

2005-12-02 Thread Bill Siggelkow
Are you sure that there is not another JAVA_HOME environment variable  
defined; maybe like a system-level one? Or maybe something else weird  
in your PATH variable?


-Bill Siggelkow

On Dec 2, 2005, at 9:53 AM, Matthew Wheaton wrote:


A little background first.
I've been using Maven even before the 1.0 release, and have been  
very happy

with it. I've created very complex builds and have a very good working
knowledge of Maven 1.x. The structure I describe below, is  
precisely how

I've successfully built projects with Maven 1.x countless times.

I'm starting a whole new project, and would like to see if Maven 2  
is going

to be something I want to use.

Now on to my problem. Maven 2 cannot find the Javac Compiler that I  
believe

I pointed it to.

I'm running the latest Maven download, version 2.0, on Windows XP

I've created two project modules :

csi_build
csi_common

csi_common  contains my first simple project I'd like to build with  
Maven 2


csi_build  contains my Maven 2 binaries, AND a number of JDKs I use  
for
builds. I store my JDKs in version control (Subversion), as some  
deployments
require different versions of the JDK and because I want anyone to  
be able
to pull down the latest code from the repository and immediately be  
able to

execute a build, even if they don't have the JDK installed.

I simply go to the csi_common directory and execute the following  
build.batfile

===
echo off
set
JAVA_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk 
\jdk1.5.0_04

set
MAVEN_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven 
\maven-2.0

set PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH%
echo PATH=%PATH%
mvn package -e
===

Here's my simple pom.xml for csi_common
===
http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  com.csi.common
  csi_common
  jar
  1.0-SNAPSHOT
  Maven Quick Start Archetype
  http://maven.apache.org
  
  src/java
  
  

  junit
  junit
  3.8.1
  test

  

===

The output complains "Unable to locate the Javac Compiler in:
C:\jre1.5.0_04\..\lib\tools.jar"
Here's the output:
===
C:\CSI\eclipse_workspaces\CSI\csi_common>echo off
PATH=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk 
\jdk1.5.0_04\bin;

C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven\maven-2.0\bin;
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
-- 
--

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [package]
[INFO]
-- 
--

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 4 source files to
C:\CSI\eclipse_workspaces\CSI\csi_common\target\classes
[INFO]
-- 
--

[ERROR] BUILD FAILURE
[INFO]
-- 
--

[INFO] Compilation failure

Unable to locate the Javac Compiler in:
  C:\jre1.5.0_04\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

[INFO]
-- 
--

[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(

DefaultLifecycleExecutor.java:540)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif 
ecycle

(DefaultLifecycleExecutor.java:469)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(

DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand 
leFailures

(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment 
s(

DefaultLifecycleExecutor.java:268)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.in

[M2] clean life cycle phase

2005-12-02 Thread Ruel Loehr
Because we can use the antrun plugin to do things, we may need to clean
up directories that are not the maven defaults.

While the clean plugin allows you to specify which directory to remove,
it does not let you specify > 1.

I read earlier through some posts which said you can bind to the clean
lifecycle phase.  Is this still supported?  It doesn't seem to work for
me.

Any other ideas on how to accomplish this?

Ruel Loehr
JBoss QA
 
-
512-347-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel

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



Re: Maven 1.02, Plugins and Java 5

2005-12-02 Thread Joshua Smith
Arnaud-

Thank you. Through trial and error I think I've got most things working with
Java 5. Checkstyle is the last thing that I need and there are other active
threads on the email list about that right now. The difficulty for me is
that I'm using Maven on an isolated network. By isolated, I mean airgap, not
even a firewall. So it's a matter of trying something, watching it fail,
going and finding a dependency and then trying it again. Recently I've set
up maven on a machine with a regular net connection and have been trying
things out there first and then capturing all my maven directories and
moving them to the other network. That has helped a lot.

Thanks for your response. I enjoy Maven a lot. It's just a little tricky to
deal with dependencies in my environment.

Josh

On 12/1/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
>
> Hi Joshua.
>
>   We are sorry but it doesn't (yet) exist.
>
> Arnaud
>


Re: M2: Problem with checkstyle plugin.

2005-12-02 Thread Dennis Lundberg

Hello Michael

There is a known issue that has been fixed in SVN, that affects people 
that run Maven with a locale other than English or French. It gives an 
error-message similar to what you got.


There is currently a vote going on, on the dev-list, about the release 
of a new version of the maven-checkstyle-plugin.


--
Dennis Lundberg

Michael Ransley wrote:

Hello,

I am new to Maven and have just started playing around with it.  I have
implemented the simple project that is defined in the getting started guide
and have then also implemented the eclipse stuff.  So far so good.  I then
started adding in a checkstyle reporting task and get the following
exception generated:

---
java.lang.NullPointerException

at
org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique
(DiagnosisUtils.java:89)
at
org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose
(ErrorDiagnostics.java :132)
at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(
ErrorDiagnostics.java:104)
at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
at org.apache.maven.DefaultMaven.logFatal (DefaultMaven.java:627)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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 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)

When I take the checkstyle bit out of the pom.xml everything is fine again
so it is definately the checkstyle plugin that is causing the problem.  The
element of the pom that mentions checkstyle is below:


target/site

  
  org.apache.maven.plugins
  maven-checkstyle-plugin
  

  

Does anyone have any ideas?

Regards

Michael.




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



M2 : Having problems with a javac on a very simple build of my first M2 project.

2005-12-02 Thread Matthew Wheaton
A little background first.
I've been using Maven even before the 1.0 release, and have been very happy
with it. I've created very complex builds and have a very good working
knowledge of Maven 1.x. The structure I describe below, is precisely how
I've successfully built projects with Maven 1.x countless times.

I'm starting a whole new project, and would like to see if Maven 2 is going
to be something I want to use.

Now on to my problem. Maven 2 cannot find the Javac Compiler that I believe
I pointed it to.

I'm running the latest Maven download, version 2.0, on Windows XP

I've created two project modules :

csi_build
csi_common

csi_common  contains my first simple project I'd like to build with Maven 2

csi_build  contains my Maven 2 binaries, AND a number of JDKs I use for
builds. I store my JDKs in version control (Subversion), as some deployments
require different versions of the JDK and because I want anyone to be able
to pull down the latest code from the repository and immediately be able to
execute a build, even if they don't have the JDK installed.

I simply go to the csi_common directory and execute the following build.batfile
===
echo off
set
JAVA_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk\jdk1.5.0_04
set
MAVEN_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven\maven-2.0
set PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH%
echo PATH=%PATH%
mvn package -e
===

Here's my simple pom.xml for csi_common
===
http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  com.csi.common
  csi_common
  jar
  1.0-SNAPSHOT
  Maven Quick Start Archetype
  http://maven.apache.org
  
  src/java
  
  

  junit
  junit
  3.8.1
  test

  

===

The output complains "Unable to locate the Javac Compiler in:
C:\jre1.5.0_04\..\lib\tools.jar"
Here's the output:
===
C:\CSI\eclipse_workspaces\CSI\csi_common>echo off
PATH=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk\jdk1.5.0_04\bin;
C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven\maven-2.0\bin;
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [package]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 4 source files to
C:\CSI\eclipse_workspaces\CSI\csi_common\target\classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

Unable to locate the Javac Compiler in:
  C:\jre1.5.0_04\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:540)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:469)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:268)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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 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

Re: Compile error doesn't cause build failure on M2

2005-12-02 Thread Emmanuel Venisse

comments below

Eric Pugh (OSC2) a écrit :

Hi all,

I've seen in the archives some posts about Ant and M1 build failures  
not being propagated back properly.  However, I am noticing the same  
thing under M2.  I intentionally put in a compile error:
Compiling 35 source files to C:\continuum-1.0.1\apps\continuum 
\working-directory\1\target\classes
[INFO]  
 


[ERROR] BUILD FAILURE
[INFO]  
 


[INFO] Compilation failure

C:\continuum-1.0.1\apps\continuum\working-directory\1\src\main\java 
\com\ergito\search\SimpleTermHighlighter.java:[22,20] cannot find symbol

symbol  : variable sSuffix
location: class com.ergito.search.SimpleTermHighlighter

how ever my builds are considered successes:
2005-12-02 08:14:22,035 [Thread-1] WARN   ContinuumBuildExecutor:maven2  
- Execut

able 'c:\maven-2.0\bin\mvn'.
2005-12-02 08:14:22,035 [Thread-1] INFO   ContinuumBuildExecutor:maven2  
- Argume

nts: --batch-mode --non-recursive clean install
2005-12-02 08:14:22,035 [Thread-1] INFO   ContinuumBuildExecutor:maven2  
- Workin

g directory: C:\continuum-1.0.1\bin\..\apps\continuum\working- directory\1
2005-12-02 08:14:35,629 [Thread-1] INFO   ContinuumBuildExecutor:maven2  
- Exit c

ode: 0
2005-12-02 08:14:35,848 [Thread-1] INFO   Notifier:mail  
- Curren

t build state: 2, previous build state: 2

In the FAQ Entry: How does Continuum detect a successful build?
It refers to maven or ant, but I'm not sure if that means "maven1 and  
maven2". 


I don't specify maven version because it's for several maven version (1.0.2 and 
2.0, perhaps 1.1 too)
It's fixed in subversion for maven 1.1 and maven 2, so when they will be release, this step won't be 
necessary.


Also, the line about adding something to the beginning of  
run.bat:


You must add too, at the begin of $CONTINUUM/bin/win32/run.bat, the  
following lines if you run Continuum from command line :


seems to suggest you should use the wrapper run.bat versus the  
plexus.bat method?


run.bat is the preferred method.
I'll in faqs run.bat or plexus.bat



Lastly, adding set.MAVEN_TERMINATE_CMD=0n to the wrapper.conf seems  
like to should come that way?


wrapper.conf is use by run.bat and by InstallService.bat. It's better to define thevalue in 
wrapper.conf.


In continuum 1.0.2, this step won't be necessary.

If you think the faq isn't very understandable, you can create a patch.

Emmanuel



Re: [ANN] A Bunch of Maven 1.x Plugins

2005-12-02 Thread Doug Douglass

thx Fabrice.

As we transition our projects to m2 we plan on transitioning the plugins 
as well. Sort of depends on continuation of a couple of PHP projects.


cheers

[EMAIL PROTECTED] wrote:




Great, Doug!

Do you plan to make releases for Maven 2 as well?

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]



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



RE: [m2] I need clarification on repositories

2005-12-02 Thread Frank Russo
I'm actually thinking it's some kind of server read timeout, either on
their end or my end. It doesn't seem to have a reason. Anyway, yes
having the poms fixes the problem. It will be useful to have them
generated once 2.0.1 comes out, which according to another post seem
like it may be the next couple of weeks. I read that they are targeting
a release for ApacheCon, which is mid December...


-Original Message-
From: Anuerin Diaz [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 9:04 AM
To: Maven Users List
Subject: Re: [m2] I need clarification on repositories

On 12/2/05, Frank Russo <[EMAIL PROTECTED]> wrote:
> I'm not sure what you mean by pom.xml in this context. That is for my
project, which I included in my email. Do you mean the .pom file for the
jar? If that's the case, the option to create you talk about won't be
available until 2.0.1. I checked it on the jira site. It is fixed. I
forget the exact number.
>

yeah, my mistake. there shouldn't be a ".xml" on the "pom".  and i
also create my own library poms.

> That was basically the problem, which answers my number 3 below. Yes,
each jar has to have a .pom in the local repository. However, this
wasn't always the case. I had 27 jars that I loaded into my local
repository, none of which had poms. Usually, everything worked fine. It
would always look in central since the pom was missing, but if it didn't
find it, then it would ignore it. But sometimes I'd get that
intermittent problem where it would fail. Not sure why. I have added
poms for each jar, and now it never looks in central, except for the
daily checked I've configured.
>

i think that pom checking is done when maven wants to check for
updated versions of the library. the first few times might be ok but
once it tries to verify and it does not see a library pom then it
assumes that it could find it from the official repositories. this are
all our assumptions and i have not yet had the opportunity of getting
hold of a document that explains this cycle. we just made it a policy
to make sure that those pom files are present to minimize the
headache. it seems to be working because we have a dozen jar files
manually added in the project repository and we are not encountering
this issue. :)




ciao!

--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



Re: [m2] I need clarification on repositories

2005-12-02 Thread Anuerin Diaz
On 12/2/05, Frank Russo <[EMAIL PROTECTED]> wrote:
> I'm not sure what you mean by pom.xml in this context. That is for my 
> project, which I included in my email. Do you mean the .pom file for the jar? 
> If that's the case, the option to create you talk about won't be available 
> until 2.0.1. I checked it on the jira site. It is fixed. I forget the exact 
> number.
>

yeah, my mistake. there shouldn't be a ".xml" on the "pom".  and i
also create my own library poms.

> That was basically the problem, which answers my number 3 below. Yes, each 
> jar has to have a .pom in the local repository. However, this wasn't always 
> the case. I had 27 jars that I loaded into my local repository, none of which 
> had poms. Usually, everything worked fine. It would always look in central 
> since the pom was missing, but if it didn't find it, then it would ignore it. 
> But sometimes I'd get that intermittent problem where it would fail. Not sure 
> why. I have added poms for each jar, and now it never looks in central, 
> except for the daily checked I've configured.
>

i think that pom checking is done when maven wants to check for
updated versions of the library. the first few times might be ok but
once it tries to verify and it does not see a library pom then it
assumes that it could find it from the official repositories. this are
all our assumptions and i have not yet had the opportunity of getting
hold of a document that explains this cycle. we just made it a policy
to make sure that those pom files are present to minimize the
headache. it seems to be working because we have a dozen jar files
manually added in the project repository and we are not encountering
this issue. :)



ciao!

--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



RE: [m2] I need clarification on repositories

2005-12-02 Thread Frank Russo
I'm not sure what you mean by pom.xml in this context. That is for my project, 
which I included in my email. Do you mean the .pom file for the jar? If that's 
the case, the option to create you talk about won't be available until 2.0.1. I 
checked it on the jira site. It is fixed. I forget the exact number. 

That was basically the problem, which answers my number 3 below. Yes, each jar 
has to have a .pom in the local repository. However, this wasn't always the 
case. I had 27 jars that I loaded into my local repository, none of which had 
poms. Usually, everything worked fine. It would always look in central since 
the pom was missing, but if it didn't find it, then it would ignore it. But 
sometimes I'd get that intermittent problem where it would fail. Not sure why. 
I have added poms for each jar, and now it never looks in central, except for 
the daily checked I've configured.

Anyway, I think the other 3 questions are still valid and would be useful to 
others to have documented somewhere, so if anyone has input, it would be 
appreciated...

-Original Message-
From: Anuerin Diaz [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 8:31 AM
To: Maven Users List
Subject: Re: [m2] I need clarification on repositories

i am not a developer but can you ´try creating the appropriate pom.xml
(you can copy from the other libraries)? i think there is an option to
have the pom installed during the install goal invocation.

ciao!

On 12/2/05, Frank Russo <[EMAIL PROTECTED]> wrote:
> Can one of the developers please respond on this? I'd be glad to add
> this to the Maven Users Home site.
>
> Thanks, in advance...
>
>
> -Original Message-
> From: Frank Russo
> Sent: Tuesday, November 29, 2005 12:48 PM
> To: users@maven.apache.org
> Subject: [m2] I need clarification on repositories
>
> Can someone please clear this up for me, as I'm getting the same
> intermittent problems?
>
> Here is the situation. I have jars that I have loaded into my local
> repository using the mvn install:install-file command. These will
> eventually be loaded into an intranet-based remote repository, but I
> loaded them locally for the time being. These are internal jars that do
> not exist on ibiblio. These jars are referenced in my pom.xml as
> dependencies. Everytime I run the mvn package command, I get something
> like the following for each of these dependencies:
>
>Downloading:
> http://repo1.maven.org/maven2/com/fxall/fxall-admin/fxall_ext_API/1.0/fx
> all_ext_API-1.0.pom
>[WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
>
> Sometimes - and this is the intermittent part - I get the following:
>
>[ERROR] BUILD ERROR
>[INFO]
> 
> 
>[INFO] Failed to resolve artifact.
>
>GroupId: com.fxall.fxall-admin
>ArtifactId: fxall_ext_API
>Version: 1.0
>
>Reason: Unable to download the artifact from any repository
>  com.fxall.fxall-admin:fxall_ext_API:1.0:jar
>
>from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
> These are the points where I need clarification:
>
>1) My understanding is that if something exists in my local
> repository, then it shouldn't be loaded from ibiblio.
>2) Even if point one is wrong, when loading from ibiblio, if the
> resource can't be found, then it shouldn't give an error since it does
> exist locally. It just wouldn't be updated.
>3) What happens if the local repository contains a jar, but with
> no associated pom? Would that cause the constant update check with
> ibiblio?
>4) Are there any differences in how this works if your project
> is declared as a regular version, eg 1.0, as compared
> to a snapshot version, eg 1.0-SNAPSHOT?
>
> These are not clear from any of the documentation I've read, so any
> clarification would be greatly appreciated...
>
> Here is a scaled down copy of pom.xml for reference:
>
>xmlns="http://maven.apache.org/POM/4.0.0";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>4.0.0
>com.fxall.fxall-admin
>fxall-admin
>war
>1.0-SNAPSHOT
>Altair Admin
>
>
>junit
>junit
>3.8.1
>test
>
>
>com.fxall.fxall-admin
>fxall_ext_API
>1.0
>compile
>
>
>
>fxalladmin
>
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>
> 

Re: [m2] install non-maven 3rd party libraries with snapshots

2005-12-02 Thread Martin van der Plas

Hi,

Instead of maven-repository.xml I mean maven-metadata.xml.

BTW, can somebody tell me which files are needed in the repository ? 
From http://docs.codehaus.org/pages/viewpage.action?pageId=22230 I get 
the impression that -SNAPSHOT.release.txt plays a role, 
altough this file is not used anywhere in the maven code.


Martin van der Plas wrote:


Hi,

My project depends on artifacts delivered by a 3rd party supplier.
The supplier delivers major releases and bug fix releases on these 
deliveres once a while.

Major releases have a name, minor releases are datestamped.

I want to import the  3rd party artifact as  snapshots per major 
release in our company maven repository.
It seems that the maven-install-plugin  command install:installfile 
cannot handle this usecase.
I now add the 3rd party artifacts manually,  editting the 
maven-repository.xml files where needed.

My questions are:

  1. Is it possible to add the 3rd party snapshot requirement to
 maven-install-plugin
  2. Why is buildNumber so important in the snapshot section of  
maven-repository.xml when  timestamp is also available.  When

 buildNumber is not specified, mvn refused to download the artifact
 from the central repository.




--
Groeten,

   Martin

mailto:[EMAIL PROTECTED]
tel: +31 (0) 20-7988464
mob: +31 (0) 6-21551921



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



Re: [m2] I need clarification on repositories

2005-12-02 Thread Anuerin Diaz
i am not a developer but can you ´try creating the appropriate pom.xml
(you can copy from the other libraries)? i think there is an option to
have the pom installed during the install goal invocation.

ciao!

On 12/2/05, Frank Russo <[EMAIL PROTECTED]> wrote:
> Can one of the developers please respond on this? I'd be glad to add
> this to the Maven Users Home site.
>
> Thanks, in advance...
>
>
> -Original Message-
> From: Frank Russo
> Sent: Tuesday, November 29, 2005 12:48 PM
> To: users@maven.apache.org
> Subject: [m2] I need clarification on repositories
>
> Can someone please clear this up for me, as I'm getting the same
> intermittent problems?
>
> Here is the situation. I have jars that I have loaded into my local
> repository using the mvn install:install-file command. These will
> eventually be loaded into an intranet-based remote repository, but I
> loaded them locally for the time being. These are internal jars that do
> not exist on ibiblio. These jars are referenced in my pom.xml as
> dependencies. Everytime I run the mvn package command, I get something
> like the following for each of these dependencies:
>
>Downloading:
> http://repo1.maven.org/maven2/com/fxall/fxall-admin/fxall_ext_API/1.0/fx
> all_ext_API-1.0.pom
>[WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
>
> Sometimes - and this is the intermittent part - I get the following:
>
>[ERROR] BUILD ERROR
>[INFO]
> 
> 
>[INFO] Failed to resolve artifact.
>
>GroupId: com.fxall.fxall-admin
>ArtifactId: fxall_ext_API
>Version: 1.0
>
>Reason: Unable to download the artifact from any repository
>  com.fxall.fxall-admin:fxall_ext_API:1.0:jar
>
>from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
> These are the points where I need clarification:
>
>1) My understanding is that if something exists in my local
> repository, then it shouldn't be loaded from ibiblio.
>2) Even if point one is wrong, when loading from ibiblio, if the
> resource can't be found, then it shouldn't give an error since it does
> exist locally. It just wouldn't be updated.
>3) What happens if the local repository contains a jar, but with
> no associated pom? Would that cause the constant update check with
> ibiblio?
>4) Are there any differences in how this works if your project
> is declared as a regular version, eg 1.0, as compared
> to a snapshot version, eg 1.0-SNAPSHOT?
>
> These are not clear from any of the documentation I've read, so any
> clarification would be greatly appreciated...
>
> Here is a scaled down copy of pom.xml for reference:
>
>xmlns="http://maven.apache.org/POM/4.0.0";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>4.0.0
>com.fxall.fxall-admin
>fxall-admin
>war
>1.0-SNAPSHOT
>Altair Admin
>
>
>junit
>junit
>3.8.1
>test
>
>
>com.fxall.fxall-admin
>fxall_ext_API
>1.0
>compile
>
>
>
>fxalladmin
>
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>
> -
> 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]
>
>


--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



Re: RE : RE : [m2] deploy with scm url (cvs)

2005-12-02 Thread Emmanuel Venisse



Olivier Lamy a écrit :

Ok.
Just let me know when I can test ? (I need to use
http://snapshots.maven.codehaus.org ?)


1.0-alpha-5 is in central repository.
1.0-alpha-6-SNAPSHOT is in snapshot repository.


Am I rigth with this configuration added in the build section :

  
org.apache.maven.wagon
 wagon-scm
 1.0-alpha-5
  



yes.




And with urls setted in the distributionManagement/url ? :

scm:cvs:pserver:${username}:[EMAIL PROTECTED]:repopath:module


yes

I never use it, so i don't know if it works.

Emmanuel


Thanks,

- Olivier


-Message d'origine-
De : Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 2 décembre 2005 13:14

À : Maven Users List
Objet : Re: RE : [m2] deploy with scm url (cvs)


It's implemented in wagon-scm. We need to update it to latest maven-scm
snapshot
If you want to test it in actual state, you can use
org.apache.maven.wagon:wagon-scm:1.0-alpha-5

Emmanuel

Olivier Lamy a écrit :


This feature (deploying in a scm in my case cvs) is implemented or not


?


I need to build wagon or somethings else from svn co ?
If snapshot available I can certainly play the beta tester ;-)
Thanks,
- Olivier

-Message d'origine-
De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 1 décembre 2005 19:47

À : Maven Users List
Objet : [m2] deploy with scm url (cvs)


Hi,
I'm trying to deploy in a scm repository (CVS).
The url needs to be the same as the developerConnection ?
I try :
- scm:cvs:pserver:ip:/local/cvs/repo:module
- scm:cvs:pserver:${username}:${password}ip:/local/cvs/repo:module

I have the following stack trace (long) :

Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
create plugin  container for plugin
'[EMAIL PROTECTED]': Error configuring co mponents
   at



org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMan


ager.java:284)
   at



org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defa


ultPluginManager.java:198)
   at



org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlugin


Manager.java:163)
   at



org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defaul


tLifecycleExecutor.java:1095)
   ... 18 more
Caused by: org.codehaus.plexus.PlexusContainerException: Error
configuring compone nts
   at



org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusCont


ainer.java:655)
   at



org.codehaus.plexus.DefaultPlexusContainer.createChildContainer(Default


PlexusContainer.java:252)
   at



org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMan


ager.java:277)
   ... 21 more
Caused by:



org.codehaus.plexus.component.configurator.ComponentConfigurationExcept


ion: Error configuring component: role: 'component-repository',
implementation: 'o
rg.codehaus.plexus.component.repository.DefaultComponentRepository'
   at



org.codehaus.plexus.DefaultPlexusContainer.processCoreComponentConfigur


ation(DefaultPlexusContainer.java:1301)
   at



org.codehaus.plexus.DefaultPlexusContainer.initializeCoreComponents(Def


aultPlexusContainer.java:1212)
   at



org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusCont


ainer.java:631)
   ... 23 more
Caused by:



org.codehaus.plexus.component.configurator.ComponentConfigurationExcept


ion: Cannot assign value
'org.codehaus.plexus.component.repository.DefaultComponen
[EMAIL PROTECTED]' to field:
org.codehaus.plexus.DefaultPlexusContainer.componen
tRepository; type:
org.codehaus.plexus.component.repository.DefaultComponentReposi
tory
   at



org.codehaus.plexus.component.configurator.converters.ComponentValueSet


ter.setValueUsingField(ComponentValueSetter.java:154)
   at



org.codehaus.plexus.component.configurator.converters.ComponentValueSet


ter.configure(ComponentValueSetter.java:252)
   at



org.codehaus.plexus.component.configurator.converters.composite.ObjectW

ithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:1


37)
   at



org.codehaus.plexus.component.configurator.BasicComponentConfigurator.c


onfigureComponent(BasicComponentConfigurator.java:56)
   at



org.codehaus.plexus.component.configurator.AbstractComponentConfigurato


r.configureComponent(AbstractComponentConfigurator.java:54)
   at



org.codehaus.plexus.component.configurator.AbstractComponentConfigurato


r.configureComponent(AbstractComponentConfigurator.java:47)
   at



org.codehaus.plexus.DefaultPlexusContainer.processCoreComponentConfigur


ation(DefaultPlexusContainer.java:1295)
   ... 25 more
Caused by: java.lang.IllegalArgumentException
   at



sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessor


Impl.java:63)
   at java.lang.reflect.Field.set(Field.java:519)
   at



org.codehaus.plexus.component.configurator.converters.ComponentValueSet


ter.setValueUsingField(ComponentValueSetter.java:141)
 

RE: [m2] I need clarification on repositories

2005-12-02 Thread Frank Russo
Can one of the developers please respond on this? I'd be glad to add
this to the Maven Users Home site.

Thanks, in advance...


-Original Message-
From: Frank Russo 
Sent: Tuesday, November 29, 2005 12:48 PM
To: users@maven.apache.org
Subject: [m2] I need clarification on repositories

Can someone please clear this up for me, as I'm getting the same
intermittent problems? 

Here is the situation. I have jars that I have loaded into my local
repository using the mvn install:install-file command. These will
eventually be loaded into an intranet-based remote repository, but I
loaded them locally for the time being. These are internal jars that do
not exist on ibiblio. These jars are referenced in my pom.xml as
dependencies. Everytime I run the mvn package command, I get something
like the following for each of these dependencies:

Downloading:
http://repo1.maven.org/maven2/com/fxall/fxall-admin/fxall_ext_API/1.0/fx
all_ext_API-1.0.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Sometimes - and this is the intermittent part - I get the following:

[ERROR] BUILD ERROR
[INFO]


[INFO] Failed to resolve artifact.

GroupId: com.fxall.fxall-admin
ArtifactId: fxall_ext_API
Version: 1.0

Reason: Unable to download the artifact from any repository
  com.fxall.fxall-admin:fxall_ext_API:1.0:jar

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

These are the points where I need clarification: 

1) My understanding is that if something exists in my local
repository, then it shouldn't be loaded from ibiblio. 
2) Even if point one is wrong, when loading from ibiblio, if the
resource can't be found, then it shouldn't give an error since it does
exist locally. It just wouldn't be updated.
3) What happens if the local repository contains a jar, but with
no associated pom? Would that cause the constant update check with
ibiblio? 
4) Are there any differences in how this works if your project
is declared as a regular version, eg 1.0, as compared
to a snapshot version, eg 1.0-SNAPSHOT? 

These are not clear from any of the documentation I've read, so any
clarification would be greatly appreciated...

Here is a scaled down copy of pom.xml for reference:

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
com.fxall.fxall-admin
fxall-admin
war
1.0-SNAPSHOT
Altair Admin


junit
junit
3.8.1
test


com.fxall.fxall-admin
fxall_ext_API
1.0
compile



fxalladmin



Frank Russo
Senior Developer
FX Alliance, LLC

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



[M2] eclipse plugin and generated sources

2005-12-02 Thread Gilles Scokart


When you have a project using a code generator plugin, how can we add the 
generated sources in the list of eclipse source directory?


This problematic was seemingly handled in Mavane 1.x (As I read on 
http://maven.apache.org/maven-1.x/reference/plugins/eclipse/), but there is 
no similar things on Maven 2.


I know it is possible to a plugin to add a source directory for the 
following plugins (expl: a plugin executed in generate-test-sources phase 
can add test source directory for the following phases, incuding 
test-compile).


But (as I understand) the eclipse plugin is not executed at a particular 
phase.


So how can we do?

Thanks,
Gilles Scokart

_
Créez gratuitement votre espace perso en ligne avec MSN Spaces !  
http://spaces.msn.com/?mkt=fr-be



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



RE : RE : [m2] deploy with scm url (cvs)

2005-12-02 Thread Olivier Lamy
Ok.
Just let me know when I can test ? (I need to use
http://snapshots.maven.codehaus.org ?)
Am I rigth with this configuration added in the build section :

  
org.apache.maven.wagon
 wagon-scm
 1.0-alpha-5
  



And with urls setted in the distributionManagement/url ? :

scm:cvs:pserver:${username}:[EMAIL PROTECTED]:repopath:module

Thanks,

- Olivier


-Message d'origine-
De : Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 2 décembre 2005 13:14
À : Maven Users List
Objet : Re: RE : [m2] deploy with scm url (cvs)


It's implemented in wagon-scm. We need to update it to latest maven-scm
snapshot
If you want to test it in actual state, you can use
org.apache.maven.wagon:wagon-scm:1.0-alpha-5

Emmanuel

Olivier Lamy a écrit :
> This feature (deploying in a scm in my case cvs) is implemented or not
?
> I need to build wagon or somethings else from svn co ?
> If snapshot available I can certainly play the beta tester ;-)
> Thanks,
> - Olivier
> 
> -Message d'origine-
> De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
> Envoyé : jeudi 1 décembre 2005 19:47
> À : Maven Users List
> Objet : [m2] deploy with scm url (cvs)
> 
> 
> Hi,
> I'm trying to deploy in a scm repository (CVS).
> The url needs to be the same as the developerConnection ?
> I try :
> - scm:cvs:pserver:ip:/local/cvs/repo:module
> - scm:cvs:pserver:${username}:${password}ip:/local/cvs/repo:module
> 
> I have the following stack trace (long) :
> 
> Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
> create plugin  container for plugin
> '[EMAIL PROTECTED]': Error configuring co mponents
> at
>
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMan
> ager.java:284)
> at
>
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defa
> ultPluginManager.java:198)
> at
>
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlugin
> Manager.java:163)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defaul
> tLifecycleExecutor.java:1095)
> ... 18 more
> Caused by: org.codehaus.plexus.PlexusContainerException: Error
> configuring compone nts
> at
>
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusCont
> ainer.java:655)
> at
>
org.codehaus.plexus.DefaultPlexusContainer.createChildContainer(Default
> PlexusContainer.java:252)
> at
>
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMan
> ager.java:277)
> ... 21 more
> Caused by:
>
org.codehaus.plexus.component.configurator.ComponentConfigurationExcept
> ion: Error configuring component: role: 'component-repository',
> implementation: 'o
> rg.codehaus.plexus.component.repository.DefaultComponentRepository'
> at
>
org.codehaus.plexus.DefaultPlexusContainer.processCoreComponentConfigur
> ation(DefaultPlexusContainer.java:1301)
> at
>
org.codehaus.plexus.DefaultPlexusContainer.initializeCoreComponents(Def
> aultPlexusContainer.java:1212)
> at
>
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusCont
> ainer.java:631)
> ... 23 more
> Caused by:
>
org.codehaus.plexus.component.configurator.ComponentConfigurationExcept
> ion: Cannot assign value
> 'org.codehaus.plexus.component.repository.DefaultComponen
> [EMAIL PROTECTED]' to field:
> org.codehaus.plexus.DefaultPlexusContainer.componen
> tRepository; type:
> org.codehaus.plexus.component.repository.DefaultComponentReposi
> tory
> at
>
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
> ter.setValueUsingField(ComponentValueSetter.java:154)
> at
>
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
> ter.configure(ComponentValueSetter.java:252)
> at
>
org.codehaus.plexus.component.configurator.converters.composite.ObjectW
>
ithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:1
> 37)
> at
>
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.c
> onfigureComponent(BasicComponentConfigurator.java:56)
> at
>
org.codehaus.plexus.component.configurator.AbstractComponentConfigurato
> r.configureComponent(AbstractComponentConfigurator.java:54)
> at
>
org.codehaus.plexus.component.configurator.AbstractComponentConfigurato
> r.configureComponent(AbstractComponentConfigurator.java:47)
> at
>
org.codehaus.plexus.DefaultPlexusContainer.processCoreComponentConfigur
> ation(DefaultPlexusContainer.java:1295)
> ... 25 more
> Caused by: java.lang.IllegalArgumentException
> at
>
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessor
> Impl.java:63)
> at java.lang.reflect.Field.set(Field.java:519)
> at
>
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
> ter.setValueUsingField(ComponentValueSetter.java:141)
> ... 31 more
> 
> Issue ? Non implemented feature ?
> Thanks a lo

[m2] install non-maven 3rd party libraries with snapshots

2005-12-02 Thread Martin van der Plas

Hi,

My project depends on artifacts delivered by a 3rd party supplier.
The supplier delivers major releases and bug fix releases on these 
deliveres once a while.

Major releases have a name, minor releases are datestamped.

I want to import the  3rd party artifact as  snapshots per major release 
in our company maven repository.
It seems that the maven-install-plugin  command install:installfile 
cannot handle this usecase.
I now add the 3rd party artifacts manually,  editting the 
maven-repository.xml files where needed.

My questions are:

  1. Is it possible to add the 3rd party snapshot requirement to
 maven-install-plugin
  2. Why is buildNumber so important in the snapshot section of 
 maven-repository.xml when  timestamp is also available.  When

 buildNumber is not specified, mvn refused to download the artifact
 from the central repository.

--
Groeten,

   Martin

mailto:[EMAIL PROTECTED]
tel: +31 (0) 20-7988464
mob: +31 (0) 6-21551921



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



RE: Problem finding my plugin in remote repository

2005-12-02 Thread André Isaksson
The strangest thing about this problem is these two lines:

Downloading: 
file:///m2_repo/repository/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-baseline-plugin-1.0.0.pom
3K downloaded
Downloading: 
http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-baseline-plugin-1.0.0.jar
  


Why does it decide to download the jar-file from repo1.maven.org when the pom 
is not located there? And why doesn't it try get the jar-file from 
file:///m2_repo when it fails to fetch it from repo1.maven.org? Could it be a 
bug?


Regards,

André


-Original Message-
From: André Isaksson [mailto:[EMAIL PROTECTED] 
Sent: den 2 december 2005 10:55
To: users@maven.apache.org
Subject: Problem finding my plugin in remote repository


Hello!

I have created a plugin and deployed it to a remote repository 
(file:///m2_repo/repository). To test that the plugin can be downloaded from 
the remote repository I have removed it from my local repository. When I try to 
use the plugin the following error occurs:

--
[INFO] Scanning for projects...
Downloading: 
http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/mave
n-baseline-plugin-1.0.0.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://gotdevmq/maven/se.zystems.maven.plugins/poms/maven-baseline-plugin-1.0.0.pom
[WARNING] Unable to get resource from repository gotdevmq 
(http://gotdevmq/maven)
Downloading: 
file:///m2_repo/repository/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-b
aseline-plugin-1.0.0.pom
3K downloaded
Downloading: 
http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/mave
n-baseline-plugin-1.0.0.jar
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2) [INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Plugin could not be found - check that the goal name is correct: Unable 
to download the artif act from any repository
  se.zystems.maven.plugins:maven-baseline-plugin:1.0.0:maven-plugin

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

  se.zystems.maven.plugins:maven-baseline-plugin:1.0.0:maven-plugin

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
--

What puzzles me is that the pom is located correctly but the actual jar-file 
can't be found. It seems like Maven only searches the repositories I have 
defined in settings.xml when it tries to find the correct pom, not when it 
tries to locate the jar-file. Is this true, and if yes, how can I solve the 
problem?


Best Regards / Vänliga hälsningar
André Isaksson
System Integrator
Zystems by Semcon
___
This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose or take any action based on this message or any information 
herein. If you have received this message in error, please advise the sender 
immediately by reply e-mail and delete this message.
Thank you for your cooperation 



Best Regards / Vänliga hälsningar 
André Isaksson
System Integrator
Zystems by Semcon
Theres Svenssons Gata 15
417 80 Göteborg
( Telefon: +46 (0)707-77 86 02 
* E-mail: [EMAIL PROTECTED] 
WWW: http://www.zystems.se http://www.zystems.se/>  
___
This message may contain confidential and/or privileged information. If you are 
not
the addressee or authorized to receive this for the addressee, you must not 
use, copy,
disclose or take any action based on this message or any information herein. If 
you
have received this message in error, please advise the sender immediately by 
reply
e-mail and delete this message.
Thank you for your cooperation 



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



RE: [m2] include additional report to the site

2005-12-02 Thread Yuriy Ivanov
I add to reporting section xml:



org.codehaus.mojo
surefire-report-maven-plugin

true




I have Russian locale, don't know may be it's the reason.
And when run mvn site I got this error:

[INFO] Generate "Maven Surefire Report" report.
java.lang.NumberFormatException: For input string: "0,046"
at
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:12
24)
at java.lang.Float.parseFloat(Float.java:394)
at
org.codehaus.mojo.surefire.ReportTestSuite.startElement(ReportTestSui
te.java:78)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
ment(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElem
ent(XMLDTDValidator.java:798)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanStartElement(XMLDocumentFragmentScannerImpl.java:878)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Conten
tDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:179
4)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)

> -Original Message-
> From: Anuerin Diaz [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 02, 2005 11:39 AM
> To: Maven Users List
> Subject: Re: [m2] include additional report to the site
> 
> On 12/2/05, Yuriy Ivanov <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have tests and reports for surefire plugin. How can I include junit
> report
> > in my site ?
> >
> > Also how can I add pdm report to the site?
> >
> > Not clear where and what should I insert in pom.xml. In site.xml I
> already
> > added ${reports} tag.
> >
> 
> add the plugin in the reporting section of your project descriptor.
> 
> the pmd plugin is currently locked into the "controversial" ruleset
> which is why we are running pmd as an Ant task. i would like to extend
> the original question to how can we add it on the reports menu without
> hardcoding each module's site.xml file. i am not sure if we can attach
> an antrun to the reporting section and have it pickup the generated
> pmd reports.
> 
> thanks.
> 
> ciao!
> 
> 
> --
> 
> "Programming, an artform that fights back"
> 
> Anuerin G. Diaz
> Registered Linux User #246176
> Friendly Linux Board @ http://mandrivausers.org/index.php
> http://capsule.ramfree17.org , when you absolutely have nothing else
> better to do
> 
> -
> 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]



RE: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version can be found. Maven 2 new install.

2005-12-02 Thread Russell Brown
Tomas,
What I did exactly is as follows:-

I set up my proxy:-

 
  link
  true
  http
  rbrown
  ***
  ourproxy.link.co.uk
  8080
  link.co.uk



I added a profile that pointed to a local machine on my network that has
no repository on it:-

 
  LinkDev

 
  

  LinkRepos
  Repository for LINK builds
  http://myrepomachine.link.co.uk/maven-repos/
  default

  


I activated the profile:-


LinkDev
  

I ran mvn -X -U compile and magically it worked.

That is all I did so I'm not sure why it worked. Before I created the
profile and activated I tried "mvn -U -X compile" and had no joy so if
anyone can explain why this worked I'd be grateful to hear it.

Good luck and regards

Russell

 

-Original Message-
From: Tomas Maven [mailto:[EMAIL PROTECTED] 
Sent: 02 December 2005 12:08
To: Maven Users List
Subject: Re: The plugin
'org.apache.maven.plugins:maven-resources-plugin' does not exist or no
valid version can be found. Maven 2 new install.

Hello Russel,
I have ran into the same problem as you, and I also tried to add some
mirrors in the setting.xml, but no success. Does your settings file look
something like mine?

 


myproxy
true
http
proxyhost
8080
user
password




mirrors.dotsrc.org
Mirror of
http://repo1.maven.org/maven2/
http://mirrors.dotsrc.org/maven2/
central


public.planetmirror.com
Mirror of
http://repo1.maven.org/maven2/

http://public.planetmirror.com/pub/maven2/
central




Many thanks for some pointers to errors..
regs
/Tomas

2005/12/2, Russell Brown <[EMAIL PROTECTED]>:
> Ok,
>
> I tried again. I changed my settings.xml to point to a mirror 
> repository and ran mvn -U -X compile and this time the plugins were
downloaded.
> From central mind you, not the mirror.
>
> It is going to be a steep curve but I've started now.
> Thanks for your help so far
>
> Russell
>
> -Original Message-
> From: Russell Brown [mailto:[EMAIL PROTECTED]
> Sent: 02 December 2005 09:51
> To: Maven Users List
> Subject: RE: The plugin
> 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no

> valid version can be found. Maven 2 new install.
>
> Brett,
> Many thanks. This is a clean install of maven2. When I run the command
>
> mvn -U compile
>
> The output states
>
> artefact org.apache.maven.plugins:maven-resources-plugin: checking for

> updates from central
>
> But then I still get the message
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' 
> does not exist or no valid versi on could be found
>
> So is the plugin in the right place in central ? I can find the plugin

> at http://repo1.mave,.org/maven2/org/apache/maven/plugins/... So why 
> can't mvn ?
>
> Any more help appreciated as I am not sure how to install plugins if I

> cannot install the install plugin.
>
> Russell
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: 02 December 2005 09:46
> To: Maven Users List
> Subject: Re: The plugin
> 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no

> valid version can be found. Maven 2 new install.
>
> This seems to be an issue of upgrading an old install. Please run with

> -U and see if that helps - it will force an update.
>
> - Brett
>
> On 12/2/05, Russell Brown <[EMAIL PROTECTED]> wrote:
> > Allan,
> > Thanks for your reply. I have just tried what you suggest and may 
> > have
>
> > come across a boot strapping type issue. When I run the command
> >
> > mvn install:install-file
> > -Dfile=m:\maven-resources\2.0-alpha-3\maven-resources-plugin-2
> > .0-alpha-3.jar -DgroupId=org.apache.maven.plugins
> > -DartifactId=maven-resources-plugin -Dversion=2.0-
> > aplha-3 -Dpackaging=jar
> >
> > And got the message
> >
> > [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' 
> > does
>
> > not exist or no valid version  could be found
> >
> > Fair play. So I download the maven-install-plugin and run the 
> > command
> >
> > mvn install:install-file
> > -Dfile=m:\maven-resources\maven-install-plugin-2.0.jar -Dgroup 
> > Id=org.apache.maven.plugins -DartifactId=maven-install-plugin 
> > -Dversion=2.0 -Dpackaging=jar
> >
> > And get the message
> >
> > [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' 
> > does
>
> > not exist or no valid version  could be found
> >
> > ?? Erm. Not sure what to do next.
> >
> > Is there a root cause to this 'cos presumably Maven should be 
> > download

Re: RE : [m2] deploy with scm url (cvs)

2005-12-02 Thread Emmanuel Venisse

It's implemented in wagon-scm. We need to update it to latest maven-scm snapshot
If you want to test it in actual state, you can use 
org.apache.maven.wagon:wagon-scm:1.0-alpha-5

Emmanuel

Olivier Lamy a écrit :

This feature (deploying in a scm in my case cvs) is implemented or not ?
I need to build wagon or somethings else from svn co ?
If snapshot available I can certainly play the beta tester ;-)
Thanks,
- Olivier

-Message d'origine-
De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 1 décembre 2005 19:47

À : Maven Users List
Objet : [m2] deploy with scm url (cvs)


Hi,
I'm trying to deploy in a scm repository (CVS).
The url needs to be the same as the developerConnection ?
I try :
- scm:cvs:pserver:ip:/local/cvs/repo:module
- scm:cvs:pserver:${username}:${password}ip:/local/cvs/repo:module

I have the following stack trace (long) :

Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
create plugin  container for plugin
'[EMAIL PROTECTED]': Error configuring co mponents
at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMan
ager.java:284)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defa
ultPluginManager.java:198)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlugin
Manager.java:163)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defaul
tLifecycleExecutor.java:1095)
... 18 more
Caused by: org.codehaus.plexus.PlexusContainerException: Error
configuring compone nts
at
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusCont
ainer.java:655)
at
org.codehaus.plexus.DefaultPlexusContainer.createChildContainer(Default
PlexusContainer.java:252)
at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMan
ager.java:277)
... 21 more
Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationExcept
ion: Error configuring component: role: 'component-repository',
implementation: 'o
rg.codehaus.plexus.component.repository.DefaultComponentRepository'
at
org.codehaus.plexus.DefaultPlexusContainer.processCoreComponentConfigur
ation(DefaultPlexusContainer.java:1301)
at
org.codehaus.plexus.DefaultPlexusContainer.initializeCoreComponents(Def
aultPlexusContainer.java:1212)
at
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusCont
ainer.java:631)
... 23 more
Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationExcept
ion: Cannot assign value
'org.codehaus.plexus.component.repository.DefaultComponen
[EMAIL PROTECTED]' to field:
org.codehaus.plexus.DefaultPlexusContainer.componen
tRepository; type:
org.codehaus.plexus.component.repository.DefaultComponentReposi
tory
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
ter.setValueUsingField(ComponentValueSetter.java:154)
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
ter.configure(ComponentValueSetter.java:252)
at
org.codehaus.plexus.component.configurator.converters.composite.ObjectW
ithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:1
37)
at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.c
onfigureComponent(BasicComponentConfigurator.java:56)
at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurato
r.configureComponent(AbstractComponentConfigurator.java:54)
at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurato
r.configureComponent(AbstractComponentConfigurator.java:47)
at
org.codehaus.plexus.DefaultPlexusContainer.processCoreComponentConfigur
ation(DefaultPlexusContainer.java:1295)
... 25 more
Caused by: java.lang.IllegalArgumentException
at
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessor
Impl.java:63)
at java.lang.reflect.Field.set(Field.java:519)
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
ter.setValueUsingField(ComponentValueSetter.java:141)
... 31 more

Issue ? Non implemented feature ?
Thanks a lot,
- Olivier



This e-mail, any attachments and the information contained therein
("this message") are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les

informations contenues dans ce message ( ci apres "le message" ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez recu ce message par erreur,
merci  de le renvoyer a son emetteur et de le detruire. Toutes

Re: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version can be found. Maven 2 new install.

2005-12-02 Thread Tomas Maven
Hello Russel,
I have ran into the same problem as you, and I also tried to add some
mirrors in the setting.xml, but no success. Does your settings file
look something like mine?





myproxy
true
http
proxyhost
8080
user
password




mirrors.dotsrc.org
Mirror of http://repo1.maven.org/maven2/
http://mirrors.dotsrc.org/maven2/
central


public.planetmirror.com
Mirror of http://repo1.maven.org/maven2/
 http://public.planetmirror.com/pub/maven2/
central




Many thanks for some pointers to errors..
regs
/Tomas

2005/12/2, Russell Brown <[EMAIL PROTECTED]>:
> Ok,
>
> I tried again. I changed my settings.xml to point to a mirror repository
> and ran mvn -U -X compile and this time the plugins were downloaded.
> From central mind you, not the mirror.
>
> It is going to be a steep curve but I've started now.
> Thanks for your help so far
>
> Russell
>
> -Original Message-
> From: Russell Brown [mailto:[EMAIL PROTECTED]
> Sent: 02 December 2005 09:51
> To: Maven Users List
> Subject: RE: The plugin
> 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no
> valid version can be found. Maven 2 new install.
>
> Brett,
> Many thanks. This is a clean install of maven2. When I run the command
>
> mvn -U compile
>
> The output states
>
> artefact org.apache.maven.plugins:maven-resources-plugin: checking for
> updates from central
>
> But then I still get the message
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
> not exist or no valid versi on could be found
>
> So is the plugin in the right place in central ? I can find the plugin
> at http://repo1.mave,.org/maven2/org/apache/maven/plugins/... So why
> can't mvn ?
>
> Any more help appreciated as I am not sure how to install plugins if I
> cannot install the install plugin.
>
> Russell
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: 02 December 2005 09:46
> To: Maven Users List
> Subject: Re: The plugin
> 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no
> valid version can be found. Maven 2 new install.
>
> This seems to be an issue of upgrading an old install. Please run with
> -U and see if that helps - it will force an update.
>
> - Brett
>
> On 12/2/05, Russell Brown <[EMAIL PROTECTED]> wrote:
> > Allan,
> > Thanks for your reply. I have just tried what you suggest and may have
>
> > come across a boot strapping type issue. When I run the command
> >
> > mvn install:install-file
> > -Dfile=m:\maven-resources\2.0-alpha-3\maven-resources-plugin-2
> > .0-alpha-3.jar -DgroupId=org.apache.maven.plugins
> > -DartifactId=maven-resources-plugin -Dversion=2.0-
> > aplha-3 -Dpackaging=jar
> >
> > And got the message
> >
> > [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does
>
> > not exist or no valid version  could be found
> >
> > Fair play. So I download the maven-install-plugin and run the command
> >
> > mvn install:install-file
> > -Dfile=m:\maven-resources\maven-install-plugin-2.0.jar -Dgroup
> > Id=org.apache.maven.plugins -DartifactId=maven-install-plugin
> > -Dversion=2.0 -Dpackaging=jar
> >
> > And get the message
> >
> > [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does
>
> > not exist or no valid version  could be found
> >
> > ?? Erm. Not sure what to do next.
> >
> > Is there a root cause to this 'cos presumably Maven should be
> > downloading these plugins from central.
> >
> > Any more Ideas ?
> >
> > Many thanks
> >
> > Russell
> >
> >
> > >Hi Russel,
> > >
> > >http://docs.codehaus.org/display/MAVENUSER/FAQs
> > >Look for the question "Why am I getting a "" does not
> > exist
> > >or no valid version"
> > >
> > >Hope this helps,
> > >
> > >regards,
> > >-allan
> > >
> > >Russell Brown wrote:
> > >
> > >Hi,
> > >Whenever I try and run 'mvn compile' I get the message:
> > >
> > >The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
>
> > >exist or no valid version can be found.
> > >
> > >I have looked on http://www.ibiblio.org/maven2 and the directory
> > >http://www.ibiblio.org/maven2/maven/maven-resources-plugin/ is empty.
> > Is
> > >this the reason for the error ?
> > >
> > >I poked around some more and found a jar that could be the right one
> > >at
> > >http://www.ibiblio.org/maven2/apache/maven/plugins/maven-resources-pl
> > >ug
> > i
> > >n . I downloaded it and the pom and put it in my local repository. No
>
> > >luck, same message. I put it on a local web server and set up a
> > >mirror in the setting

RE : RE : [m2] run target jar

2005-12-02 Thread Olivier Lamy
Ok this works for generate a simple jar without the dependencies.

But it doesn't work if you want to generate a full jar (like the maven1
plugin javaapp)
Full jar (means to be executed standalone without included jar
dependencies in the classpath cli) included :
- current projet classes
- all dependencies unpacked in the generated full jar.

Look http://jira.codehaus.org/browse/MNG-1380.

I'm correct or there is an other configuration to add in assembly ?

- Olivier



-Message d'origine-
De : Allan Ramirez [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 2 décembre 2005 11:17
À : Maven Users List
Objet : Re: RE : [m2] run target jar


Hi  Yuri,

You can add the main class in the manifest by configuring the 
maven-jar-plugin

see http://docs.codehaus.org/display/MAVENUSER/FAQs
and look for the question "How to add main class in the manifest of the 
generated jar?"

regards,
-allan


Olivier Lamy wrote:

>Use plugin assembly 
>http://maven.apache.org/plugins/maven-assembly-plugin/
>
>Note the manifest file with the main class can't be added to final jar.

>Just run with : java -classpath fulljar mainclass.
>
>- Olivier
>
>
>-Message d'origine-
>De : Yuriy Ivanov [mailto:[EMAIL PROTECTED]
>Envoyé : vendredi 2 décembre 2005 10:45
>À : users@maven.apache.org
>Objet : [m2] run target jar
>
>
>Hello,
>
> 
>
>I have compiled jar, and dependencies in my pom.xml. How can I run my 
>jar? with classpath equals to all dependencies.
>
> 
>
>Best Regards,
>
>Yuri Ivanov
>
>E-Mail:  
>[EMAIL PROTECTED]
>
>MSN:   [EMAIL PROTECTED]
>
>ICQ: 147038971
>
>
>
>
>This e-mail, any attachments and the information contained therein 
>("this message") are confidential and intended solely for the use of
the addressee(s). If you have received this message in error please send
it back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.
>---
---
>Ce message électronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci après "le message" ), sont
confidentiels et destinés exclusivement à l'usage de la  personne à
laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
merci  de le renvoyer à son émetteur et de le détruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressément autorisées de ce message, sont
interdites.
>---
--
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>




This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



RE: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version can be found. Maven 2 new install.

2005-12-02 Thread Russell Brown
Ok,

I tried again. I changed my settings.xml to point to a mirror repository
and ran mvn -U -X compile and this time the plugins were downloaded.
From central mind you, not the mirror.

It is going to be a steep curve but I've started now.
Thanks for your help so far

Russell 

-Original Message-
From: Russell Brown [mailto:[EMAIL PROTECTED] 
Sent: 02 December 2005 09:51
To: Maven Users List
Subject: RE: The plugin
'org.apache.maven.plugins:maven-resources-plugin' does not exist or no
valid version can be found. Maven 2 new install.

Brett,
Many thanks. This is a clean install of maven2. When I run the command 

mvn -U compile

The output states 

artefact org.apache.maven.plugins:maven-resources-plugin: checking for
updates from central

But then I still get the message

[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
not exist or no valid versi on could be found

So is the plugin in the right place in central ? I can find the plugin
at http://repo1.mave,.org/maven2/org/apache/maven/plugins/... So why
can't mvn ?

Any more help appreciated as I am not sure how to install plugins if I
cannot install the install plugin.

Russell

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: 02 December 2005 09:46
To: Maven Users List
Subject: Re: The plugin
'org.apache.maven.plugins:maven-resources-plugin' does not exist or no
valid version can be found. Maven 2 new install.

This seems to be an issue of upgrading an old install. Please run with
-U and see if that helps - it will force an update.

- Brett

On 12/2/05, Russell Brown <[EMAIL PROTECTED]> wrote:
> Allan,
> Thanks for your reply. I have just tried what you suggest and may have

> come across a boot strapping type issue. When I run the command
>
> mvn install:install-file
> -Dfile=m:\maven-resources\2.0-alpha-3\maven-resources-plugin-2
> .0-alpha-3.jar -DgroupId=org.apache.maven.plugins
> -DartifactId=maven-resources-plugin -Dversion=2.0-
> aplha-3 -Dpackaging=jar
>
> And got the message
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does

> not exist or no valid version  could be found
>
> Fair play. So I download the maven-install-plugin and run the command
>
> mvn install:install-file
> -Dfile=m:\maven-resources\maven-install-plugin-2.0.jar -Dgroup 
> Id=org.apache.maven.plugins -DartifactId=maven-install-plugin 
> -Dversion=2.0 -Dpackaging=jar
>
> And get the message
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does

> not exist or no valid version  could be found
>
> ?? Erm. Not sure what to do next.
>
> Is there a root cause to this 'cos presumably Maven should be 
> downloading these plugins from central.
>
> Any more Ideas ?
>
> Many thanks
>
> Russell
>
>
> >Hi Russel,
> >
> >http://docs.codehaus.org/display/MAVENUSER/FAQs
> >Look for the question "Why am I getting a "" does not
> exist
> >or no valid version"
> >
> >Hope this helps,
> >
> >regards,
> >-allan
> >
> >Russell Brown wrote:
> >
> >Hi,
> >Whenever I try and run 'mvn compile' I get the message:
> >
> >The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not

> >exist or no valid version can be found.
> >
> >I have looked on http://www.ibiblio.org/maven2 and the directory 
> >http://www.ibiblio.org/maven2/maven/maven-resources-plugin/ is empty.
> Is
> >this the reason for the error ?
> >
> >I poked around some more and found a jar that could be the right one 
> >at 
> >http://www.ibiblio.org/maven2/apache/maven/plugins/maven-resources-pl
> >ug
> i
> >n . I downloaded it and the pom and put it in my local repository. No

> >luck, same message. I put it on a local web server and set up a 
> >mirror in the settings.xml and mvn compile still results in the same
message.
> I
> >removed the mirror form settings.xml and set up a profile pointing to

> >a remote repository on my network with the plugin on the path 
> >/maven/maven-resources-plugin/  and that did not work.
> >
> >I have tried it on 4 different paths as I am not sure which is 
> >correct (I mirrored every instance of the .jar on the server) and 
> >that did not work.
> >
> >I googled and searched the archive for users@maven.apache.org and 
> >found that the issue was raised on 05/11/2005. The respondent asked 
> >the
> poster
> >to "try again in a few days" as there was "trouble" with
> repo1.maven.org
> >at the moment. So...my question: having RTFM and tried very hard to 
> >solve the problem myself I have to ask if anyone out there knows what

> >the cause of this issues is and how I solve it ?
> >
> >My env:-
> >Windows XP
> >Jdk 5
> >Behind a proxy but I maven managed to download the archetype plugin 
> >so
> I
> >configured the proxy settings correctly
> >
> >Thanks in advance if you can help
> >
> >Regards
> >
> >Russell
> >
> >
> >
> >Russell Brown
> >Developer
> >LINK Interchange Network Ltd
> >
> >Tel: 01423 35631
> >
> >_
> >__
> _
> >

Re: RE : [m2] run target jar

2005-12-02 Thread Allan Ramirez

Hi  Yuri,

You can add the main class in the manifest by configuring the 
maven-jar-plugin


see http://docs.codehaus.org/display/MAVENUSER/FAQs
and look for the question "How to add main class in the manifest of the 
generated jar?"


regards,
-allan


Olivier Lamy wrote:


Use plugin assembly
http://maven.apache.org/plugins/maven-assembly-plugin/

Note the manifest file with the main class can't be added to final jar.
Just run with : java -classpath fulljar mainclass.

- Olivier


-Message d'origine-
De : Yuriy Ivanov [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 2 décembre 2005 10:45

À : users@maven.apache.org
Objet : [m2] run target jar


Hello,



I have compiled jar, and dependencies in my pom.xml. How can I run my
jar? with classpath equals to all dependencies.



Best Regards,

Yuri Ivanov

E-Mail:  
[EMAIL PROTECTED]

MSN:   [EMAIL PROTECTED]

ICQ: 147038971




This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). If 
you have received this message in error please send it back to the sender and delete it. 
Unauthorized publication, use, dissemination or disclosure of this message, either in 
whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues 
dans ce message ( ci après "le message" ), sont confidentiels et destinés 
exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu 
ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes 
diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit 
non expressément autorisées de ce message, sont interdites.
-


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

Problem finding my plugin in remote repository

2005-12-02 Thread André Isaksson

Hello!

I have created a plugin and deployed it to a remote repository 
(file:///m2_repo/repository). To test that the plugin can be downloaded from 
the remote repository I have removed it from my local repository. When I try to 
use the plugin the following error occurs:

--
[INFO] Scanning for projects...
Downloading: 
http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/mave
n-baseline-plugin-1.0.0.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://gotdevmq/maven/se.zystems.maven.plugins/poms/maven-baseline-plugin-1.0.0.pom
[WARNING] Unable to get resource from repository gotdevmq 
(http://gotdevmq/maven)
Downloading: 
file:///m2_repo/repository/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/maven-b
aseline-plugin-1.0.0.pom
3K downloaded
Downloading: 
http://repo1.maven.org/maven2/se/zystems/maven/plugins/maven-baseline-plugin/1.0.0/mave
n-baseline-plugin-1.0.0.jar
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Plugin could not be found - check that the goal name is correct: Unable 
to download the artif
act from any repository
  se.zystems.maven.plugins:maven-baseline-plugin:1.0.0:maven-plugin

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

  se.zystems.maven.plugins:maven-baseline-plugin:1.0.0:maven-plugin

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
--

What puzzles me is that the pom is located correctly but the actual jar-file 
can't be found. It seems like Maven only searches the repositories I have 
defined in settings.xml when it tries to find the correct pom, not when it 
tries to locate the jar-file. Is this true, and if yes, how can I solve the 
problem?


Best Regards / Vänliga hälsningar 
André Isaksson
System Integrator
Zystems by Semcon
___
This message may contain confidential and/or privileged information. If you are 
not
the addressee or authorized to receive this for the addressee, you must not 
use, copy,
disclose or take any action based on this message or any information herein. If 
you
have received this message in error, please advise the sender immediately by 
reply
e-mail and delete this message.
Thank you for your cooperation 



Best Regards / Vänliga hälsningar 
André Isaksson
System Integrator
Zystems by Semcon
Theres Svenssons Gata 15
417 80 Göteborg
( Telefon: +46 (0)707-77 86 02 
* E-mail: [EMAIL PROTECTED] 
WWW: http://www.zystems.se http://www.zystems.se/>  
___
This message may contain confidential and/or privileged information. If you are 
not
the addressee or authorized to receive this for the addressee, you must not 
use, copy,
disclose or take any action based on this message or any information herein. If 
you
have received this message in error, please advise the sender immediately by 
reply
e-mail and delete this message.
Thank you for your cooperation 




RE: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version can be found. Maven 2 new install.

2005-12-02 Thread Russell Brown
Brett,
Many thanks. This is a clean install of maven2. When I run the command 

mvn -U compile

The output states 

artefact org.apache.maven.plugins:maven-resources-plugin: checking for
updates from central

But then I still get the message

[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
not exist or no valid versi
on could be found

So is the plugin in the right place in central ? I can find the plugin
at http://repo1.mave,.org/maven2/org/apache/maven/plugins/... So why
can't mvn ?

Any more help appreciated as I am not sure how to install plugins if I
cannot install the install plugin.

Russell

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: 02 December 2005 09:46
To: Maven Users List
Subject: Re: The plugin
'org.apache.maven.plugins:maven-resources-plugin' does not exist or no
valid version can be found. Maven 2 new install.

This seems to be an issue of upgrading an old install. Please run with
-U and see if that helps - it will force an update.

- Brett

On 12/2/05, Russell Brown <[EMAIL PROTECTED]> wrote:
> Allan,
> Thanks for your reply. I have just tried what you suggest and may have

> come across a boot strapping type issue. When I run the command
>
> mvn install:install-file
> -Dfile=m:\maven-resources\2.0-alpha-3\maven-resources-plugin-2
> .0-alpha-3.jar -DgroupId=org.apache.maven.plugins
> -DartifactId=maven-resources-plugin -Dversion=2.0-
> aplha-3 -Dpackaging=jar
>
> And got the message
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does

> not exist or no valid version  could be found
>
> Fair play. So I download the maven-install-plugin and run the command
>
> mvn install:install-file
> -Dfile=m:\maven-resources\maven-install-plugin-2.0.jar -Dgroup 
> Id=org.apache.maven.plugins -DartifactId=maven-install-plugin 
> -Dversion=2.0 -Dpackaging=jar
>
> And get the message
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does

> not exist or no valid version  could be found
>
> ?? Erm. Not sure what to do next.
>
> Is there a root cause to this 'cos presumably Maven should be 
> downloading these plugins from central.
>
> Any more Ideas ?
>
> Many thanks
>
> Russell
>
>
> >Hi Russel,
> >
> >http://docs.codehaus.org/display/MAVENUSER/FAQs
> >Look for the question "Why am I getting a "" does not
> exist
> >or no valid version"
> >
> >Hope this helps,
> >
> >regards,
> >-allan
> >
> >Russell Brown wrote:
> >
> >Hi,
> >Whenever I try and run 'mvn compile' I get the message:
> >
> >The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not

> >exist or no valid version can be found.
> >
> >I have looked on http://www.ibiblio.org/maven2 and the directory 
> >http://www.ibiblio.org/maven2/maven/maven-resources-plugin/ is empty.
> Is
> >this the reason for the error ?
> >
> >I poked around some more and found a jar that could be the right one 
> >at 
> >http://www.ibiblio.org/maven2/apache/maven/plugins/maven-resources-pl
> >ug
> i
> >n . I downloaded it and the pom and put it in my local repository. No

> >luck, same message. I put it on a local web server and set up a 
> >mirror in the settings.xml and mvn compile still results in the same
message.
> I
> >removed the mirror form settings.xml and set up a profile pointing to

> >a remote repository on my network with the plugin on the path 
> >/maven/maven-resources-plugin/  and that did not work.
> >
> >I have tried it on 4 different paths as I am not sure which is 
> >correct (I mirrored every instance of the .jar on the server) and 
> >that did not work.
> >
> >I googled and searched the archive for users@maven.apache.org and 
> >found that the issue was raised on 05/11/2005. The respondent asked 
> >the
> poster
> >to "try again in a few days" as there was "trouble" with
> repo1.maven.org
> >at the moment. So...my question: having RTFM and tried very hard to 
> >solve the problem myself I have to ask if anyone out there knows what

> >the cause of this issues is and how I solve it ?
> >
> >My env:-
> >Windows XP
> >Jdk 5
> >Behind a proxy but I maven managed to download the archetype plugin 
> >so
> I
> >configured the proxy settings correctly
> >
> >Thanks in advance if you can help
> >
> >Regards
> >
> >Russell
> >
> >
> >
> >Russell Brown
> >Developer
> >LINK Interchange Network Ltd
> >
> >Tel: 01423 35631
> >
> >_
> >__
> _
> >The Information contained in this e-mail message is intended only for

> >the individuals named above. If you are not the intended recipient, 
> >you should be aware that any dissemination, distribution, forwarding 
> >or other duplication of this communication is strictly prohibited.
> >The views expressed in this e-mail are those of the individual author

> >and not necessarily those of LINK Interchange Network Ltd.
> >Prior to taking any action based upon this e-mail message you should 
> >seek appropriate confirmation of its authenticity.

Re: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version can be found. Maven 2 new install.

2005-12-02 Thread Brett Porter
This seems to be an issue of upgrading an old install. Please run with
-U and see if that helps - it will force an update.

- Brett

On 12/2/05, Russell Brown <[EMAIL PROTECTED]> wrote:
> Allan,
> Thanks for your reply. I have just tried what you suggest and may have
> come across a boot strapping type issue. When I run the command
>
> mvn install:install-file
> -Dfile=m:\maven-resources\2.0-alpha-3\maven-resources-plugin-2
> .0-alpha-3.jar -DgroupId=org.apache.maven.plugins
> -DartifactId=maven-resources-plugin -Dversion=2.0-
> aplha-3 -Dpackaging=jar
>
> And got the message
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does
> not exist or no valid version
>  could be found
>
> Fair play. So I download the maven-install-plugin and run the command
>
> mvn install:install-file
> -Dfile=m:\maven-resources\maven-install-plugin-2.0.jar -Dgroup
> Id=org.apache.maven.plugins -DartifactId=maven-install-plugin
> -Dversion=2.0 -Dpackaging=jar
>
> And get the message
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does
> not exist or no valid version
>  could be found
>
> ?? Erm. Not sure what to do next.
>
> Is there a root cause to this 'cos presumably Maven should be
> downloading these plugins from central.
>
> Any more Ideas ?
>
> Many thanks
>
> Russell
>
>
> >Hi Russel,
> >
> >http://docs.codehaus.org/display/MAVENUSER/FAQs
> >Look for the question "Why am I getting a "" does not
> exist
> >or no valid version"
> >
> >Hope this helps,
> >
> >regards,
> >-allan
> >
> >Russell Brown wrote:
> >
> >Hi,
> >Whenever I try and run 'mvn compile' I get the message:
> >
> >The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
> >exist or no valid version can be found.
> >
> >I have looked on http://www.ibiblio.org/maven2 and the directory
> >http://www.ibiblio.org/maven2/maven/maven-resources-plugin/ is empty.
> Is
> >this the reason for the error ?
> >
> >I poked around some more and found a jar that could be the right one at
> >http://www.ibiblio.org/maven2/apache/maven/plugins/maven-resources-plug
> i
> >n . I downloaded it and the pom and put it in my local repository. No
> >luck, same message. I put it on a local web server and set up a mirror
> >in the settings.xml and mvn compile still results in the same message.
> I
> >removed the mirror form settings.xml and set up a profile pointing to a
> >remote repository on my network with the plugin on the path
> >/maven/maven-resources-plugin/  and that did not work.
> >
> >I have tried it on 4 different paths as I am not sure which is correct
> >(I mirrored every instance of the .jar on the server) and that did not
> >work.
> >
> >I googled and searched the archive for users@maven.apache.org and found
> >that the issue was raised on 05/11/2005. The respondent asked the
> poster
> >to "try again in a few days" as there was "trouble" with
> repo1.maven.org
> >at the moment. So...my question: having RTFM and tried very hard to
> >solve the problem myself I have to ask if anyone out there knows what
> >the cause of this issues is and how I solve it ?
> >
> >My env:-
> >Windows XP
> >Jdk 5
> >Behind a proxy but I maven managed to download the archetype plugin so
> I
> >configured the proxy settings correctly
> >
> >Thanks in advance if you can help
> >
> >Regards
> >
> >Russell
> >
> >
> >
> >Russell Brown
> >Developer
> >LINK Interchange Network Ltd
> >
> >Tel: 01423 35631
> >
> >___
> _
> >The Information contained in this e-mail message is intended only for
> >the individuals named above. If you are not the intended recipient,
> >you should be aware that any dissemination, distribution, forwarding
> >or other duplication of this communication is strictly prohibited.
> >The views expressed in this e-mail are those of the individual
> >author and not necessarily those of LINK Interchange Network Ltd.
> >Prior to taking any action based upon this e-mail message you should
> >seek appropriate confirmation of its authenticity. If you have
> >received this e-mail in error, please notify the sender immediately.
> >___
> _
> >
> >
> >---
> -
> >
> >No virus found in this incoming message.
> >Checked by AVG Free Edition.
> >Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date:
> 11/30/2005
> >
> >
> >
>
>
> 
> The Information contained in this e-mail message is intended only for
> the individuals named above. If you are not the intended recipient,
> you should be aware that any dissemination, distribution, forwarding
> or other duplication of this communication is strictly prohibited.
> The views expressed in this e-mail are those of the individual
> author and not necessarily those of LINK Interchange Network Ltd.
> Prior to taking any

RE : [m2] run target jar

2005-12-02 Thread Olivier Lamy
Use plugin assembly
http://maven.apache.org/plugins/maven-assembly-plugin/

Note the manifest file with the main class can't be added to final jar.
Just run with : java -classpath fulljar mainclass.

- Olivier


-Message d'origine-
De : Yuriy Ivanov [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 2 décembre 2005 10:45
À : users@maven.apache.org
Objet : [m2] run target jar


Hello,

 

I have compiled jar, and dependencies in my pom.xml. How can I run my
jar? with classpath equals to all dependencies.

 

Best Regards,

Yuri Ivanov

E-Mail:  
[EMAIL PROTECTED]

MSN:   [EMAIL PROTECTED]

ICQ: 147038971




This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



Re: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version can be found. Maven 2 new install.

2005-12-02 Thread Russell Brown
Allan,
Thanks for your reply. I have just tried what you suggest and may have
come across a boot strapping type issue. When I run the command 

mvn install:install-file
-Dfile=m:\maven-resources\2.0-alpha-3\maven-resources-plugin-2
.0-alpha-3.jar -DgroupId=org.apache.maven.plugins
-DartifactId=maven-resources-plugin -Dversion=2.0-
aplha-3 -Dpackaging=jar

And got the message

[INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does
not exist or no valid version
 could be found

Fair play. So I download the maven-install-plugin and run the command

mvn install:install-file
-Dfile=m:\maven-resources\maven-install-plugin-2.0.jar -Dgroup
Id=org.apache.maven.plugins -DartifactId=maven-install-plugin
-Dversion=2.0 -Dpackaging=jar

And get the message

[INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does
not exist or no valid version
 could be found

?? Erm. Not sure what to do next.

Is there a root cause to this 'cos presumably Maven should be
downloading these plugins from central.

Any more Ideas ?

Many thanks

Russell


>Hi Russel,
>
>http://docs.codehaus.org/display/MAVENUSER/FAQs
>Look for the question "Why am I getting a "" does not
exist 
>or no valid version"
>
>Hope this helps,
>
>regards,
>-allan
>
>Russell Brown wrote:
>
>Hi,
>Whenever I try and run 'mvn compile' I get the message: 
>
>The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
>exist or no valid version can be found.
>
>I have looked on http://www.ibiblio.org/maven2 and the directory
>http://www.ibiblio.org/maven2/maven/maven-resources-plugin/ is empty.
Is
>this the reason for the error ?
>
>I poked around some more and found a jar that could be the right one at
>http://www.ibiblio.org/maven2/apache/maven/plugins/maven-resources-plug
i
>n . I downloaded it and the pom and put it in my local repository. No
>luck, same message. I put it on a local web server and set up a mirror
>in the settings.xml and mvn compile still results in the same message.
I
>removed the mirror form settings.xml and set up a profile pointing to a
>remote repository on my network with the plugin on the path
>/maven/maven-resources-plugin/  and that did not work.
>
>I have tried it on 4 different paths as I am not sure which is correct
>(I mirrored every instance of the .jar on the server) and that did not
>work.
>
>I googled and searched the archive for users@maven.apache.org and found
>that the issue was raised on 05/11/2005. The respondent asked the
poster
>to "try again in a few days" as there was "trouble" with
repo1.maven.org
>at the moment. So...my question: having RTFM and tried very hard to
>solve the problem myself I have to ask if anyone out there knows what
>the cause of this issues is and how I solve it ?
>
>My env:- 
>Windows XP 
>Jdk 5
>Behind a proxy but I maven managed to download the archetype plugin so
I
>configured the proxy settings correctly
>
>Thanks in advance if you can help
>
>Regards
>
>Russell
>
>
>
>Russell Brown
>Developer
>LINK Interchange Network Ltd
>
>Tel: 01423 35631
>
>___
_
>The Information contained in this e-mail message is intended only for
>the individuals named above. If you are not the intended recipient,
>you should be aware that any dissemination, distribution, forwarding
>or other duplication of this communication is strictly prohibited.
>The views expressed in this e-mail are those of the individual
>author and not necessarily those of LINK Interchange Network Ltd.
>Prior to taking any action based upon this e-mail message you should
>seek appropriate confirmation of its authenticity. If you have
>received this e-mail in error, please notify the sender immediately.
>___
_
>  
>
>---
-
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date:
11/30/2005
>
>  
>



The Information contained in this e-mail message is intended only for
the individuals named above. If you are not the intended recipient,
you should be aware that any dissemination, distribution, forwarding
or other duplication of this communication is strictly prohibited.
The views expressed in this e-mail are those of the individual
author and not necessarily those of LINK Interchange Network Ltd.
Prior to taking any action based upon this e-mail message you should
seek appropriate confirmation of its authenticity. If you have
received this e-mail in error, please notify the sender immediately.


Re: [M2] SerialVersionUID solution / Maven compiler settings

2005-12-02 Thread ir. ing. Jan Dockx
How come the same source is compiled twice? I believe that is the root of your problem. I suggest you take those Serializable classes, put them in a separate (maven 2) project, create 1 artifact, and use that jar as a dependency both in your RMI client and RMI server project. Don't share source code, share the binaries (jar).


On 1 Dec 2005, at 15:37, Peschier J. (Jeroen) wrote:

My use-case:

I build an EAR using Maven 2 and the Sun SDK 1.4.2. For testing I tend
to run a few JUnit tests from Eclipse. These tests typically invoke some
remote beans on the application server. This gives me the dreaded
InvalidClassException because the local serialVersionUID differs from
the remote serialVersionUID.



Evalution:

I think most of us dealing with RMI have encountered this problem
before. It is known that different compilers generate different
serialVersionUIDs for the same class. In my case the remote classes are
generated with the Sun JavaC while the local classes are generated by
Eclipse JDT.



Plan:

Although this problem is not actually a Maven 2 issue, I was thinking
Maven 2 could assist in the solution to the problem. The
maven-compiler-plugin has a compilerId setting which seems to indicate
it can be reconfigured to use another compiler. Would it be possible for
M2 to use the Eclipse compiler so that the artifacts will have the same
serialVersionUID as in Eclipse? If so, how would I go about this?



P.S.

I know I can manually add serialVersionUIDs to serializable classes, but
this is not an option as most of my serializable classes are value
objects generated by XDoclet. XDoclet does not have a way of specifying
serialVersionUID for generated value objects.


Met vriendelijke groeten,

Jan Dockx

PeopleWare NV - Head Office
Cdt.Weynsstraat 85 
B-2660 Hoboken 
Tel: +32 3 448.33.38 
Fax: +32 3 448.32.66 

PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25

http://www.peopleware.be/
http://www.mobileware.be/


smime.p7s
Description: S/MIME cryptographic signature


[m2] run target jar

2005-12-02 Thread Yuriy Ivanov
Hello,

 

I have compiled jar, and dependencies in my pom.xml. How can I run my jar?
with classpath equals to all dependencies.

 

Best Regards,

Yuri Ivanov

E-Mail:  
[EMAIL PROTECTED]

MSN:   [EMAIL PROTECTED]

ICQ: 147038971



Re: [m2] include additional report to the site

2005-12-02 Thread Anuerin Diaz
On 12/2/05, Yuriy Ivanov <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have tests and reports for surefire plugin. How can I include junit report
> in my site ?
>
> Also how can I add pdm report to the site?
>
> Not clear where and what should I insert in pom.xml. In site.xml I already
> added ${reports} tag.
>

add the plugin in the reporting section of your project descriptor.

the pmd plugin is currently locked into the "controversial" ruleset
which is why we are running pmd as an Ant task. i would like to extend
the original question to how can we add it on the reports menu without
hardcoding each module's site.xml file. i am not sure if we can attach
an antrun to the reporting section and have it pickup the generated
pmd reports.

thanks.

ciao!


--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



[m2] include additional report to the site

2005-12-02 Thread Yuriy Ivanov
Hello,

I have tests and reports for surefire plugin. How can I include junit report
in my site ?

Also how can I add pdm report to the site?

Not clear where and what should I insert in pom.xml. In site.xml I already
added ${reports} tag.

 

 

Best Regards,

Yuri Ivanov

E-Mail:  
[EMAIL PROTECTED]

MSN:   [EMAIL PROTECTED]

ICQ: 147038971



RE: [ANN] A Bunch of Maven 1.x Plugins

2005-12-02 Thread fabrice . belingard




Great, Doug!

Do you plan to make releases for Maven 2 as well?

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]


   
 Doug Douglass 
 <[EMAIL PROTECTED]  
 rdata.com>   Pour
   Maven Users List
 02/12/2005 01:16  
cc
   
 VeuillezObjet
répondre à [ANN] A Bunch of Maven 1.x Plugins
 Maven Users List  
 <[EMAIL PROTECTED]  
 che.org>  
   
   
   




We've released a bunch of Maven 1.x plugins, mostly for working with PHP
projects:

   * Milestones Plugin for Maven -- Create milestones report (e.g., for
use as a Bugzilla milestones document)
   * PHP Plugin for Maven -- Plugin for compiling PHP source files
   * PHPApp Plugin for Maven -- Plugin for building PHP web applications
   * PHPDoc Plugin for Maven -- Run phpDocumentor
   * SimpleTest Plugin for Maven -- Run Simple Test for PHP unit tests

You can find them all here:
   http://projects.denverdata.com/maven/plugins/

Feedback appreciated

Doug



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



Re: The getting started example - Maven 2

2005-12-02 Thread Nik Gonzalez

Hello,

What error did you get? Please post the stacktrace here.

Nik

Haigh, Andrew J wrote:


Hi,
I'm using Windows XP. I downloaded Maven 2, unzipped and started on the
getting started - How do I make my first Maven project?

I am getting so many problems with the archetype plugin. I downloaded
1.0-alpha-3.jar, but it now complains about a Plexus container.

Is there an example configuration that grabs the requisite files from a
repository, so that I have something to show from running the - 
'mvn archetype:create ...' command.


Thanks

Andrew John Haigh
CA
Senior Software Engineer
tel:+1 631 342-3109
fax: +1 631 342-6863
[EMAIL PROTECTED]


 




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



[m2] Latin characters in apt format

2005-12-02 Thread Bruno Aranda
Hi all,

I read from the docs [1] that to use latin characters in the apt
format you have to use special notation. Latin characters are
considered "special characters" when they are very common in latin
languages ;-). Readability of the file is decreased, so this can be
rather annoying. Is there any solution to that or something planned?
Or should I use other formats (which are more cumbersone than the
apt)?

Regards,

Bruno

[1] http://maven.apache.org/guides/mini/guide-apt-format.html

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



Re: [m2] Minimize project version occurence in multiproject configuration

2005-12-02 Thread Geoffrey



Joerg Hohwiller wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi there,

Geoffrey wrote:


I have a parent pom.xml like this:

   y
   x
   pom
   0.0.1-SNAPSHOT

   
   thot-model
   thot-serviceapi
   

   
   
   
   y
   x-model
   0.0.1-SNAPSHOT
   
   
   y
   x-serviceapi
   0.0.1-SNAPSHOT
   
   
   

And each child pom.xml like:

   
   y
   x-serviceapi
   0.0.1-SNAPSHOT
   

   
   
   y
   x-model
   
   

1) Is there a way to minimize the number of times I need to specify the
version "0.0.1-SNAPSHOT" of my multiproject?
Ideally it should only use it on one spot: in the parent pom.xml
In dependencyManagement I can lower it by using ${pom.version},
but for referencing the parent pom this does not look like an option.


I prefer that each (sub-)project has its own versioning cycle.
Anyways this is a very common issue. If you have eclipse 3.1 all subprojects
(internal plugins, etc.) also have 3.1 as version.
However I do not know how to solve your Issue.


2) Why do I need to add my modules as dependencies in the first place?
It would be nice if the parent pom is smart enough to add all it's
modules as possible dependencies automatically.


Actually this was done in maven-1 and it sucked as I think!

1. you have to configure where to find your sub-projects anyways because
one does put them on toplevel, another one want to have a folder subprojects
where the subprojects resist, etc.


It would be nice if maven 2 supports an option to include all modules 
(direct or indirect) in the dependencyManagement.

I would even advocate turning this option on as a default.

Maven 2 knows where all its subprojects ("modules") are and it should be 
able to find the subprojects of those subprojects too.



2. with maven-1 you do not have the ability to determine what subprojects exists
just from the pom.
3. with maven-1 you can not build your project (e.g. site) if you have a
subproject that is currently not compiling - maybe it is a subproject that has
just started and is not officially part of the project.

Regards
  Jörg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDj2npmPuec2Dcv/8RAhT2AJ4p6Ejsh+wa0ky+mgpn+9GJ6kHzGwCgmP82
rS4sR43KbjCiEb67ZXRRnxo=
=uRKn
-END PGP SIGNATURE-


--
With kind regards,
Geoffrey De Smet


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



RE : [m2] deploy with scm url (cvs)

2005-12-02 Thread Olivier Lamy
This feature (deploying in a scm in my case cvs) is implemented or not ?
I need to build wagon or somethings else from svn co ?
If snapshot available I can certainly play the beta tester ;-)
Thanks,
- Olivier

-Message d'origine-
De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 1 décembre 2005 19:47
À : Maven Users List
Objet : [m2] deploy with scm url (cvs)


Hi,
I'm trying to deploy in a scm repository (CVS).
The url needs to be the same as the developerConnection ?
I try :
- scm:cvs:pserver:ip:/local/cvs/repo:module
- scm:cvs:pserver:${username}:${password}ip:/local/cvs/repo:module

I have the following stack trace (long) :

Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
create plugin  container for plugin
'[EMAIL PROTECTED]': Error configuring co mponents
at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMan
ager.java:284)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defa
ultPluginManager.java:198)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlugin
Manager.java:163)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defaul
tLifecycleExecutor.java:1095)
... 18 more
Caused by: org.codehaus.plexus.PlexusContainerException: Error
configuring compone nts
at
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusCont
ainer.java:655)
at
org.codehaus.plexus.DefaultPlexusContainer.createChildContainer(Default
PlexusContainer.java:252)
at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMan
ager.java:277)
... 21 more
Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationExcept
ion: Error configuring component: role: 'component-repository',
implementation: 'o
rg.codehaus.plexus.component.repository.DefaultComponentRepository'
at
org.codehaus.plexus.DefaultPlexusContainer.processCoreComponentConfigur
ation(DefaultPlexusContainer.java:1301)
at
org.codehaus.plexus.DefaultPlexusContainer.initializeCoreComponents(Def
aultPlexusContainer.java:1212)
at
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusCont
ainer.java:631)
... 23 more
Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationExcept
ion: Cannot assign value
'org.codehaus.plexus.component.repository.DefaultComponen
[EMAIL PROTECTED]' to field:
org.codehaus.plexus.DefaultPlexusContainer.componen
tRepository; type:
org.codehaus.plexus.component.repository.DefaultComponentReposi
tory
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
ter.setValueUsingField(ComponentValueSetter.java:154)
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
ter.configure(ComponentValueSetter.java:252)
at
org.codehaus.plexus.component.configurator.converters.composite.ObjectW
ithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:1
37)
at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.c
onfigureComponent(BasicComponentConfigurator.java:56)
at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurato
r.configureComponent(AbstractComponentConfigurator.java:54)
at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurato
r.configureComponent(AbstractComponentConfigurator.java:47)
at
org.codehaus.plexus.DefaultPlexusContainer.processCoreComponentConfigur
ation(DefaultPlexusContainer.java:1295)
... 25 more
Caused by: java.lang.IllegalArgumentException
at
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessor
Impl.java:63)
at java.lang.reflect.Field.set(Field.java:519)
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSet
ter.setValueUsingField(ComponentValueSetter.java:141)
... 31 more

Issue ? Non implemented feature ?
Thanks a lot,
- Olivier



This e-mail, any attachments and the information contained therein
("this message") are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci apres "le message" ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez recu ce message par erreur,
merci  de le renvoyer a son emetteur et de le detruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressement autorisees de ce message, sont
interdites.
***