Re: [PLEASE TEST] Maven 2.0.10-RC10

2008-08-26 Thread Peter Horlock
1.5 and 1.5, and yes, it's working with Maven 2.09.

Sorry, the code of my company is classified, I can't provide a testcase.


Re: [PLEASE TEST] Maven 2.0.10-RC10

2008-08-26 Thread Paul Benedict
Peter,

The Maven team isn't asking for your source code. The request is to
provide a project -- any project -- that demonstrates the failure.
Just create a mock project that helps rear the head of the ugly error.

Paul

On Tue, Aug 26, 2008 at 1:24 AM, Peter Horlock
[EMAIL PROTECTED] wrote:
 1.5 and 1.5, and yes, it's working with Maven 2.09.

 Sorry, the code of my company is classified, I can't provide a testcase.


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



Re: JavaDoc-Report crashes with TestNG

2008-08-26 Thread WolfgangRoessler

Hi Brett,

that works. If I set the scope to compile (or the default), the
javadoc-generation works. Another solution is to configure a report without
test-classes:
reportSets
reportSet
reports
reportjavadoc/report
/reports
/reportSet
/reportSets   

Thanks and greets
Wolfgang


Brett Porter wrote:
 
 That looks like a bug in the javadoc plugin that it isn't using test
 scoped dependencies for the test javadoc (if you change the scope of
 testng to compile or runtime, does it work even though it is not
 correct?)
 
 I'm not sure about the doclet exception - looks like a javadoc error -
 does running javadoc standalone work?
 
 - Brett
 
 2008/8/26 WolfgangRoessler [EMAIL PROTECTED]:

 Unfortunately this doesn't work, too.

 Here are some snippets of my pom:
  dependencies
dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.8/version
classifierjdk15/classifier
scopetest/scope
/dependency
  /dependencies
  reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
source1.6/source
aggregatetrue/aggregate
/configuration
/plugin
/plugins
  reporting

 And here part of the error messages (debug-mode):
 While building project:
 Group-Id: prototype.codequality
 Artifact-Id: top
 Version: 0.0.1-SNAPSHOT
 From file: S:\src\Exploratory Prototypes\CodeQualityTools\src\top\pom.xml
 Reason: Error during page generation

 org.apache.maven.doxia.siterenderer.RendererException: Error rendering
 Maven
 report: Exit code: 1 - S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\top-module1\src\test\java\codequality\top\module1\TestClassInModule1.java:3:
 package org.testng does not exist
 import org.testng.Assert;
 ^
 S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\top-module1\src\test\java\codequality\top\module1\TestClassInModule1.java:4:
 package org.testng.annotations does not exist
 import org.testng.annotations.Test;
 ^
 ...
 java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot
 be
 cast to com.sun.javadoc.AnnotationTypeDoc
at
 com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
at
 com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
 ...

 Greets
 Wolfgang


 Brett Porter wrote:

 I think you need to set source instead. If that doesn't work, please
 describe what the crash looks like.

 Cheers,
 Brett

 2008/8/25 WolfgangRoessler [EMAIL PROTECTED]:

 I set the javadocVersion, but the plugin still crashes.

 - Wolfgang


 Brett Porter wrote:

 Do you need to configure it to use Java's 1.5 source level?

 - Brett

 2008/8/25 WolfgangRoessler [EMAIL PROTECTED]:

 Hello,

 I have configured the maven-javadoc-plugin in the reporting section.
 Unfortunately when generating the report, the plugin crashes. The
 exceptions
 look like it has problems with the @Test annotation of TestNG. Any
 ideas
 or
 solutions what happens?

 Greets
 Wolfgang Roessler
 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19139379.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/

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




 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19140451.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/

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




 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19151139.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 
 -- 
 Brett Porter
 Blog: http://blogs.exist.com/bporter/
 
 -
 To unsubscribe, e-mail: [EMAIL 

Re: JavaDoc-Report crashes with TestNG

2008-08-26 Thread Brett Porter
Thanks - have you an identified an existing JIRA issue for this?

- Brett

2008/8/26 WolfgangRoessler [EMAIL PROTECTED]:

 Hi Brett,

 that works. If I set the scope to compile (or the default), the
 javadoc-generation works. Another solution is to configure a report without
 test-classes:
 reportSets
reportSet
reports
reportjavadoc/report
/reports
/reportSet
 /reportSets

 Thanks and greets
 Wolfgang


 Brett Porter wrote:

 That looks like a bug in the javadoc plugin that it isn't using test
 scoped dependencies for the test javadoc (if you change the scope of
 testng to compile or runtime, does it work even though it is not
 correct?)

 I'm not sure about the doclet exception - looks like a javadoc error -
 does running javadoc standalone work?

 - Brett

 2008/8/26 WolfgangRoessler [EMAIL PROTECTED]:

 Unfortunately this doesn't work, too.

 Here are some snippets of my pom:
  dependencies
dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.8/version
classifierjdk15/classifier
scopetest/scope
/dependency
  /dependencies
  reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
source1.6/source
aggregatetrue/aggregate
/configuration
/plugin
/plugins
  reporting

 And here part of the error messages (debug-mode):
 While building project:
 Group-Id: prototype.codequality
 Artifact-Id: top
 Version: 0.0.1-SNAPSHOT
 From file: S:\src\Exploratory Prototypes\CodeQualityTools\src\top\pom.xml
 Reason: Error during page generation

 org.apache.maven.doxia.siterenderer.RendererException: Error rendering
 Maven
 report: Exit code: 1 - S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\top-module1\src\test\java\codequality\top\module1\TestClassInModule1.java:3:
 package org.testng does not exist
 import org.testng.Assert;
 ^
 S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\top-module1\src\test\java\codequality\top\module1\TestClassInModule1.java:4:
 package org.testng.annotations does not exist
 import org.testng.annotations.Test;
 ^
 ...
 java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot
 be
 cast to com.sun.javadoc.AnnotationTypeDoc
at
 com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
at
 com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
 ...

 Greets
 Wolfgang


 Brett Porter wrote:

 I think you need to set source instead. If that doesn't work, please
 describe what the crash looks like.

 Cheers,
 Brett

 2008/8/25 WolfgangRoessler [EMAIL PROTECTED]:

 I set the javadocVersion, but the plugin still crashes.

 - Wolfgang


 Brett Porter wrote:

 Do you need to configure it to use Java's 1.5 source level?

 - Brett

 2008/8/25 WolfgangRoessler [EMAIL PROTECTED]:

 Hello,

 I have configured the maven-javadoc-plugin in the reporting section.
 Unfortunately when generating the report, the plugin crashes. The
 exceptions
 look like it has problems with the @Test annotation of TestNG. Any
 ideas
 or
 solutions what happens?

 Greets
 Wolfgang Roessler
 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19139379.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/

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




 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19140451.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/

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




 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19151139.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: 

Re: Dependency issue

2008-08-26 Thread Shakun Gupta

Thanks Jeudy,

I used this and it worked, but the only concern for me is that I have to 
traverse through all the transitive dependencies of all the dependencies 
and then I have to add exclusions for each.


Regards,
Shakun

Jeudy, Guillaume wrote:

Shakun,
 
try using  dependency

exclusions
...
/exclusions
/dependency
 
on one of them.
 
mvn dependency:tree will give you details of all dependencies for your project.




From: Shakun Gupta [mailto:[EMAIL PROTECTED]
Sent: Mon 25/08/2008 6:30 AM
To: Maven Users List
Subject: Dependency issue



Hi,
I am using two dependencies, both are dependent upon
apache-comons-collections, but of different versions. So, my final jar /
war contains two versions of commons-collections, is there a way to stop
this.
Regards,
Shakun

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







This electronic mail (including any attachments) may contain information that 
is privileged, confidential, and/or otherwise protected from disclosure to 
anyone other than its intended recipient(s). Any dissemination or use of this 
electronic email or its contents (including any attachments) by persons other 
than the intended recipient(s) is strictly prohibited. If you have received 
this message in error, please notify us immediately by reply email so that we 
may correct our internal records. Please then delete the original message 
(including any attachments) in its entirety. Thank you.

  



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



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



Re: [PLEASE TEST] Maven 2.0.10-RC11

2008-08-26 Thread Peter Horlock
Well, my issue concerning the compiler seems to have been solved with RC11 -
the entire build is working now.
Maybe it had something to do with the fact that I am setting the compiler
version by using a property:
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source${javaVersion}/source
target${javaVersion}/target
/configuration
/plugin

Cheers,

Peter

2008/8/25 John Casey [EMAIL PROTECTED]

 Well, looks like I lost track of a few issues that came up with RC10. I'll
 work on addressing those issues, and probably follow up with an RC12 if we
 find bugs.

 -john


 John Casey wrote:

 Hi again,

 One bug was identified in 2.0.10-RC10 last Friday night. This release
 candidate addresses that issue. You can find it here:


 http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC11/org/apache/maven/apache-maven/2.0.10-RC11/http://people.apache.org/%7Ejdcasey/stage/apache-maven/2.0.10-RC11/org/apache/maven/apache-maven/2.0.10-RC11/

 Please give this a spin when you get a chance, and let us know if you find
 any problems. We'll file any issues in JIRA against version 2.0.10 for
 tracking purposes, and to give us a JIRA # to use when writing the
 integration test to verify the fix.

 Thanks,

 -john


 --
 John Casey
 Developer, PMC Member - Apache Maven (http://maven.apache.org)
 Blog: http://www.ejlife.net/blogs/buildchimp/

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




Re: how to manage two different projects with similar project structures

2008-08-26 Thread Shakun Gupta

Hi Guillaume,

Sorry, I did not provide a bit of clarification while asking the 
question. Actually, all our projects have a similar structure.

For ex : -
A (groupId)
   - entities (artifactId)
   - utilities (artifactId)
   etc..

B (groupId)
   - entities (artifactId)
   - utilities (artifactId)
   etc..

Entities in A is totally different from entities in B, so I can not 
share entities. When i run /*mvn install, */entities are installed in 
the .m2/respository as follows :


A (groupId)
   - entities (artifactId)
  - 1.0.0
 - entities-1.0.0.jar
   - etc..
B (groupId)
   - entities (artifactId)
  - 1.0.0
 - entities-1.0.0.jar
   - etc..

So, now if my another project D (also following the same structure), 
depends on both A and B, and I deploy a web-app, then there is a 
conflict between the entities-1.0.0.jar.


I can do one thing as renaming entities in A to A-entities and so on to 
avoid the conflict. Is there a better way? I am not sure if the folder 
name (entities) can be different from the artifactId.


Regards,
Shakun

Jeudy, Guillaume wrote:

An artifact is uniquely identified by its groupId, artifactId, version and 
classifier.
 
In your case I hope your groupId, artifactId is different because your 'M' module really(i deduce) is a different module for 'A'  'B' projects.
 
If your M module is a shared module then I suggest that either 'A' or 'B' refer to the other 'M' rather than installing it's own 'M'. You might also want to move out M module in its own project and have both A and B refer to it. You'll have to take into account the lifecycles of your projects and decide what makes the most sense to do.
 
-GJ




From: Shakun Gupta [mailto:[EMAIL PROTECTED]
Sent: Mon 25/08/2008 6:28 AM
To: Maven Users List
Subject: how to manage two different projects with similar project structures



Hi,

I have created two different projects, say A  B. Both contain a
module, say M. When i run, /mvn install /in both the projects, M gets
installed in my local repository at two different locations, but with
the same name, say M-1.0.0.jar. Now, if I add the modules M as
dependencies to my 3rd application, say D, in the final war of D, only
one M is there.
Is there a  way to change the name of M-1.0.0.jar of A to A-M-1.0.0.jar
or some similar name, without explicitly renaming the folder name of
module M to A-M and B-M.

Regards,
Shakun

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







This electronic mail (including any attachments) may contain information that 
is privileged, confidential, and/or otherwise protected from disclosure to 
anyone other than its intended recipient(s). Any dissemination or use of this 
electronic email or its contents (including any attachments) by persons other 
than the intended recipient(s) is strictly prohibited. If you have received 
this message in error, please notify us immediately by reply email so that we 
may correct our internal records. Please then delete the original message 
(including any attachments) in its entirety. Thank you.

  



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



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



Problem with Maven, Hudson, Archiva - Builds take very long

2008-08-26 Thread von Janowsky, Simon
Hello, 
I am having a Problem with a CI-System. We use Maven with Hudson and
Archiva. 
The Archiva is configured with two repository groups (both virtualize
several proxy connectors and repositories). 
One is for dependencies, the other for plugins. 
In Hudson the build goal is the following: mvn -Pbuild-int clean deploy site

Now for some reason, some builds always hang a long time (up to 40 Minutes)
after 
the Dependencies Report is generated. Here a excerpt from the maven
output... 
Why is it that the Repository Url is blacklisted? 

__ 
POM 

__ 
profile 
idbuild-int/id 
build 
plugins 
plugin 
groupIdorg.apache.maven.plugins/groupId 
artifactIdmaven-compiler-plugin/artifactId 
configuration 
source1.6/source 
target1.6/target 
encodingISO-8859-1/encoding 
debugfalse/debug 
/configuration 
/plugin 
/plugins 
/build 
repositories 
repository 
!-- Repository Group with all Artifacts -- 
idrepositories.all/id 
nameAll Artifacts Repository Group/name 
url 
dav:http://archiva:8080/archiva/repository/repositories.all 
/url 
/repository 
/repositories 
pluginRepositories 
pluginRepository 
!-- Repository Group with all Plugins -- 
idplugin-repositories.all/id 
nameAll Plugins Repository Group/name 
url 
dav:http://archiva:8080/archiva/repository/plugin-repositories.all 
/url 
/pluginRepository 
/pluginRepositories 
distributionManagement 
!-- snapshots deployed by CI Server -- 
snapshotRepository 
idarchiva.snapshots/id 
namesnapshot repository/name 
url 
dav:http://archiva:8080/archiva/repository/snapshots 
/url 
/snapshotRepository 
/distributionManagement 
/profile 

__ 
Maven OUTPUT, the session: Opened Message go one like forever 

__ 

[INFO] Generating Dependencies report. 
[DEBUG] . 
[DEBUG] . 
[DEBUG] . 
[DEBUG] . 
[DEBUG] . 
[WARNING] The repository url
'dav:http://archiva:8080/archiva/repository/repositories.all' is invalid -
Repository 'repositories.all' will be blacklisted.
http://dist.codehaus.org/ - Session: Opened 
http://dist.codehaus.org/ - Session: Disconnecting 
http://dist.codehaus.org/ - Session: Disconnected
http://people.apache.org/maven-snapshot-repository/ - Session: Opened 
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnecting

http://people.apache.org/maven-snapshot-repository/ - Session: Disconnected
http://repo1.maven.org/maven2 - Session: Opened 
http://repo1.maven.org/maven2 - Session: Disconnecting 
http://repo1.maven.org/maven2 - Session: Disconnected
http://dist.codehaus.org/ - Session: Opened 
http://dist.codehaus.org/ - Session: Disconnecting 
http://dist.codehaus.org/ - Session: Disconnected
http://people.apache.org/maven-snapshot-repository/ - Session: Opened 
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnecting

http://people.apache.org/maven-snapshot-repository/ - Session: Disconnected
http://repo1.maven.org/maven2 - Session: Opened 
http://repo1.maven.org/maven2 - Session: Disconnecting 
http://repo1.maven.org/maven2 - Session: Disconnected
http://dist.codehaus.org/ - Session: Opened 
http://dist.codehaus.org/ - Session: Disconnecting 
http://dist.codehaus.org/ - Session: Disconnected
http://people.apache.org/maven-snapshot-repository/ - Session: Opened 
http://people.apache.org/maven-snapshot-repository/ - Session: Disconnecting

http://people.apache.org/maven-snapshot-repository/ - Session: Disconnected
http://repo1.maven.org/maven2 - Session: Opened 
http://repo1.maven.org/maven2 - Session: Disconnecting 
http://repo1.maven.org/maven2 - Session: Disconnected
http://dist.codehaus.org/ - Session: Opened 
http://dist.codehaus.org/ - Session: Disconnecting 
http://dist.codehaus.org/ - Session: Disconnected 
.. 
. 
.. 

__ 
Help would be really appreciated. Thanks a lot, 
Simon. 



smime.p7s
Description: S/MIME cryptographic signature


Re: Problem with Maven, Hudson, Archiva - Builds take very long

2008-08-26 Thread Guang Sheng
Hi,

I think *http://repo1.maven.org/maven2* http://repo1.maven.org/maven2 is
down. Probably you can use a mirror for the central maven, e.g.
http://mirrors.ibiblio.org/pub/mirrors/maven2/



On Tue, Aug 26, 2008 at 5:20 PM, von Janowsky, Simon [EMAIL PROTECTED]
 wrote:

  Hello,
 I am having a Problem with a CI-System. We use Maven with Hudson and
 Archiva.
 The Archiva is configured with two repository groups (both virtualize
 several proxy connectors and repositories).
 One is for dependencies, the other for plugins.
 In Hudson the build goal is the following: mvn -Pbuild-int clean deploy
 site
 Now for some reason, some builds always hang a long time (up to 40 Minutes)
 after
 the Dependencies Report is generated. Here a excerpt from the maven
 output...
 Why is it that the Repository Url is blacklisted?

 __
 POM

 __
 profile
 idbuild-int/id
 build
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
 source1.6/source
 target1.6/target
 encodingISO-8859-1/encoding
 debugfalse/debug
 /configuration
 /plugin
 /plugins
 /build
 repositories
 repository
 !-- Repository Group with all Artifacts --
 idrepositories.all/id
 nameAll Artifacts Repository Group/name
 url
 dav:http://archiva:8080/archiva/repository/repositories.all
 /url
 /repository
 /repositories
 pluginRepositories
 pluginRepository
 !-- Repository Group with all Plugins --
 idplugin-repositories.all/id
 nameAll Plugins Repository Group/name
 url
 dav:http://archiva:8080/archiva/repository/plugin-repositories.all
 /url
 /pluginRepository
 /pluginRepositories
 distributionManagement
 !-- snapshots deployed by CI Server --
 snapshotRepository
 idarchiva.snapshots/id
 namesnapshot repository/name
 url
 dav:http://archiva:8080/archiva/repository/snapshots
 /url
 /snapshotRepository
 /distributionManagement
 /profile

 __
 Maven OUTPUT, the session: Opened Message go one like forever

 __

 [INFO] Generating Dependencies report.
 [DEBUG] .
 [DEBUG] .
 [DEBUG] .
 [DEBUG] .
 [DEBUG] .
 [WARNING] The repository url 'dav:
 http://archiva:8080/archiva/repository/repositories.all'http://archiva:8080/archiva/repository/repositories.all%27is
  invalid - Repository 'repositories.all' will be blacklisted.
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session: Opened
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session:
 Disconnecting
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session:
 Disconnected
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Opened
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Disconnecting
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Disconnected
 *http://repo1.maven.org/maven2* http://repo1.maven.org/maven2 - Session:
 Opened
 *http://repo1.maven.org/maven2* http://repo1.maven.org/maven2 - Session:
 Disconnecting
 *http://repo1.maven.org/maven2* http://repo1.maven.org/maven2 - Session:
 Disconnected
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session: Opened
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session:
 Disconnecting
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session:
 Disconnected
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Opened
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Disconnecting
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Disconnected
 *http://repo1.maven.org/maven2* http://repo1.maven.org/maven2 - Session:
 Opened
 *http://repo1.maven.org/maven2* http://repo1.maven.org/maven2 - Session:
 Disconnecting
 *http://repo1.maven.org/maven2* http://repo1.maven.org/maven2 - Session:
 Disconnected
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session: Opened
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session:
 Disconnecting
 *http://dist.codehaus.org/* http://dist.codehaus.org/ - Session:
 Disconnected
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Opened
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Disconnecting
 *http://people.apache.org/maven-snapshot-repository/*http://people.apache.org/maven-snapshot-repository/-
  Session: Disconnected
 *http://repo1.maven.org/maven2* 

Got any simple tutorial to learn Maven?

2008-08-26 Thread Henry Loke

As mention in
http://docs.codehaus.org/display/GEOTOOLS/2+What+is+Maven+and+why+do+you+use+it
It also manages (and downloads) any third party jars that are needed for a
build.

Is it mean that if the log4j.jar used in my project, the maven is configure
in such the maven will go to repository to download the log4j.jar file and
put it into specific directory. When run the maven script, then the how
project will deploy successfully.

I read a lot about Maven...
But I still don't know how to implement it to my project.

But I no idea how to use Maven
I using JBoss and elipse for my project... Ant is use to compile and deploy
the code.

P/s: Even Maven is still new for me. But I still have effort to learn from
sketch. Beside documentation but I also need you all to support me.

Thanks...
-- 
View this message in context: 
http://www.nabble.com/Got-any-simple-tutorial-to-learn-Maven--tp19158765p19158765.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Managing repositories.

2008-08-26 Thread Fredrik Alströmer
Hi!

I'm trying to figure out if there's a way to control which repository
is searched for what artifact. Is there a way, for example, to fetch
everything from the central maven repository, except for all groupIds
that match the pattern org.example.*? I googled a little, which turned
up a 'repository manager' called nexus, is that something you would
suggest for this kind of scenario, or is there a way to do this
directly?

Thanks,
Fredrik.

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



AW: Got any simple tutorial to learn Maven?

2008-08-26 Thread Glase, Stefan
Hello Henry,

I would recommend you to read the book Maven: The Definitive Guide. You can 
get it for free from http://www.sonatype.com/community/definitive_guide.html 
and I like the examples that help to explain the concepts of maven.

Speaking of dependency management as you mention in your message there is a 
very easy example in chapter 3 and 4 of the book.

Hope to help
Stefan

-Ursprüngliche Nachricht-
Von: Henry Loke [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 26. August 2008 11:58
An: users@maven.apache.org
Betreff: Got any simple tutorial to learn Maven?


As mention in
http://docs.codehaus.org/display/GEOTOOLS/2+What+is+Maven+and+why+do+you+use+it
It also manages (and downloads) any third party jars that are needed for a
build.

Is it mean that if the log4j.jar used in my project, the maven is configure
in such the maven will go to repository to download the log4j.jar file and
put it into specific directory. When run the maven script, then the how
project will deploy successfully.

I read a lot about Maven...
But I still don't know how to implement it to my project.

But I no idea how to use Maven
I using JBoss and elipse for my project... Ant is use to compile and deploy
the code.

P/s: Even Maven is still new for me. But I still have effort to learn from
sketch. Beside documentation but I also need you all to support me.

Thanks...
--
View this message in context: 
http://www.nabble.com/Got-any-simple-tutorial-to-learn-Maven--tp19158765p19158765.html
Sent from the Maven - Users mailing list archive at Nabble.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: Got any simple tutorial to learn Maven?

2008-08-26 Thread Henry Loke

I just read some post on this link
http://www.nabble.com/new-bee-to19132548.html
http://www.nabble.com/new-bee-to19132548.html 

It quite good but I still cannot code it. Can we have a hand on coding 

Thanks


Henry Loke wrote:
 
 As mention in
 http://docs.codehaus.org/display/GEOTOOLS/2+What+is+Maven+and+why+do+you+use+it
 It also manages (and downloads) any third party jars that are needed for a
 build.
 
 Is it mean that if the log4j.jar used in my project, the maven is
 configure in such the maven will go to repository to download the
 log4j.jar file and put it into specific directory. When run the maven
 script, then the how project will deploy successfully.
 
 I read a lot about Maven...
 But I still don't know how to implement it to my project.
 
 But I no idea how to use Maven
 I using JBoss and elipse for my project... Ant is use to compile and
 deploy the code.
 
 P/s: Even Maven is still new for me. But I still have effort to learn from
 sketch. Beside documentation but I also need you all to support me.
 
 Thanks...
 

-- 
View this message in context: 
http://www.nabble.com/Got-any-simple-tutorial-to-learn-Maven--tp19158765p19158782.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Got any simple tutorial to learn Maven?

2008-08-26 Thread Saket Lakshminarayan Chiluveru

Hi Henry,

Try the draft book available,

Maven: The Definitive Guide (Readable HTML alpha release)

* Covers:Maven 2.0.x
* Published:Not yet
* Authors: Sonatype (Jason van Zyl, John Casey, Eric Redmond)

Better Builds with Maven (Free PDF Download)

* Covers:Maven 2.0.4
* Publisher:DevZuz
* Published:March 2006
* Authors: John Casey, Vincent Massol, Brett Porter, Carlos Sanchez

I have read the first one and it is good on fundamentals as well as examples.

Check this link for all downloads and other references.
http://maven.apache.org/articles.html

Regards

Saket



-Original Message-
From: Henry Loke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2008 3:28 PM
To: users@maven.apache.org
Subject: Got any simple tutorial to learn Maven?


As mention in
http://docs.codehaus.org/display/GEOTOOLS/2+What+is+Maven+and+why+do+you+use+it
It also manages (and downloads) any third party jars that are needed for a
build.

Is it mean that if the log4j.jar used in my project, the maven is configure
in such the maven will go to repository to download the log4j.jar file and
put it into specific directory. When run the maven script, then the how
project will deploy successfully.

I read a lot about Maven...
But I still don't know how to implement it to my project.

But I no idea how to use Maven
I using JBoss and elipse for my project... Ant is use to compile and deploy
the code.

P/s: Even Maven is still new for me. But I still have effort to learn from
sketch. Beside documentation but I also need you all to support me.

Thanks...
--
View this message in context: 
http://www.nabble.com/Got-any-simple-tutorial-to-learn-Maven--tp19158765p19158765.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



Re: JavaDoc-Report crashes with TestNG

2008-08-26 Thread WolfgangRoessler

No, otherwise I wouldn't have asked here *g*.
Could you create one?

Greets
Wolfgang


Brett Porter wrote:
 
 Thanks - have you an identified an existing JIRA issue for this?
 
 - Brett
 
 2008/8/26 WolfgangRoessler [EMAIL PROTECTED]:

 Hi Brett,

 that works. If I set the scope to compile (or the default), the
 javadoc-generation works. Another solution is to configure a report
 without
 test-classes:
 reportSets
reportSet
reports
reportjavadoc/report
/reports
/reportSet
 /reportSets

 Thanks and greets
 Wolfgang


 Brett Porter wrote:

 That looks like a bug in the javadoc plugin that it isn't using test
 scoped dependencies for the test javadoc (if you change the scope of
 testng to compile or runtime, does it work even though it is not
 correct?)

 I'm not sure about the doclet exception - looks like a javadoc error -
 does running javadoc standalone work?

 - Brett

 2008/8/26 WolfgangRoessler [EMAIL PROTECTED]:

 Unfortunately this doesn't work, too.

 Here are some snippets of my pom:
  dependencies
dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.8/version
classifierjdk15/classifier
scopetest/scope
/dependency
  /dependencies
  reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
source1.6/source
aggregatetrue/aggregate
/configuration
/plugin
/plugins
  reporting

 And here part of the error messages (debug-mode):
 While building project:
 Group-Id: prototype.codequality
 Artifact-Id: top
 Version: 0.0.1-SNAPSHOT
 From file: S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\pom.xml
 Reason: Error during page generation

 org.apache.maven.doxia.siterenderer.RendererException: Error rendering
 Maven
 report: Exit code: 1 - S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\top-module1\src\test\java\codequality\top\module1\TestClassInModule1.java:3:
 package org.testng does not exist
 import org.testng.Assert;
 ^
 S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\top-module1\src\test\java\codequality\top\module1\TestClassInModule1.java:4:
 package org.testng.annotations does not exist
 import org.testng.annotations.Test;
 ^
 ...
 java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot
 be
 cast to com.sun.javadoc.AnnotationTypeDoc
at
 com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
at
 com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
 ...

 Greets
 Wolfgang


 Brett Porter wrote:

 I think you need to set source instead. If that doesn't work, please
 describe what the crash looks like.

 Cheers,
 Brett

 2008/8/25 WolfgangRoessler [EMAIL PROTECTED]:

 I set the javadocVersion, but the plugin still crashes.

 - Wolfgang


 Brett Porter wrote:

 Do you need to configure it to use Java's 1.5 source level?

 - Brett

 2008/8/25 WolfgangRoessler [EMAIL PROTECTED]:

 Hello,

 I have configured the maven-javadoc-plugin in the reporting
 section.
 Unfortunately when generating the report, the plugin crashes. The
 exceptions
 look like it has problems with the @Test annotation of TestNG. Any
 ideas
 or
 solutions what happens?

 Greets
 Wolfgang Roessler
 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19139379.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/

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




 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19140451.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/

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




 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19151139.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL 

Re: JavaDoc-Report crashes with TestNG

2008-08-26 Thread Brett Porter
I created http://jira.codehaus.org/browse/MJAVADOC-214

2008/8/26 WolfgangRoessler [EMAIL PROTECTED]:

 No, otherwise I wouldn't have asked here *g*.
 Could you create one?

 Greets
 Wolfgang


 Brett Porter wrote:

 Thanks - have you an identified an existing JIRA issue for this?

 - Brett

 2008/8/26 WolfgangRoessler [EMAIL PROTECTED]:

 Hi Brett,

 that works. If I set the scope to compile (or the default), the
 javadoc-generation works. Another solution is to configure a report
 without
 test-classes:
 reportSets
reportSet
reports
reportjavadoc/report
/reports
/reportSet
 /reportSets

 Thanks and greets
 Wolfgang


 Brett Porter wrote:

 That looks like a bug in the javadoc plugin that it isn't using test
 scoped dependencies for the test javadoc (if you change the scope of
 testng to compile or runtime, does it work even though it is not
 correct?)

 I'm not sure about the doclet exception - looks like a javadoc error -
 does running javadoc standalone work?

 - Brett

 2008/8/26 WolfgangRoessler [EMAIL PROTECTED]:

 Unfortunately this doesn't work, too.

 Here are some snippets of my pom:
  dependencies
dependency
groupIdorg.testng/groupId
artifactIdtestng/artifactId
version5.8/version
classifierjdk15/classifier
scopetest/scope
/dependency
  /dependencies
  reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
source1.6/source
aggregatetrue/aggregate
/configuration
/plugin
/plugins
  reporting

 And here part of the error messages (debug-mode):
 While building project:
 Group-Id: prototype.codequality
 Artifact-Id: top
 Version: 0.0.1-SNAPSHOT
 From file: S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\pom.xml
 Reason: Error during page generation

 org.apache.maven.doxia.siterenderer.RendererException: Error rendering
 Maven
 report: Exit code: 1 - S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\top-module1\src\test\java\codequality\top\module1\TestClassInModule1.java:3:
 package org.testng does not exist
 import org.testng.Assert;
 ^
 S:\src\Exploratory
 Prototypes\CodeQualityTools\src\top\top-module1\src\test\java\codequality\top\module1\TestClassInModule1.java:4:
 package org.testng.annotations does not exist
 import org.testng.annotations.Test;
 ^
 ...
 java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot
 be
 cast to com.sun.javadoc.AnnotationTypeDoc
at
 com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
at
 com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
 ...

 Greets
 Wolfgang


 Brett Porter wrote:

 I think you need to set source instead. If that doesn't work, please
 describe what the crash looks like.

 Cheers,
 Brett

 2008/8/25 WolfgangRoessler [EMAIL PROTECTED]:

 I set the javadocVersion, but the plugin still crashes.

 - Wolfgang


 Brett Porter wrote:

 Do you need to configure it to use Java's 1.5 source level?

 - Brett

 2008/8/25 WolfgangRoessler [EMAIL PROTECTED]:

 Hello,

 I have configured the maven-javadoc-plugin in the reporting
 section.
 Unfortunately when generating the report, the plugin crashes. The
 exceptions
 look like it has problems with the @Test annotation of TestNG. Any
 ideas
 or
 solutions what happens?

 Greets
 Wolfgang Roessler
 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19139379.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/

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




 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19140451.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





 --
 Brett Porter
 Blog: http://blogs.exist.com/bporter/

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




 --
 View this message in context:
 http://www.nabble.com/JavaDoc-Report-crashes-with-TestNG-tp19139379p19151139.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 

Re: Managing repositories.

2008-08-26 Thread Brett Porter
There's not currently a way to do this directly - the only such
control you have is described here:
http://maven.apache.org/guides/mini/guide-mirror-settings.html

This is certainly a situation for a repository manager such as
Archiva, Nexus, or Artifactory (not sure if this one has group Id
filtering like the others, but it may). For more information:
http://maven.apache.org/repository-management.html

Cheers,
Brett

2008/8/26 Fredrik Alströmer [EMAIL PROTECTED]:
 Hi!

 I'm trying to figure out if there's a way to control which repository
 is searched for what artifact. Is there a way, for example, to fetch
 everything from the central maven repository, except for all groupIds
 that match the pattern org.example.*? I googled a little, which turned
 up a 'repository manager' called nexus, is that something you would
 suggest for this kind of scenario, or is there a way to do this
 directly?

 Thanks,
 Fredrik.

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





-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



site:deploy / hibernate3:hbm2doc

2008-08-26 Thread Karl Heinz Marbaise
Hi there,

i have a working configuration and creation of and hbm2doc which
produces javadoc for Hibernate-mappings...

but how can i integrated the generated javadoc (Hibernate) into the
site:deploy process or does exist a way to integrated the generated
javadoc (Hibernate) into a site...

Some hints?

Thanks in advance...

Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



Re: Managing repositories.

2008-08-26 Thread Martijn Dashorst
On Tue, Aug 26, 2008 at 12:55 PM, Brett Porter [EMAIL PROTECTED] wrote:
 This is certainly a situation for a repository manager such as
 Archiva, Nexus, or Artifactory (not sure if this one has group Id
 filtering like the others, but it may). For more information:
 http://maven.apache.org/repository-management.html

Artifactory has that ability.

Martijn

-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Maven Archetype tutorials?

2008-08-26 Thread Nino Saturnino Martinez Vazquez Wael

Hi

Where can I find some tutorials on howto do archetypes? It would be 
really cool with an tutorial on howto make multimodule archetypes.


Im wanting todo a archetype for Apache Wicket which includes 2 modules, 
web and core both being switchable with a parameter. Forexample if you 
want a guice or spring project... If you are a maven guru and want to 
participate please write me:)


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Maven Archetype tutorials?

2008-08-26 Thread Raphaël Piéroni
Hi Nino,

The best way to start creating an archetype is to :
- create a project (in your case a multi-module with a switch)
- call mvn archetype:create-from-project on your example project

you then try your archetype by :
- moving in target/generated-sources/archetype from your example project
- call mvn install
- move in a fresh directory
- call mvn archetype:generate -DarchetypeCatalog=local

Hope this helps


Raphaël

2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:
 Hi

 Where can I find some tutorials on howto do archetypes? It would be really
 cool with an tutorial on howto make multimodule archetypes.

 Im wanting todo a archetype for Apache Wicket which includes 2 modules, web
 and core both being switchable with a parameter. Forexample if you want a
 guice or spring project... If you are a maven guru and want to participate
 please write me:)

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




Re: Maven Archetype tutorials?

2008-08-26 Thread Nino Saturnino Martinez Vazquez Wael
I'll try it out, examples would be nice though:) It would be really cool 
if there were more tutorials on creating advanced archetypes.


Raphaël Piéroni wrote:

Hi Nino,

The best way to start creating an archetype is to :
- create a project (in your case a multi-module with a switch)
  

What do you mean by switch? Like profiles?

- call mvn archetype:create-from-project on your example project

you then try your archetype by :
- moving in target/generated-sources/archetype from your example project
- call mvn install
- move in a fresh directory
- call mvn archetype:generate -DarchetypeCatalog=local

Hope this helps


Raphaël

2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:
  

Hi

Where can I find some tutorials on howto do archetypes? It would be really
cool with an tutorial on howto make multimodule archetypes.

Im wanting todo a archetype for Apache Wicket which includes 2 modules, web
and core both being switchable with a parameter. Forexample if you want a
guice or spring project... If you are a maven guru and want to participate
please write me:)

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



release:prepare and multi-module projects

2008-08-26 Thread David Roussel

I've been trying to run release:prepare on a nested project and I keep
running into the same SVN related issues.  Has anyone else got it working?

I can supply the full trace, but the basic problem I get is:

...
[INFO] Executing: svn --non-interactive copy --file
C:\DOCUME~1\UT159N\LOCALS~1\Temp\maven-scm-1626400052.commit .
http://gcm-svn/
svn/REPO1/Projects/InstallTools/tags/installer-0.5
[INFO] Working directory: D:\dev\workspace1\installer
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: File
'/svn/REPO1/Projects/InstallTools/tags/installer-0.5/installer-plugin/pom.xml'
already exists


If I repeat that svn command on the comand line it does fail again.  The
file does not exist. But if I do 'svn update' and then repeat it, then it
works.  

Also if I manually, do a 'svn copy URL URL' version of tagging, that also
works.

I've been trying to reproduce the problem in raw svn, just doing svn
commands and I can't.  So I guess it must be a maven-release-plugin bug.

So has anyone else got the release plugin to work in multi-module projects
using svn?

Thanks

David
-- 
View this message in context: 
http://www.nabble.com/release%3Aprepare-and-multi-module-projects-tp19161884p19161884.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: release:prepare and multi-module projects

2008-08-26 Thread Stephen Duncan Jr
Sounds like the same problem many are facing with a bug in SVN 1.5.1

See these threads on the SVN  Maven mailing lists:

http://www.nabble.com/Mac-OS-X-%2B-SVN-1.5.1-%3D-Branch-problem-td19017538.html#a19142776
http://www.nabble.com/Release-fails-during-SVN-commit-td19084270.html

I'm still looking to get some confirmation that it's a bug before reporting
it ion the SVN issue tracker...

-Stephen


On Tue, Aug 26, 2008 at 9:18 AM, David Roussel
[EMAIL PROTECTED]wrote:


 I've been trying to run release:prepare on a nested project and I keep
 running into the same SVN related issues.  Has anyone else got it working?

 I can supply the full trace, but the basic problem I get is:

 ...
 [INFO] Executing: svn --non-interactive copy --file
 C:\DOCUME~1\UT159N\LOCALS~1\Temp\maven-scm-1626400052.commit .
 http://gcm-svn/
 svn/REPO1/Projects/InstallTools/tags/installer-0.5http://gcm-svn/svn/REPO1/Projects/InstallTools/tags/installer-0.5
 [INFO] Working directory: D:\dev\workspace1\installer
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Unable to tag SCM
 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: File

 '/svn/REPO1/Projects/InstallTools/tags/installer-0.5/installer-plugin/pom.xml'
 already exists


 If I repeat that svn command on the comand line it does fail again.  The
 file does not exist. But if I do 'svn update' and then repeat it, then it
 works.

 Also if I manually, do a 'svn copy URL URL' version of tagging, that also
 works.

 I've been trying to reproduce the problem in raw svn, just doing svn
 commands and I can't.  So I guess it must be a maven-release-plugin bug.

 So has anyone else got the release plugin to work in multi-module projects
 using svn?

 Thanks

 David
 --
 View this message in context:
 http://www.nabble.com/release%3Aprepare-and-multi-module-projects-tp19161884p19161884.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
Stephen Duncan Jr
www.stephenduncanjr.com


Re: Maven Archetype tutorials?

2008-08-26 Thread Raphaël Piéroni
Answers inlined

Raphaël

2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:
 I'll try it out, examples would be nice though:) It would be really cool if
 there were more tutorials on creating advanced archetypes.

Please capture your experimentation to improve the documentation ;-)


 Raphaël Piéroni wrote:

 Hi Nino,

 The best way to start creating an archetype is to :
 - create a project (in your case a multi-module with a switch)


 What do you mean by switch? Like profiles?

I don't mean nothing, it was your intention in your first mail to have
things switchable,
because the archetype plugin don't allow you to use some parts in some case and
other parts in another case. Then i assumed it was in your example ;-)


 - call mvn archetype:create-from-project on your example project

 you then try your archetype by :
 - moving in target/generated-sources/archetype from your example project
 - call mvn install
 - move in a fresh directory
 - call mvn archetype:generate -DarchetypeCatalog=local

 Hope this helps


 Raphaël

 2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:


 Hi

 Where can I find some tutorials on howto do archetypes? It would be
 really
 cool with an tutorial on howto make multimodule archetypes.

 Im wanting todo a archetype for Apache Wicket which includes 2 modules,
 web
 and core both being switchable with a parameter. Forexample if you want a
 guice or spring project... If you are a maven guru and want to
 participate
 please write me:)

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




Re: Maven Archetype tutorials?

2008-08-26 Thread Raphaël Piéroni
2008/8/26 Raphaël Piéroni [EMAIL PROTECTED]:
 Answers inlined

 Raphaël

 2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:
 I'll try it out, examples would be nice though:) It would be really cool if
 there were more tutorials on creating advanced archetypes.

I found this page on the plugin's site
http://maven.apache.org/plugins/maven-archetype-plugin/advanced-usage.html


 Please capture your experimentation to improve the documentation ;-)


 Raphaël Piéroni wrote:

 Hi Nino,

 The best way to start creating an archetype is to :
 - create a project (in your case a multi-module with a switch)


 What do you mean by switch? Like profiles?

 I don't mean nothing, it was your intention in your first mail to have
 things switchable,
 because the archetype plugin don't allow you to use some parts in some case 
 and
 other parts in another case. Then i assumed it was in your example ;-)


 - call mvn archetype:create-from-project on your example project

 you then try your archetype by :
 - moving in target/generated-sources/archetype from your example project
 - call mvn install
 - move in a fresh directory
 - call mvn archetype:generate -DarchetypeCatalog=local

 Hope this helps


 Raphaël

 2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:


 Hi

 Where can I find some tutorials on howto do archetypes? It would be
 really
 cool with an tutorial on howto make multimodule archetypes.

 Im wanting todo a archetype for Apache Wicket which includes 2 modules,
 web
 and core both being switchable with a parameter. Forexample if you want a
 guice or spring project... If you are a maven guru and want to
 participate
 please write me:)

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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





Resolving dependency properties

2008-08-26 Thread Sven Vlieghe

Hi there,

I am trying to centralize the version-numbers of all projects/dependencies
in our system. My approach for this, is to centralize the settings.xml-file
 add all versions as profile-properties. This worked perfectly at first
sight, but resulted in errors when trying to use the project as a
dependency.


Example settings.xml:
settings
...
profiles
profile
idmy-active-profile/id
properties
version.test2.2.0/version.test
/properties
/profile
/profiles
activeProfiles
activeProfilemy-active-profile/activeProfile
/activeProfiles
/settings


Example project pom.xml:
project
artifactIdsome-project/artifactId
...
dependencies
!-- project dependencies --
dependency
groupIdmy.group.id/groupId
artifactIdtest-program/artifactId
version${version.test}/version
/dependency
/dependencies
/project


When trying to build 'some-project', maven is capable of resolving
${version.test} into the correct version. No problems here.


However, when adding 'some-project' as a dependency of an other project:
project
artifactIdsome-other-project/artifactId
...
dependencies
!-- project dependencies --
dependency
groupIdmy.group.id/groupId
artifactIdsome-project/artifactId
/dependency
/dependencies
/project

This build fails.. maven doesn't resolve the properties in 'some-project'
(in this case, version.test)  therefore tries to find
my.group.id:test-program:${version.test} instead of
my.group.id:test-program:2.2.0


Anyone sees what I'm doing wrong?

thanks in advance,

Sven
-- 
View this message in context: 
http://www.nabble.com/Resolving-dependency-properties-tp19162134p19162134.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Transitive dependencies in multi-module projects

2008-08-26 Thread Trevor Harmon

On Aug 25, 2008, at 7:25 PM, Wendy Smoak wrote:


If you establish a parent pom, and list all five of your projects as
modules, Maven will figure out what order to build them in, and
compile the changed sources.


Thanks for your suggestion, but unfortunately it does not accomplish  
my goal. Adding a parent POM with the list of modules will do the  
right thing *only* if I'm compiling the parent POM. If I'm compiling  
any other module, Maven simply ignores the dependencies.


As I said, I want to be able to go to appA's directory and type:

mvn compile

Since Maven knows appA's dependencies, it should be able to figure out  
that if a source file in libB is out-of-date, it should compile libB  
first. Likewise, if I compile libB but libA is out-of-date, Maven  
should know to compile libA before proceeding.


I'm guessing this just isn't possible in Maven?

Trevor


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



Re: [PLEASE TEST] Maven 2.0.10-RC11

2008-08-26 Thread Daniel Kulp


RC11 is looking pretty good to me.   I've built several things with it, 
re-setup my eclipse workspaces from fresh checkouts (eclipse:eclipse), etc...   
Haven't done a deploy yet (that's next), but everything else is looking 
pretty good to me.

Performance is also excellent.   My test case that used to take 32 seconds now 
takes about 24 second.   Other similar actions are showing similar gains.  

Dan


On Monday 25 August 2008 4:15:32 pm John Casey wrote:
 Hi again,

 One bug was identified in 2.0.10-RC10 last Friday night. This release
 candidate addresses that issue. You can find it here:

 http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC11/org/apache
/maven/apache-maven/2.0.10-RC11/

 Please give this a spin when you get a chance, and let us know if you
 find any problems. We'll file any issues in JIRA against version 2.0.10
 for tracking purposes, and to give us a JIRA # to use when writing the
 integration test to verify the fix.

 Thanks,

 -john



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

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



Second Try on JUnit Classpath Etc

2008-08-26 Thread Michael McGrady
Sorry to repost but I did not get a nibble on this.  Thanks for any  
assistance.


Mike

On Aug 24, 2008, at 10:47 AM, Michael McGrady wrote:



Below is my POM and the error log.  How do I get maven to seem my  
junit jar?


Mike

Here is the POM

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.micascientific/groupId
  artifactIdmicascientific/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  namemicascientific/name
  urlhttp://maven.apache.org/url
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
  /dependencies
  build
plugins
  plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
  source1.5/source
  target1.5/target
 /configuration
  /plugin
/plugins
  /build
/project

HERE is the ERROR

[ERROR] BUILD FAILURE
[INFO]  


[INFO] Compilation failure

/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/cellardoor/impl/ 
CellarDoorChannelReadWrite.java:[19,23] package junit.framework does  
not exist


/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/riverdancer/lipstick/SendingManagerImpl.java: 
[12,37] cannot find symbol

symbol  : class MockObserver
location: package com.micascientific.casablanca

/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/riverdancer/Driver.java:[4,37] cannot find  
symbol

symbol  : class MockObserver
location: package com.micascientific.casablanca

/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/riverdancer/Driver.java:[8,34] cannot find  
symbol

symbol  : class MockMoblet
location: package com.micascientific.moblets

/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/riverdancer/lipstick/SendingManagerImpl.java: 
[113,40] cannot find symbol

symbol  : class MockObserver
location: class  
com.micascientific.riverdancer.lipstick.SendingManagerImpl


/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/riverdancer/Driver.java:[46,23] cannot find  
symbol

symbol  : class MockMoblet
location: class com.micascientific.riverdancer.Driver

/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/riverdancer/Driver.java:[61,22] cannot find  
symbol

symbol  : class MockMoblet
location: class com.micascientific.riverdancer.Driver

/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/riverdancer/Driver.java:[71,36] cannot find  
symbol

symbol  : class MockObserver
location: class com.micascientific.riverdancer.Driver

/Users/michaelmcgrady/Documents/workspace/micascientific/src/main/ 
java/com/micascientific/riverdancer/Driver.java:[85,43] cannot find  
symbol

symbol  : class MockMoblet
location: class com.micascientific.riverdancer.Driver


[INFO]  


[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
579)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: 
478)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeTaskSegments(DefaultLifecycleExecutor.java:291)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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: 

AW: Second Try on JUnit Classpath Etc

2008-08-26 Thread Mark Struberg
Hi Michael!

 src/main/java

and 

 scopetest/scope


dingeling?

Is CellarDoorChannelReadWrite.java a Test? If so, move it under src/test/java.
If not, why does it need JUnit? If it does, remove the scopetest/scope from 
the dependency, since the default 'compile' is what you need.

LieGrue,
strub


--- Michael McGrady [EMAIL PROTECTED] schrieb am Di, 26.8.2008:

 Von: Michael McGrady [EMAIL PROTECTED]
 Betreff: Second Try on JUnit Classpath Etc
 An: Maven Users List users@maven.apache.org
 Datum: Dienstag, 26. August 2008, 15:47
 Sorry to repost but I did not get a nibble on this.  Thanks
 for any  
 assistance.
 
 Mike
 
 On Aug 24, 2008, at 10:47 AM, Michael McGrady wrote:
 
 
  Below is my POM and the error log.  How do I get maven
 to seem my  
  junit jar?
 
  Mike
 
  Here is the POM
 
  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.micascientific/groupId
artifactIdmicascientific/artifactId
packagingjar/packaging
version1.0-SNAPSHOT/version
namemicascientific/name
urlhttp://maven.apache.org/url
dependencies
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
  /dependency
/dependencies
build
  plugins
plugin
  
 groupIdorg.apache.maven.plugins/groupId
  
 artifactIdmaven-compiler-plugin/artifactId
   configuration
source1.5/source
target1.5/target
   /configuration
/plugin
  /plugins
/build
  /project
 
  HERE is the ERROR
 
  [ERROR] BUILD FAILURE
  [INFO]  
 
 
  [INFO] Compilation failure
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
  java/com/micascientific/cellardoor/impl/ 
  CellarDoorChannelReadWrite.java:[19,23] package
 junit.framework does  
  not exist
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
 
 java/com/micascientific/riverdancer/lipstick/SendingManagerImpl.java:
 
  [12,37] cannot find symbol
  symbol  : class MockObserver
  location: package com.micascientific.casablanca
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
  java/com/micascientific/riverdancer/Driver.java:[4,37]
 cannot find  
  symbol
  symbol  : class MockObserver
  location: package com.micascientific.casablanca
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
  java/com/micascientific/riverdancer/Driver.java:[8,34]
 cannot find  
  symbol
  symbol  : class MockMoblet
  location: package com.micascientific.moblets
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
 
 java/com/micascientific/riverdancer/lipstick/SendingManagerImpl.java:
 
  [113,40] cannot find symbol
  symbol  : class MockObserver
  location: class  
 
 com.micascientific.riverdancer.lipstick.SendingManagerImpl
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
 
 java/com/micascientific/riverdancer/Driver.java:[46,23]
 cannot find  
  symbol
  symbol  : class MockMoblet
  location: class com.micascientific.riverdancer.Driver
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
 
 java/com/micascientific/riverdancer/Driver.java:[61,22]
 cannot find  
  symbol
  symbol  : class MockMoblet
  location: class com.micascientific.riverdancer.Driver
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
 
 java/com/micascientific/riverdancer/Driver.java:[71,36]
 cannot find  
  symbol
  symbol  : class MockObserver
  location: class com.micascientific.riverdancer.Driver
 
 
 /Users/michaelmcgrady/Documents/workspace/micascientific/src/main/
 
 
 java/com/micascientific/riverdancer/Driver.java:[85,43]
 cannot find  
  symbol
  symbol  : class MockMoblet
  location: class com.micascientific.riverdancer.Driver
 
 
  [INFO]  
 
 
  [INFO] Trace
  org.apache.maven.BuildFailureException: Compilation
 failure
  at  
  org 
  .apache 
  .maven 
  .lifecycle 
 
 .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
 
  579)
  at  
  org 
  .apache 
  .maven 
  .lifecycle 
  .DefaultLifecycleExecutor 
 
 .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
  at  
  org 
  .apache 
  .maven 
  .lifecycle 
 
 .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
 
  478)
  at  
  org 
  .apache 
  .maven 
  .lifecycle 
  .DefaultLifecycleExecutor 
 
 .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
  at  
  org 
  .apache 
  .maven 
  .lifecycle 
  .DefaultLifecycleExecutor 
 
 

Re: Transitive dependencies in multi-module projects

2008-08-26 Thread Wendy Smoak
On Tue, Aug 26, 2008 at 6:37 AM, Trevor Harmon [EMAIL PROTECTED] wrote:

 As I said, I want to be able to go to appA's directory and type:

 mvn compile

 Since Maven knows appA's dependencies, it should be able to figure out that
 if a source file in libB is out-of-date, it should compile libB first.
 Likewise, if I compile libB but libA is out-of-date, Maven should know to
 compile libA before proceeding.

 I'm guessing this just isn't possible in Maven?

Not really.  The modules are intended to stand alone, so just because
you have a snapshot dependency on libA doesn't mean Maven knows where
the source code is.  Building from the top from the parent pom level
and letting Maven figure it out is as close as I can get.

-- 
Wendy

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



Re: artifact built from maven-nuxeo-plugin being installed before execution of following plugins

2008-08-26 Thread Julien CARSIQUE

Thanks,

You have 3 alternatives:
- put the nuxeo plugin in the install phase (though I assume since
it's also producing an installable artifact you don't want that)
  

Of course not, I often need to call only the package phase.

- change the nuxeo plugin to look up the artifact from the already
attached artifacts on the project first before falling back to the
local repository
  

I'll try in this way.
Our implementation rely on 
org.apache.maven.artifact.resolver.ArtifactResolver.resolve()
Is there a reason why default implementation do not look up to from 
attached artifacts on project ?


Fast and functional solution was to generate these resources artifacts 
in a sub-module but I had a lot of execution issues, depending on the 
module from which the command was launched (sub-module, this module, 
parent module, root module, ...) and because of inherited plugins' 
configurations that I didn't succeed to unactivate.
maven-nuxeo-plugin works like maven-assembly-plugin and need to be able 
accessing these resources as well locally since as downloaded artifacts 
from local or remote repository.

Or from already attached artifacts on the project, I like the idea :-)

- manually install the first assembly in the package phase (which
would seem a bit counterintuitive)

The second is probably the best if it is an option.

BTW, the group ID for your nuxeo plugin should probably be something
other than o.a.m.plugins to avoid confusion.
  

Sure, it will.
Reason is historical, because of an old maven bug (solved I guess?) and 
the need to be able running simple commands like mvn nuxeo:anything 

Cheers,
Brett

2008/8/25 Julien CARSIQUE [EMAIL PROTECTED]:
  

Hi,

I need to build resources artifacts (I use maven-assembly-plugin) and use
them (with our maven-nuxeo-plugin) from the same pom.xml
The built resources artifacts do not need to be in the project dependency
but have to be installed before the execution of the second plugin.

Is it possible to make artifacts built from maven-assembly-plugin being
installed before the execution of the following maven-nuxeo-plugin ?

I have this error when running mvn install:
[INFO]

[INFO] Building Nuxeo EP EAR
[INFO]task-segment: [clean, install]
[INFO]

[INFO] [clean:clean]
[INFO] Deleting directory
/Users/julien/Documents/workspace/nuxeo/nuxeo-platform/nuxeo-platform-ear/target
...
[INFO] [assembly:attached {execution: make-resources}]
[INFO] Reading assembly descriptor: src/main/assemble/resources/mono.xml
...
[INFO] Building zip:
/Users/julien/Documents/workspace/nuxeo/nuxeo-platform/nuxeo-platform-ear/target/nuxeo-platform-ear-5.1.6-SNAPSHOT-resources-mono.zip
...
[INFO] [nuxeo:assembly {execution: assemble-ear}]
[INFO] Loading assembly descriptor:
/Users/julien/Documents/workspace/nuxeo/nuxeo-platform/nuxeo-platform-ear/src/main/assemble/nuxeo.xml
...
org.apache.maven.plugin.MojoExecutionException: Unable to find artifact.
...
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
  mvn install:install-file -DgroupId=org.nuxeo.ecm.platform
-DartifactId=nuxeo-platform-ear -Dversion=5.1.6-SNAPSHOT
-Dclassifier=resources-mono -Dpackaging=zip -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
  mvn deploy:deploy-file -DgroupId=org.nuxeo.ecm.platform
-DartifactId=nuxeo-platform-ear -Dversion=5.1.6-SNAPSHOT
-Dclassifier=resources-mono -Dpackaging=zip -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
...

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to run assembly


Here's an extract of my pom.xml:

plugin
  artifactIdmaven-assembly-plugin/artifactId
  configuration
descriptors
  descriptorsrc/main/assemble/resources/mono.xml/descriptor
  ...
/descriptors
  /configuration
  executions
execution
  idmake-resources/id
  phasepackage/phase
  goals
goalattached/goal
  /goals
/execution
  /executions
/plugin
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-nuxeo-plugin/artifactId
  extensionstrue/extensions
  executions
execution
  idassemble-ear/id
  phasepackage/phase
  goals
goalassembly/goal
  /goals
  configuration
  ...
 /configuration
/execution
  /executions
/plugin


Thanks,

--
Julien CARSIQUE, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The 

Hibernate3 plugin : problem with mapping generatting

2008-08-26 Thread MedElb
Hi all

i'm using Hibernate3 plugin for generation mapping classes and HBM for an
oracle schema
the probleme that the goal mvn hibernate3:hbm2cfgxml or the the other vlable
goal checks also system table
and the exceution take many time, at the and i get that trace error :



16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.DDL_TEXT t:CLOB l:
255 p:19 s:2 n:true id:false] to [clob]
16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.DDL_NUM t:NUMERIC
l:255 p:22 s:0 n:false id:false] to [big_decimal]
16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.PHASE t:NUMERIC l:
255 p:22 s:0 n:false id:false] to [big_decimal]
16:05:50,780  INFO org.hibernate.connection.DriverManagerConnectionProvider
- cleaning up connection pool: jdbc:@oracle:thin:@url:1521:SIDNAME
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Duplicate class name 'AllRepcolumn' generated for
'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'. Same name where generated
for 'org.hibern
ate.mapping.Table(SYS._ALL_REPCOLUMN)'
[INFO]

[INFO] Trace
org.hibernate.cfg.JDBCBinderException: Duplicate class name 'AllRepcolumn'
generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'. Same name
 where generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'
at
org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:166)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:89)
at
org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:42)
at
org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConfiguration(JDBCComponentConfiguration.java:67)
at
org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:56)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(HibernateExporterMojo.java:197)
at
org.codehaus.mojo.hibernate3.exporter.Hbm2CfgXmlExporterMojo.configureExporter(Hbm2CfgXmlExporterMojo.java:62)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:270)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:149)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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:597)
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: 3 minutes 23 seconds
[INFO] Finished at: Tue Aug 26 16:05:50 CEST 2008
16:05:51,021  INFO org.hibernate.connection.DriverManagerConnectionProvider
- cleaning up connection pool: jdbc:oracle:thin:@url:1521:SIDNAME
[INFO] Final Memory: 12M/28M
[INFO]





im using oracle DB version 9.2.0.8.0
with maven configuration :

build
plugins
..
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.2-SNAPSHOT/version
configuration
 

Re: Resolving dependency properties

2008-08-26 Thread Wendy Smoak
On Tue, Aug 26, 2008 at 6:31 AM, Sven Vlieghe [EMAIL PROTECTED] wrote:

 I am trying to centralize the version-numbers of all projects/dependencies
 in our system. My approach for this, is to centralize the settings.xml-file
  add all versions as profile-properties. This worked perfectly at first
 sight, but resulted in errors when trying to use the project as a
 dependency.
...
 Anyone sees what I'm doing wrong?

The settings.xml file is intended for developer-specific
configuration... the version number of a project definitely belongs in
the pom.

You can establish an organization-level pom that all your projects
inherit from and specify things that are truly common across all your
projects there, then come down to project-level parent poms for things
that are project-specific, etc.

-- 
Wendy

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



Re: Resolving dependency properties

2008-08-26 Thread Sven Vlieghe



Wendy Smoak-3 wrote:
 
 On Tue, Aug 26, 2008 at 6:31 AM, Sven Vlieghe [EMAIL PROTECTED]
 wrote:
 
 I am trying to centralize the version-numbers of all
 projects/dependencies
 in our system. My approach for this, is to centralize the
 settings.xml-file
  add all versions as profile-properties. This worked perfectly at first
 sight, but resulted in errors when trying to use the project as a
 dependency.
 ...
 Anyone sees what I'm doing wrong?
 
 The settings.xml file is intended for developer-specific
 configuration... the version number of a project definitely belongs in
 the pom.
 
 You can establish an organization-level pom that all your projects
 inherit from and specify things that are truly common across all your
 projects there, then come down to project-level parent poms for things
 that are project-specific, etc.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
I agree, that was a setup I was originally planning to do. However, each
time a dependency-version increases, this would result in having to increase
the base-pom too. That pom would have to be released to a final version, and
all existing projects would have to update their reference to it.

Sven
-- 
View this message in context: 
http://www.nabble.com/Resolving-dependency-properties-tp19162134p19163185.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: AW: Release fails during SVN commit

2008-08-26 Thread David Roussel

Stefan,

If it works for you, is it because it's a single module with no nested
modules? 

I have maven 2.0.9, svn 1.5.1 (trigis.org build), Java 1.6.0_06, Windows XP
SP2,

It's interesting that the command that fails:

  svn --non-interactive copy --file
C:\DOCUME~1\UT159N\LOCALS~1\Temp\maven-scm-1777868452.commit .
http://svnserver/svn/REPO1/Projects/InstallTools/tags/installer-0.5

also fails if I run it manually, but if I run 'svn up' then rerun it, it
works.

It's as if the previous commit has not updated the working copy in someway.

I tried to reproduce the problem in pure svn commands, creating a new repo,
adding files, tagging, then going back to a previous revision, then tagging
again.  But I was unable to reproduce it.

Perhaps there is a way to get the SCM plugin to log every command it runs,
see which step is not updating the working copy.

Thanks

David



Glase, Stefan wrote:
 
 Hi Andreas,
 
 I am not sure but maybe this would be worth a try.
 
 In my projects I always refer to the trunk folder in the SCM configuration
 and point to the tags or releases folder in the tagBase property of the
 maven-release-plugin.
 
 So your configuration would look like this in your pom.xml:
 
 scm
 connectionscm:svn:http://xxx/svndir/project/trunk/connection
 developerConnectionscm:svn:http://xxx
 /svndir/project/trunk/develope
 rConnection
 urlhttp://xxx /svndir/project//url
 /scm
 
 ...
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-release-plugin/artifactId
 configuration
 tagBasehttp://XXX.XXX.XXX.XXX/svndir/project/tags/tagBase
 autoVersionSubmodulestrue/autoVersionSubmodules
 preparationGoalsclean install/preparationGoals
 /configuration
 /plugin
 
 My idea behind this is, that it might be a problem to point to a
 tag-directory within the scm connection. I my understanding those folders
 should be on the same level.
 
 Hope to help
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: Andreas Heinecke [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 21. August 2008 10:04
 An: users@maven.apache.org
 Betreff: Release fails during SVN commit
 
 Hi there,
 
 I encountered a strange problem. Since a few weeks I'm not able to perform
 a
 release with Maven. The release process fails during executing the
 release:prepare goal at the same position, always. The point at which the
 release fails is when Maven tries to commit the release POM's to SVN. This
 commit fails with the error message that the file which is about to be
 committed already exists at the position in SVN. But it isn't there.
 Strange, uh?
 
 I actually checked the tagbase configuration of the plugin and tried to
 alter it, but the effect remains.
 I don't know what I can try to fix this issue.
 The last thing altered at the configuration is a switch of the SVN server.
 We had to switch to a newer SVN version 1.5.0. We also switched to the new
 1.5.0 SVN client as we know that there are problems with newer server
 software and older client software.
 
 Please find parts of my pom.xml configuration attached below.
 
 Any pointers are welcome.
 
 Regards,
 Andreas.
 
 My SCM configuration:
 scm
 connectionscm:svn:http://xxx.xxx.xxx.xxx/svndir/project/connection
 
 developerConnectionscm:svn:http://xxx.xxx.xxx.xxx/svndir/project/develope
 rConnection
 urlhttp://xxx.xxx.xxx.xxx/svndir/project/url
 /scm
 
 My release plugin configuration:
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-release-plugin/artifactId
 configuration
 tagBasehttp://XXX.XXX.XXX.XXX/svndir/project/tags/tagBase
 autoVersionSubmodulestrue/autoVersionSubmodules
 preparationGoalsclean install/preparationGoals
 /configuration
 /plugin
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Release-fails-during-SVN-commit-tp19084270p19163336.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [PLEASE TEST] Maven 2.0.10-RC11

2008-08-26 Thread John Casey

Great to hear. Thanks for checking.

-john

Peter Horlock wrote:

Well, my issue concerning the compiler seems to have been solved with RC11 -
the entire build is working now.
Maybe it had something to do with the fact that I am setting the compiler
version by using a property:
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source${javaVersion}/source
target${javaVersion}/target
/configuration
/plugin

Cheers,

Peter

2008/8/25 John Casey [EMAIL PROTECTED]


Well, looks like I lost track of a few issues that came up with RC10. I'll
work on addressing those issues, and probably follow up with an RC12 if we
find bugs.

-john


John Casey wrote:


Hi again,

One bug was identified in 2.0.10-RC10 last Friday night. This release
candidate addresses that issue. You can find it here:


http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC11/org/apache/maven/apache-maven/2.0.10-RC11/http://people.apache.org/%7Ejdcasey/stage/apache-maven/2.0.10-RC11/org/apache/maven/apache-maven/2.0.10-RC11/

Please give this a spin when you get a chance, and let us know if you find
any problems. We'll file any issues in JIRA against version 2.0.10 for
tracking purposes, and to give us a JIRA # to use when writing the
integration test to verify the fix.

Thanks,

-john



--
John Casey
Developer, PMC Member - Apache Maven (http://maven.apache.org)
Blog: http://www.ejlife.net/blogs/buildchimp/

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






--
John Casey
Developer, PMC Member - Apache Maven (http://maven.apache.org)
Blog: http://www.ejlife.net/blogs/buildchimp/

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



Second try: Using optional packages with EARs

2008-08-26 Thread Vogel,Chris
I'm re-posting because I didn't get any response the first time.  Any
help would be greatly appreciated.

Just to let you know, I know that I have the option of hand generating
the manifest file, but I'd prefer that it be generated.

Thanks,

Chris

-Original Message-
From: Vogel,Chris
Sent: Friday, August 22, 2008 4:42 PM
To: users@maven.apache.org
Subject: Using optional packages with EARs

I'm relatively new to Maven and am trying to build an EAR file, while
using the optional packages capability of our application server.  So,
in my project, I have an EJB module that has a dependency on
commons-lang, with no scope definition (so, compile).  In the EAR
module, I specify the EJB module as a dependency and specify to
maven-ear-plugin to add extensions to the manifest.  When I do that, I
get commons-lang in the Extension-List manifest entry, but the JAR file
is also included in the EAR file.

I'm sure it is something simple I am missing, but I have not been able
to find it.  Has anyone every tried this and succeeded?

Thank you,

Chris
 
 If you are not the intended recipient of this message (including
attachments), or if you have received this message in error, immediately
notify us and delete it and any attachments.  If you no longer wish to
receive e-mail from Edward Jones, please send this request to
[EMAIL PROTECTED]  You must include the e-mail address that you
wish not to receive e-mail communications.  For important additional
information related to this e-mail, visit
www.edwardjones.com/US_email_disclosure

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



Profile for different JVMs

2008-08-26 Thread Peter Horlock
Hi,

we have several projects, all of which or developed and compiled in java 5.
However, we have one project, which is run by a client on Java 6, and to
make it run,
we have to exclude a dependency (JAXB) that is part of Java 6. However,
without this dependency it's not running on Java 5.
In other words, I need a profile, that does not only declare other
dependencies ( I managed that part), but that would also
re-set the system properties for Java 5 / Java 6 - if that's possible
someone.
Currently, I have to adjust these settings, then I have to restart my entire
machine, all this takes ages and is error prone...

Any ideas?

Thanks in advance,

Peter


AW: AW: Release fails during SVN commit

2008-08-26 Thread Glase, Stefan
Hello David,

I just updated to Subversion version 1.5.1 (r32289) and now i am running into 
the same problem as you.

Stephen refered to similar issues today in this list.

Regards
Stefan


-Ursprüngliche Nachricht-
Von: David Roussel [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 26. August 2008 16:39
An: users@maven.apache.org
Betreff: Re: AW: Release fails during SVN commit


Stefan,

If it works for you, is it because it's a single module with no nested
modules?

I have maven 2.0.9, svn 1.5.1 (trigis.org build), Java 1.6.0_06, Windows XP
SP2,

It's interesting that the command that fails:

  svn --non-interactive copy --file
C:\DOCUME~1\UT159N\LOCALS~1\Temp\maven-scm-1777868452.commit .
http://svnserver/svn/REPO1/Projects/InstallTools/tags/installer-0.5

also fails if I run it manually, but if I run 'svn up' then rerun it, it
works.

It's as if the previous commit has not updated the working copy in someway.

I tried to reproduce the problem in pure svn commands, creating a new repo,
adding files, tagging, then going back to a previous revision, then tagging
again.  But I was unable to reproduce it.

Perhaps there is a way to get the SCM plugin to log every command it runs,
see which step is not updating the working copy.

Thanks

David



Glase, Stefan wrote:

 Hi Andreas,

 I am not sure but maybe this would be worth a try.

 In my projects I always refer to the trunk folder in the SCM configuration
 and point to the tags or releases folder in the tagBase property of the
 maven-release-plugin.

 So your configuration would look like this in your pom.xml:

 scm
 connectionscm:svn:http://xxx/svndir/project/trunk/connection
 developerConnectionscm:svn:http://xxx
 /svndir/project/trunk/develope
 rConnection
 urlhttp://xxx /svndir/project//url
 /scm

 ...

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-release-plugin/artifactId
 configuration
 tagBasehttp://XXX.XXX.XXX.XXX/svndir/project/tags/tagBase
 autoVersionSubmodulestrue/autoVersionSubmodules
 preparationGoalsclean install/preparationGoals
 /configuration
 /plugin

 My idea behind this is, that it might be a problem to point to a
 tag-directory within the scm connection. I my understanding those folders
 should be on the same level.

 Hope to help
 Stefan

 -Ursprüngliche Nachricht-
 Von: Andreas Heinecke [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 21. August 2008 10:04
 An: users@maven.apache.org
 Betreff: Release fails during SVN commit

 Hi there,

 I encountered a strange problem. Since a few weeks I'm not able to perform
 a
 release with Maven. The release process fails during executing the
 release:prepare goal at the same position, always. The point at which the
 release fails is when Maven tries to commit the release POM's to SVN. This
 commit fails with the error message that the file which is about to be
 committed already exists at the position in SVN. But it isn't there.
 Strange, uh?

 I actually checked the tagbase configuration of the plugin and tried to
 alter it, but the effect remains.
 I don't know what I can try to fix this issue.
 The last thing altered at the configuration is a switch of the SVN server.
 We had to switch to a newer SVN version 1.5.0. We also switched to the new
 1.5.0 SVN client as we know that there are problems with newer server
 software and older client software.

 Please find parts of my pom.xml configuration attached below.

 Any pointers are welcome.

 Regards,
 Andreas.

 My SCM configuration:
 scm
 connectionscm:svn:http://xxx.xxx.xxx.xxx/svndir/project/connection

 developerConnectionscm:svn:http://xxx.xxx.xxx.xxx/svndir/project/develope
 rConnection
 urlhttp://xxx.xxx.xxx.xxx/svndir/project/url
 /scm

 My release plugin configuration:
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-release-plugin/artifactId
 configuration
 tagBasehttp://XXX.XXX.XXX.XXX/svndir/project/tags/tagBase
 autoVersionSubmodulestrue/autoVersionSubmodules
 preparationGoalsclean install/preparationGoals
 /configuration
 /plugin


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




--
View this message in context: 
http://www.nabble.com/Release-fails-during-SVN-commit-tp19084270p19163336.html
Sent from the Maven - Users mailing list archive at Nabble.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: Resolving dependency properties

2008-08-26 Thread Geoffrey Wiseman
On Tue, Aug 26, 2008 at 10:30 AM, Sven Vlieghe [EMAIL PROTECTED]wrote:

 I agree, that was a setup I was originally planning to do. However, each
 time a dependency-version increases, this would result in having to
 increase
 the base-pom too. That pom would have to be released to a final version,
 and
 all existing projects would have to update their reference to it.


You could use an in-flux snapshot parent pom for that, I imagine.

-- 
Geoffrey Wiseman


Re: AW: Release fails during SVN commit

2008-08-26 Thread Arnaud HERITIER
Same error for me with SVN 1.5.1 on windows.
It's not a MAC only issue
Coming back to 1.4.6 solves the issue

Arnaud

On Tue, Aug 26, 2008 at 5:17 PM, Glase, Stefan 
[EMAIL PROTECTED] wrote:

 Hello David,

 I just updated to Subversion version 1.5.1 (r32289) and now i am running
 into the same problem as you.

 Stephen refered to similar issues today in this list.

 Regards
 Stefan


 -Ursprüngliche Nachricht-
 Von: David Roussel [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 26. August 2008 16:39
 An: users@maven.apache.org
 Betreff: Re: AW: Release fails during SVN commit


 Stefan,

 If it works for you, is it because it's a single module with no nested
 modules?

 I have maven 2.0.9, svn 1.5.1 (trigis.org build), Java 1.6.0_06, Windows
 XP
 SP2,

 It's interesting that the command that fails:

  svn --non-interactive copy --file
 C:\DOCUME~1\UT159N\LOCALS~1\Temp\maven-scm-1777868452.commit .
 http://svnserver/svn/REPO1/Projects/InstallTools/tags/installer-0.5

 also fails if I run it manually, but if I run 'svn up' then rerun it, it
 works.

 It's as if the previous commit has not updated the working copy in someway.

 I tried to reproduce the problem in pure svn commands, creating a new repo,
 adding files, tagging, then going back to a previous revision, then tagging
 again.  But I was unable to reproduce it.

 Perhaps there is a way to get the SCM plugin to log every command it runs,
 see which step is not updating the working copy.

 Thanks

 David



 Glase, Stefan wrote:
 
  Hi Andreas,
 
  I am not sure but maybe this would be worth a try.
 
  In my projects I always refer to the trunk folder in the SCM
 configuration
  and point to the tags or releases folder in the tagBase property of the
  maven-release-plugin.
 
  So your configuration would look like this in your pom.xml:
 
  scm
  connectionscm:svn:http://xxx/svndir/project/trunk/connection
  developerConnectionscm:svn:http://xxx
  /svndir/project/trunk/develope
  rConnection
  urlhttp://xxx /svndir/project//url
  /scm
 
  ...
 
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-release-plugin/artifactId
  configuration
  tagBasehttp://XXX.XXX.XXX.XXX/svndir/project/tags/tagBase
  autoVersionSubmodulestrue/autoVersionSubmodules
  preparationGoalsclean install/preparationGoals
  /configuration
  /plugin
 
  My idea behind this is, that it might be a problem to point to a
  tag-directory within the scm connection. I my understanding those folders
  should be on the same level.
 
  Hope to help
  Stefan
 
  -Ursprüngliche Nachricht-
  Von: Andreas Heinecke [mailto:[EMAIL PROTECTED]
  Gesendet: Donnerstag, 21. August 2008 10:04
  An: users@maven.apache.org
  Betreff: Release fails during SVN commit
 
  Hi there,
 
  I encountered a strange problem. Since a few weeks I'm not able to
 perform
  a
  release with Maven. The release process fails during executing the
  release:prepare goal at the same position, always. The point at which the
  release fails is when Maven tries to commit the release POM's to SVN.
 This
  commit fails with the error message that the file which is about to be
  committed already exists at the position in SVN. But it isn't there.
  Strange, uh?
 
  I actually checked the tagbase configuration of the plugin and tried to
  alter it, but the effect remains.
  I don't know what I can try to fix this issue.
  The last thing altered at the configuration is a switch of the SVN
 server.
  We had to switch to a newer SVN version 1.5.0. We also switched to the
 new
  1.5.0 SVN client as we know that there are problems with newer server
  software and older client software.
 
  Please find parts of my pom.xml configuration attached below.
 
  Any pointers are welcome.
 
  Regards,
  Andreas.
 
  My SCM configuration:
  scm
  connectionscm:svn:http://xxx.xxx.xxx.xxx/svndir/project
 /connection
 
  developerConnectionscm:svn:http://xxx.xxx.xxx.xxx/svndir/project
 /develope
  rConnection
  urlhttp://xxx.xxx.xxx.xxx/svndir/project/url
  /scm
 
  My release plugin configuration:
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-release-plugin/artifactId
  configuration
  tagBasehttp://XXX.XXX.XXX.XXX/svndir/project/tags/tagBase
  autoVersionSubmodulestrue/autoVersionSubmodules
  preparationGoalsclean install/preparationGoals
  /configuration
  /plugin
 
 
  -
  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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Release-fails-during-SVN-commit-tp19084270p19163336.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 

Re: release:prepare and multi-module projects

2008-08-26 Thread Geoffrey Wiseman
On Tue, Aug 26, 2008 at 9:18 AM, David Roussel
[EMAIL PROTECTED]wrote:

 If I repeat that svn command on the comand line it does fail again.  The
 So has anyone else got the release plugin to work in multi-module projects
 using svn?


I've done lots of releases of multi-module projects with the release plugin
using SVN either over https or ssh+svn, most recently with Maven 2.0.8 and
2.0.9.  Haven't hit the issue you're describing, so I'm not sure what to
suggest.

  - Geoffrey
-- 
Geoffrey Wiseman


Re: release:prepare and multi-module projects

2008-08-26 Thread David Roussel

Are you trying to release a nested project?  I am?

What kind of authentication are you using?  I'm using windows authetication,
via Apache 2.2 and mod_sspi.  Not sure if that makes a difference.

David




jrduncans wrote:
 
 Sounds like the same problem many are facing with a bug in SVN 1.5.1
 
 See these threads on the SVN  Maven mailing lists:
 
 http://www.nabble.com/Mac-OS-X-%2B-SVN-1.5.1-%3D-Branch-problem-td19017538.html#a19142776
 http://www.nabble.com/Release-fails-during-SVN-commit-td19084270.html
 
 I'm still looking to get some confirmation that it's a bug before
 reporting
 it ion the SVN issue tracker...
 
 -Stephen
 
 
 On Tue, Aug 26, 2008 at 9:18 AM, David Roussel
 [EMAIL PROTECTED]wrote:
 

 I've been trying to run release:prepare on a nested project and I keep
 running into the same SVN related issues.  Has anyone else got it
 working?

 I can supply the full trace, but the basic problem I get is:

 ...
 [INFO] Executing: svn --non-interactive copy --file
 C:\DOCUME~1\UT159N\LOCALS~1\Temp\maven-scm-1626400052.commit .
 http://gcm-svn/
 svn/REPO1/Projects/InstallTools/tags/installer-0.5http://gcm-svn/svn/REPO1/Projects/InstallTools/tags/installer-0.5
 [INFO] Working directory: D:\dev\workspace1\installer
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Unable to tag SCM
 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: File

 '/svn/REPO1/Projects/InstallTools/tags/installer-0.5/installer-plugin/pom.xml'
 already exists


 If I repeat that svn command on the comand line it does fail again.  The
 file does not exist. But if I do 'svn update' and then repeat it, then it
 works.

 Also if I manually, do a 'svn copy URL URL' version of tagging, that also
 works.

 I've been trying to reproduce the problem in raw svn, just doing svn
 commands and I can't.  So I guess it must be a maven-release-plugin bug.

 So has anyone else got the release plugin to work in multi-module
 projects
 using svn?

 Thanks

 David
 --
 View this message in context:
 http://www.nabble.com/release%3Aprepare-and-multi-module-projects-tp19161884p19161884.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 Stephen Duncan Jr
 www.stephenduncanjr.com
 
 

-- 
View this message in context: 
http://www.nabble.com/release%3Aprepare-and-multi-module-projects-tp19161884p19164407.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: AW: Got any simple tutorial to learn Maven?

2008-08-26 Thread Henry Loke

U follow the java World tutorial from this link
http://www.javaworld.com/javaworld/jw-12-2005/jw-1205-maven.html?page=3

I just start for a first create command as below

C:\Users\User\Desktop\jw-1205-maven\application\HotelDatabasemvn
archetype:crea
te -DgroupId=com.javaworld.hotels -DartifactId=HotelDatabase
-Dpackagename=com.j
avaworld.hotels
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Hotel Database tutorial application
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]

[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: com.javaworld.hotels
[INFO]
-
---
[INFO] Using following parameters for creating OldArchetype:
maven-archetype-qui
ckstart:RELEASE
[INFO]
-
---
[INFO] Parameter: groupId, Value: com.javaworld.hotels
[INFO] Parameter: packageName, Value: com.javaworld.hotels
[INFO] Parameter: package, Value: com.javaworld.hotels
[INFO] Parameter: artifactId, Value: HotelDatabase
[INFO] Parameter: basedir, Value:
C:\Users\User\Desktop\jw-1205-maven\applicatio
n\HotelDatabase
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating from archetype

Embedded error: Unable to add module to the current project as it is not of
pack
aging type 'pom'
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Aug 26 23:49:36 SGT 2008
[INFO] Final Memory: 8M/254M
[INFO]


===

From the first command I not succesfully create Archetype, what matter?

Thank


Glase, Stefan wrote:
 
 Hello Henry,
 
 I would recommend you to read the book Maven: The Definitive Guide. You
 can get it for free from
 http://www.sonatype.com/community/definitive_guide.html and I like the
 examples that help to explain the concepts of maven.
 
 Speaking of dependency management as you mention in your message there is
 a very easy example in chapter 3 and 4 of the book.
 
 Hope to help
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: Henry Loke [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 26. August 2008 11:58
 An: users@maven.apache.org
 Betreff: Got any simple tutorial to learn Maven?
 
 
 As mention in
 http://docs.codehaus.org/display/GEOTOOLS/2+What+is+Maven+and+why+do+you+use+it
 It also manages (and downloads) any third party jars that are needed for a
 build.
 
 Is it mean that if the log4j.jar used in my project, the maven is
 configure
 in such the maven will go to repository to download the log4j.jar file and
 put it into specific directory. When run the maven script, then the how
 project will deploy successfully.
 
 I read a lot about Maven...
 But I still don't know how to implement it to my project.
 
 But I no idea how to use Maven
 I using JBoss and elipse for my project... Ant is use to compile and
 deploy
 the code.
 
 P/s: Even Maven is still new for me. But I still have effort to learn from
 sketch. Beside documentation but I also need you all to support me.
 
 Thanks...
 --
 View this message in context:
 http://www.nabble.com/Got-any-simple-tutorial-to-learn-Maven--tp19158765p19158765.html
 Sent from the Maven - Users mailing list archive at Nabble.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Got-any-simple-tutorial-to-learn-Maven--tp19158765p19164822.html
Sent from the Maven - Users mailing list archive at Nabble.com.



I can has Velocity and Archetypes?

2008-08-26 Thread Mykel Alvis
I have created a couple of very basic archetypes, but I have a new need.
I read several places that I can use velocity templates with archetypes, but
none of the examples seem to indicate how this is accomplished.
Is there an existing archetype that uses velocity that I can go
cannibalize?  Perhaps there are docs that I've missed?

Mykel


Re: Profile for different JVMs

2008-08-26 Thread Wayne Fay
Use profile activation based on the JDK. Read more here:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

I would simply set my pom dependencies to the minimum set, and then a
profile which adds dependencies as needed based on the JDK being used.

Wayne

On 8/26/08, Peter Horlock [EMAIL PROTECTED] wrote:
 Hi,

 we have several projects, all of which or developed and compiled in java 5.
 However, we have one project, which is run by a client on Java 6, and to
 make it run,
 we have to exclude a dependency (JAXB) that is part of Java 6. However,
 without this dependency it's not running on Java 5.
 In other words, I need a profile, that does not only declare other
 dependencies ( I managed that part), but that would also
 re-set the system properties for Java 5 / Java 6 - if that's possible
 someone.
 Currently, I have to adjust these settings, then I have to restart my entire
 machine, all this takes ages and is error prone...

 Any ideas?

 Thanks in advance,

 Peter


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



Re: how to manage two different projects with similar project structures

2008-08-26 Thread Wayne Fay
Unless something has changed (regression), this is automatically
handled by recent releases of the EAR and WAR plugins (jars are
renamed to be unique). Give it a try and report back.

Wayne

On 8/26/08, Shakun Gupta [EMAIL PROTECTED] wrote:
 Hi Guillaume,

 Sorry, I did not provide a bit of clarification while asking the question.
 Actually, all our projects have a similar structure.
 For ex : -
 A (groupId)
   - entities (artifactId)
   - utilities (artifactId)
   etc..

 B (groupId)
   - entities (artifactId)
   - utilities (artifactId)
   etc..

 Entities in A is totally different from entities in B, so I can not share
 entities. When i run /*mvn install, */entities are installed in the
 .m2/respository as follows :

 A (groupId)
   - entities (artifactId)
  - 1.0.0
 - entities-1.0.0.jar
   - etc..
 B (groupId)
   - entities (artifactId)
  - 1.0.0
 - entities-1.0.0.jar
   - etc..

 So, now if my another project D (also following the same structure), depends
 on both A and B, and I deploy a web-app, then there is a conflict between
 the entities-1.0.0.jar.

 I can do one thing as renaming entities in A to A-entities and so on to
 avoid the conflict. Is there a better way? I am not sure if the folder name
 (entities) can be different from the artifactId.

 Regards,
 Shakun

 Jeudy, Guillaume wrote:
 
  An artifact is uniquely identified by its groupId, artifactId, version and
 classifier.
   In your case I hope your groupId, artifactId is different because your
 'M' module really(i deduce) is a different module for 'A'  'B' projects.
   If your M module is a shared module then I suggest that either 'A' or 'B'
 refer to the other 'M' rather than installing it's own 'M'. You might also
 want to move out M module in its own project and have both A and B refer to
 it. You'll have to take into account the lifecycles of your projects and
 decide what makes the most sense to do.
   -GJ
 
  
 
  From: Shakun Gupta [mailto:[EMAIL PROTECTED]
  Sent: Mon 25/08/2008 6:28 AM
  To: Maven Users List
  Subject: how to manage two different projects with similar project
 structures
 
 
 
  Hi,
 
  I have created two different projects, say A  B. Both contain a
  module, say M. When i run, /mvn install /in both the projects, M gets
  installed in my local repository at two different locations, but with
  the same name, say M-1.0.0.jar. Now, if I add the modules M as
  dependencies to my 3rd application, say D, in the final war of D, only
  one M is there.
  Is there a  way to change the name of M-1.0.0.jar of A to A-M-1.0.0.jar
  or some similar name, without explicitly renaming the folder name of
  module M to A-M and B-M.
 
  Regards,
  Shakun
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 
  This electronic mail (including any attachments) may contain information
 that is privileged, confidential, and/or otherwise protected from disclosure
 to anyone other than its intended recipient(s). Any dissemination or use of
 this electronic email or its contents (including any attachments) by persons
 other than the intended recipient(s) is strictly prohibited. If you have
 received this message in error, please notify us immediately by reply email
 so that we may correct our internal records. Please then delete the original
 message (including any attachments) in its entirety. Thank you.
 
 
 
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



Maven Assembly Help

2008-08-26 Thread Adam
Greetings:

Earlier I had posted about getting duplicate .class files in a
Jar-with-dependencies.  The fix I found was to exclude the
${project.groupId}:${project.artifactId} from the current project.
However, I am getting duplicates it seems from transitively dependent
JARs and am finding it difficult (ie, not yet possible from what I've
done) to exclude them.  Can someone please help with not getting the
duplicate .class files in a jar-with dependencies?  The reasoning for
this is I need to obfuscate the JAR (I am using a the antrun plugin
with YGuard for this).

My setup:
Windows XP 32bit
Maven 2.0.8
Java 1.6.0_07

Here is my assembly descriptor
assembly
  idjar-with-dependencies/id
  formats
formatjar/format
  /formats
  includeBaseDirectoryfalse/includeBaseDirectory
  dependencySets
dependencySet
  unpacktrue/unpack
  scoperuntime/scope
  excludes
excludecom.mobilvox.endGroupId:${project.artifactId}/exclude
  /excludes
/dependencySet
  /dependencySets
  fileSets
fileSet
  directorytarget/classes/directory
  outputDirectory//outputDirectory
/fileSet
  /fileSets
/assembly

I have tried adding this to maybe remove a duplicate:
excludenu.xom:javax/exclude

It did not work, and my duplicates are still coming from javax.xml and
javax.transaction.

Thanks in advance,

-- 
Adam

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



Re: Maven Archetype tutorials?

2008-08-26 Thread Nino Saturnino Martinez Vazquez Wael



Raphaël Piéroni wrote:

Answers inlined

Raphaël

2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:
  

I'll try it out, examples would be nice though:) It would be really cool if
there were more tutorials on creating advanced archetypes.



Please capture your experimentation to improve the documentation ;-)
  
I'll do just that:) Just did'nt want to if there some hidden maven 
bundles of articles out there regarding archetypes I just didn't discover.
  

Raphaël Piéroni wrote:


Hi Nino,

The best way to start creating an archetype is to :
- create a project (in your case a multi-module with a switch)

  

What do you mean by switch? Like profiles?



I don't mean nothing, it was your intention in your first mail to have
things switchable,
because the archetype plugin don't allow you to use some parts in some case and
other parts in another case. Then i assumed it was in your example ;-)

  

- call mvn archetype:create-from-project on your example project

you then try your archetype by :
- moving in target/generated-sources/archetype from your example project
- call mvn install
- move in a fresh directory
- call mvn archetype:generate -DarchetypeCatalog=local

Hope this helps


Raphaël

2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:

  

Hi

Where can I find some tutorials on howto do archetypes? It would be
really
cool with an tutorial on howto make multimodule archetypes.

Im wanting todo a archetype for Apache Wicket which includes 2 modules,
web
and core both being switchable with a parameter. Forexample if you want a
guice or spring project... If you are a maven guru and want to
participate
please write me:)

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Maven Archetype tutorials?

2008-08-26 Thread Nino Saturnino Martinez Vazquez Wael



Raphaël Piéroni wrote:

2008/8/26 Raphaël Piéroni [EMAIL PROTECTED]:
  

Answers inlined

Raphaël

2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:


I'll try it out, examples would be nice though:) It would be really cool if
there were more tutorials on creating advanced archetypes.
  


I found this page on the plugin's site
http://maven.apache.org/plugins/maven-archetype-plugin/advanced-usage.html
  
I know, but it seems to be with version 2.0.3-alpha, I believe there 
where a major overhaul of archetype in 2.0.9 right?
  

Please capture your experimentation to improve the documentation ;-)



Raphaël Piéroni wrote:
  

Hi Nino,

The best way to start creating an archetype is to :
- create a project (in your case a multi-module with a switch)



What do you mean by switch? Like profiles?
  

I don't mean nothing, it was your intention in your first mail to have
things switchable,
because the archetype plugin don't allow you to use some parts in some case and
other parts in another case. Then i assumed it was in your example ;-)



- call mvn archetype:create-from-project on your example project

you then try your archetype by :
- moving in target/generated-sources/archetype from your example project
- call mvn install
- move in a fresh directory
- call mvn archetype:generate -DarchetypeCatalog=local

Hope this helps


Raphaël

2008/8/26 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:



Hi

Where can I find some tutorials on howto do archetypes? It would be
really
cool with an tutorial on howto make multimodule archetypes.

Im wanting todo a archetype for Apache Wicket which includes 2 modules,
web
and core both being switchable with a parameter. Forexample if you want a
guice or spring project... If you are a maven guru and want to
participate
please write me:)

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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


  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Hibernate3 plugin : problem with mapping

2008-08-26 Thread MedElb
i relance my request :)

i'm using Hibernate3 plugin for generation mapping classes and HBM for an
oracle schema
the probleme that the goal mvn hibernate3:hbm2cfgxml or the the other
available goals checks also system table
and the exceution take many time, at the and i get that trace error :



16:05:50,780 DEBUG org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy
- Default type found for [SYS._ALL_INSTANTIATION_DDL.DDL_TEXT t:CLOB l:
255 p:19 s:2 n:true id:false] to [clob]
16:05:50,780 DEBUG org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy
- Default type found for [SYS._ALL_INSTANTIATION_DDL.DDL_NUM t:NUMERIC
l:255 p:22 s:0 n:false id:false] to [big_decimal]
16:05:50,780 DEBUG org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy
- Default type found for [SYS._ALL_INSTANTIATION_DDL.PHASE t:NUMERIC l:
255 p:22 s:0 n:false id:false] to [big_decimal]
16:05:50,780  INFO org.hibernate.connection.DriverManagerConnectionProvider
- cleaning up connection pool: jdbc:@oracle:thin:@url:1521:SIDNAME
[INFO] 

[ERROR] FATAL ERROR
[INFO] 

[INFO] Duplicate class name 'AllRepcolumn' generated for
'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'. Same name where generated
for 'org.hibern
ate.mapping.Table(SYS._ALL_REPCOLUMN)'
[INFO] 

[INFO] Trace
org.hibernate.cfg.JDBCBinderException: Duplicate class name 'AllRepcolumn'
generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'. Same name
 where generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'
at org.hibernate.cfg.JDBCBinder.createPersistentClasses(
JDBCBinder.java:166)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:89)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(
JDBCMetaDataConfiguration.java:42)
at org.codehaus.mojo.hibernate3.configuration.
JDBCComponentConfiguration.doConfiguration(JDBCComponentConfiguration.
java:67)
at org.codehaus.mojo.hibernate3.configuration.
AbstractComponentConfiguration.getConfiguration(
AbstractComponentConfiguration.java:56)
at org.codehaus.mojo.hibernate3.HibernateExporterMojo.
configureExporter(HibernateExporterMojo.java:197)
at org.codehaus.mojo.hibernate3.exporter.Hbm2CfgXmlExporterMojo.
configureExporter(Hbm2CfgXmlExporterMojo.java:62)
at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(
HibernateExporterMojo.java:270)
at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(
HibernateExporterMojo.java:149)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:447)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:463)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.
executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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:597)
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: 3 minutes 23 seconds
[INFO] Finished at: Tue Aug 26 16:05:50 CEST 2008
16:05:51,021  INFO org.hibernate.connection.DriverManagerConnectionProvider
- cleaning up connection pool: jdbc:oracle:thin:@url:1521:SIDNAME
[INFO] Final Memory: 12M/28M
[INFO] 





im using oracle DB version 9.2.0.8.0
with maven configuration :

build
plugins
..
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId

RE: how to manage two different projects with similar project structures

2008-08-26 Thread Jeudy, Guillaume
Hi Shakun,
 
I think you should review your naming conventions so that any submodule can be 
uniquely identified within your organization projects.
 
For example in our company we use the following pattern for groupIds: 
companyName.projectname
 
so in your case you would have:
 
groupId:  yourcompany.A
artifactId:  entities
 
groupId: yourcompany.B
artifactIdl: entities
 
This way you will not have a namespace collision when importing your dependency 
in project D.
 
If you already have this setup and hit an error then maybe you need to provide 
more information including your mvn cmd, stacktrace + relevant pom.xml snippets.
 
Kind regards,
-Guillaume



From: Shakun Gupta [mailto:[EMAIL PROTECTED]
Sent: Tue 26/08/2008 5:11 AM
To: Maven Users List
Subject: Re: how to manage two different projects with similar project 
structures



Hi Guillaume,

Sorry, I did not provide a bit of clarification while asking the
question. Actually, all our projects have a similar structure.
For ex : -
A (groupId)
- entities (artifactId)
- utilities (artifactId)
etc..

B (groupId)
- entities (artifactId)
- utilities (artifactId)
etc..

Entities in A is totally different from entities in B, so I can not
share entities. When i run /*mvn install, */entities are installed in
the .m2/respository as follows :

A (groupId)
- entities (artifactId)
   - 1.0.0
  - entities-1.0.0.jar
- etc..
B (groupId)
- entities (artifactId)
   - 1.0.0
  - entities-1.0.0.jar
- etc..

So, now if my another project D (also following the same structure),
depends on both A and B, and I deploy a web-app, then there is a
conflict between the entities-1.0.0.jar.

I can do one thing as renaming entities in A to A-entities and so on to
avoid the conflict. Is there a better way? I am not sure if the folder
name (entities) can be different from the artifactId.

Regards,
Shakun

Jeudy, Guillaume wrote:
 An artifact is uniquely identified by its groupId, artifactId, version and 
 classifier.
 
 In your case I hope your groupId, artifactId is different because your 'M' 
 module really(i deduce) is a different module for 'A'  'B' projects.
 
 If your M module is a shared module then I suggest that either 'A' or 'B' 
 refer to the other 'M' rather than installing it's own 'M'. You might also 
 want to move out M module in its own project and have both A and B refer to 
 it. You'll have to take into account the lifecycles of your projects and 
 decide what makes the most sense to do.
 
 -GJ

 

 From: Shakun Gupta [mailto:[EMAIL PROTECTED]
 Sent: Mon 25/08/2008 6:28 AM
 To: Maven Users List
 Subject: how to manage two different projects with similar project structures



 Hi,

 I have created two different projects, say A  B. Both contain a
 module, say M. When i run, /mvn install /in both the projects, M gets
 installed in my local repository at two different locations, but with
 the same name, say M-1.0.0.jar. Now, if I add the modules M as
 dependencies to my 3rd application, say D, in the final war of D, only
 one M is there.
 Is there a  way to change the name of M-1.0.0.jar of A to A-M-1.0.0.jar
 or some similar name, without explicitly renaming the folder name of
 module M to A-M and B-M.

 Regards,
 Shakun

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






 
 This electronic mail (including any attachments) may contain information that 
 is privileged, confidential, and/or otherwise protected from disclosure to 
 anyone other than its intended recipient(s). Any dissemination or use of this 
 electronic email or its contents (including any attachments) by persons other 
 than the intended recipient(s) is strictly prohibited. If you have received 
 this message in error, please notify us immediately by reply email so that we 
 may correct our internal records. Please then delete the original message 
 (including any attachments) in its entirety. Thank you.

  
 

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


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







This electronic mail (including any attachments) may contain information that 
is privileged, confidential, and/or otherwise protected from disclosure to 
anyone other than its intended recipient(s). Any dissemination or use of this 
electronic email or its 

Wrong output of mvn help:describe?

2008-08-26 Thread Rintcius

Hi,

I wanted to check the used version of the surefire plugin.
I got:
 mvn help:describe -Dplugin=surefire

...
[INFO] [help:describe]
[INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.2'
---
Group Id:  org.apache.maven.plugins
Artifact Id: maven-surefire-plugin
Version: 2.2
Goal Prefix: surefire

However, when I run:
 mvn help:effective-pom

I get
...
pluginManagement
  plugins
plugin
  artifactIdmaven-surefire-plugin/artifactId
  version2.4.3/version
  configuration
testFailureIgnoretrue/testFailureIgnore
includes
  include**/*Test.java/include
/includes
formathtml/format
  /configuration
/plugin
  /plugins
/pluginManagement
...


My pom structure is quite simple: just a parent pom.xml with the
pluginmanagement section as above and a child pom using that. I have tested
with both maven 2.0.8 and 2.0.9.


The surefire version that I intend to be using is 2.4.3 (just like it is
returned by help:effective-pom) and I guess this version is being used
although I am not 100% sure of it. 
But why is help:describe returning something different? Is this a bug or am
I missing something?

Thanks for any help,
Rintcius
-- 
View this message in context: 
http://www.nabble.com/Wrong-output-of-mvn-help%3Adescribe--tp19168212p19168212.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Problem of resolving eclipse swt linux library

2008-08-26 Thread Carfield Yim

I see... thanks, now I can resolve and download the correct swt library.
However, we would like to make the test running with maven correctly for
Windows and Linux. How can I tell maven to use correct platform of library?


lukewpatterson wrote:
 
 These are in the repo
 
 groupIdorg.eclipse.swt.gtk.linux/groupId
 artifactIdx86_64/artifactId
 [1]
 
 groupIdorg.eclipse.swt.gtk.linux/groupId
 artifactIdx86/artifactId
 [2]
 
 The (groupId/artifactId)s are different than what you had listed.
 
 
 
 [1] -
 http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/
 [2] -
 http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/
 

-- 
View this message in context: 
http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19168249.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Problem of resolving eclipse swt linux library

2008-08-26 Thread Carfield Yim

Actually what I like to do is to tell maven to use
System.getProperty(user.os) and select the right dependence, is that
possible?


Carfield Yim wrote:
 
 I see... thanks, now I can resolve and download the correct swt library.
 However, we would like to make the test running with maven correctly for
 Windows and Linux. How can I tell maven to use correct platform of
 library?
 
 
 lukewpatterson wrote:
 
 These are in the repo
 
 groupIdorg.eclipse.swt.gtk.linux/groupId
 artifactIdx86_64/artifactId
 [1]
 
 groupIdorg.eclipse.swt.gtk.linux/groupId
 artifactIdx86/artifactId
 [2]
 
 The (groupId/artifactId)s are different than what you had listed.
 
 
 
 [1] -
 http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/
 [2] -
 http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19168597.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Problem of resolving eclipse swt linux library

2008-08-26 Thread Andrew Robinson
I used the maven assembly plugin to pull in the correct Jar. I have
all 3 jars (linux, Mac and Windows) as provided so that they are
there for compilation but they don't get automatically included in the
release. You can also have a profile to trigger on the correct current
OS, but that will not help you for releases, as you may want to
package a windows build on Linux.

-Andrew

On Tue, Aug 26, 2008 at 1:23 PM, Carfield Yim [EMAIL PROTECTED] wrote:

 Actually what I like to do is to tell maven to use
 System.getProperty(user.os) and select the right dependence, is that
 possible?


 Carfield Yim wrote:

 I see... thanks, now I can resolve and download the correct swt library.
 However, we would like to make the test running with maven correctly for
 Windows and Linux. How can I tell maven to use correct platform of
 library?


 lukewpatterson wrote:

 These are in the repo

 groupIdorg.eclipse.swt.gtk.linux/groupId
 artifactIdx86_64/artifactId
 [1]

 groupIdorg.eclipse.swt.gtk.linux/groupId
 artifactIdx86/artifactId
 [2]

 The (groupId/artifactId)s are different than what you had listed.



 [1] -
 http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/
 [2] -
 http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/




 --
 View this message in context: 
 http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19168597.html
 Sent from the Maven - Users mailing list archive at Nabble.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]



[ANNOUNCE] Nexus Maven Repository Manager 1.0 Released!

2008-08-26 Thread Jason van Zyl
After 5 months of very intense work the Sonatype Nexus team is very  
pleased to announce Nexus 1.0! Woo hoo!


You can read about it in Brian's post here:
http://blogs.sonatype.com/brian/2008/08/26/1219764133092.html

You can download it from here:
http://nexus.sonatype.org/download.html

You can subscribe to the Nexus user mailing list here:
[EMAIL PROTECTED]

Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

Our achievements speak for themselves. What we have to keep track
of are our failures, discouragements and doubts. We tend to forget
the past difficulties, the many false starts, and the painful
groping. We see our past achievements as the end result of a
clean forward thrust, and our present difficulties as
signs of decline and decay.

 -- Eric Hoffer, Reflections on the Human Condition


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



http repository references from pom

2008-08-26 Thread Dharmendra Desai (dhdesai)
I have a http repository set up and it's referenced in the
distributionManagement tag in each pom. 
 
I want to take the http-repository reference out of the poms and put it
in settings.xml or externalize it in some properties file.

What's the best way to do this?
 
thanks.


RE: Hibernate3 plugin : problem with mapping generatting

2008-08-26 Thread Johann Reyes
Hi

That's explained here

http://www.velocityreviews.com/forums/t298010-jboss-ide-using-hibernate-tool
s-getting-jdbcbinderexception.html

Basically you need to specify your schema in a hibernate.reveng.xml file.

Regards

Johann Reyes


-Original Message-
From: MedElb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 10:15 AM
To: Maven Users List
Subject: Hibernate3 plugin : problem with mapping generatting

Hi all

i'm using Hibernate3 plugin for generation mapping classes and HBM for an
oracle schema
the probleme that the goal mvn hibernate3:hbm2cfgxml or the the other vlable
goal checks also system table
and the exceution take many time, at the and i get that trace error :



16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.DDL_TEXT t:CLOB l:
255 p:19 s:2 n:true id:false] to [clob]
16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.DDL_NUM t:NUMERIC
l:255 p:22 s:0 n:false id:false] to [big_decimal]
16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.PHASE t:NUMERIC l:
255 p:22 s:0 n:false id:false] to [big_decimal]
16:05:50,780  INFO org.hibernate.connection.DriverManagerConnectionProvider
- cleaning up connection pool: jdbc:@oracle:thin:@url:1521:SIDNAME
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Duplicate class name 'AllRepcolumn' generated for
'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'. Same name where generated
for 'org.hibern
ate.mapping.Table(SYS._ALL_REPCOLUMN)'
[INFO]

[INFO] Trace
org.hibernate.cfg.JDBCBinderException: Duplicate class name 'AllRepcolumn'
generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'. Same name
 where generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'
at
org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:166)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:89)
at
org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfigu
ration.java:42)
at
org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConf
iguration(JDBCComponentConfiguration.java:67)
at
org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.ge
tConfiguration(AbstractComponentConfiguration.java:56)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(Hiberna
teExporterMojo.java:197)
at
org.codehaus.mojo.hibernate3.exporter.Hbm2CfgXmlExporterMojo.configureExport
er(Hbm2CfgXmlExporterMojo.java:62)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExport
erMojo.java:270)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter
Mojo.java:149)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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:597)
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: 3 minutes 23 seconds
[INFO] Finished at: Tue Aug 26 16:05:50 CEST 2008
16:05:51,021  INFO org.hibernate.connection.DriverManagerConnectionProvider
- cleaning up 

Re: How do I override a plugin dependency?

2008-08-26 Thread Brian Fox
Hi, I blogged about this with examples. I can't copy and paste on the  
iPhone but you can find it at http://blogs.Sonatype.com/brian


Sent from my iPhone

On Aug 23, 2008, at 8:08 AM, Graham Leggett [EMAIL PROTECTED] wrote:


Hi all,

I have a need to override a specific dependency used by the maven- 
torque-plugin, and I am struggling to convince maven v2.0.9 to do  
this.


The symptoms are that the original jar is being used, instead of the  
overridden jar, which is effectively ignored.


To test this, I have deleted the original jar completely from my  
local maven repository, and what I expect to happen is that maven  
should not try to download this dependency again, because it has  
been overridden.


In practise, maven downloads the original jar, and ignores the  
overridden jar.


Is there anything obvious that I have missed in this process?

My plugin definition looks like this:

plugin
 groupIdorg.apache.torque/groupId
 artifactIdtorque-maven-plugin/artifactId
 version3.3/version
 dependencies
   dependency
 groupIdorg.apache.derby/groupId
 artifactIdderby/artifactId
 version10.4.1.3/version
   /dependency
   dependency
 groupIdorg.apache.torque/groupId
 artifactIdtorque-templates/artifactId
 version3.3.1/version
   /dependency
 /dependencies
   /plugin

Regards,
Graham
--


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



Re: How to prevent child pom from exec'ing parent pom ant plugin tasks

2008-08-26 Thread gotama




Brett Porter wrote:
 
 Yes, I think so.
 
 

I wanted to follow up on this post with something I found in the release
notes of Maven 2.0.9:

# MNG-3286 - The inherited field in a plugin execution block is now
functioning correctly. Previously you could only dis-inherit an entire
plugin configuration.

http://maven.apache.org/release-notes.html



-- 
View this message in context: 
http://www.nabble.com/How-to-prevent-child-pom-from-exec%27ing-parent-pom-ant-plugin-tasks-tp19060977p19171358.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: artifact built from maven-nuxeo-plugin being installed before execution of following plugins

2008-08-26 Thread Brett Porter
2008/8/27 Julien CARSIQUE [EMAIL PROTECTED]:
 Our implementation rely on
 org.apache.maven.artifact.resolver.ArtifactResolver.resolve()
 Is there a reason why default implementation do not look up to from attached
 artifacts on project ?

The artifact code doesn't have any awareness of the Maven project. It
might be a useful enhancement in the future to have a helper to do
what you are proposing though.
 BTW, the group ID for your nuxeo plugin should probably be something
 other than o.a.m.plugins to avoid confusion.


 Sure, it will.
 Reason is historical, because of an old maven bug (solved I guess?) and the
 need to be able running simple commands like mvn nuxeo:anything 

That's still the case - it will work as long as the plugin is declared
in the POM, or if the group it uses is in the user's settings, but
otherwise there is no way for Maven to know how to resolve it.

Cheers,
Brett

-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Maven Assembly Help

2008-08-26 Thread Brett Porter
You should be able to remove entire artifacts, but not individual
classes. If the latter is what you are trying to do, a better solution
might be to use the dependency plugin to unpack them artifacts into a
temporary location in target, then use the assembly descriptor with
filesets to pick up the classes that you want to include.

Cheers,
Brett

2008/8/27 Adam [EMAIL PROTECTED]:
 Greetings:

 Earlier I had posted about getting duplicate .class files in a
 Jar-with-dependencies.  The fix I found was to exclude the
 ${project.groupId}:${project.artifactId} from the current project.
 However, I am getting duplicates it seems from transitively dependent
 JARs and am finding it difficult (ie, not yet possible from what I've
 done) to exclude them.  Can someone please help with not getting the
 duplicate .class files in a jar-with dependencies?  The reasoning for
 this is I need to obfuscate the JAR (I am using a the antrun plugin
 with YGuard for this).

 My setup:
 Windows XP 32bit
 Maven 2.0.8
 Java 1.6.0_07

 Here is my assembly descriptor
 assembly
  idjar-with-dependencies/id
  formats
formatjar/format
  /formats
  includeBaseDirectoryfalse/includeBaseDirectory
  dependencySets
dependencySet
  unpacktrue/unpack
  scoperuntime/scope
  excludes
excludecom.mobilvox.endGroupId:${project.artifactId}/exclude
  /excludes
/dependencySet
  /dependencySets
  fileSets
fileSet
  directorytarget/classes/directory
  outputDirectory//outputDirectory
/fileSet
  /fileSets
 /assembly

 I have tried adding this to maybe remove a duplicate:
 excludenu.xom:javax/exclude

 It did not work, and my duplicates are still coming from javax.xml and
 javax.transaction.

 Thanks in advance,

 --
 Adam

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





-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Wrong output of mvn help:describe?

2008-08-26 Thread Brett Porter
I think somewhere in the child POM or its parent hierarchy the plugin
version must be set to 2.2, perhaps outside of pluginManagement. Is
that the case?

- Brett

2008/8/27 Rintcius [EMAIL PROTECTED]:

 Hi,

 I wanted to check the used version of the surefire plugin.
 I got:
 mvn help:describe -Dplugin=surefire

 ...
 [INFO] [help:describe]
 [INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.2'
 ---
 Group Id:  org.apache.maven.plugins
 Artifact Id: maven-surefire-plugin
 Version: 2.2
 Goal Prefix: surefire

 However, when I run:
 mvn help:effective-pom

 I get
 ...
pluginManagement
  plugins
plugin
  artifactIdmaven-surefire-plugin/artifactId
  version2.4.3/version
  configuration
testFailureIgnoretrue/testFailureIgnore
includes
  include**/*Test.java/include
/includes
formathtml/format
  /configuration
/plugin
  /plugins
/pluginManagement
 ...


 My pom structure is quite simple: just a parent pom.xml with the
 pluginmanagement section as above and a child pom using that. I have tested
 with both maven 2.0.8 and 2.0.9.


 The surefire version that I intend to be using is 2.4.3 (just like it is
 returned by help:effective-pom) and I guess this version is being used
 although I am not 100% sure of it.
 But why is help:describe returning something different? Is this a bug or am
 I missing something?

 Thanks for any help,
 Rintcius
 --
 View this message in context: 
 http://www.nabble.com/Wrong-output-of-mvn-help%3Adescribe--tp19168212p19168212.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: AW: Got any simple tutorial to learn Maven?

2008-08-26 Thread Guang Sheng
Hi,

I just started to learn Maven one month ago and now successfully migrated my
company's new project to maven, which has 8 sub-modules, using GWT,
Gigaspaces, spring, hibernate, etc..

Just want to share with you my experience. Although there are some
archetypes to help you get started easily, I think you still need to get
your hand dirty by handwriting the pom.xml, understanding all the major
elements of pom.xml, all the common plugins (e.g. compile, assembly, jar,
war), as well as the maven's lifecycle. Give yourself a few days to play
around, look at other maven projects.

Basically, by throwing you a pom.xml, if you can understand most of them and
what they are used for, then you're pretty well master the maven. Another
good experience is to setup a hosted repository in your intranet.

I personally feel that appfuse archetype helps me a lot when I learn about
Maven. I used the generated pom.xml as my blueprint when writing my own
pom.xml.
Here is the link: http://appfuse.org/display/APF/AppFuse+QuickStart. After
you created the archetype, run *mvn appfuse:full-source *(
http://appfuse.org/display/APF/FAQ#FAQ-whereisthesource).

Hope this helps you.

On Tue, Aug 26, 2008 at 11:54 PM, Henry Loke [EMAIL PROTECTED] wrote:


 U follow the java World tutorial from this link
 http://www.javaworld.com/javaworld/jw-12-2005/jw-1205-maven.html?page=3

 I just start for a first create command as below
 
 C:\Users\User\Desktop\jw-1205-maven\application\HotelDatabasemvn
 archetype:crea
 te -DgroupId=com.javaworld.hotels -DartifactId=HotelDatabase
 -Dpackagename=com.j
 avaworld.hotels
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [INFO]
 
 [INFO] Building Hotel Database tutorial application
 [INFO]task-segment: [archetype:create] (aggregator-style)
 [INFO]
 
 [INFO] Setting property: classpath.resource.loader.class =
 'org.codehaus.plexus
 .velocity.ContextClassLoaderResourceLoader'.
 [INFO] Setting property: velocimacro.messages.on = 'false'.
 [INFO] Setting property: resource.loader = 'classpath'.
 [INFO] Setting property: resource.manager.logwhenfound = 'false'.
 [INFO] [archetype:create]
 [WARNING] This goal is deprecated. Please use mvn archetype:generate
 instead
 [INFO] Defaulting package to group ID: com.javaworld.hotels
 [INFO]
 -
 ---
 [INFO] Using following parameters for creating OldArchetype:
 maven-archetype-qui
 ckstart:RELEASE
 [INFO]
 -
 ---
 [INFO] Parameter: groupId, Value: com.javaworld.hotels
 [INFO] Parameter: packageName, Value: com.javaworld.hotels
 [INFO] Parameter: package, Value: com.javaworld.hotels
 [INFO] Parameter: artifactId, Value: HotelDatabase
 [INFO] Parameter: basedir, Value:
 C:\Users\User\Desktop\jw-1205-maven\applicatio
 n\HotelDatabase
 [INFO] Parameter: version, Value: 1.0-SNAPSHOT
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error creating from archetype

 Embedded error: Unable to add module to the current project as it is not of
 pack
 aging type 'pom'
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 2 seconds
 [INFO] Finished at: Tue Aug 26 23:49:36 SGT 2008
 [INFO] Final Memory: 8M/254M
 [INFO]
 

 ===

 From the first command I not succesfully create Archetype, what matter?

 Thank


 Glase, Stefan wrote:
 
  Hello Henry,
 
  I would recommend you to read the book Maven: The Definitive Guide. You
  can get it for free from
  http://www.sonatype.com/community/definitive_guide.html and I like the
  examples that help to explain the concepts of maven.
 
  Speaking of dependency management as you mention in your message there is
  a very easy example in chapter 3 and 4 of the book.
 
  Hope to help
  Stefan
 
  -Ursprüngliche Nachricht-
  Von: Henry Loke [mailto:[EMAIL PROTECTED]
  Gesendet: Dienstag, 26. August 2008 11:58
  An: users@maven.apache.org
  Betreff: Got any simple tutorial to learn Maven?
 
 
  As mention in
 
 http://docs.codehaus.org/display/GEOTOOLS/2+What+is+Maven+and+why+do+you+use+it
  It also manages (and downloads) any third party jars that are needed for
 a
  build.
 
  Is it mean that if the log4j.jar used in my project, the maven is
  configure
  in such 

Re: http repository references from pom

2008-08-26 Thread Brett Porter
Yes, you can see an example here:
http://maven.apache.org/developers/release/releasing.html

You can put the property straight into distrbutionManagement too if you prefer.

- Brett

2008/8/27 Dharmendra Desai (dhdesai) [EMAIL PROTECTED]:
 I have a http repository set up and it's referenced in the
 distributionManagement tag in each pom.

 I want to take the http-repository reference out of the poms and put it
 in settings.xml or externalize it in some properties file.

 What's the best way to do this?

 thanks.




-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



How to encrypt properties as part of resource filtering

2008-08-26 Thread Florian Kirchhoff

Hi,

I am looking for a way to encrypt certain property values in a property file
when I am building my application with maven 2. I would like to be able to
use different encryption keys depending on the profile used for the build.

Is there a way to configure the resources filter mojo to do some custom
filtering as part of the resource filtering? Looking at the source code it
would seem not. Has anyone tried something like this before? If yes would
you please be so kind as to share your findings?

Thanks,

Florian
-- 
View this message in context: 
http://www.nabble.com/How-to-encrypt-properties-as-part-of-resource-filtering-tp19173770p19173770.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Profile for different JVMs

2008-08-26 Thread Peter Horlock
No, you don't understand, I want Maven to change the JDK itself!
To release a new version for this client, I have to change my JDK from 1.5
to 1.6, and all this manually. Wouldn't it be possible to automate this with
Maven?!

Thanks,

Peter