Re: XMLBeans Plugin - include subdirectories

2006-10-14 Thread cameron101

It would be great if the mvn2 pluggin supported file sets as per the ant
target but so far as I can see it does not :-(

An alternative is (it's not a great solution but it's workable) is to create
a separate project/module with all your .xsd, nested in the desired sub
directories etc. Set this project POM up so maven packages the .xsd's to a
jar artifact, then add this artifact to your 'real' project/module that
needs to use xmlbeans as a dependency. The POM entry needs to use the
xsdJar  tag to tell the xmlbeans compiler where to look for all the .xsd's
including paths e.g.

  plugin
   groupIdorg.codehaus.mojo/groupId
artifactIdxmlbeans-maven-plugin/artifactId
   executions
  execution
 goals
 goalxmlbeans/goal
 /goals
  /execution
   /executions
   configuration
  memoryInitialSize50m/memoryInitialSize
  memoryMaximumSize80m/memoryMaximumSize
  xsdJars
  xsdJar
implementation=java.lang.StringyourXSdGroupIdGoesHere:yourXSdArtifactIdGoesHere/xsdJar
  /xsdJars
   /configuration
  /plugin


This works quite well unless you have a lot of duplicated global type
references in your .xsd's.   Also see
http://jira.codehaus.org/browse/MXMLBEANS-21?page=alldecorator=printable

to add some optimisation as ALL the jar'ed .xsd's will be loaded and
converted to in memory objects by default.

Regards
C


On 14/08/06, Adrian Shum [EMAIL PROTECTED] wrote:


Dear all,

I am trying XMLBeans plugins in maven2.






I'd like to know if there is any way to include

subdirectories of the schema directory?

As we are organizing the XSDs in directories now.

At least, is there anyway to include multiple XSD
directory for generation of JAR?

Thanks a lot for your help


--
AdRiAN ShUM
(-: Don't worry, Be Happy :-)



This email is confidential. If you are not the intended recipient, please
delete it from your system and notify the sender immediately. Any
unauthorized use, disclosure, dissemination or copying of this email is
prohibited. Taifook Securities Group, its group companies and their content
providers (Parties) shall not be responsible for the accuracy or
completeness of this email or its attachment, if any, which could contain
virus, be corrupted, destroyed, incomplete, intercepted, lost or arrive
late.   The Parites do not accept liability for any damage caused by this
email.





nice repos :-)

2006-06-12 Thread cameron101

http://www.mvnrepository.com


Is connection timeout configurable?

2006-02-20 Thread cameron101
I'm attempting to pull down the latest xfire 1.0-RC1 jars/poms and
subsequent dependecies but have been ecountering timeout issues for the last
24hours (I even tried overnight too :-( ).  I have the following repos
mapped:

repository
   idhttp://dist.codehaus.org/id
   nameCodehaus Repository/name
   urlhttp://dist.codehaus.org/url
   layoutlegacy/layout
  /repository
  repository
   idhttp://www.ibiblio.org/maven2/id
   nameMaven Repository Switchboard/name
   urlhttp://www.ibiblio.org/maven2/url
   layoutdefault/layout
  /repository
  repository
   idjava.net/id
   namejava.net public repo/name
   urlhttps://maven-repository.dev.java.net/nonav/repository/url
   layoutlegacy/layout
  /repository

BUT KEEP encountering down load failures.  I've tried from home, and work
but still no joy.
Is it possible to set the connection timeout?  If so how?

many thanks in advance.

Downloading:
https://maven-repository.dev.java.net/nonav/repository/xfire/poms/XmlSchema-20060128-patched.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

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


Project ID: xfire:XmlSchema

Reason: Error getting POM for 'xfire:XmlSchema' from the repository: Error
transferring file
  xfire:XmlSchema:pom:20060128-patched

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net (https://maven-repository.dev.java.net/nonav/repository)



[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
dependency information: Unable to read the metadata file for artifact
'xfire:Xml
Schema:jar': Error getting POM for 'xfire:XmlSchema' from the repository:
Error transferring file
  xfire:XmlSchema:pom:20060128-patched

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net (https://maven-repository.dev.java.net/nonav/repository)

  xfire:XmlSchema:jar:20060128-patched

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net (https://maven-repository.dev.java.net/nonav/repository)
Path to dependency:
1) com.companyname.corpsys:casemgmt-data-access:jar:1.0-SNAPSHOT
2) org.codehaus.xfire:xfire-all:jar:1.0-RC1
3) org.codehaus.xfire:xfire-aegis:jar:1.0-RC1
4) org.codehaus.xfire:xfire-core:jar:1.0-RC1


at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:548)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:472)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
Unable to get dependency information: Unable to read the metadata file for
artifact 'xfire:XmlSchema:jar': Error getting POM for 'xfire:XmlSchema' from
the repository: Error transferring file
  xfire:XmlSchema:pom:20060128-patched

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net (https://maven-repository.dev.java.net/nonav/repository)

  xfire:XmlSchema:jar:20060128-patched

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net (https://maven-repository.dev.java.net/nonav/repository)
Path to dependency:
1) com.companyname.corpsys:casemgmt-data-access:jar:1.0-SNAPSHOT
2) org.codehaus.xfire:xfire-all:jar:1.0-RC1
3) org.codehaus.xfire:xfire-aegis:jar:1.0-RC1
4) org.codehaus.xfire:xfire-core:jar:1.0-RC1


at

XmlSchema-20060128-patched.pom

2006-02-20 Thread cameron101
my kingdom for a 'working' URL to download 
XmlSchema-20060128-patched.pom
(required for xfire)
many thks


Re: [m2] what does par stand for?

2006-01-24 Thread cameron101
.par  == persistence archive

On 24/01/06, Man-Chi Leung [EMAIL PROTECTED] wrote:

 hi,

 in package, there are jar, war, rar, ear, etc.

 there is one called PAR:
 http://cvs.peopleware.be/training/maven/maven2/
 buildLifecyclePhases.html#par


 does it stand for ejb3's par module  or  (Perl Archive Toolkit)?

 ~manchi

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




Re: Maven and IDE's (Idea, mostly)

2006-01-24 Thread cameron101
(sorry don't know how best to display this thread) see ..

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/[EMAIL 
PROTECTED]

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/[EMAIL 
PROTECTED]

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/[EMAIL 
PROTECTED]

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/[EMAIL 
PROTECTED]

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/[EMAIL 
PROTECTED]

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/[EMAIL 
PROTECTED]

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/[EMAIL 
PROTECTED]

the summary being ..integration appears to be minimal but there is hope for
M2 !



On 24/01/06, Willis Morse [EMAIL PROTECTED] wrote:

 I finally decided to look at Maven, and I'm wondering how what the
 actual workflow is when I use an IDE such as Idea.

 I used to use Eclipse, and I remember at one point there was a plugin
 that kept an Eclipse project (.project file) continuously in sync
 with the POM file. So if you use the Eclipse UI to add another source
 path or an external JAR, the POM gets updated automatically.

 With Idea, it looks like you can only take an existing POM and
 generate an Idea project file, and it seems like a oneway trip. Any
 modifications that you make to the project using Idea's UI will only
 live in the Idea project and will get wiped the next time you
 generate the project from the POM. Is this the case?

 Further, Idea has a refactoring that will move code between different
 Idea modules. If each Idea module corresponds to a Maven repository,
 is there any hope of having this refactoring work on the POMs, too?

 Thanks,
 Willis Morse

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




Re: IDE build and debugging

2005-12-20 Thread cameron101
M2 is brilliant at generating and updating IntelliJ multi-module projects
(caveat w.r.t. jdk5 setting) but I've not managed to get any of the Maven
GUI pluggins working with Idea v5.02. I'd be very grateful if someone can
provide step by step instructions or perhaps links to pluggins.  The maven
pluggin  http://www.intellij.org/twiki/bin/view/Main/MavenPlugin

says please install the maven-spy-plugin first but I cannot access the
repository using:

mvn -Dmaven.repo.remote=http://www.flopcode.com/maven/repository,
http://www.ibiblio.org/maven -DgroupId=flopcode
-DartifactId=maven-spy-plugin -Dversion=0.2.7 plugin:download

results in:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'plugin'.
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Required goal not found: plugin:download
[INFO]

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

[INFO] Total time: 1 second
[INFO] Finished at: Tue Dec 20 09:56:59 GMT 2005
[INFO] Final Memory: 1M/3M
[INFO]


having downloaded the MavenPluggin using Idea I only have version
0.1.5.15and although the ConsoleMavenPlugin appears at the bottom of
the screen,
selecting it brings up an empty page and setting the correct m2.bat  and
repository doesn't seem to help either :-(

Many thanks in advance.


On 20/12/05, Vincent Massol [EMAIL PROTECTED] wrote:

 Hi Sebastien,

  -Original Message-
  From: Sebastien Arbogast [mailto:[EMAIL PROTECTED]
  Sent: mardi 20 décembre 2005 01:42
  To: Maven Users List
  Subject: Re: IDE build and debugging

 [snip]

  For Maven2, I saw Vincent's introduction for the plugin at JavaPolis
 (yes
  Vincent ! you remember ? the guy in the front who bought your book just
  one hour before you gave some away :P

 Yes, I remember quite well! :-)

  Well actually, it was the JBoss
  developer's notebook I had in my hands but it could have been yours ;o)

 Lol

 [snip]

 -Vincent


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




Re: How to configure default plugins (exclude test)

2005-12-20 Thread cameron101
I too wish to exclude specific TestCase's but have tried the above
suggestion


 reporting
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdsurefire-report-maven-plugin/artifactId
configuration
excludes
exclude**/*TransactionalTestCase.java/exclude
/excludes
/configuration
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjxr-maven-plugin/artifactId
/plugin
/plugins
/reporting

/project
including updating the pluggins and the exclude does not appear to work !!
Any help greatly appreciated :-)




On 29/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Emmanuel

 Thanks for helping me.

 Stephen


 Quoting [EMAIL PROTECTED]:

  Hi
 
  Ok, I have figured this out now.  The key fact is that I had my
 configuration
  for my plugin in my POM was defined inside an executions tag.
 
  Basically for anyone else who needs to know this,
 
  You can configure the default behaviour of plugins in your build by
  adding a tag
  for the plugin to the build section of your pom.
 
  However you must NOT put the configuration section inside an
 Executions
  section or it will think that you are asking it to run the plugin again.
 
  your plugin should look like this:
 
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  configuration
excludes
exclude**/*Test.java/exclude
/excludes
  /configuration
  /plugin
 
 
  and NOT like this
 
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
 executions
   execution
phasetest/phase
configuration
  excludes
exclude**/*ABCTest.java/exclude
  /excludes
/configuration
goals
   goaltest/goal
/goals
   /execution
 /executions
  /plugin
 
 
  Quoting [EMAIL PROTECTED]:
 
  Hi Emmanuel
 
  Thanks, I have tried that now but it has made no difference.
 
  Below is my trace and below that is my POM.  If you look at the
  trace you will
  see that the tests are getting run twice and the second time, the
 exclusions
  are being applied.
 
  I do appreciate your help.
 
  regards
 
  Stephen
 
 
  C:\workspaces\bdplus\bdp-coremvn -U install
  [INFO] Scanning for projects...
  [INFO]
 
 
  [INFO] Building Core
  [INFO]task-segment: [install]
  [INFO]
 
 
  [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
  checking for
  updates from snapshots
  [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
  checking for
  updates from central
  [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:checking for
  updates from snapshots
  [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:checking for
  updates from central
  [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:checking for
  updates from snapshots
  [WARNING] repository metadata for: 'artifact
  org.apache.maven.plugins:maven-surefire-plugin' could not be retrieved
 from
  repository: snapshots due to an error: Error transferring file
  [INFO] Repository 'snapshots' will be blacklisted
  [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:checking for
  updates from central
  [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking
  for updates
  from central
  [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking
 for
  updates from central
  [INFO] [resources:resources]
  [INFO] Using default encoding to copy filtered resources.
  [INFO] [compiler:compile]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [bdp-buildcreateenv:create {execution: default}]
  [INFO] Starting
  [INFO] Creating 4 directories
  [INFO] Directory
  C:\workspaces\bdplus\bdp-core\target\TestData\Output already
  exists.
  [INFO] Directory
  C:\workspaces\bdplus\bdp-core\target\TestData\Output\Bills\Standard
 already
  exists.
  [INFO] Directory
  C:\workspaces\bdplus\bdp-core\target\TestData\Output\Bills\Diverted
 already
  exists.
  [INFO] Directory C:\workspaces\bdplus\bdp-core\target\TestData\temp
 already
  exists.
  [INFO] Finished
  [INFO] [resources:testResources]
  [INFO] Using default encoding to copy filtered resources.
  [INFO] [compiler:testCompile]
  [INFO] Nothing to compile - all classes are up to date
  Downloading:
  http://repo1.maven.org/maven2/surefire/surefire/1.4/surefire-1.4.pom
  663b downloaded
  Downloading:
 
 http://repo1.maven.org/maven2/surefire/surefire-root/1.1/surefire-root-1.1.pom
  3K downloaded
  Downloading:
 
 http://repo1.maven.org/maven2/surefire/surefire-booter/1.4/surefire-booter-1.4.pom
  539b downloaded
  Downloading:
 
 

Re: spring-mock Spring framework 1.2.5

2005-12-15 Thread cameron101
thanks, my mistake I didn't eralise that I needed to specify spring-mock
independent of spring which  makes sense from a scope point of view too

dependency
groupIdorg.springframework/groupId
artifactIdspring-mock/artifactId
version1.2.5/version
scopetest/scope
/dependency
dependency
artifactIdspring/artifactId
groupIdorg.springframework/groupId
version1.2.5/version
/dependency

On 14/12/05, Carlos Sanchez [EMAIL PROTECTED] wrote:

 Spring mock is there
 http://www.ibiblio.org/maven2/org/springframework/spring-mock/1.2.5/
 Your errors are probably due to other reason

 On 12/13/05, cameron clarke [EMAIL PROTECTED] wrote:
  don't shoot I'm new to Maven ;-)
 
  spring-mock is specified in spring-parent-1.2.5.pom but spring-mock.jardoes
  not get pulled down from http://repo1.maven.org/maven2  Is there a
 reason
  why this jar/pom is missing?  I have written some tests that utilise
 
 org.springframework.test.AbstractTransactionalDataSourceSpringContextTestsbut
  are failing in the M2 world as NoClassDef can be found.
 
  I installed it local via :
  mvn install:install-file
  -DgroupId=org.springframework-DartifactId=spring-mock -Dversion=
  1.2.5 -Dfile=C:/spring-mock.jar -Dpackaging=jar -DgeneratePom=true
 
  I checked the repository file system to see that it now exists but the
 test
  still fails with the same error.  I noticed the pom file was not created
  though ! instead a maven-metadata-local.xml was created.   So I manually
  created spring-mock-1.2.5.pom as follows:
 
  project
parent
  artifactIdspring-parent/artifactId
  groupIdorg.springframework/groupId
  version1.2.5/version
/parent
modelVersion4.0.0/modelVersion
artifactIdspring-mock/artifactId
nameSpring Mock/name
version1.2.5/version
distributionManagement
  statusdeployed/status
/distributionManagement
  /project
 
  (I didn't worked out the dependencies ..yet)
 
  but still my tests fail . :-(  ANY HELP GREATLY APPRECIATED
 
  java.lang.NoClassDefFoundError:
  org/springframework/test/AbstractTransactionalDa
  taSourceSpringContextTests
 
 

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




Re: [m2] New libraries coming out

2005-12-14 Thread cameron101
It would be great if the likes of Spring / Hibernate and other mainstream
OSS vendors released new versions to Maven with all the POM's and direct
dependencies.  They themselves would benefit as the community would probably
have a faster take up of new technologies and therefore progress the
discovery and fixing of bugs and new functionality.

On 13/12/05, Srepfler Srgjan [EMAIL PROTECTED] wrote:

 I personally think that we should lobby for grater use of maven2. I mean
 with all respect to maven you team just can't and shouldn't handle this
 enormous repository. I mean the hibernate guys should build their libs
 with m2 pom and also house the libs themselves. I mean we can't really
 bother your people for every little thing like hibernate annotation
 3.1beta*7* or something else I mean come on, you have lives too :)
 Same thing goes for spring libraries, or any other project.

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




Re: spring-mock Spring framework 1.2.5

2005-12-13 Thread cameron101
please use appropriate subject text, rather than simply replying to another
post, it causing conversations to become disjointed !

On 13/12/05, charles Anto [EMAIL PROTECTED] wrote:

 Any idea, how to create database in postgresql using maven or ant scripts.
 I've tried DBUNIT. But not able to reach the goal. Because i don't know
 how
 to configure JDBC driver and DBunit driver with maven scripts.


 Thanks,
 Charles