Re: m2: starting a java class

2005-10-21 Thread Roy van der Kuil
HI Jesse,

I am really looking forward to the try the run plugin. If you need any help
testing/coding it please let me know, because this seems like the most
important hurdle to take before moving to maven.
For now I will try to build the execute plugin and see where that brings me
:)

Tanks

On 10/20/05, Jesse McConnell [EMAIL PROTECTED] wrote:

 that particular plugin isn't available on any mirrors as it is largely a
 bastard child plugin that certain developers have given me a hard time for
 even spawning...so no release on it...

 you can checkout mojo and build it yourself if you want to use it in the
 shortterm until the runtime plugin comes out...I ought to have something
 to
 release on the runtime one next week providing I still get my vacation
 time
 :P

 mojo.codehaus.org http://mojo.codehaus.org http://mojo.codehaus.org
 for the mojo package

 jesse

 On 10/20/05, Roy van der Kuil [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  Thanks for you're fast reply, although I have tried to insert the
 'plugin'
  part into my pom.xml's build properties.
  Whenever I start maven, it complains it cannot find the plugin.
  Should I add something to my local plugin repository?
 
  Thanks for your help,
  -Roy
 
  On 10/19/05, Jason van Zyl [EMAIL PROTECTED] wrote:
  
   On Wed, 2005-10-19 at 13:42 +0200, Roy van der Kuil wrote:
Hi All,
   
We are currently moving (or at least trying too) from ant to maven.
   Mostly
because we'd really like to solve those nasty classpath issues on
   different
systems.
As for compiling the sources everyting looks very promising (no
  problems
   so
far), but since we are developing rich client applications (swing)
 I'd
   like
to be able to start my java class from my maven project. We used to
  have
   an
'ant run' command and I'd like to know if there is anything similar
  for
maven (2.0). I have seen a scope 'runtime' for dependancies but I am
  not
quite sure it is used for what I have in mind.
  
   http://mojo.codehaus.org/maven-execute-plugin/
  
Thanks for your help,
-Roy
   --
   jvz.
  
   Jason van Zyl
   jason at maven.org http://maven.org http://maven.org 
 http://maven.org
   http://maven.apache.org
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 


 --
 jesse mcconnell




Re: Multiproject Release: No check in

2005-10-21 Thread Wim Deblauwe
We currently use a simular structure with maven 1, so this would need fixing
for us also

regards,

Wim

2005/10/20, Brett Porter [EMAIL PROTECTED]:

 I guess that's considered a bug. It currently assumes that everything
 is under the current directory.

 Please record it in JIRA: http://jira.codehaus.org/browse/MNG


 On 10/20/05, Bernd Mau [EMAIL PROTECTED] wrote:
  Hi,
 
  I tried to release a multiproject with 5 modules (on a Branch). Well,
  the POMs of all modules are changed and there are some dependencies
  which have been updated correctly. But only the master has been checked
  in correctly.
 
  I'm changed the recommended layout, to fit in an eclipse workspace. I
  have one master at the same level as the other modules.
 
  The module section of the master pom.xml:
 
  modules
  module../hhla.library.pom/module
  module../hhla.library.site/module
  module../hhla.lang/module
  module../hhla.common.log4jx/module
  /modules
 
  Any ideas out there?
 
  Thank you.
  Bernd
 
 
 
  -
  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] Fatal error trying mvn site

2005-10-21 Thread Wim Deblauwe
Is this already in JIRA or should I file a bug?

2005/10/20, Bernd Mau [EMAIL PROTECTED]:

 Hi,

 I have got the same problem with the german locale
 (java.util.MissingResourceException: Can't find bundle for base name
 project-info-report, locale de_DE)

 I did not have the problem with m2-beta-1. I tried some configuration
 for the plugins:

 build
 plugins
 plugin
 groupIdorg.apache.maven.plugins
 /groupId
 artifactIdmaven-project-info-reports-plugin
 /artifactId
 configuration
 localesen/locales
 /configuration
 /plugin



 It' s still not working.

 Bernd


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




How to share JSPs between 2 wars projects ?

2005-10-21 Thread Nicolas De Loof


Hi all,

I've got a packaging problem : my webapp requires to be customized for 
the target servers
- change web.xml, add some xml (spring) configuration files, add some 
target-server-specific classes


All other things in my webapp are commons.

I'd like maven to build the 3 wars (I've got 3 target servers), so I've 
setup multiproject like this:

- commons classes - app.jar
- base-webapp (JSP, images, script + default config...) - base.war
- serverN-webapp (server N specific web.xml + some conf + specific JSP) 
- serverN.war


It's easy to make the classes commons using a jar project dependency, 
but what about JSP or static web files ?


Using maven 1, I've setup a maven.xml script that unwar the base.war 
into target/artifactId as a pregoal to war:war-resources. This seems 
to work fine :


preGoal name=war:war-resources
   j:set var=war.build
   
value=${pom.getPluginContext('maven-war-plugin').getVariable('maven.war.webapp.dir')}/

   unwar overwrite=true
   src=${pom.getDependencyPath('gta:gta-web')}
   dest=${war.build}/
 /preGoal


Using maven 2, I could use antRun and use the unwar task, but I don't 
know how to configure it to run prior to maven2 equivalent for 
war:war-resources. Is there any more maven 2-way to do such a thing ?


It may be usefull also to have a way to merge two webapps, for example 
to develop a Struts-webapp as sub-projects (quick to deploy and test) 
and merge struts-modules into a big war.


Nico.

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: SCM: cvs user

2005-10-21 Thread Bernd Mau
Until now I have used it together with the release-plugin. I guess the
release-plugin uses the maven-scm-provider-cvs plugin.


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



Problem with M2

2005-10-21 Thread Ross Bamford

Hi,

Hope this is the correct list for M2?

I downloaded the 2.0 release yesterday, but am having some problems  
getting it to work - when I try to run a build it bombs out with missing  
dependencies on stuff that (I assume) must be plug-in dependencies,  
notably some xerces jars, the Servlet 2.4 jar (??!?), and 'tagsoup'. I  
can't find these in the M2 repository either. Am I going mad?


A typical session goes:

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


[INFO] Building Jepi
[INFO]task-segment: [compile]
[INFO]  

[WARNING] POM for: 'commons-io:commons-io:pom:1.0' does not appear to be  
valid. Its will be ignored for artifact resolution.


Reason: Failed to validate POM


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:  
http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1.pom
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
Downloading:  
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.pom
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
Downloading:  
http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
Downloading:  
http://repo1.maven.org/maven2/icu4j/icu4j/2.6.1/icu4j-2.6.1.pom
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
Downloading:  
http://repo1.maven.org/maven2/tagsoup/tagsoup/0.9.7/tagsoup-0.9.7.pom
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)

[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test'  
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove  
the local scope.


[WARNING] POM for: 'picocontainer:picocontainer:pom:1.2-beta-1' does not  
appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${picocontainer.version} could not be  
evaluated. Reason:  
picocontainer:picocontainer:jar:${picocontainer.version} references itself.



[WARNING] POM for: 'nanocontainer:nanocontainer:pom:1.0-RC-1' does not  
appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${nanocontainer.version} could not be  
evaluated. Reason:  
nanocontainer:nanocontainer:jar:${nanocontainer.version} references itself.



Downloading:  
http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.jar

342K downloaded
Downloading:  
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.1/commons-collections-2.1.jar

161K downloaded
Downloading:  
http://repo1.maven.org/maven2/xerces/xerces/2.2.1/xerces-2.2.1.jar

815K downloaded
Downloading:  
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.jar
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
[INFO]  


[ERROR] BUILD ERROR
[INFO]  


[INFO] Failed to resolve artifact.

GroupId: servletapi
ArtifactId: servlet
Version: 2.4

Reason: Unable to download the artifact from any repository
  servletapi:servlet:2.4:jar

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


[INFO]  


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to download  
the artifact from any repository

  servletapi:servlet:2.4:jar

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

at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:528)
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  

Antw: Re: Multiproject Release: No check in

2005-10-21 Thread Bernd Mau
Ok, I have created an issue: http://jira.codehaus.org/browse/MNG-1263

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



[m2] intermittent failure to get dependencies

2005-10-21 Thread Velle Andrè
Hi,

I have a strange error in my maven 2 - based build. I have one reactor build 
that starts a number of others. Two of these builds (say a and b) are dependent 
on a third build (c) , and on a library (d) stated as a dependency in this 
third build (c). These two builds sometimes fail with an compilation error 
stating that it can't find a class that is in the library (d) imported by the 
build they depend upon (c). Now sometimes one of the two builds fail, sometimes 
the other. One might work and not the other (I run the reactor build with the 
fail-at-end option). Anyone seen anything similar? Is this a known bug? This 
started happening after I installed the final 2.0, both beta-3 and RC  worked 
perfectly.

Regards,
André Velle


Antw: Re: [m2] Fatal error trying mvn site

2005-10-21 Thread Bernd Mau
Yes, it really seems to be a bug and I coud not find an issue in the
JIRA concerning this problem. 


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



[M2] How to detect wrong POMs

2005-10-21 Thread Carsten Ziegeler
I'm currently trying to build a large project with M2 (final), Cocoon,
and I get errors during the resolving of dependencies as there are some
POMs wrong. Now due to the transitive dependency handling I don't know
which POM is actually wrong. I tried using the -e and -X options but
I'm not sure how to read the output...

Is there an easy way to find this out? Wouldn't it be good if m2 would
say: Can't find dependency Xyz, referenced by BLA? This would make
things (fixing POMs) much easier.

This is the whole output (very long)...you see at the end that
d-haven-managed-pool:d-haven-managed-pool:1.0:jar can't be resolved.
(The correct identification is: d-haven-mpool:managed-pool:1.0:jar).

The only solution which is quiet fast is to make a text search over all
*.pom files in the local m2 repository for the artifactId...

Carsten

+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente
und Einste
llungen\cziegeler.HW0386.000\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'D:\apps\maven-2.0\con
f\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Cocoon Core
[INFO]   Unnamed - apache-cocoon:cocoon-core:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-test-core:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-cron:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-jms:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-slop:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-ojb-mocks:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-ojb:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-naming:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-fop:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-session-fw:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-authentication-fw:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-ajax:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-forms:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-poi:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-linkrewriter:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-template:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-eventcache:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-repository:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-webdav:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-databases-mocks:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-databases:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-velocity:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-serializers:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-spring-app:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-chaperon:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-midi:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-portal:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-bsf:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-mocks:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-xsp-mocks:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-xsp:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-python-mocks:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-python:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-hsqldb:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-tour:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-lucene:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-querybean:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-html:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-deli:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-profiler:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-xmldb:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-itext:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-apples:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-proxy:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-taglib:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-faces:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-web3-mocks:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-web3:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-portal-sample:war:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-javaflow:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-stx:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-qdox:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-jfor:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-petstore:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-mail:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-jsp-mocks:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-jsp:jar:2.2-SNAPSHOT
[INFO]   Unnamed - apache-cocoon:cocoon-slide:jar:2.2-SNAPSHOT
[INFO]   Unnamed - 

No mail from maven mailing list

2005-10-21 Thread Jean-Luc Razafimandimby
Since yesterday , I didn't receive mail anymore. 
However , i din'nt unsubscribe on mailing List
is there a troubleshooting on mailing  ?


Jean-Luc

Re: Problem with M2

2005-10-21 Thread Edwin Punzalan

Sun jars like servletapi and jta are not in central repo...

you should download them from sun website and install in your repo using 
install:install-file.


The download of artifacts is not sorted in any way so each run, you 
download of artifacts is different.  The build will download artifacts 
until it reaches the sun jar and then fails.



Ross Bamford wrote:


Hi,

Hope this is the correct list for M2?

I downloaded the 2.0 release yesterday, but am having some problems  
getting it to work - when I try to run a build it bombs out with 
missing  dependencies on stuff that (I assume) must be plug-in 
dependencies,  notably some xerces jars, the Servlet 2.4 jar (??!?), 
and 'tagsoup'. I  can't find these in the M2 repository either. Am I 
going mad?


A typical session goes:

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


[INFO] Building Jepi
[INFO]task-segment: [compile]
[INFO]  
 

[WARNING] POM for: 'commons-io:commons-io:pom:1.0' does not appear to 
be  valid. Its will be ignored for artifact resolution.


Reason: Failed to validate POM


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:  
http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1.pom 

[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
Downloading:  
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.pom
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
Downloading:  
http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom 

[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
Downloading:  
http://repo1.maven.org/maven2/icu4j/icu4j/2.6.1/icu4j-2.6.1.pom
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
Downloading:  
http://repo1.maven.org/maven2/tagsoup/tagsoup/0.9.7/tagsoup-0.9.7.pom
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)

[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test'  
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or 
remove  the local scope.


[WARNING] POM for: 'picocontainer:picocontainer:pom:1.2-beta-1' does 
not  appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${picocontainer.version} could not be  
evaluated. Reason:  
picocontainer:picocontainer:jar:${picocontainer.version} references 
itself.



[WARNING] POM for: 'nanocontainer:nanocontainer:pom:1.0-RC-1' does 
not  appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${nanocontainer.version} could not be  
evaluated. Reason:  
nanocontainer:nanocontainer:jar:${nanocontainer.version} references 
itself.



Downloading:  
http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.jar

342K downloaded
Downloading:  
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.1/commons-collections-2.1.jar 


161K downloaded
Downloading:  
http://repo1.maven.org/maven2/xerces/xerces/2.2.1/xerces-2.2.1.jar

815K downloaded
Downloading:  
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.jar
[WARNING] Unable to get resource from repository central  
(http://repo1.maven.org/maven2)
[INFO]  
 


[ERROR] BUILD ERROR
[INFO]  
 


[INFO] Failed to resolve artifact.

GroupId: servletapi
ArtifactId: servlet
Version: 2.4

Reason: Unable to download the artifact from any repository
  servletapi:servlet:2.4:jar

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


[INFO]  
 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to 
download  the artifact from any repository

  servletapi:servlet:2.4:jar

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

at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:528) 

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  

Javadoc and assertions

2005-10-21 Thread David Sag

It really seems that I am the only person
in thw world who usesasserts!

When trying mvn javadoc:javadoc it complains
that assert is a reserved word in java 1.4. for goodness sake, my
pom.xml specifies the source is java1.4 in the compiler plugin, shouldn't
this knowledge be passed on to the other plugins too -

but no. so i have a question.

ideally i'd like my javadocs to be integrated
into my site. what lifecycle phase should i bind the javadoc plugin
to in order to generate javadocs as part of my site?

Kind regards,
Dave Sag 




 

Re: [M2] Eclipse WTP Web app libraries

2005-10-21 Thread Dietrich Schulten
I've made some progress, see below:

Dietrich Schulten schrieb:
 Hi Fabrizio,
 
 thank you for your quick reply. Comments inline.
 
 Fabrizio Giustina schrieb:
 
On 10/18/05, Dietrich Schulten [EMAIL PROTECTED] wrote:


how does the m2 eclipse plugin determine the path where it looks for web
app libraries when used for dynamic web projects?

I added an additional deploy-path to the .classpath and Eclipse copies
the WEB-INF/lib jars from target/WEB-INF/lib to .deployables:

wb-resource deploy-path=/WEB-INF/lib
source-path=/target/my-webapp/WEB-INF/lib/

This seems to be exactly what is desirable:
Eclipse uses target/WEB-INF/lib for .deployables/WEB-INF/lib, and builds
src/main/java to .deployables/WEB-INF/classes.

One problem remains: You must make sure that Maven does not provide
project dependencies in target.

Do you agree that this would be a good solution? If so, I could try to
provide a patch for the plugin.

 I assumed, some magic might replace the artifactId for artifact. M2
 newbie question: Is it possible to refer to the artifactId, as if it
 were a variable, in the pom.xml?

${artifactId} does it

Regards
Dietrich

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

HTTPS and repository access

2005-10-21 Thread Arnaud Bailly

Hi,
I would like to use a remote repository that is served by an HTTPS 
server requiring client certificate authentication. Moreover, I want to 
use the same certificate (ie. pkcs12 file) I use in firefox.
pkcs12 files can be used as truststore and keystore (?) but I do not 
know how to tell to maven/httpclient to use client authentication. Here 
is a sample of the command line I tried and the error I got :


$ maven -Djavax.net.ssl.trustStore=/home/myhome/cert.p12 
-Djavax.net.ssl.trustStoreType=pkcs12 
-Djavax.net.ssl.trustStorePassword=xxx  site:generate


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

Attempting to download myproj-0.1.jar.
Error retrieving artifact from 
[https://srv/maven/norsys/jars/myproj-0.1.jar]: 
javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to 
find valid certification path to requested target

WARNING: Failed to download myproj-0.1.jar.
The build cannot continue because of the following unsatisfied dependency:

myproj-0.1.jar

Total time: 2 seconds
Finished at: Fri Oct 21 11:37:54 CEST 2005


thanks

--
Arnaud Bailly - Ingénieur de Recherche
NORSYS
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr

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



[m2] PMD plugin thinks an interface needs a constructor.

2005-10-21 Thread David Sag

I am setting up my build environemnt
with a small test project and the PMD plugin is demanding I provide a constructor
for my interfaces.

I have filed this as a bug in jira http://jira.codehaus.org/browse/MNG-1158

but no action has been taken yet. perhaps
if this annoys others people could go vote for it using the jira mechanisms.

Kind regards,
Dave Sag 




 

Re: [m2] multiproject and dependency management.

2005-10-21 Thread Miks Rozenbergs

Sridhar Radhakrishnan wrote:


2)  Is that functionality in place such that I could get project B as
either a binary or as source from cvs and then build it?

 

Maven gets the dependent jar from the remote/local repositories. You 
would have to define your remote repository(cvs) and specify the type 
for the same


I was under impression that repository contains binary artifact. What 
exactly I should be putting in pom.xml to make Maven2 to actually 
download source from CVS and compile it?


Regards,
Miks Rozenbergs


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



Re: [M2] Eclipse WTP Web app libraries

2005-10-21 Thread Stephen Duncan
To get your jar files from target/my-webapp/WEB-INF/lib to
src/main/webapp/WEB-INF/lib (and therefore it should go to
.deployables), you can run: mvn war:inplace

-Stephen

On 10/21/05, Dietrich Schulten [EMAIL PROTECTED] wrote:
 I've made some progress, see below:

 Dietrich Schulten schrieb:
  Hi Fabrizio,
 
  thank you for your quick reply. Comments inline.
 
  Fabrizio Giustina schrieb:
 
 On 10/18/05, Dietrich Schulten [EMAIL PROTECTED] wrote:
 
 
 how does the m2 eclipse plugin determine the path where it looks for web
 app libraries when used for dynamic web projects?

 I added an additional deploy-path to the .classpath and Eclipse copies
 the WEB-INF/lib jars from target/WEB-INF/lib to .deployables:

 wb-resource deploy-path=/WEB-INF/lib
 source-path=/target/my-webapp/WEB-INF/lib/

 This seems to be exactly what is desirable:
 Eclipse uses target/WEB-INF/lib for .deployables/WEB-INF/lib, and builds
 src/main/java to .deployables/WEB-INF/classes.

 One problem remains: You must make sure that Maven does not provide
 project dependencies in target.

 Do you agree that this would be a good solution? If so, I could try to
 provide a patch for the plugin.

  I assumed, some magic might replace the artifactId for artifact. M2
  newbie question: Is it possible to refer to the artifactId, as if it
  were a variable, in the pom.xml?

 ${artifactId} does it

 Regards
 Dietrich



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




--
Stephen Duncan Jr
www.stephenduncanjr.com

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



[M1.0.2] How to change resources dependencies at runtime

2005-10-21 Thread Alexandre Touret

Hi
I would like to change resources dependencies at runtime with a jelly script
is t possible ?
it would be nice if someone could give me a sample

Thanks in advance

Alexandre Touret


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



Re: Problem with M2

2005-10-21 Thread Ross Bamford
(apologies if this post is duped - I sent from incorrect address first  
time and it didn't come up)


On Fri, 21 Oct 2005 10:19:00 +0100, Edwin Punzalan [EMAIL PROTECTED]  
wrote:



Sun jars like servletapi and jta are not in central repo...

you should download them from sun website and install in your repo using  
install:install-file.




Thanks for your help! My project doesn't use Servlet API of any  
description, so it must be a plugin dep. In that case it looks like  
someone's fd up somewhere, because Servlet 2.3 _is_ distributed (I  
assume so - it's in my M2 repo already). Maybe someone's updated their  
plugin to Servlets 2.4 and not told anyone?


Anyway, I've done as you suggested (actually just got it from M1 on  
ibiblio), but the other Jars I mentioned are
now stopping the build. The session is pretty much exactly as below,  
except that the fatal error now mentions icu4j:icu4j:2.6.1:jar


The download of artifacts is not sorted in any way so each run, you  
download of artifacts is different.  The build will download artifacts  
until it reaches the sun jar and then fails.




I see. Makes sense :)

Thanks again,
Ross




Ross Bamford wrote:


Hi,

Hope this is the correct list for M2?

I downloaded the 2.0 release yesterday, but am having some problems   
getting it to work - when I try to run a build it bombs out with  
missing  dependencies on stuff that (I assume) must be plug-in  
dependencies,  notably some xerces jars, the Servlet 2.4 jar (??!?),  
and 'tagsoup'. I  can't find these in the M2 repository either. Am I  
going mad?


A typical session goes:

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

[INFO]task-segment: [compile]
[INFO]   
  
[WARNING] POM for: 'commons-io:commons-io:pom:1.0' does not appear to  
be  valid. Its will be ignored for artifact resolution.


Reason: Failed to validate POM


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:   
http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1.pom  
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom  
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/icu4j/icu4j/2.6.1/icu4j-2.6.1.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/tagsoup/tagsoup/0.9.7/tagsoup-0.9.7.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)

[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test'   
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or  
remove  the local scope.


[WARNING] POM for: 'picocontainer:picocontainer:pom:1.2-beta-1' does  
not  appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${picocontainer.version} could not be   
evaluated. Reason:   
picocontainer:picocontainer:jar:${picocontainer.version} references  
itself.



[WARNING] POM for: 'nanocontainer:nanocontainer:pom:1.0-RC-1' does not   
appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${nanocontainer.version} could not be   
evaluated. Reason:   
nanocontainer:nanocontainer:jar:${nanocontainer.version} references  
itself.



Downloading:   
http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.jar

342K downloaded
Downloading:   
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.1/commons-collections-2.1.jar  
161K downloaded
Downloading:   
http://repo1.maven.org/maven2/xerces/xerces/2.2.1/xerces-2.2.1.jar

815K downloaded
Downloading:   
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.jar
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
[INFO]   
  
[ERROR] BUILD ERROR
[INFO]   
  
[INFO] Failed to resolve artifact.


GroupId: servletapi
ArtifactId: servlet
Version: 2.4

Reason: Unable to download the artifact from any repository
  servletapi:servlet:2.4:jar

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


[INFO]   
  
[INFO] Trace

Re: [M2] Docbook support

2005-10-21 Thread Emmanuel Venisse



Jose Gonzalez Gomez a écrit :

2005/10/20, Emmanuel Venisse [EMAIL PROTECTED]:



Jason van Zyl a écrit :


On Thu, 2005-10-20 at 11:28 +0200, Jose Gonzalez Gomez wrote:



Hi there,

In the announcement docbook support is mentioned, but I haven't been
able to find anything about it in the docs. I've also found some
thread talking about docbook support in Doxia, but its web says
nothing about it. Finally the plugin matrix mentions a docbook plugin
that seems to be M2 ready... what's the situation?



Docbook is supported by Doxia but we haven't tested it very thoroughly.
Emm, is docbook working?


I don't know. I never used docbook documents



The support is in Doxia for sure which is the hard part. If we have to
expose it that would only take 30 minutes.




I'm very interested in it, so If somebody has those 30 minutes to
expose it I would be willing to test it and share the result.

I would also like the know if there is interest enough in adding this
support, as I had written a simple plugin for M1, and I've been
thinking in porting it to M2, but I wouldn't like to spend time on
reinventing the wheel if there is somebody already working on this.


I added support of docbook document in site generation. If you want to try it, checkout m2 
trunk and bootstrap it.

put your docbook documents in src/site/docbook
I think docbook parser in doxia isn't finished but it's a start.





By the way, congrats for the 2.0 release!!!

Thanks in advance, best regards
Jose

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







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



Re: Maven SQL tasks

2005-10-21 Thread Miks Rozenbergs

Dion Gillard wrote:

Is this for just running adhoc sql, or creating a database (tables, views, etc)?

If it's the latter, we have an internal plugin we could easily open source.
I don't know about Marco, but for me it would be the latter. What 
exactly is your plugin doing and how is it configured (e.g. do you 
provide the SQL statements in some specific format)?


Regards,
Miks


On 10/21/05, Arnaud HERITIER [EMAIL PROTECTED] wrote:

I'm not sure there's a SQL plugin for maven 1 but you effectively can do it 
with ant in your maven.xml.

Arnaud


-Message d'origine-
De : Marco Mistroni [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 20 octobre 2005 11:03
À : Maven Users List
Objet : Maven  SQL tasks

hello all,
 i was curious about one thing.. with ant, you can launch SQL
commands to create a database, for example  does Maven have
same capabilities or do i have to revert to ant:sql in my maven.xml?
 thanks in advance and regards
  Marco





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





--
http://www.multitask.com.au/people/dion/
You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live. - George
Bernard Shaw



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



Re: Problem with M2

2005-10-21 Thread Ross Bamford
On Fri, 21 Oct 2005 10:19:00 +0100, Edwin Punzalan [EMAIL PROTECTED]  
wrote:



Sun jars like servletapi and jta are not in central repo...

you should download them from sun website and install in your repo using  
install:install-file.




My project doesn't use Servlet API of any description, so it must be a  
plugin dep. In that case it looks like someone's fd up somewhere,  
because Servlet 2.3 _is_ distributed (I assume so - it's in my M2 repo  
already). Maybe someone's updated their plugin to Servlets 2.4 and not  
told anyone?


In any event, I've done as you suggested (actually just got it from M1 on  
ibiblio), but the other Jars I mentioned are now stopping the build. The  
session is exactly as below, except that the fatal error now mentions  
icu4j:icu4j:2.6.1:jar


The download of artifacts is not sorted in any way so each run, you  
download of artifacts is different.  The build will download artifacts  
until it reaches the sun jar and then fails.







Ross Bamford wrote:


Hi,

Hope this is the correct list for M2?

I downloaded the 2.0 release yesterday, but am having some problems   
getting it to work - when I try to run a build it bombs out with  
missing  dependencies on stuff that (I assume) must be plug-in  
dependencies,  notably some xerces jars, the Servlet 2.4 jar (??!?),  
and 'tagsoup'. I  can't find these in the M2 repository either. Am I  
going mad?


A typical session goes:

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

[INFO]task-segment: [compile]
[INFO]   
  
[WARNING] POM for: 'commons-io:commons-io:pom:1.0' does not appear to  
be  valid. Its will be ignored for artifact resolution.


Reason: Failed to validate POM


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:   
http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1.pom  
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom  
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/icu4j/icu4j/2.6.1/icu4j-2.6.1.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/tagsoup/tagsoup/0.9.7/tagsoup-0.9.7.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)

[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test'   
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or  
remove  the local scope.


[WARNING] POM for: 'picocontainer:picocontainer:pom:1.2-beta-1' does  
not  appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${picocontainer.version} could not be   
evaluated. Reason:   
picocontainer:picocontainer:jar:${picocontainer.version} references  
itself.



[WARNING] POM for: 'nanocontainer:nanocontainer:pom:1.0-RC-1' does not   
appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${nanocontainer.version} could not be   
evaluated. Reason:   
nanocontainer:nanocontainer:jar:${nanocontainer.version} references  
itself.



Downloading:   
http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.jar

342K downloaded
Downloading:   
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.1/commons-collections-2.1.jar  
161K downloaded
Downloading:   
http://repo1.maven.org/maven2/xerces/xerces/2.2.1/xerces-2.2.1.jar

815K downloaded
Downloading:   
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.jar
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
[INFO]   
  
[ERROR] BUILD ERROR
[INFO]   
  
[INFO] Failed to resolve artifact.


GroupId: servletapi
ArtifactId: servlet
Version: 2.4

Reason: Unable to download the artifact from any repository
  servletapi:servlet:2.4:jar

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


[INFO]   
  
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to  
download  the artifact from any repository

  servletapi:servlet:2.4:jar

from the specified remote repositories:
  central 

Re: CVS Mayhem

2005-10-21 Thread Edwin Punzalan


Which plugin is reporting that its invalid ?


Wilfred Springer wrote:


All,

Could anybody give me a clue why this isn't working? (I have been
working with CVS and Maven 2 before, and it never was a problem, until
today. Maven tells me that it's not a valid scm url. But why?)

 scm
   developerConnectionscm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvs/repository:maven-netbeans-plugin/developerConnection
 /scm

Thanks,

Wilfred

PS Note that there's no detail message, even though the parseScmUrl adds
more detail to the parsing problem, but this data seems to get lost
somewhere.

 



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



Re: [M2] How to detect wrong POMs

2005-10-21 Thread Carsten Ziegeler
Edwin Punzalan schrieb:
 Its from Apache Cocoon Core,
 
from by excalibur-fortress, a dep of excalibur-store, w/c is a dep of 
 apache cocoon core
 
 
 The stack trace showed that,
 
 the format is something like this:
 
 direct dependency
 2spacestransitive dependency 1
 2spaces2spacestransitive dependency 2
 
 
 therefore, each 2 spaces in front of the artifcact is one level deeper 
 in transitivity.
 
 Very much like the way we indent our java codes
 
 
Ah thanks, Edwin - it's not directly visible, but it's there :)
Thanks
Carsten


-- 
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

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



Re: CVS Mayhem

2005-10-21 Thread Edwin Punzalan
As I learned from evenisse, after beta-3, scm:checkout will not read the 
scm in your pom.xml anymore.


Either you put the scm connection in the connectionUrl configuration 
of maven-scm, or put it in mvn command like this: -DconnectionUrl



Wilfred Springer wrote:


All,

Could anybody give me a clue why this isn't working? (I have been
working with CVS and Maven 2 before, and it never was a problem, until
today. Maven tells me that it's not a valid scm url. But why?)

 scm
   developerConnectionscm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvs/repository:maven-netbeans-plugin/developerConnection
 /scm

Thanks,

Wilfred

PS Note that there's no detail message, even though the parseScmUrl adds
more detail to the parsing problem, but this data seems to get lost
somewhere.

 



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



Re: Problem with M2

2005-10-21 Thread Edwin Punzalan

H


icu4j is not in central repo... the name could be incorrect or the 
developers have not given their artifacts yet.




Ross Bamford wrote:

On Fri, 21 Oct 2005 10:19:00 +0100, Edwin Punzalan 
[EMAIL PROTECTED]  wrote:



Sun jars like servletapi and jta are not in central repo...

you should download them from sun website and install in your repo 
using  install:install-file.




My project doesn't use Servlet API of any description, so it must be 
a  plugin dep. In that case it looks like someone's fd up 
somewhere,  because Servlet 2.3 _is_ distributed (I assume so - it's 
in my M2 repo  already). Maybe someone's updated their plugin to 
Servlets 2.4 and not  told anyone?


In any event, I've done as you suggested (actually just got it from M1 
on  ibiblio), but the other Jars I mentioned are now stopping the 
build. The  session is exactly as below, except that the fatal error 
now mentions  icu4j:icu4j:2.6.1:jar


The download of artifacts is not sorted in any way so each run, you  
download of artifacts is different.  The build will download 
artifacts  until it reaches the sun jar and then fails.







Ross Bamford wrote:


Hi,

Hope this is the correct list for M2?

I downloaded the 2.0 release yesterday, but am having some 
problems   getting it to work - when I try to run a build it bombs 
out with  missing  dependencies on stuff that (I assume) must be 
plug-in  dependencies,  notably some xerces jars, the Servlet 2.4 
jar (??!?),  and 'tagsoup'. I  can't find these in the M2 repository 
either. Am I  going mad?


A typical session goes:

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

[INFO]task-segment: [compile]
[INFO]   
  
[WARNING] POM for: 'commons-io:commons-io:pom:1.0' does not appear 
to  be  valid. Its will be ignored for artifact resolution.


Reason: Failed to validate POM


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:   
http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1.pom  
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom  
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/icu4j/icu4j/2.6.1/icu4j-2.6.1.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
Downloading:   
http://repo1.maven.org/maven2/tagsoup/tagsoup/0.9.7/tagsoup-0.9.7.pom
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)

[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test'   
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or  
remove  the local scope.


[WARNING] POM for: 'picocontainer:picocontainer:pom:1.2-beta-1' 
does  not  appear to be valid. Its will be ignored for artifact 
resolution.


Reason: The POM expression: ${picocontainer.version} could not be   
evaluated. Reason:   
picocontainer:picocontainer:jar:${picocontainer.version} references  
itself.



[WARNING] POM for: 'nanocontainer:nanocontainer:pom:1.0-RC-1' does 
not   appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${nanocontainer.version} could not be   
evaluated. Reason:   
nanocontainer:nanocontainer:jar:${nanocontainer.version} references  
itself.



Downloading:   
http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.jar

342K downloaded
Downloading:   
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.1/commons-collections-2.1.jar  
161K downloaded
Downloading:   
http://repo1.maven.org/maven2/xerces/xerces/2.2.1/xerces-2.2.1.jar

815K downloaded
Downloading:   
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.jar
[WARNING] Unable to get resource from repository central   
(http://repo1.maven.org/maven2)
[INFO]   
  
[ERROR] BUILD ERROR
[INFO]   
  
[INFO] Failed to resolve artifact.


GroupId: servletapi
ArtifactId: servlet
Version: 2.4

Reason: Unable to download the artifact from any repository
  servletapi:servlet:2.4:jar

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


[INFO]   
  
[INFO] Trace

Re: Problem with M2

2005-10-21 Thread Ross Bamford
On Fri, 21 Oct 2005 11:28:50 +0100, Edwin Punzalan [EMAIL PROTECTED]  
wrote:



H


icu4j is not in central repo... the name could be incorrect or the  
developers have not given their artifacts yet.




That's what I guessed. So the question is - is everyone who installs M2 on  
a fresh machine seeing the same thing?
Can anyone suggest a workaround, short of manually finding and installing  
the missing jars? Should I wait for the repo to be updated? Can I not use  
the M1 repo with M2? I could do with getting it going because we want to  
look into a M2 version of the Java.net plugin, and I have next week free.





Ross Bamford wrote:

On Fri, 21 Oct 2005 10:19:00 +0100, Edwin Punzalan  
[EMAIL PROTECTED]  wrote:



Sun jars like servletapi and jta are not in central repo...

you should download them from sun website and install in your repo  
using  install:install-file.




My project doesn't use Servlet API of any description, so it must be a   
plugin dep. In that case it looks like someone's fd up somewhere,   
because Servlet 2.3 _is_ distributed (I assume so - it's in my M2 repo   
already). Maybe someone's updated their plugin to Servlets 2.4 and not   
told anyone?


In any event, I've done as you suggested (actually just got it from M1  
on  ibiblio), but the other Jars I mentioned are now stopping the  
build. The  session is exactly as below, except that the fatal error  
now mentions  icu4j:icu4j:2.6.1:jar


The download of artifacts is not sorted in any way so each run, you   
download of artifacts is different.  The build will download  
artifacts  until it reaches the sun jar and then fails.







Ross Bamford wrote:


Hi,

Hope this is the correct list for M2?

I downloaded the 2.0 release yesterday, but am having some problems
getting it to work - when I try to run a build it bombs out with   
missing  dependencies on stuff that (I assume) must be plug-in   
dependencies,  notably some xerces jars, the Servlet 2.4 jar (??!?),   
and 'tagsoup'. I  can't find these in the M2 repository either. Am I   
going mad?


A typical session goes:

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

[INFO]task-segment: [compile]
[INFO]
   
[WARNING] POM for: 'commons-io:commons-io:pom:1.0' does not appear  
to  be  valid. Its will be ignored for artifact resolution.


Reason: Failed to validate POM


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1.pom   
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom   
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/icu4j/icu4j/2.6.1/icu4j-2.6.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/tagsoup/tagsoup/0.9.7/tagsoup-0.9.7.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test'
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or   
remove  the local scope.


[WARNING] POM for: 'picocontainer:picocontainer:pom:1.2-beta-1' does   
not  appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${picocontainer.version} could not be
evaluated. Reason:
picocontainer:picocontainer:jar:${picocontainer.version} references   
itself.



[WARNING] POM for: 'nanocontainer:nanocontainer:pom:1.0-RC-1' does  
not   appear to be valid. Its will be ignored for artifact resolution.


Reason: The POM expression: ${nanocontainer.version} could not be
evaluated. Reason:
nanocontainer:nanocontainer:jar:${nanocontainer.version} references   
itself.



Downloading:
http://repo1.maven.org/maven2/log4j/log4j/1.2.6/log4j-1.2.6.jar

342K downloaded
Downloading:
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.1/commons-collections-2.1.jar   
161K downloaded
Downloading:
http://repo1.maven.org/maven2/xerces/xerces/2.2.1/xerces-2.2.1.jar

815K downloaded
Downloading:
http://repo1.maven.org/maven2/servletapi/servlet/2.4/servlet-2.4.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO]

[m2] javadoc plugin

2005-10-21 Thread Samuel Le Berrigaud
Hi,

there is a bug in the current javadoc plugin regarding the site
integration. The link to the javadoc leads to blank page.

The javadoc is correctly generated, however the index page of the
javadoc is overwritten by a blank index page.

I found the bug come from the JavadocReport class of the plugin, this:

public String getOutputName()
{
return apidocs/index;
}

give the plugin its incorrect behavior.

I corrected this to :

public String getOutputName()
{
return javadoc;
}

And I add the following document to my src/site/apt directory:

--
Javadoc

  You can find the javadoc at {{{apidocs/index.html}apidocs/index.html}}
--

This can obviously not be a premanent solution but it works fine for me for now.
I don't know how to integrate this simple APT page into the plugin
directly, if anyone has any hint for me. I would glad to put some
effort on this and the contribute creating a JIRA bug and providing a
first patch maybe...

Thanks,

--
Samuel Le Berrigaud


using assembly to repackage a war

2005-10-21 Thread jerome lacoste
I need to take a war and add some packages in certain places.

I took the approach of using the assembly plugin to repackage the war.
I.e. I have now 2 projects A  B, A packages the war, B takes the war
and a couple of zip files as dependencies, and assemble the whole.

It fails miserably because of the missing webxml attribute required by
the WebArchiver, triggered because the specified format is war.

Should I consider this an issue of the assembly/WarAchiver
relationship and fix it?

Or should I take another approach, like combine AB projects into one
and move the assembly plugin execution as part of an earlier phase,
e.g. process-resources?


Here's the log:

[DEBUG] -- end configuration --
[INFO] [assembly:assembly]
[...]
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Error creating assembly: webxml attribute is required

[INFO] 

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
assembly: webxml attribute is required
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
creating assembly: webxml attribute is required
at 
org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:173)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: webxml
attribute is required
at 
org.codehaus.plexus.archiver.war.WarArchiver.initZipOutputStream(WarArchiver.java:139)
at 
org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:327)
at 
org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchive(AbstractZipArchiver.java:229)
at 
org.apache.maven.plugin.assembly.AssemblyMojo.createArchive(AssemblyMojo.java:215)
at 
org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:165)
... 18 more
[INFO] 

[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Oct 21 12:44:25 CEST 2005
[INFO] Final Memory: 3M/7M
[INFO] 

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



xdoclet-maven-plugin maven2

2005-10-21 Thread Ief Berben
When I try to execute the following plugin:

plugin
artifactIdxdoclet-maven-plugin/artifactId
groupIdorg.codehaus.mojo/groupId
version1.0-alpha-1/version
executions
execution
goals
goalxdoclet/goal
/goals
phasegenerate-sources/phase
configuration
tasks
ejbdoclet destdir=${project.build.outputDirectory}
fileset dir=${basedir}/src/main/java includes=**/*Bean.java/
entitycmp destDir=${project.build.outputDirectory}/
deploymentdescriptor destDir=${project.build.outputDirectory}/META-INF/
/ejbdoclet
/tasks
/configuration
/execution
/executions
/plugin

in maven2 I get an abstractMethodError :

[INFO] Scanning for projects...
[INFO]

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

[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.AbstractMethodError
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure
(ComponentValueSetter.java:247)
at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration
(ObjectWithFieldsCon
verter.java:137)
at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent
(BasicComponentConfigurator.java:56)
at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(
DefaultPluginManager.java:1038)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
DefaultPluginManager.java:563)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:377)
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]

[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Oct 21 12:58:04 CEST 2005
[INFO] Final Memory: 3M/8M
[INFO]


Does anybody have an idea on this one ?

tnx,

[EMAIL PROTECTED]


Re: [m2] javadoc plugin

2005-10-21 Thread David Sag

Would you like to add your fix to the
bug report in Jira?

http://jira.codehaus.org/browse/MNG-1249

Kind regards,
Dave Sag 




 

Samuel Le Berrigaud [EMAIL PROTECTED] wrote
on 21/10/2005 12:54:02 PM:

 Hi,
 
 there is a bug in the current javadoc plugin regarding the site
 integration. The link to the javadoc leads to blank page.
 
 The javadoc is correctly generated, however the index page of the
 javadoc is overwritten by a blank index page.
 
 I found the bug come from the JavadocReport class of the plugin, this:
 
   public String getOutputName()
   {
 return apidocs/index;
   }
 
 give the plugin its incorrect behavior.
 
 I corrected this to :
 
   public String getOutputName()
   {
 return javadoc;
   }
 
 And I add the following document to my src/site/apt directory:
 
 --
 Javadoc
 
  You can find the javadoc at {{{apidocs/index.html}apidocs/index.html}}
 --
 
 This can obviously not be a premanent solution but it works fine for
 me for now.
 I don't know how to integrate this simple APT page into the plugin
 directly, if anyone has any hint for me. I would glad to put some
 effort on this and the contribute creating a JIRA bug and providing
a
 first patch maybe...
 
 Thanks,
 
 --
 Samuel Le Berrigaud


maven2: javax.sql.jdbc-stdext

2005-10-21 Thread Mikael Wikström
Hi all,

releace of maven 2.0 reached me yesterday as music to my ears. So I
started to write pom.xml to all my maven projects when I ran in to
something that I did'nt understand. My old project.xml has a lot of
dependencys.. spring, pluto, activation, wsrp4j, common-dbcp, xalan and
more. It compiled fine. To be able to migrate to m2 I had to copy some
of the files from my ~/.maven/repository to ~/.m2/repository and then I
tryed to compile using m2.

[...]
[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: javax.sql
ArtifactId: jdbc-stdext
Version: 2.0

Reason: Unable to download the artifact from any repository
  javax.sql:jdbc-stdext:2.0:jar

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

jdbc-stdext-2.0 is'nt defined as a dependency in my pom. I tryed to add
it and copy the jar from my ~/.maven/repo to ~/.m2/ but with no luck!

Who do I make it compile with m2?


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



Re: maven2: javax.sql.jdbc-stdext

2005-10-21 Thread Stephen Duncan
Maven 2 has transitive dependencies.  That means that one of your
dependencies has jdbc-stdext defined as a dependency (or potentially
more levels of indirect dependency).

Also, a change from Maven 1 to Maven 2 that may be affecting you is
that the groupId javax.sql now corresponds to a folder structure in
the repostiory of repository/javax/sql.  So your jar in the repository
would be in repository/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar

Or you can use these instructions:
http://maven.apache.org/maven2/general.html#importing-jars

-Stephen

On 10/21/05, Mikael Wikström [EMAIL PROTECTED] wrote:
 Hi all,

 releace of maven 2.0 reached me yesterday as music to my ears. So I
 started to write pom.xml to all my maven projects when I ran in to
 something that I did'nt understand. My old project.xml has a lot of
 dependencys.. spring, pluto, activation, wsrp4j, common-dbcp, xalan and
 more. It compiled fine. To be able to migrate to m2 I had to copy some
 of the files from my ~/.maven/repository to ~/.m2/repository and then I
 tryed to compile using m2.

 [...]
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 GroupId: javax.sql
 ArtifactId: jdbc-stdext
 Version: 2.0

 Reason: Unable to download the artifact from any repository
   javax.sql:jdbc-stdext:2.0:jar

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

 jdbc-stdext-2.0 is'nt defined as a dependency in my pom. I tryed to add
 it and copy the jar from my ~/.maven/repo to ~/.m2/ but with no luck!

 Who do I make it compile with m2?


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




--
Stephen Duncan Jr
www.stephenduncanjr.com

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



[m2] Controlling Bloat

2005-10-21 Thread Mark Kuzmycz
Transitive dependencies are very useful as it enable you to specify the
direct dependencies for the project and maven handles the dependencies
of the dependencies and so on. However, if the product of a project is a
war or ear then this can lead to an increased artifact size due to the
transient dependencies. 
 
For example, if you include jelly or dom4j as a dependency the both of
these have a number of dependencies that are optional. That is, they are
only required if you are using certain functionality (or in the case of
jelly tags). This can lead to the inclusion of dependencies that are not
needed by the project.
 
My question is, how do I control the transient dependencies so that the
dependencies that are not required the project are not added to the war
or ear file? Is there a better way than specifying all of the
dependencies and marking their scope as test?
 
Regards,
Mark.
 

___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and 
contains confidential and/or privileged information belonging to Siebel 
Systems, Inc. or its customers or partners. Any unauthorized review, use, 
copying, disclosure or distribution of this message is strictly prohibited. If 
you are not an intended recipient of this message, please contact the sender by 
reply e-mail and destroy all soft and hard copies of the message and any 
attachments. Thank you for your cooperation.


Re: maven2: javax.sql.jdbc-stdext

2005-10-21 Thread Mikael Wikström
*hgf*,

renaming javax.sql to javax/sql solved it! =]

thanks

Stephen Duncan wrote:

Maven 2 has transitive dependencies.  That means that one of your
dependencies has jdbc-stdext defined as a dependency (or potentially
more levels of indirect dependency).

Also, a change from Maven 1 to Maven 2 that may be affecting you is
that the groupId javax.sql now corresponds to a folder structure in
the repostiory of repository/javax/sql.  So your jar in the repository
would be in repository/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar

Or you can use these instructions:
http://maven.apache.org/maven2/general.html#importing-jars

-Stephen

On 10/21/05, Mikael Wikström [EMAIL PROTECTED] wrote:
  

Hi all,

releace of maven 2.0 reached me yesterday as music to my ears. So I
started to write pom.xml to all my maven projects when I ran in to
something that I did'nt understand. My old project.xml has a lot of
dependencys.. spring, pluto, activation, wsrp4j, common-dbcp, xalan and
more. It compiled fine. To be able to migrate to m2 I had to copy some
of the files from my ~/.maven/repository to ~/.m2/repository and then I
tryed to compile using m2.

[...]
[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: javax.sql
ArtifactId: jdbc-stdext
Version: 2.0

Reason: Unable to download the artifact from any repository
  javax.sql:jdbc-stdext:2.0:jar

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

jdbc-stdext-2.0 is'nt defined as a dependency in my pom. I tryed to add
it and copy the jar from my ~/.maven/repo to ~/.m2/ but with no luck!

Who do I make it compile with m2?


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






--
Stephen Duncan Jr
www.stephenduncanjr.com

-
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] archetype plugin bug?

2005-10-21 Thread Jon Ekdahl

Hi, 

I'm just getting started on m2 and I believe I stumbled over a bug.
I created a template project with the following command:

mvn archetype:create -DgroupId=my-group -DarchetypeId=my-app

The generated App.java file starts with the line:

package my-group;

which is not a valid package definition, so the code won't compile
(mvn compile fails).

Maybe I'm not using the plugin correctly, but it shouldn't be generating
faulty code, right? Is this actually a bug, and if so, how do I go about
reporting it?

Regards, Jon


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



Re: Problem with M2

2005-10-21 Thread Ross Bamford
On Fri, 21 Oct 2005 11:42:22 +0100, Ross Bamford [EMAIL PROTECTED]  
wrote:


Can anyone suggest a workaround, short of manually finding and  
installing the missing jars?


Okay I think I found what I need now in the docs, and I can manually do  
the remainder. I wasn't fully appreciating the impact of transitive  
dependencies - still thinking Maven 1 :)


Thanks again,
Ross

--
Ross Bamford - [EMAIL PROTECTED]

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



Re: [m2] Controlling Bloat

2005-10-21 Thread Stephen Duncan
Yes.  First, you can specify exclusions to exclude certain transitive
dependencies from being used.  For instance, I depend on
spring-hibernate, but I only use the net.sf.hibernate (hibernate 2)
features, so I don't need Hibernate 3 stuff:

dependency
groupIdspringframework/groupId
artifactIdspring-hibernate/artifactId
version1.2.5/version
scopecompile/scope
exclusions
exclusion
groupIdorg.hibernate/groupId
artifactIdhibernate-annotations/artifactId
/exclusion
exclusion
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
/exclusion
/exclusions
/dependency

Secondly, the project you depend on could make some of their
dependencies optional so that you don't have to manually exclude them.
 As time goes by, more of the pom's in the central repository will get
optionaltrue/optional set on the correct dependencies.

-Stephen


On 10/21/05, Mark Kuzmycz [EMAIL PROTECTED] wrote:
 Transitive dependencies are very useful as it enable you to specify the
 direct dependencies for the project and maven handles the dependencies
 of the dependencies and so on. However, if the product of a project is a
 war or ear then this can lead to an increased artifact size due to the
 transient dependencies.

 For example, if you include jelly or dom4j as a dependency the both of
 these have a number of dependencies that are optional. That is, they are
 only required if you are using certain functionality (or in the case of
 jelly tags). This can lead to the inclusion of dependencies that are not
 needed by the project.

 My question is, how do I control the transient dependencies so that the
 dependencies that are not required the project are not added to the war
 or ear file? Is there a better way than specifying all of the
 dependencies and marking their scope as test?

 Regards,
 Mark.


 ___
 Siebel
 IT'S ALL ABOUT THE CUSTOMER
 Visit www.siebel.com

 This e-mail message is for the sole use of the intended recipient(s) and 
 contains confidential and/or privileged information belonging to Siebel 
 Systems, Inc. or its customers or partners. Any unauthorized review, use, 
 copying, disclosure or distribution of this message is strictly prohibited. 
 If you are not an intended recipient of this message, please contact the 
 sender by reply e-mail and destroy all soft and hard copies of the message 
 and any attachments. Thank you for your cooperation.




--
Stephen Duncan Jr
www.stephenduncanjr.com

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



RE: CVS Mayhem

2005-10-21 Thread Wilfred Springer
You were right Thanks!


On Thu, 2005-10-20 at 16:21, Bernd Mau wrote:
 Hi Wilfred,
 
 this looks like my entry. Do you have the problem using the
 release-plugin? I had this message and the fault was an invalid entry in
 the file release.properties (meanwhile I changed the pom). After
 deleting the file everything worked again.
 
 Bernd
 
 
 ---
 Bernd Mau
 
 Hamburger Hafen und Logistik AG
 - Zentralbereich Informationssysteme -
 Bei St. Annen 1
 D-20457 Hamburg
 
 Fon: +49 40 - 30 88 - 33 89
 Fax: +49 40 - 30 88 - 33 66
 Mobil: +49 172 - 594 67 26
 E-Mail: [EMAIL PROTECTED]
 ---
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
_
Wilfred SpringerPhone  : +31 (0)3 3451 5736
Software Architect  Mobile : +31 (0)6 2295 7321
Client SolutionsFax: +31 (0)3 3451 5734
Enterprise Web Services Mail   : [EMAIL PROTECTED]
Sun Microsystems NetherlandsAIM: wilfred springer
http://blogs.sun.com/wilfred/


NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the original
message.


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



Problem with the POM version

2005-10-21 Thread Gansel, Toni (EXTERN: LOGICA)
Hello,

I have to work with mavon now and have the first problem. I have created a
maven project with the ceclipse plugin myMavan and i want to build a jar
file.
When i type maven jar in the console i get following errormessage:

D:\tga\workspace\Veron-Commonsmaven jar
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2

build:start:

java:prepare-filesystem:

java:compile:
[echo] Compiling to D:\tga\workspace\Veron-Commons/target/classes
[echo]
==

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==


java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
[echo] No test source files to compile.

test:test:
[echo] No tests to run.

BUILD FAILED
File.. C:\Dokumente und
Einstellungen\esn568y\.maven\cache\maven-jar-plugin-
1.7\plugin.jelly
Element... ant:fail
Line.. 53
Column -1
You must define currentVersion in your POM.
Total time   : 3 seconds
Finished at  : Freitag, 21. Oktober 2005 15:50:12 CEST

I have written nothing into the project.properties and didn't change any
other config file.
So what did i wrong? Where do i have to define the pom?

Thanks for helping and regards
toni



RE: [m2] How do you use maven2 inside a corporate firewall?

2005-10-21 Thread fabrice . belingard




The settings.xml file can be placed in:
- m2_install_dir/conf/ : the settings will be available for all users
- user_home/.m2/ : the settings will be available only for you


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


   
 Pilgrim, Peter  
 [EMAIL PROTECTED]  
 sfb.com Pour
   'Maven Users List'  
 21/10/2005 15:44  users@maven.apache.org
cc
   
 VeuillezObjet
répondre à RE: [m2] How do you use maven2
 Maven Users List  inside a corporate firewall?
 [EMAIL PROTECTED]  
 che.org  
   
   
   
   





Ok I think we have a circular dependency here.

Follow the getting started guide
``http://maven.apache.org/maven2/guides/getting-started/index.html''
I am trying to execute the command line:

   % mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

But it seems that the help page above requires me to
create a setting.xml that exists as part of a project.

How can I define ``setting.xml'' if I still have to create a project?
Is there way of setting the proxy setting before creating the project
with archetype?

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston,
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 21 October 2005 14:34
 To: Maven Users List
 Subject: RE: [m2] How do you use maven2 inside a corporate firewall?






 Peter,

 please have a look at the documentation on Maven 2 website:
 http://maven.apache.org/maven2/guides/mini/guide-proxies.html

 This page should answer your question. :o)

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




  Pilgrim, Peter

  [EMAIL PROTECTED]

  sfb.com
 Pour
Maven Users List
 (E-mail)
  21/10/2005 15:11
 users@maven.apache.org

   cc


  Veuillez
Objet
 répondre à [m2] How do you use
 maven2 inside a
  Maven Users List  corporate firewall?

  [EMAIL PROTECTED]

  che.org














 Does ``mvn'' still respect the proxy settings in
 ``${user.home}/build.properties'' ?

 How do get maven2 to work with a HTTP proxy?

 TIA


 --
 Peter Pilgrim :: J2EE Software Development
 Operations/IT - Credit Suisse First Boston,
 Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
 Tel: +44-(0)207-883-4497


 ==
 

 Please access the attached hyperlink for an important electronic
 communications disclaimer:

 http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

 ==
 



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



==

Please access the attached hyperlink for an important electronic
communications disclaimer:

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==



-
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 with the POM version

2005-10-21 Thread Arnaud HERITIER
You must add a currentVersion in your project.xml

project
...
currentVersion1.0-SNAPSHOT/currentVersion
...
/project

Arnaud

On 10/21/05, Gansel, Toni (EXTERN: LOGICA) [EMAIL PROTECTED]
wrote:

 Hello,

 I have to work with mavon now and have the first problem. I have created a
 maven project with the ceclipse plugin myMavan and i want to build a jar
 file.
 When i type maven jar in the console i get following errormessage:

 D:\tga\workspace\Veron-Commonsmaven jar
 __ __
 | \/ |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
 |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-2

 build:start:

 java:prepare-filesystem:

 java:compile:
 [echo] Compiling to D:\tga\workspace\Veron-Commons/target/classes
 [echo]
 ==

 NOTE: Targetting JVM 1.4, classes
 will not run on earlier JVMs

 ==


 java:jar-resources:

 test:prepare-filesystem:

 test:test-resources:

 test:compile:
 [echo] No test source files to compile.

 test:test:
 [echo] No tests to run.

 BUILD FAILED
 File.. C:\Dokumente und
 Einstellungen\esn568y\.maven\cache\maven-jar-plugin-
 1.7\plugin.jelly
 Element... ant:fail
 Line.. 53
 Column -1
 You must define currentVersion in your POM.
 Total time : 3 seconds
 Finished at : Freitag, 21. Oktober 2005 15:50:12 CEST

 I have written nothing into the project.properties and didn't change any
 other config file.
 So what did i wrong? Where do i have to define the pom?

 Thanks for helping and regards
 toni





RE: [m2] How do you use maven2 inside a corporate firewall?

2005-10-21 Thread Pilgrim, Peter
Ok I set up the ``C:\Documents and Settings\ppilgrim\.m2\settings.xml'' with

!-- Maven 2 Configuration --
settings
  proxies
   proxy
  activetrue/active
  protocolhttp/protocol
  hostocs-ca-http.csfb.net/host
  port8080/port
  usernameppilgrim/username
  password/password
  nonProxyHosts/
/proxy
  /proxies
/settings


When I run the getting started command line, I get a failure


C:\Projectsmvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-
app
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin
gs\ppilgrim\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\opt\maven-2.0\bin\
..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the latest ve
rsion
  org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom


[DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-
plugin:pom:LATEST
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the release v
ersion
  org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom


[DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-
plugin:pom:RELEASE
[INFO] -
---
[ERROR] BUILD ERROR
[INFO] -
---
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi
st or no valid version could be found
[INFO] -
---
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version could be
 found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1124)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1356)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:376)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:132)
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(DelegatingMethodAcces
sorImpl.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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val
id version could be found
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:158)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1095)
... 14 more
[INFO] -
---
[INFO] Total time:  1 second
[INFO] Finished at: Fri Oct 21 15:11:03 BST 2005
[INFO] Final Memory: 1M/2M
[INFO] -
---


--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 21 October 2005 15:09
 To: Maven Users List
 Subject: RE: [m2] How do you use maven2 inside a corporate firewall?
 
 
 
 
 
 
 The settings.xml file can be placed in:
 - m2_install_dir/conf/ : the settings will be available for 
 all users
 - user_home/.m2/ : the settings will be available only for you
 
 
 Best Regards / Cordialement,
 Fabrice BELLINGARD
 DINQ/DSIN/INSI/EATE/IDVS/AIDV
 (+33) 

Re: [m2] How do you use maven2 inside a corporate firewall?

2005-10-21 Thread Wendy Smoak

From: Pilgrim, Peter [EMAIL PROTECTED]


But it seems that the help page above requires me to
create a setting.xml that exists as part of a project.


My settings.xml file is in ~/.m2 (in my home directory).  (Check the 
filename, you wrote 'setting' above.)


--
Wendy Smoak 



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



RE: [m2] How do you use maven2 inside a corporate firewall?

2005-10-21 Thread fabrice . belingard




Well, if you hadn't set your firewall settings, I guess you haven't
downloaded anything yet from ibiblio. So I would delete everything in your
C:\Documents and Settings\ppilgrim\.m2 folder (except the settings.xml
file), and start again. That should work.

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


   
 Pilgrim, Peter  
 [EMAIL PROTECTED]  
 sfb.com Pour
   'Maven Users List'  
 21/10/2005 16:16  users@maven.apache.org
cc
   
 VeuillezObjet
répondre à RE: [m2] How do you use maven2
 Maven Users List  inside a corporate firewall?
 [EMAIL PROTECTED]  
 che.org  
   
   
   
   




Ok I set up the ``C:\Documents and Settings\ppilgrim\.m2\settings.xml''
with

!-- Maven 2 Configuration --
settings
  proxies
   proxy
  activetrue/active
  protocolhttp/protocol
  hostocs-ca-http.csfb.net/host
  port8080/port
  usernameppilgrim/username
  password/password
  nonProxyHosts/
/proxy
  /proxies
/settings


When I run the getting started command line, I get a failure


C:\Projectsmvn -X archetype:create -DgroupId=com.mycompany.app
-DartifactId=my-
app
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settin
gs\ppilgrim\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\opt\maven-2.0
\bin\
..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest ve
rsion
  org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-
plugin:pom:LATEST
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release v
ersion
  org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-
plugin:pom:RELEASE
[INFO]
-
---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exi
st or no valid version could be found
[INFO]
-
---
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version
could be
 found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1124)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1356)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:376)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:132)
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(DelegatingMethodAcces
sorImpl.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)

Re: m2 ejb:ejb Error please help!!?

2005-10-21 Thread raghurajan . x . gurunathanv
this error is thrown from maven2 release version





Thanks,
Raghurajan Gurunathan


[m2] quick way to exclude dependencies

2005-10-21 Thread Nicolas De Loof


Hi,

My webapp uses spring and transitive dependencies (that is a cool 
feature) adds tons of dependencies to my war.
I have to setup lot's of exclusions rules... more than dependencies I 
have in my project !


Is there any way to make this quicker, perhaps some regexp matching 
exclusion/inclusion rule ?


Nico.


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: [m2] quick way to exclude dependencies

2005-10-21 Thread Matt Raible
On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:

 Hi,

 My webapp uses spring and transitive dependencies (that is a cool
 feature) adds tons of dependencies to my war.
 I have to setup lot's of exclusions rules... more than dependencies I
 have in my project !

 Is there any way to make this quicker, perhaps some regexp matching
 exclusion/inclusion rule ?

The problem is primarily metadata and that it's not accurate in the
dependeny POMs.  I agree with you whole-heartedly.  I've found that I
have to exclude a *lot* from Hibernate, iBATIS, JDO and Display Tag.

In an ideal world, we'd never have to put exclusions on any of our
dependencies.  If enough users complain about this - hopefully it'll
get fixed.  In the meantime, your best bet is to enter invalid POMs as
bugs in JIRA:

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

HTH,

Matt


 Nico.


 This message contains information that may be privileged or confidential and 
 is the property of the Capgemini Group. It is intended only for the person to 
 whom it is addressed. If you are not the intended recipient,  you are not 
 authorized to read, print, retain, copy, disseminate,  distribute, or use 
 this message or any part thereof. If you receive this  message in error, 
 please notify the sender immediately and delete all  copies of this message.


 -
 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] antlib [ERROR] Nonexistent component

2005-10-21 Thread Xavier Toth
What is a 'component' in this context? This class exists in the
maven-artifact-ant-2.0-dep.jar.

[artifact:pom] [ERROR] Nonexistent component:
org.apache.maven.usability.diagnostics.ErrorDiagnostics

?xml version=1.0 ?
project name=MessageClient default=build basedir=.
xmlns:artifact=urn:maven-artifact-ant
echo message=Building MessageClient jar/
typedef resource=org/apache/maven/artifact/ant/antlib.xml
uri=urn:maven-artifact-ant
classpath
pathelement location=../../lib/maven-artifact-ant-2.0-dep/maven-
artifact-ant-2.0-dep.jar /
/classpath
/typedef

artifact:pom id=maven.project file=pom.xml /


Re: [m2] quick way to exclude dependencies

2005-10-21 Thread Nicolas De Loof


But thos poms are NOT invalid :

spring-web requires spring-core + beans + context, that themselves 
depends on lot's of tools that spring supports.


My WEB-INF/lib has 44 jars, and I only require 10 of them.

Another problem is that I cannot set exclusion at top level : I need to 
know what dependency has introduced some jar,  + detecte the groupId 
from the jar name (that can be != from artifactId)


I'll take me lo'ts of time !

Matt Raible a écrit :


On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:
 


Hi,

My webapp uses spring and transitive dependencies (that is a cool
feature) adds tons of dependencies to my war.
I have to setup lot's of exclusions rules... more than dependencies I
have in my project !

Is there any way to make this quicker, perhaps some regexp matching
exclusion/inclusion rule ?
   



The problem is primarily metadata and that it's not accurate in the
dependeny POMs.  I agree with you whole-heartedly.  I've found that I
have to exclude a *lot* from Hibernate, iBATIS, JDO and Display Tag.

In an ideal world, we'd never have to put exclusions on any of our
dependencies.  If enough users complain about this - hopefully it'll
get fixed.  In the meantime, your best bet is to enter invalid POMs as
bugs in JIRA:

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

HTH,

Matt

 


Nico.


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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


 



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: [m2] quick way to exclude dependencies

2005-10-21 Thread Stephen Duncan
Well, they ARE invalid, in that they should be putting
optionaltrue/optional on many of those dependencies.

-Stephen

On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:

 But thos poms are NOT invalid :

 spring-web requires spring-core + beans + context, that themselves
 depends on lot's of tools that spring supports.

 My WEB-INF/lib has 44 jars, and I only require 10 of them.

 Another problem is that I cannot set exclusion at top level : I need to
 know what dependency has introduced some jar,  + detecte the groupId
 from the jar name (that can be != from artifactId)

 I'll take me lo'ts of time !

 Matt Raible a écrit :

 On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 My webapp uses spring and transitive dependencies (that is a cool
 feature) adds tons of dependencies to my war.
 I have to setup lot's of exclusions rules... more than dependencies I
 have in my project !
 
 Is there any way to make this quicker, perhaps some regexp matching
 exclusion/inclusion rule ?
 
 
 
 The problem is primarily metadata and that it's not accurate in the
 dependeny POMs.  I agree with you whole-heartedly.  I've found that I
 have to exclude a *lot* from Hibernate, iBATIS, JDO and Display Tag.
 
 In an ideal world, we'd never have to put exclusions on any of our
 dependencies.  If enough users complain about this - hopefully it'll
 get fixed.  In the meantime, your best bet is to enter invalid POMs as
 bugs in JIRA:
 
 http://jira.codehaus.org/browse/MEV
 
 HTH,
 
 Matt
 
 
 
 Nico.
 
 
 This message contains information that may be privileged or confidential 
 and is the property of the Capgemini Group. It is intended only for the 
 person to whom it is addressed. If you are not the intended recipient,  you 
 are not authorized to read, print, retain, copy, disseminate,  distribute, 
 or use this message or any part thereof. If you receive this  message in 
 error, please notify the sender immediately and delete all  copies of this 
 message.
 
 
 -
 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]
 
 
 
 

 This message contains information that may be privileged or confidential and 
 is the property of the Capgemini Group. It is intended only for the person to 
 whom it is addressed. If you are not the intended recipient,  you are not 
 authorized to read, print, retain, copy, disseminate,  distribute, or use 
 this message or any part thereof. If you receive this  message in error, 
 please notify the sender immediately and delete all  copies of this message.


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




--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: Prevent M2 repository from constantly checking for POM

2005-10-21 Thread Eric Pugh

cool..   I'll go ahead and create them then...
On Oct 20, 2005, at 8:10 PM, Brett Porter wrote:


Yes, it will do this. We'll probably sort that out for 2.0.1, but for
now you can report the missing pom as an issue or create it in your
repo.

- Brett

On 10/20/05, Eric Pugh [EMAIL PROTECTED] wrote:


Interesting...

I do have maven 2 beta 3 as well, but when I check the version:

xativa:~/Documents/java/ergito/manager eric$ mvn -v
Maven version: 2.0

The messages I am getting are:
Downloading: http://bronze.jbpub.com/maven/repo/jurt/jurt/ergito/ 
jurt-

ergito.pom
[WARNING] Unable to get resource from repository bronze (http://
bronze.jbpub.com/maven/repo)
Downloading: http://repo1.maven.org/maven2/mssqlserver/mssqlserver/
ergito/mssqlserver-ergito.pom
[WARNING] Unable to get resource from repository central (http://
repo1.maven.org/maven2)

Which is Maven attempting to retrieve non existent pom's.

Eric

On Oct 20, 2005, at 6:19 PM, Carlos Sanchez wrote:



2.0 final doesn't check for poms after they are dowloaded. That
happened with first beta versions

On 10/20/05, Eric Pugh [EMAIL PROTECTED] wrote:



Hi all,

I'm noticing that M2 is constantly checking for POM's from the
repositories.   It seems like I can control how often we check via:
   repositories
 repository
   release
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
 checksumPolicywarn/checksumPolicy
   /release
   idcentral/id
   nameMaven Repo/name
   urlhttp://repo1.maven.org/maven2/url
   layoutdefault/layout
 /repository
   /repositories


However, the release tag causes an XML parsing error:

Caused by:  
org.codehaus.plexus.util.xml.pull.XmlPullParserException:
Unrecognised tag: 'release' (position: START_TAG  
seen ...repository

\n  release... @125:16)
 at
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseRepository
(MavenXpp3Reader.java:3656)

Most of my build time is filled with attempting to download POM's
that don't exist.  Should I create them in my local corporate
instead?

Eric




--- 
--

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]





-
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] quick way to exclude dependencies

2005-10-21 Thread Nicolas De Loof


Another thing that is painful : if I exclude a common jar from one 
dependency (let's say logkit as it uses commons-logging) another 
dependency can also add it to my dependencies and I have to copy my 
exclusion rule.


about adding a jira issue for MEV, what would be the syntax to make a 
dependency OPTIONAL ?


Consider spring-remoting : it's a toolkit to be used with hessian, 
burlap, jax-rpc, ejb or jms.
Solution 1 : convince Spring developpers to cut it into 6 specialized 
jars (all those + commons)
Solution 2 : have a way to declare those dependencies as optional. This 
make madatory to declare a dependency in final app, but this avoid lot's 
of exclusion rules.



Nicolas De Loof a écrit :



But thos poms are NOT invalid :

spring-web requires spring-core + beans + context, that themselves 
depends on lot's of tools that spring supports.


My WEB-INF/lib has 44 jars, and I only require 10 of them.

Another problem is that I cannot set exclusion at top level : I need 
to know what dependency has introduced some jar,  + detecte the 
groupId from the jar name (that can be != from artifactId)


I'll take me lo'ts of time !

Matt Raible a écrit :


On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:
 


Hi,

My webapp uses spring and transitive dependencies (that is a cool
feature) adds tons of dependencies to my war.
I have to setup lot's of exclusions rules... more than dependencies I
have in my project !

Is there any way to make this quicker, perhaps some regexp matching
exclusion/inclusion rule ?
  



The problem is primarily metadata and that it's not accurate in the
dependeny POMs.  I agree with you whole-heartedly.  I've found that I
have to exclude a *lot* from Hibernate, iBATIS, JDO and Display Tag.

In an ideal world, we'd never have to put exclusions on any of our
dependencies.  If enough users complain about this - hopefully it'll
get fixed.  In the meantime, your best bet is to enter invalid POMs as
bugs in JIRA:

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

HTH,

Matt

 


Nico.


This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.



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


 



This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



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



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



RE: [m2] How do you use maven2 inside a corporate firewall? [SOLV ED]

2005-10-21 Thread Pilgrim, Peter
Yep! Thank you Fabrice, I blew away the repository folder 
C:\Documents and Settings\ppilgrim\.m2\repository 
It now works!

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 21 October 2005 15:33
 To: Maven Users List
 Subject: RE: [m2] How do you use maven2 inside a corporate firewall?
 
 
 
 
 
 
 Well, if you hadn't set your firewall settings, I guess you haven't
 downloaded anything yet from ibiblio. So I would delete 
 everything in your
 C:\Documents and Settings\ppilgrim\.m2 folder (except the 
 settings.xml
 file), and start again. That should work.
 
 Best Regards / Cordialement,
 Fabrice BELLINGARD
 DINQ/DSIN/INSI/EATE/IDVS/AIDV
 (+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]
 
 
   
  
  Pilgrim, Peter 
  
  [EMAIL PROTECTED] 
  
  sfb.com 
 Pour 
'Maven Users List' 
  
  21/10/2005 16:16  
 users@maven.apache.org
   
   cc 
   
  
  Veuillez 
Objet 
 répondre à RE: [m2] How do you 
 use maven2  
  Maven Users List  inside a corporate 
 firewall?
  [EMAIL PROTECTED] 
  
  che.org 
  
   
  
   
  
   
  
   
  
 
 
 
 
 Ok I set up the ``C:\Documents and 
 Settings\ppilgrim\.m2\settings.xml''
 with
 
 !-- Maven 2 Configuration --
 settings
   proxies
proxy
   activetrue/active
   protocolhttp/protocol
   hostocs-ca-http.csfb.net/host
   port8080/port
   usernameppilgrim/username
   password/password
   nonProxyHosts/
 /proxy
   /proxies
 /settings
 
 
 When I run the getting started command line, I get a failure
 
 
 C:\Projectsmvn -X archetype:create -DgroupId=com.mycompany.app
 -DartifactId=my-
 app
 + Error stacktraces are turned on.
 [DEBUG] Building Maven user-level plugin registry from: 
 'C:\Documents and
 Settin
 gs\ppilgrim\.m2\plugin-registry.xml'
 [DEBUG] Building Maven global-level plugin registry from: 
 'C:\opt\maven-2.0
 \bin\
 ..\conf\plugin-registry.xml'
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [DEBUG] maven-archetype-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine the
 latest ve
 rsion
   org.apache.maven.plugins:maven-archetype-plugin:LATEST:pom
 
 
 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-archetype-
 plugin:pom:LATEST
 [DEBUG] maven-archetype-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine the
 release v
 ersion
   org.apache.maven.plugins:maven-archetype-plugin:RELEASE:pom
 
 
 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-archetype-
 plugin:pom:RELEASE
 [INFO]
 --
 ---
 ---
 [ERROR] BUILD ERROR
 [INFO]
 --
 ---
 ---
 [INFO] The plugin 
 'org.apache.maven.plugins:maven-archetype-plugin' does
 not exi
 st or no valid version could be found
 [INFO]
 --
 ---
 ---
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
 'org.apache.m
 aven.plugins:maven-archetype-plugin' does not exist or no 
 valid version
 could be
  found
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1124)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
 (DefaultLifecycleExecutor.java:1356)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
 AggregationNeeds(DefaultLifecycleExecutor.java:376)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:132)
 at 
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
 at 
 

Re: [m2] quick way to exclude dependencies

2005-10-21 Thread Stephen Duncan
Spring needs to declare the dependency like this (as far as I know):

dependency
  groupIdsomething/groupId
  artifactIdsomething-optional/artifactId
  optionaltrue/optional
/dependency

I think in most cases where you'd need multiple exclusions the actual
case is that you don't want to add the dependency, because you don't
want it in your war, or something like that, but you actually still do
transitively depend on it.  In that case you should declare the
dependency yourself, and set: scopeprovided/scope.

I would like however, for dependencyManagement in a parent POM with
scope set to provided to apply to a transitive dependency.  I don't 
think it does though.

-Stephen

On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:

 Another thing that is painful : if I exclude a common jar from one
 dependency (let's say logkit as it uses commons-logging) another
 dependency can also add it to my dependencies and I have to copy my
 exclusion rule.

 about adding a jira issue for MEV, what would be the syntax to make a
 dependency OPTIONAL ?

 Consider spring-remoting : it's a toolkit to be used with hessian,
 burlap, jax-rpc, ejb or jms.
 Solution 1 : convince Spring developpers to cut it into 6 specialized
 jars (all those + commons)
 Solution 2 : have a way to declare those dependencies as optional. This
 make madatory to declare a dependency in final app, but this avoid lot's
 of exclusion rules.


 Nicolas De Loof a écrit :

 
  But thos poms are NOT invalid :
 
  spring-web requires spring-core + beans + context, that themselves
  depends on lot's of tools that spring supports.
 
  My WEB-INF/lib has 44 jars, and I only require 10 of them.
 
  Another problem is that I cannot set exclusion at top level : I need
  to know what dependency has introduced some jar,  + detecte the
  groupId from the jar name (that can be != from artifactId)
 
  I'll take me lo'ts of time !
 
  Matt Raible a écrit :
 
  On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  My webapp uses spring and transitive dependencies (that is a cool
  feature) adds tons of dependencies to my war.
  I have to setup lot's of exclusions rules... more than dependencies I
  have in my project !
 
  Is there any way to make this quicker, perhaps some regexp matching
  exclusion/inclusion rule ?
 
 
 
  The problem is primarily metadata and that it's not accurate in the
  dependeny POMs.  I agree with you whole-heartedly.  I've found that I
  have to exclude a *lot* from Hibernate, iBATIS, JDO and Display Tag.
 
  In an ideal world, we'd never have to put exclusions on any of our
  dependencies.  If enough users complain about this - hopefully it'll
  get fixed.  In the meantime, your best bet is to enter invalid POMs as
  bugs in JIRA:
 
  http://jira.codehaus.org/browse/MEV
 
  HTH,
 
  Matt
 
 
 
  Nico.
 
 
  This message contains information that may be privileged or
  confidential and is the property of the Capgemini Group. It is
  intended only for the person to whom it is addressed. If you are not
  the intended recipient,  you are not authorized to read, print,
  retain, copy, disseminate,  distribute, or use this message or any
  part thereof. If you receive this  message in error, please notify
  the sender immediately and delete all  copies of this message.
 
 
  -
  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]
 
 
 
 
 
  This message contains information that may be privileged or
  confidential and is the property of the Capgemini Group. It is
  intended only for the person to whom it is addressed. If you are not
  the intended recipient,  you are not authorized to read, print,
  retain, copy, disseminate,  distribute, or use this message or any
  part thereof. If you receive this  message in error, please notify the
  sender immediately and delete all  copies of this message.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 This message contains information that may be privileged or confidential and 
 is the property of the Capgemini Group. It is intended only for the person to 
 whom it is addressed. If you are not the intended recipient,  you are not 
 authorized to read, print, retain, copy, disseminate,  distribute, or use 
 this message or any part thereof. If you receive this  message in error, 
 please notify the sender immediately and delete all  copies of this message.


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




--
Stephen Duncan Jr
www.stephenduncanjr.com


Re: [m2] quick way to exclude dependencies

2005-10-21 Thread Nicolas De Loof


I've created http://jira.codehaus.org/browse/MEV-133 for this and 
attached poms that include optional tags.

I also added provided scope for javax APIs.

Stephen Duncan a écrit :


Well, they ARE invalid, in that they should be putting
optionaltrue/optional on many of those dependencies.

-Stephen

On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:
 


But thos poms are NOT invalid :

spring-web requires spring-core + beans + context, that themselves
depends on lot's of tools that spring supports.

My WEB-INF/lib has 44 jars, and I only require 10 of them.

Another problem is that I cannot set exclusion at top level : I need to
know what dependency has introduced some jar,  + detecte the groupId
from the jar name (that can be != from artifactId)

I'll take me lo'ts of time !

Matt Raible a écrit :

   


On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:


 


Hi,

My webapp uses spring and transitive dependencies (that is a cool
feature) adds tons of dependencies to my war.
I have to setup lot's of exclusions rules... more than dependencies I
have in my project !

Is there any way to make this quicker, perhaps some regexp matching
exclusion/inclusion rule ?


   


The problem is primarily metadata and that it's not accurate in the
dependeny POMs.  I agree with you whole-heartedly.  I've found that I
have to exclude a *lot* from Hibernate, iBATIS, JDO and Display Tag.

In an ideal world, we'd never have to put exclusions on any of our
dependencies.  If enough users complain about this - hopefully it'll
get fixed.  In the meantime, your best bet is to enter invalid POMs as
bugs in JIRA:

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

HTH,

Matt



 


Nico.


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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




 


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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


   




--
Stephen Duncan Jr
www.stephenduncanjr.com

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


 



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



[m2] javadoc for multimodule project

2005-10-21 Thread Greg Wilkins

Is there a simple way to merge the javadoc from multiple modules into a 
single javadoc hierarchy?



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



Re: [m2] quick way to exclude dependencies

2005-10-21 Thread Sridhar Radhakrishnan
I agree. They should be putting optionaltrue/optional on these poms. 
Also, most of the poms doesn't specify the downloadURL where it can be 
downloaded from. This again is a real pain in that you need to search 
for these jars which are not straight forward as it is expected to be. 
Also, in some cases, if the build fails for some dependencies, even the 
mvn -e or -X option does not tell you the parent jar(like Spring) 
which is dependent on these jars. Hopefully this can be fixed from 
jira/maven.


-Sridhar.

Stephen Duncan wrote:


Well, they ARE invalid, in that they should be putting
optionaltrue/optional on many of those dependencies.

-Stephen

On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:
 


But thos poms are NOT invalid :

spring-web requires spring-core + beans + context, that themselves
depends on lot's of tools that spring supports.

My WEB-INF/lib has 44 jars, and I only require 10 of them.

Another problem is that I cannot set exclusion at top level : I need to
know what dependency has introduced some jar,  + detecte the groupId
from the jar name (that can be != from artifactId)

I'll take me lo'ts of time !

Matt Raible a écrit :

   


On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:


 


Hi,

My webapp uses spring and transitive dependencies (that is a cool
feature) adds tons of dependencies to my war.
I have to setup lot's of exclusions rules... more than dependencies I
have in my project !

Is there any way to make this quicker, perhaps some regexp matching
exclusion/inclusion rule ?


   


The problem is primarily metadata and that it's not accurate in the
dependeny POMs.  I agree with you whole-heartedly.  I've found that I
have to exclude a *lot* from Hibernate, iBATIS, JDO and Display Tag.

In an ideal world, we'd never have to put exclusions on any of our
dependencies.  If enough users complain about this - hopefully it'll
get fixed.  In the meantime, your best bet is to enter invalid POMs as
bugs in JIRA:

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

HTH,

Matt



 


Nico.


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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




 


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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


   




--
Stephen Duncan Jr
www.stephenduncanjr.com

-
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] quick way to exclude dependencies

2005-10-21 Thread Stephen Duncan
Note, I had already created: http://jira.codehaus.org/browse/MEV-108

Though you did a more thorough job. :)

-Stephen

On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:

 I've created http://jira.codehaus.org/browse/MEV-133 for this and
 attached poms that include optional tags.
 I also added provided scope for javax APIs.

 Stephen Duncan a écrit :

 Well, they ARE invalid, in that they should be putting
 optionaltrue/optional on many of those dependencies.
 
 -Stephen
 
 On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:
 
 
 But thos poms are NOT invalid :
 
 spring-web requires spring-core + beans + context, that themselves
 depends on lot's of tools that spring supports.
 
 My WEB-INF/lib has 44 jars, and I only require 10 of them.
 
 Another problem is that I cannot set exclusion at top level : I need to
 know what dependency has introduced some jar,  + detecte the groupId
 from the jar name (that can be != from artifactId)
 
 I'll take me lo'ts of time !
 
 Matt Raible a écrit :
 
 
 
 On 10/21/05, Nicolas De Loof [EMAIL PROTECTED] wrote:
 
 
 
 
 Hi,
 
 My webapp uses spring and transitive dependencies (that is a cool
 feature) adds tons of dependencies to my war.
 I have to setup lot's of exclusions rules... more than dependencies I
 have in my project !
 
 Is there any way to make this quicker, perhaps some regexp matching
 exclusion/inclusion rule ?
 
 
 
 
 The problem is primarily metadata and that it's not accurate in the
 dependeny POMs.  I agree with you whole-heartedly.  I've found that I
 have to exclude a *lot* from Hibernate, iBATIS, JDO and Display Tag.
 
 In an ideal world, we'd never have to put exclusions on any of our
 dependencies.  If enough users complain about this - hopefully it'll
 get fixed.  In the meantime, your best bet is to enter invalid POMs as
 bugs in JIRA:
 
 http://jira.codehaus.org/browse/MEV
 
 HTH,
 
 Matt
 
 
 
 
 
 Nico.
 
 
 This message contains information that may be privileged or confidential 
 and is the property of the Capgemini Group. It is intended only for the 
 person to whom it is addressed. If you are not the intended recipient,  
 you are not authorized to read, print, retain, copy, disseminate,  
 distribute, or use this message or any part thereof. If you receive this  
 message in error, please notify the sender immediately and delete all  
 copies of this message.
 
 
 -
 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]
 
 
 
 
 
 
 This message contains information that may be privileged or confidential 
 and is the property of the Capgemini Group. It is intended only for the 
 person to whom it is addressed. If you are not the intended recipient,  you 
 are not authorized to read, print, retain, copy, disseminate,  distribute, 
 or use this message or any part thereof. If you receive this  message in 
 error, please notify the sender immediately and delete all  copies of this 
 message.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 --
 Stephen Duncan Jr
 www.stephenduncanjr.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 This message contains information that may be privileged or confidential and 
 is the property of the Capgemini Group. It is intended only for the person to 
 whom it is addressed. If you are not the intended recipient,  you are not 
 authorized to read, print, retain, copy, disseminate,  distribute, or use 
 this message or any part thereof. If you receive this  message in error, 
 please notify the sender immediately and delete all  copies of this message.


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




--
Stephen Duncan Jr
www.stephenduncanjr.com

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



[Maven 2] Can't use archetypeArtifactId=maven-archetype-site

2005-10-21 Thread John E. Conlon
Thinking of moving my company's dev env from Ant to M2 so I while
working with the 'getting started guide' I encountered a problem with at
the 
How do I create documentation?
step.

I can't get the archetype:create working and I have tried variations on
the following: 


mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app3
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site

with fresh directories, projects, etc.

Here is the error that I get:

[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
determine the release version
  org.apache.maven.archetypes:maven-archetype-site:RELEASE:jar
 
 
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:528)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214)
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)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to determine the release version
  org.apache.maven.archetypes:maven-archetype-site:RELEASE:jar
 
 
at
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transformForResolve(ReleaseArtifactTransformation.java:50)
at
org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:40)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:104)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
at
org.apache.maven.archetype.DefaultArchetype.createArchetype(DefaultArchetype.java:98)
at
org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:144)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 more



thanks for any help,

John




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



[m2] Unit test includes

2005-10-21 Thread Richard Wallace

Hey everyone,

In m1 it was easy to exclude certain things from being run as test cases 
using:


   unitTest
 includes
   include**/*Test.java/include
 /includes
 excludes
   exclude**/Abstract*.java/exclude
 /excludes

I don't see anything similar in m2 and it's trying to run my 
HibernateDaoSupportTestCase which is an abstract base class for my Dao 
unit tests.  How can I exclude this from the tests being run?


Thanks,
Rich

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



Re: [m2] Unit test includes

2005-10-21 Thread Matt Raible
 build
defaultGoalpackage/defaultGoal
sourceDirectorysrc/sourceDirectory
testSourceDirectorytest/testSourceDirectory
plugins
plugin
artifactIdmaven-surefire-plugin/artifactId
configuration
excludes
exclude**/*TestCase.java/exclude
exclude**/*WebTest.java/exclude
/excludes
/configuration
/plugin

On 10/21/05, Richard Wallace [EMAIL PROTECTED] wrote:
 Hey everyone,

 In m1 it was easy to exclude certain things from being run as test cases
 using:

 unitTest
   includes
 include**/*Test.java/include
   /includes
   excludes
 exclude**/Abstract*.java/exclude
   /excludes

 I don't see anything similar in m2 and it's trying to run my
 HibernateDaoSupportTestCase which is an abstract base class for my Dao
 unit tests.  How can I exclude this from the tests being run?

 Thanks,
 Rich

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



MyEclipse 4 and Maven 2

2005-10-21 Thread Pilgrim, Peter

I have noticed that MyEclipse XML Edit flags the getting started guid pom.xml 
as invalid

Does Maven2 has a valid DOCTYPE definition?

project 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;
  modelVersion4.0.0/modelVersion
  groupIdcom.mycompany.app/groupId
  artifactIdmy-app/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameMaven Quick Start Archetype/name
  urlhttp://maven.apache.org/url
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
  /dependencies
/project

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Re: [ANN] Maven 2.0 Release Now Available

2005-10-21 Thread John Fallows
Congratulations on a job well done. :-)

Kind Regards,
John Fallows.

On 10/19/05, Brett Porter [EMAIL PROTECTED] wrote:
 We are pleased to announce that Maven 2.0 has been released, and is
 available for download from http://maven.apache.org/maven2/download.html

 Maven is a build system that provides software project management and
 dependancy comprehension. Based on the concept of a project object model
 (POM), Maven manages a project's build, reporting and documentation from
 a central place.

 Maven 2.0 is a rewrite of the popular Maven application, designed to
 both address previous functional requirements and provide a stable
 platform for extending and enhancing its build management framework.

 This release is significantly faster and smaller than Maven 1.0 and
 includes the following usability and performance improvements:

 * Enhanced Dependency Management - includes dependency closures
(transitive dependencies), version ranges, automatic build
numbering, and automatic updating on a configurable interval

 * Defined Build Lifecycle - developers can build any type of project
using standard commands such as compile, test and install

 * Unified Project Definition - manages all required build information in
a single POM now, including project information, dependencies and
plugin configuration

 * Extended Plugin Architecture - supports Java and scripting languages
such as Beanshell for plugin development

 * Better Repository Support - includes separated snapshot repositories,
a new more managable layout and per-project definitions of new
repositories

 * Expanded Reactor Operation - offers built-in support for multiple
projects (without the need to perform a full install cycle to compile
all projects) and support for project aggregation

 * New Site Management Tools - supports multiple input and output
formats, with input formats including wiki-like APT format and
docbook, while continuing to support traditional Maven XDoc and FAQ
format.

 * New Reporting API - offers a standardised method for producing project
information and reports

 * And much more...

 The Maven 2.0 release is considered stable and includes a Maven 1.0
 complete feature set, with additional functionality. The most popular
 Maven 1.0 plugins have been converted for Maven 2.0, and many more are
 available in beta.
 See http://docs.codehaus.org/pages/MAVEN/Maven+Plugin+Matrix for more
 information on particular plugins.

 Maven's advanced dependency management features rely on project
 metadata. If you are interested in improving support for the users of
 your project, see http://maven.apache.org/maven2/project-faq.html

 The Maven team would like to express thanks to the user and developer
 community for their beta testing, feedback and contributions that helped
 make the release possible!

 To get started with Maven now, see the getting started guide:
 http://maven.apache.org/maven2/guides/getting-started/index.html


 -
 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 - repository:bundle-create

2005-10-21 Thread Jason van Zyl
On Thu, 2005-10-20 at 18:35 -0700, Brett Porter wrote:
 no, it hasn't been released... Jason - maybe a quick alpha-1 release
 is in order?

Sure.

 On 10/20/05, Brian E. Fox [EMAIL PROTECTED] wrote:
  I'm trying the new repository bundle goal and I get the following error:
  [DEBUG] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
  'org.apache.m
  aven.plugins:maven-repository-plugin' does not exist or no valid version
  could b
  e found
 
 
  I cleared my repo just in case but it's not able to find the plugin. I
  don't see it even trying to look at central for it.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.

  -- Jacques Ellul, The Technological Society


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



Re: [m2] Unit test includes

2005-10-21 Thread Richard Wallace
Cool thanks.  I actually thought about checking the surefire plugin 
configuration right after I posted and that's exactly what I wound up doing.


The next question I have is if there is anyway to configure the unit 
tests to run forked in a separate directory.  Before, I had a 
project.properties file that specified


maven.junit.fork=true
maven.junit.dir=${maven.build.dir}/test

I also had a  post goal to create the ${maven.build.dir}/test directory 
as follows:


   postGoal name=test:prepare-filesystem
   mkdir dir=${maven.junit.dir} /
   /postGoal

The reason I have the unit tests running forked in a separate directory 
is for logging and so the console output doesn't go to the console but 
is instead captured in the test report.


Is there an equivalent way to do this?  Or even better, is there a 
better way to do this?


Matt Raible wrote:

 build
defaultGoalpackage/defaultGoal
sourceDirectorysrc/sourceDirectory
testSourceDirectorytest/testSourceDirectory
plugins
plugin
artifactIdmaven-surefire-plugin/artifactId
configuration
excludes
exclude**/*TestCase.java/exclude
exclude**/*WebTest.java/exclude
/excludes
/configuration
/plugin

On 10/21/05, Richard Wallace [EMAIL PROTECTED] wrote:
  

Hey everyone,

In m1 it was easy to exclude certain things from being run as test cases
using:

unitTest
  includes
include**/*Test.java/include
  /includes
  excludes
exclude**/Abstract*.java/exclude
  /excludes

I don't see anything similar in m2 and it's trying to run my
HibernateDaoSupportTestCase which is an abstract base class for my Dao
unit tests.  How can I exclude this from the tests being run?

Thanks,
Rich

-
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: MyEclipse 4 and Maven 2

2005-10-21 Thread Pilgrim, Peter
 -Original Message-
 From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
====

The actual error from the ``Eclipse Problems'' is

cvc-elt.1: Cannot find the declaration of element 'project'.
s
 
 I have noticed that MyEclipse XML Edit flags the getting 
 started guid pom.xml as invalid
 
 Does Maven2 has a valid DOCTYPE definition?
 
 project 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;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   nameMaven Quick Start Archetype/name
   urlhttp://maven.apache.org/url
   dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
 /dependency
   /dependencies
 /project
 
====
 
--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497



==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



RE: MyEclipse 4 and Maven 2 [SOLVED]

2005-10-21 Thread Pilgrim, Peter
 cvc-elt.1: Cannot find the declaration of element 'project'. 
Previous post was rubbish!

I upgraded to the newest Eclipse SDK to 3.1.1 and lost the MyEclipse
internet proxy settings in the process. In Eclipse set the proxy again

1. Windows - Preferences - MyEclipse - Internet Tools - Internet Proxy

2. On the ``pom.xml'' in the ``Package Explorer' right click on the icon
and select ``Validate XML File'', the error should disappear because
the plug-in can then finally download the Maven V4 XSD.

 -Original Message-
 From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
====
 
 
 I have noticed that MyEclipse XML Edit flags the getting 
 started guid pom.xml as invalid
 
 Does Maven2 has a valid DOCTYPE definition?
 
 project 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;
  modelVersion4.0.0/modelVersion
  groupIdcom.mycompany.app/groupId
  artifactIdmy-app/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameMaven Quick Start Archetype/name
  urlhttp://maven.apache.org/url
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
  /dependencies
/project
====

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



[m2] where to report broken links and typos in docs?

2005-10-21 Thread Ralph Pöllath

Hi,

I've noticed several broken links and typos while browsing the m2  
website. Is there a JIRA issue for stuff like that already, or should  
I create one? I'd rather avoid creating an issue for every single typo.


Cheers,
-Ralph.




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



Re: [m2] Can't exclude jdbc-stdext from JPOX

2005-10-21 Thread Matt Raible
Thanks Stephen - that worked.

Matt

On 10/21/05, Stephen Duncan [EMAIL PROTECTED] wrote:
 You might try adding the exclusion with the following:

   groupIdjdbc/groupId
   artifactIdjdbc-stdext/artifactId

 As that's how it looks in the JPOX pom.  Not sure if that would matter or 
 not...

 -Stephen

 On 10/21/05, Matt Raible [EMAIL PROTECTED] wrote:
  I'm trying to exclude jdbc-stdext (along with many others) from JPOX,
  but can't seem to get it to work.  I'm sure it's something small -
  maybe some more eyes on it will help.
 
  Here's my dependency declaration and exclusions:
 
  dependency
  artifactIdjpox/artifactId
  groupIdjpox/groupId
  version1.1.0-beta-1/version
  exclusions
  exclusion
  artifactIdcommons-dbcp/artifactId
  groupIdcommons-dbcp/groupId
  /exclusion
  exclusion
  artifactIdcommons-pool/artifactId
  groupIdcommons-pool/groupId
  /exclusion
  exclusion
  artifactIdjaas/artifactId
  groupIdjaas/groupId
  /exclusion
  exclusion
  artifactIdjca/artifactId
  groupIdjca/groupId
  /exclusion
  exclusion
  artifactIdjta/artifactId
  groupIdjta/groupId
  /exclusion
  exclusion
  artifactIdjunitour/artifactId
  groupIdjunitour/groupId
  /exclusion
  exclusion
   artifactIdjdbc-stdext/artifactId
  groupIdjavax.sql/groupId
  /exclusion
  exclusion
  artifactIdojdbc/artifactId
  groupIdojdbc/groupId
  /exclusion
  /exclusions
  /dependency
 
  Here's a snippet from my build process that shows it's still being used:
 
springmodules:springmodules-validator:jar:0.1 (selected)
  commons-validator:commons-validator:jar:1.1.3 (selected)
  commons-digester:commons-digester:jar:1.5 (selected)
commons-beanutils:commons-beanutils:jar:1.6 (selected)
  commons-logging:commons-logging:jar:1.0 (removed - nearer found: 
  1.0.4)
  commons-logging:commons-logging:jar:1.0 (selected)
  commons-collections:commons-collections:jar:2.0 (removed -
  nearer found: 2.1.1)
  commons-collections:commons-collections:jar:2.0 (selected)
commons-logging:commons-logging:jar:1.0 (removed - nearer found: 
  1.0.4)
commons-logging:commons-logging:jar:1.0 (selected)
xml-apis:xml-apis:jar:2.0.2 (selected)
commons-collections:commons-collections:jar:2.1 (removed -
  nearer found: 2.1.1)
commons-collections:commons-collections:jar:2.1 (selected)
jpox:jpox:jar:1.1.0-beta-1 (selected)
  commons-collections:commons-collections:jar:2.1.1 (setting scope
  to: compile)
  commons-collections:commons-collections:jar:3.1 (removed - nearer
  found: 2.1.1)
  commons-collections:commons-collections:jar:3.1 (selected)
  log4j:log4j:jar:1.2.8 (setting scope to: compile)
  log4j:log4j:jar:1.2.8 (selected)
  [artifact:dependencies] [WARNING]
  [artifact:dependencies]   This artifact has been relocated to
  javax.sql:jdbc-stdext:2.0.
  [artifact:dependencies]
 
  javax.sql:jdbc-stdext:jar:2.0 (selected)
log4j:log4j:jar:1.2.8 (removed - nearer found: 1.2.11)
log4j:log4j:jar:1.2.11 (selected)
 
  I'm using the antlib from M2, I get the same error when running mvn
  on my project.
 
  Thanks for any help,
 
  Matt
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Stephen Duncan Jr
 www.stephenduncanjr.com


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



[M2] Added J2EE jars but it doesn't find them in my local repository

2005-10-21 Thread Pete Thomas
I have followed the guide for adding the sun jars to my local
repository, and used the Maven recommeneded naming conventions

1)
mvn install:install-file -Dfile=D:\My Documents\downloads\Maven\3rd
party jars\sun J2ee 1.3\j2ee.jar -DgroupId=javax.j2ee
-DartifactId=j2ee -Dversion=13 -Dpackaging=jar

this created
repository\javax\j2ee\j2ee\13\j2ee-13.jar

Although the install copied the jar into a new directory, I noticed
there was no .pom file ?

2) changed my pom.xml for an ejb project
  dependency
  groupIdjavax.j2ee/groupId
  artifactIdj2ee/artifactId
  version1.3/version
  /dependency

I have tried with and without a manually created j2ee-13.pom file
but always get the following error ?


Any ideas ?

[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-ejb-plugin:maven-plugin:2.0
[DEBUG] maven-install-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-install-plugin:maven-plugin:2.0
[DEBUG] Retrieving parent-POM from the repository for project:
null:xdoclet-maven-plugin:maven-plugin:1.0
[DEBUG] root.project:m2-ejb:ejb:1.0-SNAPSHOT (selected for null)
[DEBUG] Trying repository central
Downloading: http://repo1.maven.org/maven2/javax/j2ee/j2ee/1.3/j2ee-1.3.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[DEBUG] Artifact not found - using stub model: Unable to download the
artifact from any repository
 javax.j2ee:j2ee:1.3:pom

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

[DEBUG] Using defaults for missing POM javax.j2ee:j2ee:pom:1.3
[DEBUG]   javax.j2ee:j2ee:jar:1.3 (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] m2component: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
root.project:m2component:jar:1.0-SNAPSHOT
[DEBUG] Skipping disabled repository central
[DEBUG] project: using locally installed snapshot
[DEBUG]   root.project:m2component:jar:1.0-SNAPSHOT (selected for compile)
[DEBUG] log4j:log4j:jar:1.2.8 (selected for compile)
[DEBUG] Trying repository central
Downloading: http://repo1.maven.org/maven2/javax/j2ee/j2ee/1.3/j2ee-1.3.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.

GroupId: javax.j2ee
ArtifactId: j2ee
Version: 1.3

Reason: Unable to download the artifact from any repository
 javax.j2ee:j2ee:1.3:jar

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


[INFO] 

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
download the artifact from any repository
 javax.j2ee:j2ee:1.3:jar

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

  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:528)
  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)

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



Re: [M2] Added J2EE jars but it doesn't find them in my local repository

2005-10-21 Thread Stephen Duncan
Looks like the problem is 13 vs 1.3

Run:

 mvn install:install-file -Dfile=D:\My Documents\downloads\Maven\3rd
party jars\sun J2ee 1.3\j2ee.jar -DgroupId=javax.j2ee
-DartifactId=j2ee -Dversion=1.3 -Dpackaging=jar

-Stephen

On 10/21/05, Pete Thomas [EMAIL PROTECTED] wrote:
 I have followed the guide for adding the sun jars to my local
 repository, and used the Maven recommeneded naming conventions

 1)
 mvn install:install-file -Dfile=D:\My Documents\downloads\Maven\3rd
 party jars\sun J2ee 1.3\j2ee.jar -DgroupId=javax.j2ee
 -DartifactId=j2ee -Dversion=13 -Dpackaging=jar

 this created
 repository\javax\j2ee\j2ee\13\j2ee-13.jar

 Although the install copied the jar into a new directory, I noticed
 there was no .pom file ?

 2) changed my pom.xml for an ejb project
   dependency
   groupIdjavax.j2ee/groupId
   artifactIdj2ee/artifactId
   version1.3/version
   /dependency

 I have tried with and without a manually created j2ee-13.pom file
 but always get the following error ?


 Any ideas ?

 [DEBUG] Retrieving parent-POM from the repository for project:
 null:maven-ejb-plugin:maven-plugin:2.0
 [DEBUG] maven-install-plugin: resolved to version 2.0 from repository central
 [DEBUG] Retrieving parent-POM from the repository for project:
 null:maven-install-plugin:maven-plugin:2.0
 [DEBUG] Retrieving parent-POM from the repository for project:
 null:xdoclet-maven-plugin:maven-plugin:1.0
 [DEBUG] root.project:m2-ejb:ejb:1.0-SNAPSHOT (selected for null)
 [DEBUG] Trying repository central
 Downloading: http://repo1.maven.org/maven2/javax/j2ee/j2ee/1.3/j2ee-1.3.pom
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 [DEBUG] Artifact not found - using stub model: Unable to download the
 artifact from any repository
  javax.j2ee:j2ee:1.3:pom

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

 [DEBUG] Using defaults for missing POM javax.j2ee:j2ee:pom:1.3
 [DEBUG]   javax.j2ee:j2ee:jar:1.3 (selected for compile)
 [DEBUG] Skipping disabled repository central
 [DEBUG] m2component: using locally installed snapshot
 [DEBUG] Retrieving parent-POM from the repository for project:
 root.project:m2component:jar:1.0-SNAPSHOT
 [DEBUG] Skipping disabled repository central
 [DEBUG] project: using locally installed snapshot
 [DEBUG]   root.project:m2component:jar:1.0-SNAPSHOT (selected for compile)
 [DEBUG] log4j:log4j:jar:1.2.8 (selected for compile)
 [DEBUG] Trying repository central
 Downloading: http://repo1.maven.org/maven2/javax/j2ee/j2ee/1.3/j2ee-1.3.jar
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Failed to resolve artifact.

 GroupId: javax.j2ee
 ArtifactId: j2ee
 Version: 1.3

 Reason: Unable to download the artifact from any repository
  javax.j2ee:j2ee:1.3:jar

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


 [INFO] 
 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
 download the artifact from any repository
  javax.j2ee:j2ee:1.3:jar

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

   at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:528)
   at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)

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




--
Stephen Duncan Jr
www.stephenduncanjr.com

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



RE: How to add html parser dependency?

2005-10-21 Thread Siegfried Heintze
OK, I've submitted my first bundle upload to JIRA for m1. I had the good
fortune to meet the great Scott Ryan in person last night when I learned
that I need to upload a second time with a different format to accommodate
m2.

Can someone point me to the m2 counterpart of
http://maven.apache.org/reference/repository-upload.html ? I did a google
search on http://maven.apache.org/maven2/ for upload and could not find
such a counterpart.

Thanks,
Siegfried


   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Carlos
   Sanchez
   Sent: Wednesday, October 19, 2005 3:45 PM
   To: Maven Users List
   Subject: Re: How to add html parser dependency?
  
   Hi,
  
   maven create-upload-bundle is to create a upload bundle from an
   existing maven project. If you want to upload a jar from a third
   party, you have to make a jar with three contents:
   - the jar file you want to upload
   - the license the jar is under (LICENSE.TXT)
   - project.xml, with that minimal information to make a more documented
  repo
  
   regards
  
   On 10/18/05, Siegfried Heintze [EMAIL PROTECTED] wrote:
I don't understand
   http://maven.apache.org/reference/repository-upload.html.
http://htmlparser.sourceforge.net/ does not have a LICENSE.TXT.
   
Where does the project.xml come from? Do I create a new empty
project
  with
maven genapp? Or does maven create it? OR do I create it with emacs?
 It
   does
not make sense to use my current project.
   
OK, so I tried maven create-upload-bundle in an empty temp
 directory.
Maven only created a target directory contain a bunch of empty
   directories
and no jar file.
  http://maven.apache.org/reference/repository-upload.html
explained that it would create a jar file -- it did not.
   
I'm confused.
   
Thanks,
Siegfried
   
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 18, 2005 10:41 PM
To: 'Maven Users List'
Subject: RE: How to add html parser dependency?
   
Yes this is the faster solution.
You can also follow the instructions given in [1] to upload it to
  ibiblio.
   
[1] http://maven.apache.org/reference/repository-upload.html
   
Arnaud
   
   
 -Message d'origine-
 De : Siegfried Heintze [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 19 octobre 2005 06:13
 À : 'Maven Users List'
 Objet : How to add html parser dependency?

 I'm looking for an HTML parser. I heard that
 http://java-source.net/open-source/html-parsers/html-parser
 is good. How do I add that to my maven 1 project? I don't see
 this in the mevenide repository browser. Do I have to
 manually download it and stick it in my local maven repository?

 Sieg



 -
 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]
   
   
  
   -
   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]
  
  
 
 
  --
  http://www.multitask.com.au/people/dion/
  You are going to let the fear of poverty govern your life and your
  reward will be that you will eat, but you will not live. - George
  Bernard Shaw
 
  -
  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]


 -
 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: How to add html parser dependency?

2005-10-21 Thread Ralph Pöllath

On 21.10.2005, at 19:09, Siegfried Heintze wrote:
OK, I've submitted my first bundle upload to JIRA for m1. I had the  
good
fortune to meet the great Scott Ryan in person last night when I  
learned
that I need to upload a second time with a different format to  
accommodate

m2.

Can someone point me to the m2 counterpart of
http://maven.apache.org/reference/repository-upload.html ? I did a  
google
search on http://maven.apache.org/maven2/ for upload and could  
not find

such a counterpart.


Does this help?
http://maven.apache.org/maven2/guides/mini/guide-ibiblio-upload.html

Cheers,
-Ralph.


Thanks,
Siegfried




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of


Carlos


Sanchez
Sent: Wednesday, October 19, 2005 3:45 PM
To: Maven Users List
Subject: Re: How to add html parser dependency?

Hi,

maven create-upload-bundle is to create a upload bundle from an
existing maven project. If you want to upload a jar from a third
party, you have to make a jar with three contents:
- the jar file you want to upload
- the license the jar is under (LICENSE.TXT)
- project.xml, with that minimal information to make a more  
documented



repo



regards

On 10/18/05, Siegfried Heintze [EMAIL PROTECTED] wrote:


I don't understand


http://maven.apache.org/reference/repository-upload.html.


http://htmlparser.sourceforge.net/ does not have a LICENSE.TXT.

Where does the project.xml come from? Do I create a new empty


project


with

maven genapp? Or does maven create it? OR do I create it with  
emacs?



It


does


not make sense to use my current project.

OK, so I tried maven create-upload-bundle in an empty temp


directory.


Maven only created a target directory contain a bunch of empty


directories


and no jar file.


http://maven.apache.org/reference/repository-upload.html


explained that it would create a jar file -- it did not.

I'm confused.

Thanks,
Siegfried

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 18, 2005 10:41 PM
To: 'Maven Users List'
Subject: RE: How to add html parser dependency?

Yes this is the faster solution.
You can also follow the instructions given in [1] to upload it to


ibiblio.



[1] http://maven.apache.org/reference/repository-upload.html

Arnaud




-Message d'origine-
De : Siegfried Heintze [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 19 octobre 2005 06:13
À : 'Maven Users List'
Objet : How to add html parser dependency?

I'm looking for an HTML parser. I heard that
http://java-source.net/open-source/html-parsers/html-parser
is good. How do I add that to my maven 1 project? I don't see
this in the mevenide repository browser. Do I have to
manually download it and stick it in my local maven repository?

Sieg





-


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]





--- 
--

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]






--
http://www.multitask.com.au/people/dion/
You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live. - George
Bernard Shaw

 
-

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]


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





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

Re: [M2] Added J2EE jars but it doesn't find them in my local repository

2005-10-21 Thread Brill Pappin
You are not depending on the same version your installed version 13 and
reference 1.3.

- Brill Pappin

On 10/21/05, Pete Thomas [EMAIL PROTECTED] wrote:

 I have followed the guide for adding the sun jars to my local
 repository, and used the Maven recommeneded naming conventions

 1)
 mvn install:install-file -Dfile=D:\My Documents\downloads\Maven\3rd
 party jars\sun J2ee 1.3\j2ee.jar -DgroupId=javax.j2ee
 -DartifactId=j2ee -Dversion=13 -Dpackaging=jar

 this created
 repository\javax\j2ee\j2ee\13\j2ee-13.jar

 Although the install copied the jar into a new directory, I noticed
 there was no .pom file ?

 2) changed my pom.xml for an ejb project
 dependency
 groupIdjavax.j2ee/groupId
 artifactIdj2ee/artifactId
 version1.3/version
 /dependency

 I have tried with and without a manually created j2ee-13.pom file
 but always get the following error ?


 Any ideas ?

 [DEBUG] Retrieving parent-POM from the repository for project:
 null:maven-ejb-plugin:maven-plugin:2.0
 [DEBUG] maven-install-plugin: resolved to version 2.0 from repository
 central
 [DEBUG] Retrieving parent-POM from the repository for project:
 null:maven-install-plugin:maven-plugin:2.0
 [DEBUG] Retrieving parent-POM from the repository for project:
 null:xdoclet-maven-plugin:maven-plugin:1.0
 [DEBUG] root.project:m2-ejb:ejb:1.0-SNAPSHOT (selected for null)
 [DEBUG] Trying repository central
 Downloading:
 http://repo1.maven.org/maven2/javax/j2ee/j2ee/1.3/j2ee-1.3.pom
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 [DEBUG] Artifact not found - using stub model: Unable to download the
 artifact from any repository
 javax.j2ee:j2ee:1.3:pom

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

 [DEBUG] Using defaults for missing POM javax.j2ee:j2ee:pom:1.3
 [DEBUG] javax.j2ee:j2ee:jar:1.3 (selected for compile)
 [DEBUG] Skipping disabled repository central
 [DEBUG] m2component: using locally installed snapshot
 [DEBUG] Retrieving parent-POM from the repository for project:
 root.project:m2component:jar:1.0-SNAPSHOT
 [DEBUG] Skipping disabled repository central
 [DEBUG] project: using locally installed snapshot
 [DEBUG] root.project:m2component:jar:1.0-SNAPSHOT (selected for compile)
 [DEBUG] log4j:log4j:jar:1.2.8 (selected for compile)
 [DEBUG] Trying repository central
 Downloading:
 http://repo1.maven.org/maven2/javax/j2ee/j2ee/1.3/j2ee-1.3.jar
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 GroupId: javax.j2ee
 ArtifactId: j2ee
 Version: 1.3

 Reason: Unable to download the artifact from any repository
 javax.j2ee:j2ee:1.3:jar

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


 [INFO]
 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
 download the artifact from any repository
 javax.j2ee:j2ee:1.3:jar

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

 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:528)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:469)

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




eclipse plugin (project) dependencies

2005-10-21 Thread Brill Pappin
When working with multiple projects all working together, you used to be
able to add the property: eclipse.dependencytrue/eclipse.dependency to a
dependency and the eclipse plugin would reference the dependency as and
eclipse project instead of a jar in the repository.

That feature doesn't seem to have made it into the m2 eclipse plugin or at
least is not documented... so how do I specify that a dependency should be
referenced as a project?

- Brill Pappin


M1 documentation

2005-10-21 Thread Grant Ingersoll
When I click the Maven 1.0 link on maven.apache.org site it takes me 
to maven.apache.org, which is now dedicated to 2.0. 

If I type in maven.apache.org/maven1 (wild guess), it takes me to a page 
not found, but I then notice on the left menu all of the old, familiar 
Maven 1.0 links, which allows me to get at the documentation I want anyways.


At any rate, is there a link for the M1 documentation somewhere that 
works that I am missing?



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



Re: M1 documentation

2005-10-21 Thread Lukas Theussl
The maven site is currently being restructured (as you noticed), a lot 
of links are temporarily broken. The maven 1 site should end up here:


http://maven.apache.org/maven-1.x/

but there are some broken links there too at the moment. Please be 
patient, the bulk of these issues should be resolved in the coming days 
(hours?).


-Lukas


Grant Ingersoll wrote:
When I click the Maven 1.0 link on maven.apache.org site it takes me 
to maven.apache.org, which is now dedicated to 2.0.
If I type in maven.apache.org/maven1 (wild guess), it takes me to a page 
not found, but I then notice on the left menu all of the old, familiar 
Maven 1.0 links, which allows me to get at the documentation I want 
anyways.


At any rate, is there a link for the M1 documentation somewhere that 
works that I am missing?



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

2005-10-21 Thread Brett Porter
fixed

On 10/21/05, Grant Ingersoll [EMAIL PROTECTED] wrote:
 When I click the Maven 1.0 link on maven.apache.org site it takes me
 to maven.apache.org, which is now dedicated to 2.0.

 If I type in maven.apache.org/maven1 (wild guess), it takes me to a page
 not found, but I then notice on the left menu all of the old, familiar
 Maven 1.0 links, which allows me to get at the documentation I want anyways.

 At any rate, is there a link for the M1 documentation somewhere that
 works that I am missing?


 -
 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] where to report broken links and typos in docs?

2005-10-21 Thread Jorg Heymans

Ralph Pöllath wrote:
 
 I've noticed several broken links and typos while browsing the m2 
 website. Is there a JIRA issue for stuff like that already, or should  I
 create one? I'd rather avoid creating an issue for every single typo.

From what I've gathered, the developers are aware of the mess up wrt
broken links.

Jorg


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



Re: [Maven 2] Can't use archetypeArtifactId=maven-archetype-site

2005-10-21 Thread Jorg Heymans

John E. Conlon wrote:

 mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app3
 -DarchetypeGroupId=org.apache.maven.archetypes
 -DarchetypeArtifactId=maven-archetype-site
 
 with fresh directories, projects, etc.
 
 Here is the error that I get:
 
 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
 determine the release version
   org.apache.maven.archetypes:maven-archetype-site:RELEASE:jar

 

- If you look at the plugin docs [1], you'll see that m2 defaults to
version RELEASE for all archetypes.

- Now maven complains that it can't find this version, so your best bet
is to go and have a look on the repository itself [2] to see what
versions are available there for this particular archetype. You will see
there that only 1.0-alpha-2 is available.

Solution : add -DarchetypeVersion=1.0-alpha-2 to your commandline.

HTH
Jorg

[1]
http://maven.apache.org/maven2/plugins/maven-archetype-plugin/create-mojo.html
[2]
http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-site/


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



Re: [m2] antlib [ERROR] Nonexistent component

2005-10-21 Thread Xavier Toth
Apparently this is how you will be told about things like syntax errors in
your pom file :( not very helpful.

On 10/21/05, Xavier Toth [EMAIL PROTECTED] wrote:

 What is a 'component' in this context? This class exists in the
 maven-artifact-ant-2.0-dep.jar.

 [artifact:pom] [ERROR] Nonexistent component:
 org.apache.maven.usability.diagnostics.ErrorDiagnostics

 ?xml version=1.0 ?
 project name=MessageClient default=build basedir=.
 xmlns:artifact=urn:maven-artifact-ant
 echo message=Building MessageClient jar/
 typedef resource=org/apache/maven/artifact/ant/antlib.xml
 uri=urn:maven-artifact-ant
 classpath
 pathelement location=../../lib/maven-artifact-ant-2.0-dep/maven-
 artifact-ant-2.0-dep.jar /
 /classpath
 /typedef

 artifact:pom id=maven.project file=pom.xml /




antlib task problems

2005-10-21 Thread Xavier Toth
Properties and references created by the pom and dependencies tasks don't
persist across ant/subant task invocations.


[m2] To do a plugin with beanshell

2005-10-21 Thread Herve AGNOUX
Hi,

I'a trying to do  Writing Beanshell Plugins for Maven 
2.0 
(http://blogs.codehaus.org/people/brett/archives/001090_writing_beanshell_plugins_for_maven_20.html)

But I have not found org.apache.maven.script.beanshell.BeanshellMojoAdapter, 
in the jars of maven. 

Where it is ?

Is there other documentation about plugin with beanshell ?

Thanks.


-- 
SARL diaam informatique - 04 77 25 43 28
Ingenierie, développements de systèmes d'information
http://www.diaam-informatique.com

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



maven2: repackage/merge war's

2005-10-21 Thread Mikael Wikström
I have a bundle of war files, one main and a number of sub-projects all 
containing jar's/properties/html/xsl and more, that I want to 
merge/repack into a single war (or simply deploy into a container as a 
single webapp). Has anyone solved this problem before? I'm trying to 
solve it with the assembly plugin but it's not a very simple nor clean 
solution.



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



Pulling API and SRC Jars from Repos

2005-10-21 Thread Sal Campana
Are there any plans to add support of optionally specifying API and SRC jars
for a given dependency?

We've built a plugin to do this, and then update our IDE, but its not
standard...but if it were standard in Maven (extra xml tags?) then all the
IDE plugins would support it

Based on this page:

*http://docs.codehaus.org/pages/viewpage.action?pageId=22230*

It seems the classifier attribute can be used to associate src and api jars
with a regular jar dependency. It shows *javasrc and *javadoc...

Will the extensions be standardized?

It seems that if Maven would standardize how these things are defined, then
generic plugins could be made for the IDEs which can take advantage of this.


Thx!


Re: org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve plugin dependencies

2005-10-21 Thread Brett Porter
do you still get this with 2.0?

- Brett

On 10/18/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Nope. I use m2 beta 3. This is the error that i get when i run m2 -X
 install. Also, as i said, it used to work for me without changing any proxy
 settings.

 [DEBUG] 
 org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.0(selected
 for runtime)
 [DEBUG] commons-io:commons-io:jar:1.0 (selected for runtime)
 [DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [DEBUG] com.mycompany.app:my-app:jar:1.0-SNAPSHOT (selected for null)
 [DEBUG] 
 org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0(selected
 for runtime)
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Diagnosis: Error configuring:
 org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve
 plugin dependencies
 [INFO]
 
 [DEBUG] Trace:

 org.apache.maven.plugin.MojoExecutionException: Error configuring plugin for
 execution of 'compiler:compile'.
 at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:390)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:554)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:508)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:494)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:307)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:149)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
 :85)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
 :58)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:60)
 at java.lang.reflect.Method.invoke(Method.java:391)
 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)
 Caused by: org.apache.maven.plugin.PluginConfigurationException: Error
 configuring: org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot
 resolve plugin dependencies
 at
 org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
 (DefaultPluginManager.java:641)
 at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
 DefaultPluginManager.java:532)
 at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:385)
 ... 16 more
 Caused by:
 org.apache.maven.artifact.resolver.TransitiveArtifactResolutionException:
 Unable to read the metadata file
 org.codehaus.plexus:plexus-compiler-api:1.5.1:jar

 from the specified remote repositories:
 snapshots (http://snapshots.maven.codehaus.org/maven2),
 central (http://repo1.maven.org/maven2)
 Path to dependency:
 1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0


 at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(
 DefaultArtifactCollector.java:270)
 at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(
 DefaultArtifactCollector.java:69)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
 (DefaultArtifactResolver.java:225)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
 (DefaultArtifactResolver.java:213)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
 (DefaultArtifactResolver.java:184)
 at
 org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
 (DefaultPluginManager.java:606)
 ... 18 more
 Caused by:
 org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException:
 Unable to read the metadata file
 at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(
 MavenMetadataSource.java:121)
 at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(
 DefaultArtifactCollector.java:255)
 ... 23 more
 Caused by: org.apache.maven.project.ProjectBuildingException: Failed to
 build model from file '/opt/java/maven-2.0-beta-3
 /repo/org/codehaus/plexus/plexus-compiler-api/1.5.1/plexus-
 compiler-api-1.5.1.pom'.
 Error: 'null'
 at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(
 DefaultMavenProjectBuilder.java:944)
 at
 

Re: *** Spam *** Re: Outstanding questions (Documentation)

2005-10-21 Thread Brett Porter
That, the LifecycleExecutor and the ProjectSorter are probably the
things you are interested in WRT the reactor.

- Brett

On 10/18/05, Brian Bonner [EMAIL PROTECTED] wrote:
 Thanks.  The plugin-expressions are very helpful.

 Can you point me in the general direction for the reactor in svn?  I
 only found the ReactorManager here:
 http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/?rev=326250

 I looked through your docs.  for some reason it was colored like I had
 already visited it.  I must have clicked on it by accident.

 Thanks again.

 Brian

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



Re: [m2] Empty dependency list in antlib

2005-10-21 Thread Brett Porter
Please file a bug. The behaviour was added so that it didn't include
every file in the directory when there were none, but we could
certainly add an illegal include instead.

- Brett

On 10/18/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I created a generic (for me) build script lib in ant that has the following:

 artifact:dependencies verbose=true useScope=runtime
 pathId=project.classpath.core filesetId=project.classpath.fileset
 artifact:pom file=pom.xml /
 artifact:remoteRepository
 url=${project.remoteRepository} /
 /artifact:dependencies

 But if none are found for runtime I get the following -

 C:\development\common.xml:24: No files specified for filelist.
 at org.apache.tools.ant.types.FileList.getFiles(FileList.java:132)
 at org.apache.tools.ant.types.Path.list(Path.java:339)
 at org.apache.tools.ant.types.Path.list(Path.java:325)
 at org.apache.tools.ant.types.Path.list(Path.java:325)
 at org.apache.tools.ant.types.Path.addExisting(Path.java:258)
 at org.apache.tools.ant.types.Path.addExisting(Path.java:247)
 at
 org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:564)
 at
 org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.getCom
 pileClasspath(DefaultCompilerAdapter.java:141)
 at
 org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupJ
 avacCommandlineSwitches(DefaultCompilerAdapter.java:163)
 at
 org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupM
 odernJavacCommandlineSwitches(DefaultCompilerAdapter.java:296)
 at
 org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupM
 odernJavacCommand(DefaultCompilerAdapter.java:341)
 at
 org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:
 47)
 at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
 at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
 at
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at
 org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
 at
 org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
 cutor.java:40)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
 at org.apache.tools.ant.Main.runBuild(Main.java:668)
 at org.apache.tools.ant.Main.startAnt(Main.java:187)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


 Is this illegal/wrong?  How would I make my dependencies generic enough so
 that I can pick them up if they exist, like I can do in ant?  Something
 ala -

 project
 target name=test
 fileset id=a dir=.
 include name=*.idontexist/
 /fileset

 javac
 src path=./
 classpath refid=a/
 /javac
 /target
 /project


 -s




 -
 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: repackage/merge war's

2005-10-21 Thread jerome lacoste
[Copying Nicolas who asked me about the exact same thing]

On 10/21/05, Mikael Wikström [EMAIL PROTECTED] wrote:
 I have a bundle of war files, one main and a number of sub-projects all
 containing jar's/properties/html/xsl and more, that I want to
 merge/repack into a single war (or simply deploy into a container as a
 single webapp). Has anyone solved this problem before? I'm trying to
 solve it with the assembly plugin but it's not a very simple nor clean
 solution.

Mikael:

1- I've posted about the exact same thing earlier about 8 hours ago on
the same list. You may want to monitor that email thread. The email
was titled using assembly to repackage a war.

2- as described in my email (and the issue I opened here [1]) I am
hitting an issue using the assembly to package wars. I was told on IRC
#maven that the assembly is not to be used for war packaging, but to
me it's currently the cleanest solution. I will probably investigate
the issue. Feel free to track the issue as well.

3- As Nicolas asked me, you will find below the scripts I am using to
do a simple bundling.

The use case is the following: one war and 2 zips produced. The zip
files contain webstart applications. I want to unzip the zip files in
the correct place in the webapp.

4- Would be happy to know from both Nicolas and you what are your
exact use cases. If fixing the assembly plugin to support war assembly
is not an option, we might need to create a new goal for the war
plugin.

[1] http://jira.codehaus.org/browse/MNG-1274

Cheers,

Jerome
the pom.xml

?xml version=1.0?
project
  modelVersion4.0.0/modelVersion
  parent[...]   /parent
  artifactIdfull-webapp/artifactId
  packagingpom/packaging
   [...]

  dependencies

dependency
  groupIdmyproject/groupId
  artifactIdwebapp/artifactId
  version${version}/version
  typewar/type
/dependency

dependency
  groupIdmyproject/groupId
  artifactIdwebstart1/artifactId
  version${version}/version
  typezip/type
/dependency

dependency
  groupIdmyproject/groupId
  artifactIdwebstart2/artifactId
  version${version}/version
  typezip/type
/dependency

  /dependencies

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-assembly-plugin/artifactId
executions
   execution
  phaseinstall/phase !-- note: this doesn't work right now --
   /execution
/executions
configuration
  descriptorsrc/assemble/main.xml/descriptor
/configuration
  /plugin
/plugins
  /build

/project

the assembly

assembly
  idmain/id
  formats
formatwar/format
  /formats
  includeBaseDirectoryfalse/includeBaseDirectory
  dependencySets
dependencySet
  outputDirectory//outputDirectory
  includes
includemyproject:webapp/include
  /includes
  unpacktrue/unpack
  scoperuntime/scope
/dependencySet
dependencySet
  outputDirectorywebapp1/outputDirectory
  includes
includemyproject:webapp1/include
  /includes
  unpacktrue/unpack
  scoperuntime/scope
/dependencySet
dependencySet
  outputDirectorywebapp2/outputDirectory
  includes
includemyproject:webapp2/include
  /includes
  unpacktrue/unpack
  scoperuntime/scope
/dependencySet
  /dependencySets
/assembly

That's pretty simple.

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



Re: [m2] writing a Mojo for a plugin that requires Reports to have been run

2005-10-21 Thread Brett Porter
I see. This capability is not really available right now other than by
correctly ordering them in the POM. Please file a JIRA issue.

-Brett

On 10/19/05, David Sag [EMAIL PROTECTED] wrote:


 Hmm sorry we seem to be t cross-purposes here.

 All I want to do is to ensure that the various reports have been run. I
 don't need to access the liost of registered reports specifically. unless i
 suppose i wish to check from within my mojo that the other reports have been
 run. i am probably just failing to understand you properly.

 Kind regards,
 Dave Sag






 Brett Porter [EMAIL PROTECTED] wrote on 20/10/2005 03:09:30 AM:

  It's not a dummy parameter, it's the parameter that will give you the
  reports. Without it, how do you hope to access the list of registered
  reports at all?
 
  - Brett
 
  On 10/18/05, David Sag [EMAIL PROTECTED] wrote:
  
  
   What I need is acccess to the various checkstyle (etc) reports in an
 xml
   format.
  
   what you describe below doesn't seem appropriate to me. My parameters
   already have various expressions and default values but i do need to
 ensure
   that the checkstyle (etc) plugins have already been run, before
 myplugin is
   run.
  
   requiresReports is a goal-wide setting, not specific to a parameter,
 so i
   guess what i am assking is
  
   1) what is that tag actually for
   2) how to set it to true
  
   if you are saying that to set that tag to true i need to create a
 dummy
   parameter with @parameter expression=${reports} set then i really
 feel
   that's a very stupid hack.
  
   why not just let me set @requiresReports in the very top of my mojo
 where
   the @goal, @phase and @requiresDependencyResolution tags live.
  
   Kind regards,
   Dave Sag
  
  
  
  
  
  
   Brett Porter [EMAIL PROTECTED] wrote on 18/10/2005 04:58:26 AM:
  
You need to use the reports, so declare:
   
@parameter expression=${reports}
   
That will trigger it. But are you sure you relly need access to the
   reports?
That's generally only for the site plugin.
   
The aggregator tag causes the mojo not to be run for subprojects,
   instead it
is run at the root and you have access to ${reactorProjects}
   
On 10/17/05, David Sag [EMAIL PROTECTED] wrote:


 Hi all,

 I am writing an M2 plugin for QALab. QALab aggregates the reports
 from
 other plugins such as checkstyle etc.

 In my plugin.xml file there is a tag
 requiresReportsfalse/requiresReports and so I guessed that
 setting

 @requiresReports

 at the to of my Mojo would change this flat to true when i
 regenerate
   the
 plugin.xml file. but it does not.

 also while I am at it, I am curious as to the role of the
 aggregator
   tag

 Kind regards,
 Dave Sag





  



Re: [m2 m1]Inject POM values into application

2005-10-21 Thread Brett Porter
I think there is an open bug for including the information in the
manifest - the same solution would be required to enable this.

- Brett

On 10/19/05, Vincent Massol [EMAIL PROTECTED] wrote:


  -Original Message-
  From: David Jackman [mailto:[EMAIL PROTECTED]
  Sent: mercredi 19 octobre 2005 18:37
  To: Maven Users List
  Subject: RE: [m2  m1]Inject POM values into application
 
  In m2, you just turn filtering on for resources in your pom.  Assuming
  you've put the files being filtered in the default place
  (src/main/resources), you may not have anything about resources in your
  pom already, so you'll need to add everything about this resource
  directory:
  project
...
build
  resources
resource
  directorysrc/main/resources/directory
  filteringtrue/filtering
/resource
  /resources
/build
  /project
  With that, any resource file that contains ${pom.version} will replace
  that text with the value from the version element of the pom.  The same
  is true for other values in the pom.  I don't think values from
  settings.xml are available, however.  Someone else can correct me if I'm
  wrong.

 Agreed, this would solve one use case.

 However imagine the case where you have a SNAPSHOT version. When you release
 something you want that version to be resolved to a timestamp. Thus if
 you're putting this version on say a web page (hint: continuum's web page)
 you'd like to see the resolved timestamp value and not the SNAPSHOT.

 Any idea how to do this?

 Thanks
 -Vincent


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



build release process using maven

2005-10-21 Thread Shukla, Sanjay

I am trying to use maven for our build process, migrating from ant and other 
script files that do our build currently

For deploying to an environment these are the steps that were taken.

1.  Tag the release
2.  run a script that would create a list of release differences with 
respect to previous tag and current tag
3.  build and Deploy to production
4.  Send out notifications from  result of step 3.

I  have been able to use maven to perform the step 3 and I know 4 can be done.

I am not able to find out the plugin to perform step 1 and step 2. Step 2 can 
be performed using the ant cvstagdiff ant task, is there a similar plugin for 
maven.

Thanks for your feedback!

-barry

-
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: lifecycle documentation - inherited execution

2005-10-21 Thread Brett Porter
On 10/20/05, jerome lacoste [EMAIL PROTECTED] wrote:
 Is this due to this inheritance? Is there a way to change that?

yes, and no. That's by design to ensure the ordering is consistent.

 I am trying to add some files to the war directory before the war gets
 packaged. If my plugin runs after the war one, it's too late.

sounds like you are processing resources and should use that phase instead.

- Brett

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



Re: plugin configuration execution seem to have different parameter values

2005-10-21 Thread Brett Porter
Its because the base class is not in your plugin, so the annotations
can not be read.

We generally don't encourage this form of reuse across plugins (ie we
prefer composition over inheritence).

- Brett

On 10/20/05, jerome lacoste [EMAIL PROTECTED] wrote:
 On 10/20/05, jerome lacoste [EMAIL PROTECTED] wrote:
  When I mark the following plugin in phase package, it works OK.
  When I mark it in a phase before 'package' (e.g. compile), project
  parameter is null while the debug log shows that the configuration was
  done properly.
 
  If I add a @required, same thing.
 
  Here's the mojo:
 
   * @phase package
   * @requiresProject
   */
  public class JnlpMojo
  extends AbstractWarMojo
  {
 

 I've found a work-around. Althought the abstract base class defines a
 project parameter, it isn't visible in my plugin. I thus create a new
 parameter, project2 which is now visible.

 The following code:

 getLog().debug( project  + this.getProject() ); // from base class
 getLog().debug( project2  + this.project2 );

 will display:

 [DEBUG] project null
 [DEBUG] project2 [EMAIL PROTECTED]

 This loooks like an m2 bug.

 I don't understand why, because the WarMojo does exactly the same thing.
 Maybe because I have a different package name than the base class?
 Why does it work with the package phase?

 Cheers,

 jerome

 -
 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] installation instructions incorrect (windows)

2005-10-21 Thread Brett Porter
This worked for me. What is your version of Windows?

- Brett

On 10/20/05, Wim Deblauwe [EMAIL PROTECTED] wrote:
 Hi,

 I just followed the installation instructions on
 http://maven.apache.org/maven2/download.html, but they are incorrect. If I
 follow then I get an error that M2_HOME is not set properly. It printed:

 M2_HOME = C:\Program Files\Apache Software Foundation\maven-
 2.0\bin\mvn.bat\..

 although I did not set M2_HOME.

 I did the following to rectify this:

 created env. var. M2_HOME = C:\Program Files\Apache Software
 Foundation\maven-2.0

 adjusted PATH = ... old path... ;%M2_HOME%\bin

 regards,

 Wim



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



Re: [m2] Exception running site:site

2005-10-21 Thread Brett Porter
The issue has been fixed in SVN, it's just waiting for the
project-info-reports plugin to be released.

- Brett

On 10/20/05, Kees de Kooter [EMAIL PROTECTED] wrote:
 Sorry Brett,

 I just installed maven 2 (congrats with the release!) but the error is
 still happening:

 [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
 [INFO] Generate Dependencies report.
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] null
 [INFO] 
 
 [INFO] Trace
 java.lang.ClassCastException
 at 
 org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.mergeMetadata(DefaultRepositoryMetadataManager.java:142)
 at 
 org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:115)
 at 
 org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:62)
 at 
 org.apache.maven.artifact.transform.SnapshotTransformation.transformForResolve(SnapshotTransformation.java:60)
 at 
 org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:40)
 at 
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:104)
 at 
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
 at 
 org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:380)
 at 
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:346)
 at 
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:332)
 at 
 org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.getMavenProjectFromRepository(DependenciesReport.java:347)
 at 
 org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.renderBody(DependenciesReport.java:232)
 at 
 org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
 at 
 org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:147)
 at 
 org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:117)
 at 
 org.apache.maven.doxia.DoxiaMojo.generateReportsPages(DoxiaMojo.java:807)
 at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:321)
 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.executeStandaloneGoal(DefaultLifecycleExecutor.java:482)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452)
 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: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)


 On 10/13/05, Brett Porter [EMAIL PROTECTED] wrote:
  In the next couple of days. We have a release coming up.
 
  - Brett
 

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



m1 - Problems with checkstyle

2005-10-21 Thread Angel Andres Fungueiro
Hi.

I'm generating checkstyle reports with Maven 1.0 and works fine.
But when using the property maven.checkstyle.properties ( or
maven.checkstyle.propertiesURL) to specify a custom check set, it
fails giving the next error message:

..
checkstyle:report:
checkstyle:run:
[echo] Using file:/opt/maven-1.0.2/esidif_checks.xml for checkstyle ...

BUILD FAILED
File.. 
/home/webmaster/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
Element... maven:reactor
Line.. 103
Column 9
Unable to obtain goal [site] --
/home/webmaster/.maven/cache/maven-checkstyle-plugin-2.5/plugin.jelly:144:63:
ant:checkstyle Unable to create a Checker: unable to find
file:/opt/maven-1.0.2/esidif_checks.xml
Total time: 12 seconds

Can anyone help me?

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



Re: [m2] Working with project versions

2005-10-21 Thread Brett Porter
Yep, that's correct.

On 10/20/05, Piotr Bzdyl [EMAIL PROTECTED] wrote:
 Hi,

 I would like to make sure that I understand maven 2 philosophy
 correctly. This is how I work with versions and SVN now:

 1. Working with version 1.0-SNAPSHOT in svn.myhost.com/projectA/trunk
 2. I want to release stable version so I use mvn release:prepare and mvn
 release:perform using as tagBase svn.myhost.com/projectA/tags and tag
 name projectA-1.0. This step creates artifacts with version 1.0.
 3. I change my pom.xml files setting new working version, ie. 1.1-SNAPSHOT.
 4. If I want to release next stable version I start from point 2.

 Is this above correct?

 Best regards,
 Piotrek

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



  1   2   >