Re: Maven checkstyle plugin - how to get working?

2007-07-12 Thread Thorsten Heit
Hi,

> When running the checkstyle plugin I get out of memory errors:
> 
> ---
> Embedded error: Error rendering Maven report: Exit code: 1 - c:\home\roge
> se6\presence-util\src\main\java\com\presence\util\PtUtils.java:6: warning
>  Sun proprietary API and may be removed in a future release
> import sun.misc.BASE64Encoder;
>^
> javadoc: error - java.lang.OutOfMemoryError: Please increase memory.
> For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
> such as -J-Xmx32m.

I'd suggest you set MAVEN_OPTS and put the parameters for the Java min/max heap 
size into it, i.e. MAVEN_OPTS="-Xmx256m"


HTH

Thorsten

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



Re: questions about using different config files, such as persistence.xml in maven configs

2007-07-12 Thread Tim Kettler

Hi,

you have a few options based on your concrete scenario:

If you just want to unit test a ejb project you can create two 
'persistence.xml' files one in 'src/main/resources' for production use 
and one in 'src/test/resources' for testing. The testing persistence.xml 
should then shadow the production one.


An other option would be to enable filtering on the resource dir:

  

  
src/main/resources
true
  

  

and have profiles for the different environments:

  

  test
  
true
  
  
testconnection
  


  production
  
prodconnection
  

  

And put ${connection} in the persistence.xml.

Hope this helps
-Tim


Ryan Moquin schrieb:

Hi, I know that in order to use different configuration files (such as a
persistence.xml), such as test configurations vs. production configurations
I need to setup profiles to allow these different files to be used.  
What is
the preferred way to indicate to maven how to find a configuration file 
that
should be used?  Such as, I have a persistence.xml file, currently I 
have my

test database definition in it as a separate entry from my production
configuration.  This works fine in theory because I can mock out my
persistence classes to use the test configuration for tests.  The 
problem is

that hibernate loads BOTH definitions when it starts up, whether it's used
or not which causes problems with hot deploying, when my production
environment is running (since my test config is loaded in production, 
and my
tests are trying to use that configuration).  I'm also running into 
problems

of needing persistence configurations that can use other database servers
other than assuming localhost.

Does anyone have a strategy or know of a link that I can look at that will
help me implement an appropriate strategy to use/bundle differnet
persistence.xml files based upon the loaded maven profile?  Thanks!

Ryan




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



Re: problem with archetype

2007-07-12 Thread Thorsten Heit
Hi Erik,

> I'm trying to use a simple archetype command and getting an unexpected
> error.
> 
> When I run: mvn archetype:create -DgroupId=com.mycompany.app
> -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
> 
> I get the error listed below.  I don't understand why I would get an error
> message asking me to install an artifact for a fairly standard Maven
> archetype.  I assumed these were all hosted in a public repo.

Are you behind a firewall and have to use a proxy to access the central repo? 
If yes: The Archetype plugin has a bug and ignores any proxy settings you have 
configured in your settings.xml unless there's a pom.xml in the directory in 
which you execute mvn...


Regards

Thorsten

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



Re: How can i add clover report generation into maven and have the ability to turn on/off?

2007-07-12 Thread Thorsten Heit
Hi,

> How can i add clover report generation into maven and have the ability to
> turn on/off? Meaning, after implementation, when running mvn install, it
> will not run clover unless doing something like "mvn install
> -Dclover="true""?

I'd create a profile "clover" that only contains the clover reporting plugin 
section so you can activate it by simply specifying "mvn -P clover ..."


HTH

Thorsten

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



Re: Eclipse Plugin WTP 2.0

2007-07-12 Thread Arnaud HERITIER

No, not yet.
http://jira.codehaus.org/browse/MECLIPSE-264
But I suppose that if you create a WTP 1.5 config for your project,
WTP will ask you to convert it ? (it can be a temporary solution)
If someone knows what was changed in a WTP 2.0 config, you can tell us
in the issue, that will help us to implement it in a near future ;-)

Arnaud

On 13/07/07, paulgrove <[EMAIL PROTECTED]> wrote:


Does the Eclipse plugin support WTP 2.0?
--
View this message in context: 
http://www.nabble.com/Eclipse-Plugin-WTP-2.0-tf4072295s177.html#a11573356
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...

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



Re: Doing maven install without recompiling sources

2007-07-12 Thread Tim Kettler

Hi,

if the recompilation is really an issue for you 'mvn jar:jar 
install:install' should do what you want.


-Tim

Pachol, Benjamin schrieb:

I have a component I built with some custom java files and used maven.
I was wondering if there is a way to get maven to just use the .class
files and not recompile the .java source files when doing a maven
install command?

 


Thanks

 

 


Ben Pachol

Consultant

276-889-7527

SW VA, CGI-AMS

 

 






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



Appending date and time to packaged artifact name?

2007-07-12 Thread Paul G

How can I easily add the date and time to a package artifact name, I use the
 to change the packaged name but is the and easy way to get a
handle onto the date and time?
-- 
View this message in context: 
http://www.nabble.com/Appending-date-and-time-to-packaged-artifact-name--tf4072380s177.html#a11573562
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Eclipse Plugin WTP 2.0

2007-07-12 Thread paulgrove

Does the Eclipse plugin support WTP 2.0?
-- 
View this message in context: 
http://www.nabble.com/Eclipse-Plugin-WTP-2.0-tf4072295s177.html#a11573356
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Installer Scripts Best Practice

2007-07-12 Thread Rodrigo Madera

Hello all,

I was wondering if anyone has a suggestion on the best practice to execute
post-build scripts, such as copying output files to a template directory for
installer generation.

Right now I'm using a shell script to do the copying and calling my
installer-generating scripts, but I'm sure there is another (and less
painful) way of doing this.

Thanks for any input and ideas,
Rodrigo


FYI: potential issue using enforcer:enforce-once

2007-07-12 Thread Brian E. Fox
Hi all,

I helped debug an issue today that is indirectly caused by the new
enforcer release. You can see here for details:
http://jira.codehaus.org/browse/MENFORCER-11

 

The workaround is very simple, only use the enforcer:enforce goal. The
aggregator part that is added by enforce-once is known to not work all
the time anyway, so the workaround doesn't decrease functionality in any
way.


Thanks,

Brian



Maven checkstyle plugin - how to get working?

2007-07-12 Thread Si_Simon

When running the checkstyle plugin I get out of memory errors:

---
Embedded error: Error rendering Maven report: Exit code: 1 - c:\home\roge
se6\presence-util\src\main\java\com\presence\util\PtUtils.java:6: warning
 Sun proprietary API and may be removed in a future release
import sun.misc.BASE64Encoder;
   ^
javadoc: error - java.lang.OutOfMemoryError: Please increase memory.
For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
such as -J-Xmx32m.

---

In my pom (compiler options) I have:

 
 org.apache.maven.plugins
 maven-compiler-plugin
 
 1.6
 1.6
 true
 true
 true
 -enableassertions
-J-Xmx512m
 Cp1252
 128m
 512m
 
 

---
any ideas?

thanks


Si'mon
-- 
View this message in context: 
http://www.nabble.com/Maven-checkstyle-plugin---how-to-get-working--tf4071378s177.html#a11570515
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: Maven site plugin "Doxia" issue ..

2007-07-12 Thread Vincent Siveton

Hi,

You need to install it from svn:
http://svn.apache.org/viewvc/velocity/site/tools/velocity-site-doxia-renderer/

Ask [EMAIL PROTECTED] to provide it on the Apache Snapshot Repository.

Cheers,

Vincent

2007/7/12, Giovanni Azua <[EMAIL PROTECTED]>:

Hi all,

I have spent quite a bit trying to have doxia installed and running.

Basically I need couple of features only available with doxia:

1-. Ability to customize my index.html to something like e.g. maven 2
site does using the index.xml.vm velocity template.

2-. Use the snippet macro during site generation.

The problem is that I am not able to get the doxia snapshot anywhere ...

Any examples of a working setup?

I have in my pom.xml the settings bellow but I get all kind of errors
Like e.g. mismatch of site plugin version with doxia version, missing
plugin version etc etc.

TIA,
Regards,
Giovanni



org.apache.maven.plugins
maven-site-plugin
2.0-SNAPSHOT


org.apache.velocity.site

velocity-site-doxia-renderer
1.2-SNAPSHOT




org.apache.velocity.site
velocity-site-doxia-renderer
1.0-SNAPSHOT







pre-site






  
Codehaus Snapshots
http://snapshots.repository.codehaus.org/
   
   
 Apache Snapshot Repository
 http://people.apache.org/repo/m2-snapshot-repository/
   




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



Add Maven ear properties file to war manifest classpath

2007-07-12 Thread Timothy Reilly
I am trying to add an additional classpath element to the manifest created by 
the war plugin.
 
Is it possible to do this?  I see how to add a manifest entry 
and I see how to specify the war classpath should be generated, 
but how to get this:
 
Manifest-Version: 1.0 
Class-Path: 
customerEjb_client.jar   <-- Dependency
inventoryEjb_client.jar  <-- Dependency
mailerEjb_client.jar<-- Dependency
../foobar.properties  

problem with archetype

2007-07-12 Thread Erik Weibust
I'm trying to use a simple archetype command and getting an unexpected error.

When I run: mvn archetype:create -DgroupId=com.mycompany.app
-DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp

I get the error listed below.  I don't understand why I would get an error
message asking me to install an artifact for a fairly standard Maven
archetype.  I assumed these were all hosted in a public repo.

Thanks for any help on the problem,

Erik Weibust


[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-
---
[INFO] Building Maven Default Project
[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] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm
: org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
 glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-webapp
Version: RELEASE

Reason: Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes
-DartifactId=
maven-archetype-webapp \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file


  org.apache.maven.archetypes:maven-archetype-webapp:jar:RELEASE



[INFO]

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

[INFO] Total time: 1 second
[INFO] Finished at: Thu Jul 12 17:28:28 EDT 2007
[INFO] Final Memory: 4M/8M
[INFO]



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



Maven site plugin "Doxia" issue ..

2007-07-12 Thread Giovanni Azua
Hi all,

I have spent quite a bit trying to have doxia installed and running.

Basically I need couple of features only available with doxia:

1-. Ability to customize my index.html to something like e.g. maven 2 
site does using the index.xml.vm velocity template.

2-. Use the snippet macro during site generation.

The problem is that I am not able to get the doxia snapshot anywhere ...

Any examples of a working setup?

I have in my pom.xml the settings bellow but I get all kind of errors
Like e.g. mismatch of site plugin version with doxia version, missing 
plugin version etc etc.

TIA,
Regards,
Giovanni



org.apache.maven.plugins
maven-site-plugin
2.0-SNAPSHOT


org.apache.velocity.site

velocity-site-doxia-renderer
1.2-SNAPSHOT




org.apache.velocity.site
velocity-site-doxia-renderer
1.0-SNAPSHOT







pre-site






  
Codehaus Snapshots
http://snapshots.repository.codehaus.org/
   
   
 Apache Snapshot Repository
 http://people.apache.org/repo/m2-snapshot-repository/
   




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



Re: Maven Native C Compile to generate .a files Question

2007-07-12 Thread Dan Tran

mvn native:compile produces the .a file in on step

http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin/src/it/linkages/solaris/libSubFuncStatic/


-D

On 7/12/07, MinQ <[EMAIL PROTECTED]> wrote:



As you know, when I compile a code which is written in C, so .C file,
through
maven,  there are two output files(.lib and .obj) generated in the target
folder.

Since I thought it would be very nice if i could generate .a file when I
compiled in the same way, automatically through the compilation, I tried
to
change some code from the source code that you developed, for few days,
but
I could not really do this due to the my limitation.

I hope you may help me on this, or give me some idea to solve this
question.
I have not find which line or part of the source code is deeply related to
the question I have.

I currently using maven 2.0.6.

I emailed this to the Developers

"
did you take a look at integration test case under src/it.

There should be a case where I create a static libbrary   ( ie .a file)

"

" There is other static lib example in linkage examples"

However, I still do not get what file and which part are the closely
related
to the problem.

It would be awesome if you may give me a hand on this.

Thanks

Kenneth
--
View this message in context:
http://www.nabble.com/Maven-Native-C-Compile-to-generate-.a-files-Question-tf4070527s177.html#a11567870
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Maven Native C Compile to generate .a files Question

2007-07-12 Thread MinQ

As you know, when I compile a code which is written in C, so .C file, through
maven,  there are two output files(.lib and .obj) generated in the target
folder.

Since I thought it would be very nice if i could generate .a file when I
compiled in the same way, automatically through the compilation, I tried to
change some code from the source code that you developed, for few days, but
I could not really do this due to the my limitation.

I hope you may help me on this, or give me some idea to solve this question.
I have not find which line or part of the source code is deeply related to
the question I have.

I currently using maven 2.0.6.

I emailed this to the Developers

"
did you take a look at integration test case under src/it.
 
There should be a case where I create a static libbrary   ( ie .a file)

"

" There is other static lib example in linkage examples"

However, I still do not get what file and which part are the closely related
to the problem.

It would be awesome if you may give me a hand on this.

Thanks

Kenneth
-- 
View this message in context: 
http://www.nabble.com/Maven-Native-C-Compile-to-generate-.a-files-Question-tf4070527s177.html#a11567870
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How can i add clover report generation into maven and have the ability to turn on/off?

2007-07-12 Thread Baz

All,

How can i add clover report generation into maven and have the ability to
turn on/off? Meaning, after implementation, when running mvn install, it
will not run clover unless doing something like "mvn install
-Dclover="true""?

What is the recommended way to do it?

Thanks.

A.


questions about using different config files, such as persistence.xml in maven configs

2007-07-12 Thread Ryan Moquin

Hi, I know that in order to use different configuration files (such as a
persistence.xml), such as test configurations vs. production configurations
I need to setup profiles to allow these different files to be used.  What is
the preferred way to indicate to maven how to find a configuration file that
should be used?  Such as, I have a persistence.xml file, currently I have my
test database definition in it as a separate entry from my production
configuration.  This works fine in theory because I can mock out my
persistence classes to use the test configuration for tests.  The problem is
that hibernate loads BOTH definitions when it starts up, whether it's used
or not which causes problems with hot deploying, when my production
environment is running (since my test config is loaded in production, and my
tests are trying to use that configuration).  I'm also running into problems
of needing persistence configurations that can use other database servers
other than assuming localhost.

Does anyone have a strategy or know of a link that I can look at that will
help me implement an appropriate strategy to use/bundle differnet
persistence.xml files based upon the loaded maven profile?  Thanks!

Ryan


RE: Where is the recommended location of the settings.xml

2007-07-12 Thread Siegmann Daniel, NY
Our developers share a single Maven installation, which is located in
our code repository (CVS). This allows settings.xml to be easily shared
(in ${maven_home}/conf), and updates to be easily distributed.

It's worked well so far, so that's my recommendation.

--
Daniel Siegmann
FJA-US, Inc.
512 Seventh Ave., New York, NY  10018
(212) 840-2618 ext. 139 

-Original Message-
From: Franck Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 12, 2007 2:30 PM
To: users@maven.apache.org
Subject: Where is the recommended location of the settings.xml

Hi,

I would like to customize the settings.xml for all my projects in order
to put the settings to access to our remote repository where is the
recommended location to put this settings.xml  ?

The team contains 10 developers.

Indeed there are 3 locations

- In the ${maven_home}/conf of every developer machine
- In the ${user_home}/.m2 of every developer machine
- In the ${basedir} of every projects

Thx

Franck.

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



Re: m2] Exclude Test files from Maven Jalopy?

2007-07-12 Thread Dennis Lundberg

OK, how about this page then:

http://mojo.codehaus.org/jalopy-maven-plugin/howto.html

Mick Knutson wrote:

That is for the Trimax plugin, not the codehaus one...


On 7/12/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:


According to the docs [1], that's the way to do it.

[1] http://www.triemax.com/products/jalopy/manual/plugin-maven.html

Mick Knutson wrote:
> Can you tell me how to exclude files from Jalopy?
>
> This did not work:
>
>
>jalopy.xml
>true
>
>
>**/*.java
>
>
>**/*Test.java
>
>
>
>
>
>
> On 7/12/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
>>
>> Mick Knutson wrote:
>> > It sounds like I should just get Jalopy to follow Checkstyle
though
>> > Right?
>> >
>> >
>> >
>> > On 7/11/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
>> >>
>> >> The "sun_checks.xml" provided by Checkstyle actually goes further
than
>> >> the Sun Coding Conventions. It also has rules from the Java 
Language
>> >> Specification and some general best practices. I pointed this 
out to

>> the
>> >> Checkstyle team earlier and suggested that they would separate
these.
>> >>
>> >> Mick Knutson wrote:
>> >> > I just got maven jalopy working, and I got a jalopy.xml of the
>> standard
>> >> sun
>> >> > standards.
>> >> > I formatted all my code but then checkstyle went from 40 
errors to

>> >700
>> >> > errors.
>> >> >
>> >> >
>> >> > Many of which are related to braces.
>> >> >
>> >> > '(' is followed by
>> >> > whitespace.238> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238 


>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]')' is preceded with
>> >> > whitespace.238> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238 


>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'if' construct must use
>> >> > '{}'s.240> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'(' is followed by
>> >> > whitespace.240> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]')' is preceded with
>> >> > whitespace.240> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'if' construct must use
>> >> > '{}'s.242> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'(' is followed by
>> >> > whitespace.242> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]')' is preceded with
>> >> > whitespace.242> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'if' construct must use '{}'s.
>> >> >
>> >> > So, what should I do? Should I ask for help to get a
checkstyle.xml
>> >> > template
>> >> > that is more aligned with my jalopy.xml.
>> >> > Or should I modify my jalopy.xml to use the brace specification
that
>> >> > checkstyle is complaining about?
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >> --
>> >> Dennis Lundberg
>> >>
>> >>
-
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>>
>> --
>> Dennis Lundberg
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>


--
Dennis Lundberg

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








--
Dennis Lundberg

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



Doing maven install without recompiling sources

2007-07-12 Thread Pachol, Benjamin
I have a component I built with some custom java files and used maven.
I was wondering if there is a way to get maven to just use the .class
files and not recompile the .java source files when doing a maven
install command?

 

Thanks

 

 

Ben Pachol

Consultant

276-889-7527

SW VA, CGI-AMS

 

 



Where is the recommended location of the settings.xml

2007-07-12 Thread Franck Smith

Hi,

I would like to customize the settings.xml for all my projects in order to
put the settings to access to our remote repository where is the recommended
location to put this settings.xml  ?

The team contains 10 developers.

Indeed there are 3 locations

- In the ${maven_home}/conf of every developer machine
- In the ${user_home}/.m2 of every developer machine
- In the ${basedir} of every projects

Thx

Franck.


Re: m2] Exclude Test files from Maven Jalopy?

2007-07-12 Thread Mick Knutson

That is for the Trimax plugin, not the codehaus one...


On 7/12/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:


According to the docs [1], that's the way to do it.

[1] http://www.triemax.com/products/jalopy/manual/plugin-maven.html

Mick Knutson wrote:
> Can you tell me how to exclude files from Jalopy?
>
> This did not work:
>
>
>jalopy.xml
>true
>
>
>**/*.java
>
>
>**/*Test.java
>
>
>
>
>
>
> On 7/12/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
>>
>> Mick Knutson wrote:
>> > It sounds like I should just get Jalopy to follow Checkstyle
though
>> > Right?
>> >
>> >
>> >
>> > On 7/11/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
>> >>
>> >> The "sun_checks.xml" provided by Checkstyle actually goes further
than
>> >> the Sun Coding Conventions. It also has rules from the Java Language
>> >> Specification and some general best practices. I pointed this out to
>> the
>> >> Checkstyle team earlier and suggested that they would separate
these.
>> >>
>> >> Mick Knutson wrote:
>> >> > I just got maven jalopy working, and I got a jalopy.xml of the
>> standard
>> >> sun
>> >> > standards.
>> >> > I formatted all my code but then checkstyle went from 40 errors to
>> >700
>> >> > errors.
>> >> >
>> >> >
>> >> > Many of which are related to braces.
>> >> >
>> >> > '(' is followed by
>> >> > whitespace.238> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238
>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]')' is preceded with
>> >> > whitespace.238> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238
>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'if' construct must use
>> >> > '{}'s.240> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240
>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'(' is followed by
>> >> > whitespace.240> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240
>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]')' is preceded with
>> >> > whitespace.240> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240
>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'if' construct must use
>> >> > '{}'s.242> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242
>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'(' is followed by
>> >> > whitespace.242> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242
>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]')' is preceded with
>> >> > whitespace.242> >>
>>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242
>>
>> >>
>> >> >[image:
>> >> >
>> >> > error]'if' construct must use '{}'s.
>> >> >
>> >> > So, what should I do? Should I ask for help to get a
checkstyle.xml
>> >> > template
>> >> > that is more aligned with my jalopy.xml.
>> >> > Or should I modify my jalopy.xml to use the brace specification
that
>> >> > checkstyle is complaining about?
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >> --
>> >> Dennis Lundberg
>> >>
>> >>
-
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>>
>> --
>> Dennis Lundberg
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>


--
Dennis Lundberg

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





--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


Re: m2] Exclude Test files from Maven Jalopy?

2007-07-12 Thread Dennis Lundberg

According to the docs [1], that's the way to do it.

[1] http://www.triemax.com/products/jalopy/manual/plugin-maven.html

Mick Knutson wrote:

Can you tell me how to exclude files from Jalopy?

This did not work:

   
   jalopy.xml
   true

   
   **/*.java
   
   
   **/*Test.java
   
   




On 7/12/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:


Mick Knutson wrote:
> It sounds like I should just get Jalopy to follow Checkstyle though
> Right?
>
>
>
> On 7/11/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
>>
>> The "sun_checks.xml" provided by Checkstyle actually goes further than
>> the Sun Coding Conventions. It also has rules from the Java Language
>> Specification and some general best practices. I pointed this out to
the
>> Checkstyle team earlier and suggested that they would separate these.
>>
>> Mick Knutson wrote:
>> > I just got maven jalopy working, and I got a jalopy.xml of the
standard
>> sun
>> > standards.
>> > I formatted all my code but then checkstyle went from 40 errors to
>700
>> > errors.
>> >
>> >
>> > Many of which are related to braces.
>> >
>> > '(' is followed by
>> > whitespace.238>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238 


>>
>> >[image:
>> >
>> > error]')' is preceded with
>> > whitespace.238>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238 


>>
>> >[image:
>> >
>> > error]'if' construct must use
>> > '{}'s.240>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>>
>> >[image:
>> >
>> > error]'(' is followed by
>> > whitespace.240>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>>
>> >[image:
>> >
>> > error]')' is preceded with
>> > whitespace.240>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>>
>> >[image:
>> >
>> > error]'if' construct must use
>> > '{}'s.242>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>>
>> >[image:
>> >
>> > error]'(' is followed by
>> > whitespace.242>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>>
>> >[image:
>> >
>> > error]')' is preceded with
>> > whitespace.242>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>>
>> >[image:
>> >
>> > error]'if' construct must use '{}'s.
>> >
>> > So, what should I do? Should I ask for help to get a checkstyle.xml
>> > template
>> > that is more aligned with my jalopy.xml.
>> > Or should I modify my jalopy.xml to use the brace specification that
>> > checkstyle is complaining about?
>> >
>> >
>> >
>>
>>
>> --
>> Dennis Lundberg
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>


--
Dennis Lundberg

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








--
Dennis Lundberg

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



Re: m2] Exclude Test files from Maven Jalopy?

2007-07-12 Thread Mick Knutson

Can you tell me how to exclude files from Jalopy?

This did not work:

   
   jalopy.xml
   true

   
   **/*.java
   
   
   **/*Test.java
   
   




On 7/12/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:


Mick Knutson wrote:
> It sounds like I should just get Jalopy to follow Checkstyle though
> Right?
>
>
>
> On 7/11/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
>>
>> The "sun_checks.xml" provided by Checkstyle actually goes further than
>> the Sun Coding Conventions. It also has rules from the Java Language
>> Specification and some general best practices. I pointed this out to
the
>> Checkstyle team earlier and suggested that they would separate these.
>>
>> Mick Knutson wrote:
>> > I just got maven jalopy working, and I got a jalopy.xml of the
standard
>> sun
>> > standards.
>> > I formatted all my code but then checkstyle went from 40 errors to
>700
>> > errors.
>> >
>> >
>> > Many of which are related to braces.
>> >
>> > '(' is followed by
>> > whitespace.238>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238
>>
>> >[image:
>> >
>> > error]')' is preceded with
>> > whitespace.238>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238
>>
>> >[image:
>> >
>> > error]'if' construct must use
>> > '{}'s.240>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240
>>
>> >[image:
>> >
>> > error]'(' is followed by
>> > whitespace.240>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240
>>
>> >[image:
>> >
>> > error]')' is preceded with
>> > whitespace.240>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240
>>
>> >[image:
>> >
>> > error]'if' construct must use
>> > '{}'s.242>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242
>>
>> >[image:
>> >
>> > error]'(' is followed by
>> > whitespace.242>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242
>>
>> >[image:
>> >
>> > error]')' is preceded with
>> > whitespace.242>
1.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242
>>
>> >[image:
>> >
>> > error]'if' construct must use '{}'s.
>> >
>> > So, what should I do? Should I ask for help to get a checkstyle.xml
>> > template
>> > that is more aligned with my jalopy.xml.
>> > Or should I modify my jalopy.xml to use the brace specification that
>> > checkstyle is complaining about?
>> >
>> >
>> >
>>
>>
>> --
>> Dennis Lundberg
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>


--
Dennis Lundberg

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





--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


Re: Failed to validate POM warning

2007-07-12 Thread Steven Rowe
Hi Joël,

Have you tried using the -X option to mvn?  It might give more details
on the problem.

I checked your SapiensCommonsCore POM against maven-4.0.0.xsd, and it
appears to be valid, but you don't have a groupId there - are you
expecting to inherit it from the parent?

It might also be useful to run "mvn help:effective-pom" agianst the
SapiensCommonsCore POM, to see if its parent POM is introducing
something that's causing a problem.

Steve

Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER) wrote:
> Hi,
> 
> One of my project (ObjetTrouveService) depends on another project of mine 
> (SapiensCommonsCore).
> 
> When building ObjetTrouveService I have a warning telling me that 
> SapiensCommonsCore pom is not valid.
> 
> Here's the trace : 
> 
[...]
> [WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:compile' is invalid. 
> It will be ignored for artifact resolution. Reason: Failed to validate POM f
> or project sapiens:SapiensCommonsCore at Artifact 
> [sapiens:SapiensCommonsCore:pom:2.6.0:compile]
[...]
> And here's SapiensCommonsCore-2.6.0.pom as found in local repository : 
> 
> 
>
>   sapiens
>   SocleSapiens
>   2.6.0
>
>4.0.0
>SapiensCommonsCore
>jar
>Sapiens Core
>
>   
>  commons-net
>  commons-net
>   
>
> 
>
>   src/java
>   src/test
>
> 


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



Re: Compilation Error

2007-07-12 Thread Wayne Fay

Post the specific errors and perhaps we'll have some ideas. Also, are
you using Maven1 or Maven2?

Wayne

On 7/12/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Hi:



I have a problem when trying to compile a project with maven.

The project was compiling fine until it started to give compilation
errors that some third party classes were not found even though the
necessary jars were in the repository. Is not a code error because I can
compile the same code in a different computer with the exact same maven
settings. I really don't have a clue of what could be wrong, so I don't
know how to fix it. I tried to clean the local repo to force that all
the jar files were downloaded again, but that doesn't work.



Thanks,

Mirayma





This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.



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



Compilation Error

2007-07-12 Thread mirayma.rodriguez
Hi:

 

I have a problem when trying to compile a project with maven.

The project was compiling fine until it started to give compilation
errors that some third party classes were not found even though the
necessary jars were in the repository. Is not a code error because I can
compile the same code in a different computer with the exact same maven
settings. I really don't have a clue of what could be wrong, so I don't
know how to fix it. I tried to clean the local repo to force that all
the jar files were downloaded again, but that doesn't work.

 

Thanks,

Mirayma

 



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Re: [M2]skip parent

2007-07-12 Thread Tim Kettler

Hi,

you should split the common configuration (parent pom) and the project 
aggregation ( tag) in two separate poms:


myproject
 |
 |-myproject-parent
 |-module1
 |-module2

You then would have all three modules declared in the top level pom and 
module1 and module2 would have myproject-parent as their parent pom.


If the parent pom is not just used for this specific project but common 
to modules in other projects too (think of a parent for all ejb modules) 
you even could make the parent-pom a project of its own and deploy it to 
a internal repository and then reference it in the respective modules.


-Tim

Rémy Sanlaville schrieb:

Hi,

I wonder if it is possible in a multimodules project to skip the execution
just for the parent.

For instance, if you have 2 modules and you declare the maven-antrun-plugin
configuration
in the your parent pom :



   ...

   
   module1
   module2
   

 
   
   
   maven-antrun-plugin
   
   
   validate
   
   
   
   
   
   
   run
   
   
   
   
   
 


if you execute maven 2 at the parent level, you have something like that :

[INFO] Executing tasks
[echo] project.build.directory =
P:\03-Maven\dev\tests\multimodules\test\target
[INFO] Executed tasks
[INFO]
 


[INFO] Building Unnamed - tests.multimodules:module1:jar:1.0-SNAPSHOT
[INFO]task-segment: [validate]
[INFO]
 


[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[echo] project.build.directory =
P:\03-Maven\dev\tests\multimodules\test\module1\target
[INFO] Executed tasks
[INFO]
 


[INFO] Building Unnamed - tests.multimodules:module2:jar:1.0-SNAPSHOT
[INFO]task-segment: [validate]
[INFO]
 


[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[echo] project.build.directory =
P:\03-Maven\dev\tests\multimodules\test\module2\target
[INFO] Executed tasks

So maven 2 execute the antrun plugin first at parent level then module1 and
module 2.

It's fine with a such simple example. But if you use for instance weblogic
ant tasks, it's a problem.
The build failed because it can't deploy a war package at the parent level.
So, It would be very nice
to can skip the execution at the parent level.

PS:
 - I already try the weblogic-wlss-maven-plugin but it does not work very
well
 - Of course, I can copy the configuration just in the modules or execute
maven only
in each module but it not what I want to do (imagine if you have several
modules...)
 - I am also interesting to know if it possible.

Rémy




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



Re: [M2]skip parent

2007-07-12 Thread Wendy Smoak

On 7/12/07, Rémy Sanlaville <[EMAIL PROTECTED]> wrote:


It's fine with a such simple example. But if you use for instance weblogic
ant tasks, it's a problem.
The build failed because it can't deploy a war package at the parent level.
So, It would be very nice
to can skip the execution at the parent level.


Usually you would put it in pluginManagement in the parent, but I'm
not sure how well that's going to work if you ever have multiple
executions in antrun.  (BTW, it's a good idea to give that 
an .)

--
Wendy

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



[M2]skip parent

2007-07-12 Thread Rémy Sanlaville

Hi,

I wonder if it is possible in a multimodules project to skip the execution
just for the parent.

For instance, if you have 2 modules and you declare the maven-antrun-plugin
configuration
in the your parent pom :



   ...

   
   module1
   module2
   

 
   
   
   maven-antrun-plugin
   
   
   validate
   
   
   
   
   
   
   run
   
   
   
   
   
 


if you execute maven 2 at the parent level, you have something like that :

[INFO] Executing tasks
[echo] project.build.directory =
P:\03-Maven\dev\tests\multimodules\test\target
[INFO] Executed tasks
[INFO]

[INFO] Building Unnamed - tests.multimodules:module1:jar:1.0-SNAPSHOT
[INFO]task-segment: [validate]
[INFO]

[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[echo] project.build.directory =
P:\03-Maven\dev\tests\multimodules\test\module1\target
[INFO] Executed tasks
[INFO]

[INFO] Building Unnamed - tests.multimodules:module2:jar:1.0-SNAPSHOT
[INFO]task-segment: [validate]
[INFO]

[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[echo] project.build.directory =
P:\03-Maven\dev\tests\multimodules\test\module2\target
[INFO] Executed tasks

So maven 2 execute the antrun plugin first at parent level then module1 and
module 2.

It's fine with a such simple example. But if you use for instance weblogic
ant tasks, it's a problem.
The build failed because it can't deploy a war package at the parent level.
So, It would be very nice
to can skip the execution at the parent level.

PS:
 - I already try the weblogic-wlss-maven-plugin but it does not work very
well
 - Of course, I can copy the configuration just in the modules or execute
maven only
in each module but it not what I want to do (imagine if you have several
modules...)
 - I am also interesting to know if it possible.

Rémy


Re: How to make a multimodules site

2007-07-12 Thread Sylvain Mazaleyrat

It's work fine when you have just one module.

When I do :

$ mvn site
$ mvn site:deploy

I have several directories :

myproject-parent/$VERSION/MySite
myproject-webapp/$VERSION/MySite
myproject-core/$VERSION/MySite

I just want to have : myproject/$PARENT-VERSION/MyparentSite/webbappSite etc

Tanks for your help

On 7/12/07, maarten roosendaal <[EMAIL PROTECTED]> wrote:


Haven;t figured that one out either but when you deploy the site (for
example c:\mysite) it works fine. You have to add the deplomentManagement
tags to your pom.xml

- Original Message 
From: Sylvain Mazaleyrat <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Thursday, July 12, 2007 11:06:31 AM
Subject: How to make a multimodules site

Hello,

When I build the site of my project, I have several site in each
module/target and my top site isn't connected with each module.

I don't know how to put each site module in the parent site.

Thanks in advance,

--
   Sylvain Mazaleyrat

_o)

  /
\\

  _(___V








Be a better Globetrotter. Get better travel answers from someone who
knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

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





--
  Sylvain Mazaleyrat
_o)
 /
\\
 _(___V


Re: XML parser versions

2007-07-12 Thread Chris Searle


On 3. jul. 2007, at 22.16, Bryan Loofbourrow wrote:

Sorry for the late reply - a little hectic with a new son in the  
house :)


I'm assuming that you have your preferred version of xerces listed  
in a
 section of your root pom.xml. That's a good  
thing,


Not that I am aware of. I'm pretty much new to maven and my pom is  
mostly cargo-cult fetched from google searches.


I'm not even clear what you refer to as the "root pom.xml" file - all  
of the projects have their own pom - and I have not yet had time to  
look into collecting them into collected set with a parent pom (if  
that is indeed possible).


but it's not a panacea because of Maven 2's oddball rules about  
what version

wins, based on some sort of "distance from the invoker" rule. I think
there's a JIRA entry asking for better behavior there, and I  
haven't checked

on it lately so I don't know the status.

I've dealt with a similar issue by putting an explicit dependency  
on the
preferred artifact version into the pom.xml of the project that  
generates
the artifact into which the subsidiary artifact will be packaged.  
That's an
ear, in my case. That works because such dependencies always win  
the version

competition, but it is a bit of a hack.


Trouble is - I have

1) Added explicit requirement on xerces 2.8.1 in all poms
2) In the problem project added an exclusion on xerces 1.2.3 in the  
dependency xml for commons-jxpath (the only one in my .m2/repo that  
refers to xerces 1.2.3)


As far as I can tell - this _should_ work. It _does_ in two of three  
poms. Just this one that won't fly.






-- Bryan

-Original Message-
From: Chris Searle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 03, 2007 2:04 AM
To: Maven Users List
Subject: Re: XML parser versions


I suggest grepping your local repository for 1.2.3. My guess would
be that
you'll find a reference to it in a pom.xml file somewhere in there.


slippen:~/.m2/repository chris$ grep -r -l "1.2.3" . | grep pom$
./commons-jxpath/commons-jxpath/1.2/commons-jxpath-1.2.pom
./xerces/xerces/1.2.3/xerces-1.2.3.pom

So - it is present in xerces itself and commons-jxpath.

So - I have added the following again:

 
   commons-jxpath
   commons-jxpath
   1.2
   
 
   xerces
   xerces
 
   
 

Ran a mvn clean, then a site then a test.

site still shows xerces xerces 1.2.3 required under Project
Transitive Dependencies

test still fails due to the wrong parser being used





-Original Message-
From: Chris Searle [mailto:[EMAIL PROTECTED]
Sent: Monday, July 02, 2007 5:55 AM
To: users@maven.apache.org
Subject: XML parser versions

OK. A little confused here. I have three maven projects - all were
running just fine. All are spring based - and I wanted to add some
simple aspect programming to one of them. So - I changed the spring
config file to start like:


http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:aop="http://www.springframework.org/schema/aop";
xmlns:tx="http://www.springframework.org/schema/tx";
xsi:schemaLocation="http://www.springframework.org/schema/
beans http://www.springframework.org/schema/beans/spring- 
beans-2.0.xsd

http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd";>



Now - for this to be parseable you need a recent parser - so - I
added the following to the pom:


   xerces
   xercesImpl
   2.8.1
 

This project works just fine. mvn test completes, mvn install works.
All is well and good. Even the spring aop stuff works fine - using
the aspectjweaver.jar :)


Projects 2 and 3 depend on project 1. Both of these have the exact
same start to their spring XML minus the  line
since they do not directly have aop (they both use the spring config
of project1 for that part - loaded from the classpath). Both projects
2 and 3 have the same xerces dependency in their poms.

mvn test and mvn install work just fine on project 2. But project 3
fails. It gives:

testGetActiveMembersReport(net.chrissearle.export.TestExportService)
Time elapsed: 5.424 sec  <<< ERROR!
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException 
:

 L
ine 9 in XML document from class path resource [project1.xml] is
invalid; nested exception is org.xml.sax.SAXParseException: cvc-
complex-type.2.4.c: The matching wildcard is strict, but no
declaration can be found for element 'aop:spring-configured'.

Now - this is apparently due to parser version.

mvn dependency:build-classpath shows only xerces 2.8.1. But - mvn
site builds a site page where the dependencies show:

For compile:

xerces xercesImpl 2.8.1 - jar

but - for Project Transitive Dependencies

xerces xerces 1.2.3 - jar

However - the Pr

Re: m2] OT checkstyle verse Jalopy sun standards checks...

2007-07-12 Thread Dennis Lundberg

Mick Knutson wrote:

It sounds like I should just get Jalopy to follow Checkstyle though
Right?



On 7/11/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:


The "sun_checks.xml" provided by Checkstyle actually goes further than
the Sun Coding Conventions. It also has rules from the Java Language
Specification and some general best practices. I pointed this out to the
Checkstyle team earlier and suggested that they would separate these.

Mick Knutson wrote:
> I just got maven jalopy working, and I got a jalopy.xml of the standard
sun
> standards.
> I formatted all my code but then checkstyle went from 40 errors to >700
> errors.
>
>
> Many of which are related to braces.
>
> '(' is followed by
> whitespace.2381.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238 


>[image:
>
> error]')' is preceded with
> whitespace.2381.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238 


>[image:
>
> error]'if' construct must use
> '{}'s.2401.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>[image:
>
> error]'(' is followed by
> whitespace.2401.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>[image:
>
> error]')' is preceded with
> whitespace.2401.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>[image:
>
> error]'if' construct must use
> '{}'s.2421.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>[image:
>
> error]'(' is followed by
> whitespace.2421.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>[image:
>
> error]')' is preceded with
> whitespace.2421.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>[image:
>
> error]'if' construct must use '{}'s.
>
> So, what should I do? Should I ask for help to get a checkstyle.xml
> template
> that is more aligned with my jalopy.xml.
> Or should I modify my jalopy.xml to use the brace specification that
> checkstyle is complaining about?
>
>
>


--
Dennis Lundberg

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








--
Dennis Lundberg

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



Re: m2] OT checkstyle verse Jalopy sun standards checks...

2007-07-12 Thread Dennis Lundberg
Yes, that's what I would do. The extra (non-sun code convetions) checks 
that Checkstyle has are good, so following them is something that should 
be encouraged.


It would be nice if someone could contribute a jalopy configuration 
file, to the Jalopy project, that matches Checkstyle's rules.


Mick Knutson wrote:

It sounds like I should just get Jalopy to follow Checkstyle though
Right?



On 7/11/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote:


The "sun_checks.xml" provided by Checkstyle actually goes further than
the Sun Coding Conventions. It also has rules from the Java Language
Specification and some general best practices. I pointed this out to the
Checkstyle team earlier and suggested that they would separate these.

Mick Knutson wrote:
> I just got maven jalopy working, and I got a jalopy.xml of the standard
sun
> standards.
> I formatted all my code but then checkstyle went from 40 errors to >700
> errors.
>
>
> Many of which are related to braces.
>
> '(' is followed by
> whitespace.2381.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238 


>[image:
>
> error]')' is preceded with
> whitespace.2381.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#238 


>[image:
>
> error]'if' construct must use
> '{}'s.2401.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>[image:
>
> error]'(' is followed by
> whitespace.2401.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>[image:
>
> error]')' is preceded with
> whitespace.2401.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#240 


>[image:
>
> error]'if' construct must use
> '{}'s.2421.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>[image:
>
> error]'(' is followed by
> whitespace.2421.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>[image:
>
> error]')' is preceded with
> whitespace.2421.0.0.0/utilities/common/common-jar/xref/com/baselogic/util/xml/XMLParser.html#242 


>[image:
>
> error]'if' construct must use '{}'s.
>
> So, what should I do? Should I ask for help to get a checkstyle.xml
> template
> that is more aligned with my jalopy.xml.
> Or should I modify my jalopy.xml to use the brace specification that
> checkstyle is complaining about?
>
>
>


--
Dennis Lundberg

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








--
Dennis Lundberg

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



Re: Maven Build Problem - XFire

2007-07-12 Thread Siegfried Goeschl

Hi Markus,

I use the following dependencies for my xfire client



  org.codehaus.xfire
  xfire-aegis
  1.2.6


  org.codehaus.xfire
  xfire-core
  1.2.6
  

  javax.mail
  mail


  org.apache.ws.commons
  XmlSchema

  


Cheers,

Siegfried Goeschl


MPF wrote:

Hi!
Now i added following dependencies:

but some packages missed:
javax.xml.bin.annotation does not exist
org.codehaus.xfire.jaxb2 does not exist

my webservice use XFire 1.2.6

If you wrong understood: the webservice work (i can combile it and make a
war file), the problem ist the webapplication wich use this webservice :(

best regards.



Siegfried Goeschl wrote:

Hi Markus,

I'm not using the xfire-plugin but

+) which XFire version are you using - starting with 1.2.3 it ships with 
a full pom declaring all dependencies


+) when using older version you might check out 
http://xfire.codehaus.org/Dependency+Guide


Cheers,

Siegfried Goeschl



MPF wrote:

Hi!
I have a webapplication (myFaces) which also use a webservice of mine -
so i
installed the Xfire plugin and created the code which the wsdl of the
webservice. on localhost all work, but now i wanted to create a war file
and
got a build error.

did i need xfire dependencies at my pom file? whom?

following build errors i got:
C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic
eImplImpl.java:[4,17] package javax.jws does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic
e.java:[4,17] package javax.jws does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic
e.java:[5,17] package javax.jws does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic
e.java:[6,17] package javax.jws does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic
e.java:[7,17] package javax.jws does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic
e.java:[8,22] package javax.jws.soap does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy
peMap.java:[6,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy
peMap.java:[7,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy
peMap.java:[8,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy
peMap.java:[9,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ressComplex.java:[4,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ressComplex.java:[5,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ressComplex.java:[6,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ressComplex.java:[7,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ressComplex.java:[8,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService
ResponseModelResponse.java:[4,33] package javax.xml.bind.annotation does
not
exi
st

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService
ResponseModelResponse.java:[5,33] package javax.xml.bind.annotation does
not
exi
st

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService
ResponseModelResponse.java:[6,33] package javax.xml.bind.annotation does
not
exi
st

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService
ResponseModelResponse.java:[7,33] package javax.xml.bind.annotation does
not
exi
st

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService
ResponseModelResponse.java:[8,33] package javax.xml.bind.annotation does
not
exi
st

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ress.java:[4,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ress.java:[5,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ress.java:[6,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd
ress.java:[7,33] package javax.xml.bind.annotation does not exist

C:\work\projects\BUERGE~2\src\main\jav

Problems with Release plugin 2.0-beta-6

2007-07-12 Thread Reinhard Nägele
Hi,

The latest beta (2.0-beta-6) of the Release plugin caused different problem 
here, so we went back to using 2.0-beta-5, which works fine.

Problem 1:

We use Java 5 including features such as generics etc. In our super pom, the 
compile plugin is configured to use 1.5 source and target. However, using the 
Release plugin, these setting seem to be ignored, and we get compilations 
errors like these:

generics are not supported in -source 1.3 (try -source 1.5 to enable generics) 

annotations are not supported in -source 1.3 (try -source 1.5 to enable 
annotations) @Override

Compiling only (mvn compile) works as expected.


Problem 2:

In another project, we use custom plugins. For some reason, these plugins could 
not be resolved using the Release plugin, but work fine otherwise. Deleting the 
local repository did not help. The plugins are deployed to our central 
repository (Artifactory).

[INFO] Failed to resolve artifact.

GroupId: com.mgmtp.maven.plugins
ArtifactId: maven-build-timestamp-plugin
Version: RELEASE

Reason: Unable to determine the release version

  com.foo.plugins:maven-foo-plugin:pom:RELEASE


As mentioned above, the problems went away going back to version 2.0-beta-5.

BTW, we create the releases using release:prepare and release:perform together 
in batch mode.

Is anybody else experiencing such problems?

Reinhard

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



Re: How to add projects with modules????

2007-07-12 Thread Emmanuel Venisse



javijava a écrit :

first, thans for reply Napoleon.
I use the continuum version stable.


If it's 1.0.3, I'm not sure it works fine with "../" in module path

You can try 1.1-alpha-2, a first beta will be release in few days. and alpha-2 
is stable too.

Emmanuel



I put other example of structure more easy:   (if this woks then i try after
the 3 levels structure :p)



repo
|
|
|all-pom.xml //the superpom
|
|
|---proyectA
|  |--- pom.xml
|  |release 
|

|---proyectB
| |pom.xml
| |release

Who must have the SCM i put it in all the pom's .


pom all:

groupid
all
pom
1.0-SNAPSHOT-FIX-HIBERNATE
All

  
../projectA
../projectB

   
   
scm:svn:svn://localhost/svn/prova/repo/all
   
scm:svn:svn://localhost/svn/prova/repo/all




pom  projectA:

groupid
projectA
jar

groupid
all
1.0-SNAPSHOT-FIX-HIBERNATE
../all


 ..
 
 maven-release-plugin
  
	   
http://localhost/svn/prova/repo/projectA/release

usr
pssw
  
 
  ..
   
   
scm:svn:svn://localhost/svn/prova/repo/projectA
   
scm:svn:svn://localhost/svn/prova/repo/projectA




pom projectB:

  groupid
projectB
jar

groupid
all
1.0-SNAPSHOT-FIX-HIBERNATE
../all


 ..
 
 maven-release-plugin
  
	   
http://localhost/svn/prova/repo/projectB/release

usr
pssw
  
 
  ..
   
   
scm:svn:svn://localhost/svn/prova/repo/projectB
   
scm:svn:svn://localhost/svn/prova/repo/projectB



when I add this poms in continuum (I only must add the superpom), and try to
do a build or release from project A or B... continuum try to download the
superpom from repositories,don't find it and fail.

If you need more information tell me. I hope you can help me. Thanks





Re: How to make a multimodules site

2007-07-12 Thread maarten roosendaal
Haven;t figured that one out either but when you deploy the site (for example 
c:\mysite) it works fine. You have to add the deplomentManagement tags to your 
pom.xml

- Original Message 
From: Sylvain Mazaleyrat <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Thursday, July 12, 2007 11:06:31 AM
Subject: How to make a multimodules site

Hello,

When I build the site of my project, I have several site in each
module/target and my top site isn't connected with each module.

I don't know how to put each site module in the parent site.

Thanks in advance,

-- 
   Sylvain Mazaleyrat
 _o)
  /
\\
  _(___V





   

Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

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



Re: How to use webdac under maven1 to deploy artifacts

2007-07-12 Thread Arnaud HERITIER

The main problem is that we have to downgrade the httpclient to
version 2.0.2 in the core :-(  The wagon-webdav and its libraries
doesn't work with httpclient 3.x

arnaud

On 12/07/07, Lukas Theussl <[EMAIL PROTECTED]> wrote:

It's never been implemented: http://jira.codehaus.org/browse/MPARTIFACT-16

-Lukas


Piotr Oktaba wrote:
> Hi.
>
> I want to deploy artifacts to WebDAV based repository. I cannot find any
> plugin under Maven 1 that provides such functionality. Is there any way
> to achieve that?
> I know that one of Maven 2 plugins have that functionality, but I have
> to use Maven 1.
>
> Thanks in advance,
> Piotr Oktaba
>
> -
> 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]





--
..
Arnaud HERITIER
..
OCTO Technology - [EMAIL PROTECTED]
www.octo.com | blog.octo.com
..
ASF - [EMAIL PROTECTED]
www.apache.org | maven.apache.org
...

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



RE: Failed to validate POM warning

2007-07-12 Thread Joel COSTIGLIOLA \(Services DPT SYSTEME D INFORMATION METIER\)


ObjetTrouveService is refering to SapiensCommonsCore, SapiensCommonsCore 
artifact is in my local repo.

I had already executed "mvn install" command for SapiensCommonsCore project, is 
that what you meant by doing a "manual install" ? anyway executing "mvn 
install" on SapiensCommonsCore has not solved the warning.


In my local repository you can find this files : 

- sapiens/SapiensCommonsCore
  - 2.6.0
- SapiensCommonsCore-2.6.0.jar
- SapiensCommonsCore-2.6.0.pom
  - maven-metadata-local.xml

I have already put the content of SapiensCommonsCore-2.6.0.pom.

Here's the content of maven-metadata-local.xml


  sapiens
  SapiensCommonsCore
  2.6.0
  

  2.6.0

20070712081818
  




-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 12 juillet 2007 11:05
À : users@maven.apache.org; users@maven.apache.org
Objet : RE: Failed to validate POM warning



Hi,


There can be two reasons for the scenario:


1. If you are working with the global repo; then your specific 
(SapiensCommonsCore) dependencies which might not be found by the POM  
(ObjetTrouveService).
So you can provide a relative path for the same in your ObjetTrouveService POM 
file.


2. Otherwise, if you are referring to your local repo then do a manual install 
for your project dependency so that while executing the ObjetTrouveService POM 
the dependency and thence the POM will be validated.


Try this out if it works.







thanks,
vaishali pande
Cognizant Technology Solutions Pvt Ltd.




From: Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER) 
[mailto:[EMAIL PROTECTED]
Sent: Thu 7/12/2007 2:03 PM
To: users@maven.apache.org
Subject: Failed to validate POM warning




Hi,

One of my project (ObjetTrouveService) depends on another project of mine 
(SapiensCommonsCore).

When building ObjetTrouveService I have a warning telling me that 
SapiensCommonsCore pom is not valid.

Here's the trace :

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

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

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:compile' is invalid. It 
will be ignored for artifact resolution. Reason: Failed to validate POM f
or project sapiens:SapiensCommonsCore at Artifact 
[sapiens:SapiensCommonsCore:pom:2.6.0:compile]
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jul 12 10:28:49 CEST 2007
[INFO] Final Memory: 5M/10M
[INFO] 

Here's ObjetTrouveService pom.xml

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   sapiens
   ObjetTrouveService
   jar
   2.6.0-SNAPSHOT
   ObjetTrouveService
   http://maven.apache.org  
   
  
 sapiens
 SapiensCommonsCore
 jar
 2.6.0
  
  
 org.springframework
 spring
 2.0.6
 jar
  
  
 asm
 asm-all
 2.2.3
 jar
  
  
 aspectj
 aspectjrt
 1.5.3
 jar
  
  
 aspectj
 aspectjweaver
 1.5.3
 jar
  
  
 log4j
 log4j
 1.2.8
 jar
  
  
 commons-lang
 commons-lang
 2.1
 jar
  
  
 commons-dbcp
 commons-dbcp
 1.2.1
 jar
 runtime
  
  
  
 weblogic
 weblogic
 jar
 8.1.5
 system
 ${bea.server.home}/lib/weblogic.jar
  
  
 weblogic
 oracle-jdbc-driver
 8.1.5
 jar
 system
 
${bea.server.home}/ext/jdbc/oracle/10g/ojdbc14_g.jar
  
  
  
 junit
 junit
 3.8.1
 test
  
   
   
  
 
org.apache.maven.plugins
maven-surefire-plugin

   true

 
 
org.apache.maven.plugins
maven-compiler-plugin

   1.4
   1.4

 
 
org.apache.maven.plugins
maven-eclipse-plugin

   
  
org.springframew

How to make a multimodules site

2007-07-12 Thread Sylvain Mazaleyrat

Hello,

When I build the site of my project, I have several site in each
module/target and my top site isn't connected with each module.

I don't know how to put each site module in the parent site.

Thanks in advance,

--
  Sylvain Mazaleyrat
_o)
 /
\\
 _(___V


Re: How to use webdac under maven1 to deploy artifacts

2007-07-12 Thread Lukas Theussl

It's never been implemented: http://jira.codehaus.org/browse/MPARTIFACT-16

-Lukas


Piotr Oktaba wrote:

Hi.

I want to deploy artifacts to WebDAV based repository. I cannot find any
plugin under Maven 1 that provides such functionality. Is there any way
to achieve that? 
I know that one of Maven 2 plugins have that functionality, but I have

to use Maven 1.
 
Thanks in advance,

Piotr Oktaba

-
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: Failed to validate POM warning

2007-07-12 Thread Vaishali.Pande


Hi,


There can be two reasons for the scenario:


1. If you are working with the global repo; then your specific 
(SapiensCommonsCore) dependencies which might not be found by the POM  
(ObjetTrouveService).
So you can provide a relative path for the same in your ObjetTrouveService POM 
file.


2. Otherwise, if you are referring to your local repo then do a manual install 
for your project dependency so that while executing the ObjetTrouveService POM 
the dependency and thence the POM will be validated.


Try this out if it works.







thanks,
vaishali pande
Cognizant Technology Solutions Pvt Ltd.




From: Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER) 
[mailto:[EMAIL PROTECTED]
Sent: Thu 7/12/2007 2:03 PM
To: users@maven.apache.org
Subject: Failed to validate POM warning




Hi,

One of my project (ObjetTrouveService) depends on another project of mine 
(SapiensCommonsCore).

When building ObjetTrouveService I have a warning telling me that 
SapiensCommonsCore pom is not valid.

Here's the trace :

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

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

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:compile' is invalid. It 
will be ignored for artifact resolution. Reason: Failed to validate POM f
or project sapiens:SapiensCommonsCore at Artifact 
[sapiens:SapiensCommonsCore:pom:2.6.0:compile]
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jul 12 10:28:49 CEST 2007
[INFO] Final Memory: 5M/10M
[INFO] 

Here's ObjetTrouveService pom.xml

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   sapiens
   ObjetTrouveService
   jar
   2.6.0-SNAPSHOT
   ObjetTrouveService
   http://maven.apache.org  
   
  
 sapiens
 SapiensCommonsCore
 jar
 2.6.0
  
  
 org.springframework
 spring
 2.0.6
 jar
  
  
 asm
 asm-all
 2.2.3
 jar
  
  
 aspectj
 aspectjrt
 1.5.3
 jar
  
  
 aspectj
 aspectjweaver
 1.5.3
 jar
  
  
 log4j
 log4j
 1.2.8
 jar
  
  
 commons-lang
 commons-lang
 2.1
 jar
  
  
 commons-dbcp
 commons-dbcp
 1.2.1
 jar
 runtime
  
  
  
 weblogic
 weblogic
 jar
 8.1.5
 system
 ${bea.server.home}/lib/weblogic.jar
  
  
 weblogic
 oracle-jdbc-driver
 8.1.5
 jar
 system
 
${bea.server.home}/ext/jdbc/oracle/10g/ojdbc14_g.jar
  
  
  
 junit
 junit
 3.8.1
 test
  
   
   
  
 
org.apache.maven.plugins
maven-surefire-plugin

   true

 
 
org.apache.maven.plugins
maven-compiler-plugin

   1.4
   1.4

 
 
org.apache.maven.plugins
maven-eclipse-plugin

   
  
org.springframework.ide.eclipse.core.springnature
   
   
  
org.springframework.ide.eclipse.core.springbuilder
   

 
 
maven-antrun-plugin

   
  copy-project-artifact-to-bav-objtrouve
  package
  
 

 
  
  
 run
  
   

 
 
org.apache.maven.plugins
maven-dependency-plugin

   
   
  copy-dependencies-to-bav-objtrouve
  package
  
 copy-dependencies
  
  
 
../../../SAPIENS/APP-INF/lib/.
 false
 

How to use webdac under maven1 to deploy artifacts

2007-07-12 Thread Piotr Oktaba
Hi.

I want to deploy artifacts to WebDAV based repository. I cannot find any
plugin under Maven 1 that provides such functionality. Is there any way
to achieve that? 
I know that one of Maven 2 plugins have that functionality, but I have
to use Maven 1.
 
Thanks in advance,
Piotr Oktaba

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



RE: Jar truncated on download

2007-07-12 Thread Vaishali.Pande


Check for your proxy settings if you are working on a restricted network.


There might be some runtime dependencies which are not getting downloaded 
meanwhile you are downloading the artifact; which results in the reduced size 
of the downloaded jar file.





thanks,
vaishali pande
Cognizant Technology solutions Pvt Ltd.




From: kelvin goodson [mailto:[EMAIL PROTECTED]
Sent: Thu 7/12/2007 2:10 PM
To: Maven Users List
Subject: Jar truncated on download



Hi,
   I'm seeing a situation where a jar is downloaded and the maven build
output shows the correct size file being downloaded,  but the file in the
local repo at the end of the build is truncated.  The build fails on missing
symbols, and jar -tvf on the file fails with an exception of the file being
truncated.  If you then use the link to the file in question reported by the
build output in a web browser, and manually download the and place it in the
local repo,  then the build succeeds.  This error is happening for a number
of us in the project,  and the file, which has a true size of 755KB seems to
download as either 188KB or 505KB.  Anyone seen anything like this before?
Any clues?

Regards, Kelvin.




This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.

Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly

prohibited and may be unlawful.

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly 
prohibited and may be unlawful.

Jar truncated on download

2007-07-12 Thread kelvin goodson

Hi,
  I'm seeing a situation where a jar is downloaded and the maven build
output shows the correct size file being downloaded,  but the file in the
local repo at the end of the build is truncated.  The build fails on missing
symbols, and jar -tvf on the file fails with an exception of the file being
truncated.  If you then use the link to the file in question reported by the
build output in a web browser, and manually download the and place it in the
local repo,  then the build succeeds.  This error is happening for a number
of us in the project,  and the file, which has a true size of 755KB seems to
download as either 188KB or 505KB.  Anyone seen anything like this before?
Any clues?

Regards, Kelvin.


Failed to validate POM warning

2007-07-12 Thread Joel COSTIGLIOLA \(Services DPT SYSTEME D INFORMATION METIER\)

Hi,

One of my project (ObjetTrouveService) depends on another project of mine 
(SapiensCommonsCore).

When building ObjetTrouveService I have a warning telling me that 
SapiensCommonsCore pom is not valid.

Here's the trace : 

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

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

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:compile' is invalid. It 
will be ignored for artifact resolution. Reason: Failed to validate POM f
or project sapiens:SapiensCommonsCore at Artifact 
[sapiens:SapiensCommonsCore:pom:2.6.0:compile]
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jul 12 10:28:49 CEST 2007
[INFO] Final Memory: 5M/10M
[INFO] 

Here's ObjetTrouveService pom.xml

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   sapiens
   ObjetTrouveService
   jar
   2.6.0-SNAPSHOT
   ObjetTrouveService
   http://maven.apache.org
   
  
 sapiens
 SapiensCommonsCore
 jar
 2.6.0
  
  
 org.springframework
 spring
 2.0.6
 jar
  
  
 asm
 asm-all
 2.2.3
 jar
  
  
 aspectj
 aspectjrt
 1.5.3
 jar
  
  
 aspectj
 aspectjweaver
 1.5.3
 jar
  
  
 log4j
 log4j
 1.2.8
 jar
  
  
 commons-lang
 commons-lang
 2.1
 jar
  
  
 commons-dbcp
 commons-dbcp
 1.2.1
 jar
 runtime
  
  
  
 weblogic
 weblogic
 jar
 8.1.5
 system
 ${bea.server.home}/lib/weblogic.jar
  
  
 weblogic
 oracle-jdbc-driver
 8.1.5
 jar
 system
 
${bea.server.home}/ext/jdbc/oracle/10g/ojdbc14_g.jar
  
  
  
 junit
 junit
 3.8.1
 test
  
   
   
  
 
org.apache.maven.plugins
maven-surefire-plugin

   true

 
 
org.apache.maven.plugins
maven-compiler-plugin

   1.4
   1.4

 
 
org.apache.maven.plugins
maven-eclipse-plugin

   
  
org.springframework.ide.eclipse.core.springnature
   
   
  
org.springframework.ide.eclipse.core.springbuilder
   

 
 
maven-antrun-plugin

   
  copy-project-artifact-to-bav-objtrouve
  package
  
 

 
  
  
 run
  
   

 
 
org.apache.maven.plugins
maven-dependency-plugin

   
   
  copy-dependencies-to-bav-objtrouve
  package
  
 copy-dependencies
  
  
 
../../../SAPIENS/APP-INF/lib/.
 false
 true
 
weblogic,junit,commons-dbcp
  
   

 
  
   



And here's SapiensCommonsCore-2.6.0.pom as found in local repository : 


   
  sapiens
  SocleSapiens
  2.6.0
   
   4.0.0
   SapiensCommonsCore
   jar
   Sapiens Core
   
  
 commons-net
 commons-net
  
   

   
  src/java
  src/test
   



I have searched on the web and haven't found a reason for such a warning.
Can somebody explain me the reason of warning ?

Thanks in advance,
Regards,
 
Joël Costigliola

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