Wrong resolution of dependency scope by Maven 3?

2012-12-04 Thread Dmitry Batrak
Hi,

While trying to migrate a project from Maven 2 to Maven 3, I
encountered a problem, the essence of which can be demonstrated by the
following simple example.
Consider the following POM:

project
modelVersion4.0.0/modelVersion

groupIdtest/groupId
artifactIdA/artifactId
version1.0/version

dependencies
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2-xmlbeans/artifactId
version1.5/version
scopeprovided/scope
/dependency
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2-codegen/artifactId
version1.5/version
exclusions
exclusion
groupIdorg.apache.geronimo.specs/groupId
artifactIdgeronimo-stax-api_1.0_spec/artifactId
/exclusion
/exclusions
/dependency
/dependencies
/project

Running 'mvn dependency:resolve' for this POM yields a strange result.
Namely, it says that that my module depends on
geronimo-stax-api_1.0_spec with 'compile' scope.
This artifact is a transitive dependency of both axis2-xmlbeans and
axis2-codegen, and, according to rules for transitive dependencies, I
would expect the resolved scope of geronimo-stax-api_1.0_spec to be
'provided'. With Maven 2 I get exactly the result I expect.

Should I raise a JIRA ticket for this issue, or am I missing some
point, and this is the desired behaviour in the new version of Maven?

For reference - I used Maven version 3.0.4. I also checked the above
with the latest version (2.6) of dependency plugin - result was the
same.

Best regards,
Dmitry Batrak

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: reactor build changes in module recompilation of dependent modules

2012-07-04 Thread Dmitry Trunikov

Hi Wayne,

The app version is '1.0-SNAPSHOT'.
The Maven is:

$ mvn --version
Apache Maven 3.0.3 (r1075438; 2011-02-28 19:31:09+0200)
Maven home: /opt/maven
Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
Java home: /opt/jdk1.6.0_29/jre
Default locale: en_US, platform encoding: UTF-8
OS name: linux, version: 3.2.0-25-generic, arch: amd64, family: unix

Below are the POMs which I use to reproduce the issue.
Directory structure:

pom.xml  [root pom, the builds were run in this dir]
|
+-api   [module of an interface]
|   |
|   +pom.xml
|
+-impl [module of an implementation]
|
+pom.xml


The root POM:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;


modelVersion4.0.0/modelVersion

groupIda.b.c/groupId
artifactIdfoo/artifactId
packagingpom/packaging
version1.0-SNAPSHOT/version

modules
moduleapi/module
moduleimpl/module
/modules

build
pluginManagement
plugins
plugin
artifactIdmaven-clean-plugin/artifactId
version2.4.1/version
/plugin
plugin
artifactIdmaven-resources-plugin/artifactId
version2.5/version
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.4/version
configuration
source1.6/source
target1.6/target
/configuration
/plugin
/plugins
/pluginManagement
/build
/project


The POM for 'api' module:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;


modelVersion4.0.0/modelVersion

parent
groupIda.b.c/groupId
artifactIdfoo/artifactId
version1.0-SNAPSHOT/version
relativePath../relativePath
/parent

artifactIdfoo-api/artifactId
version1.0-SNAPSHOT/version
packagingjar/packaging

build
finalNamefoo-api/finalName
sourceDirectorysrc/main/java/sourceDirectory
/build

/project

The POM for 'impl' module:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;


modelVersion4.0.0/modelVersion

parent
groupIda.b.c/groupId
artifactIdfoo/artifactId
version1.0-SNAPSHOT/version
relativePath../relativePath
/parent

groupIda.b.c/groupId
artifactIdfoo-impl/artifactId
version1.0-SNAPSHOT/version
packagingjar/packaging

dependencies
dependency
groupIda.b.c/groupId
artifactIdfoo-api/artifactId
version1.0-SNAPSHOT/version
/dependency
/dependencies

build
finalNamefoo-impl/finalName
sourceDirectorysrc/main/java/sourceDirectory
/build

/project


Thanks for your help,

Dmitry



On 07/04/2012 12:15 AM, Wayne Fay wrote:

Question:

Why Maven didn't complain on second build?

What are the versions of the various projects in your build?

Wayne




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: reactor build changes in module recompilation of dependent modules

2012-07-04 Thread Dmitry Trunikov


javac will only recompile classes that have changed. it does not do 
dependency analysis, so a breaking change will only cause a compile 
failure until you do clean




Thank you for clarification.
Is there any way (except explicit 'clean') to turn on dependency 
analysis during compilation.
The project consists of tens of modules so approach with 'clean' is not 
good enough because full re-biuld requires relative significant amount 
of time.


Thanks for your help,
Dmitry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: reactor build changes in module recompilation of dependent modules

2012-07-04 Thread Dmitry Trunikov


The way I do this is to use my IDE's dependency analysis to have my 
IDE do a Make (which rebuilds all the downstream changes)... then 
before I commit I will do a mvn clean verify to make sure that my 
changes are good




Yes my IDE does the analysis too.
The problem is in my colleague.
He is unix geek and orthodox and use Emacs as java IDE. At the start of 
the project we had a long discussion what use as build tool.
He insisted on Ant because he knew exactly how it works and can easily 
adjust build process.
I proposed to use Maven as it has perfect support of multi-module 
projects (at least I thought so at that time).
I frustrated a lot because in my opinion recompilation of dependent 
modules when dependency was changed is a main goal of any matured build 
tool.

And I was convinced that Maven reactor mechanism does it perfectly.
Actually I can't believe in absence of such functionality in Maven.


reactor build changes in module recompilation of dependent modules

2012-07-03 Thread Dmitry Trunikov

Hi All,

It seems that my question has an obvious answer. Unfortunately googling 
didn't give me a good one.


Prerequisites:

I have a classical multi-module project. The root POM declares two 
modules: 'api' and 'impl'.

These modules have references to the parent.
The module 'api' contains definition of an interface.
The module 'impl' has dependency on 'api' and a class which implements 
the interface.


Issue:

In the top directory I run a reactor build:

[First build]
$ mvn clean compile

The build finished with success.
Then I made changes in the interface declaration in the module 'api' 
(added a new method) and run build again:


[Second build]
$ mvn compile

The build finished with success again. It is strange because I expected 
that build finished with failure because class in the module 'impl' had 
no implementation of the method just added to the interface.

When I run build with command:

[Third build]
$ mvn clean compile

It finished, as I expected, with failure.

Question:

Why Maven didn't complain on second build?


Thanks for your help,

Dmitry


Create standalone maven package

2012-02-24 Thread Dmitry Ivanov
Hello,
In my build process need run one mandatory plugin for all teams. I want to
have one maven package with plugin and all dependencies.
This package must run without connection to any repositories.
Is it possible to create that package?

Best regards,
Dmitry Ivanov


Documentation fix

2011-08-10 Thread Dmitry Voronov
Hello!


I think there's a minor doc flaw in the pom introduction page:

http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Example_2


The relativePath attribute in the second example should begin with ../
(not with .../):


project
  parent
groupIdcom.mycompany.app/groupId
artifactIdmy-app/artifactId
version1/version
relativePath.../parent/pom.xml/relativePath
  /parent
  modelVersion4.0.0/modelVersion
  artifactIdmy-module/artifactId
/project


--

Best Regards

Thank you for maven!


maven3 and issues with war plugin configuration

2010-10-11 Thread Dmitry Sklyut
Hi All,

I have following configuration in war plugin:
(parent pom)
plugin
                    groupIdorg.apache.maven.plugins/groupId
                    artifactIdmaven-war-plugin/artifactId
                    version2.1/version
                    configuration
                        excludes
                            exclude.gitignore/exclude
                            exclude**/.gitignore/exclude
                        /excludes
                    /configuration
                /plugin
(child pom)
plugin
                groupIdorg.apache.maven.plugins/groupId
                artifactIdmaven-war-plugin/artifactId
                configuration
                    packagingExcludesWEB-INF/lib/*.jar/packagingExcludes
                /configuration
            /plugin


This is the error I am getting:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-war-plugin:2.1:war (default-war)
  on project com.ptc.insight.runtime.theme:
  Unable to parse configuration of mojo
org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war:
  When configuring a basic element the configuration cannot contain
any child elements.
  Configuration element 'warSourceExcludes'. - [Help 1]

I debugged through the maven-core and it looks like type converter is
picked up based on the target type of the property.

In maven-war-plugin warSourceExcludes is a String with an alias to excludes

/**
 * The comma separated list of tokens to exclude when copying the content
 * of the warSourceDirectory.
 *
 * @parameter alias=excludes
 */
private String warSourceExcludes;

The question that I have is that a oversight on the part of maven core
or a issue with plugins that alias simple properties with complex
properties?

Regards,

Dmitry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: RFC: Maven License Verifier Plugin

2010-02-04 Thread Dmitry Katsubo
Hi Karl!

It would be nice to have a plugin, that for each dependency checks the
META-INF\manifest.mf for Bundle-License entry or tries to guess the
licence type from META-INF\LICENSE.txt or META-INF\license files. It
would be nice, if plugin takes care of autodetecting of licences of
leave dependencies, which are not under our control, but for which we
would like to check the license compatibility. It can warn the user,
if the license type is not detected and can, for example, allow you to
set the license for a given groupId/artifactId (and make this setting
project-wide from parent pom).

That would be a dream :) Or is it a reality already?

Karl Heinz Marbaise wrote on 04/02/2010 00:15:
 Hi there,
 
 i have started with implementing some parts of a new Maven Plugin.
 
 The Maven License Verifier Plugin (MLV for short).
 
 I would present you the idea of the plugin and would like to know if
 someone has some suggestions, idea's, comments etc.
 
 
 The basic idea is to check every dependency which is used (incl.
 transitive dependencies) of a build (during a mvn ..) and see if all
 artifacts have licenses which are based on the policy (of a company
 etc.) are allowed ...that's often a point in companies...Some companies
 says only allowed is the Apache License (for example)...
 
 
 The Plugin will use a configuration file which defines different
 categories of Licenses
 (http://site.supose.org/maven-licenses-verifier-plugin/licenses.html).
 
 The default configuration will not break a build it will just warn about
 artifacts which don't have a license defined or which in a particular
 category (WARN, INVALID or none of them).
 
 About what I'm unsure about is where to define the license.xml file (or
 multiple of them):
 
 Option 1:
 Use a particular folder: src/main/licenses/ and put one or more files in
 there which will be automatically be loaded.
 
 Option 2:
 Give a single or multiple locations for license.xml files in the
 configuration section for the plugin.
 
 Option 3:
 Use an URL to define where to download the license.xml file or may be
 multiple URL's. This could be usefull in Companies to have central
 location where maintain such files which can be used for every project
 in a company...(May be it's possible to store that in a repository
 manager like Nexus ?)
 
 Option 4:
 Use an Artifact which can be created and stored into a Maven repository ?
 
 Of course the plugin is configurable in that way to brake the build if
 you do ...(e.g. failOnWarning like ?)...
 
 
 The other question is how to behave in a reactor build (Multi Module
 build):
   - Just have a single Configuration (e.g. in Root) and put the
 configuration file(s) there (not sure how to handle this technically)...
 
 
 And what is needed as well is to be able to exclude particular artifacts
 from being checked (excludes...exclude.).. (I have to check how
 to implement this but this is an other question)...
 
 
 Kind regards
 Karl Heinz Marbaise


-- 
With best regards,
Dmitry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Implementing an installer, which is maven-based

2010-02-04 Thread Dmitry Katsubo
Hi everybody!

I am still not sure, what is the best direction for me to solve the
following task. Maybe someone on maillist implemented something similar,
or knows the technology/approach, that can simplify things.

What ideally I want to achieve is:

1. Create a lightweight installator, that will not contain any maven
artifacts (or, if not possible, contain all of them).
2. When end user launches the installator, it is asked for some input,
which is saved as .property file.
3. Installator then fetches only the artifacts needed (selected by user
+ those which are obligatory), and replaces the property file(s) in
those artifacts. Finally it creates ready to-use WAR package.

If you have an example of above -- give me a link, please. That would be
great!

Right now I see the only way is to create a temporary maven project and
after doing steps (1) and (2) launch maven to complete the packaging.

Thanks in advance!

Dmitry Katsubo wrote on 30/01/2010 16:34:
 Hi all!
 
 Sorry, that my question seems to have been asked in maven user list
 http://mail-archives.apache.org/mod_mbox/maven-users/200710.mbox/%3c2fbbcb49-65d3-4258-906f-e252372e9...@massol.net%3e
 
 but I have the situation, similar to that. I hope you can help me, as
 you might know what are the latest approaches to that.
 
 I have some service, packaged as .WAR, which is completely build by
 maven. However, this .WAR file requires customization: I need to package
 it in different ways, depending on user input. Basically, user should
 himself select the components, he would like to add to WAR, and define
 some simple configuration for these components. After the packaging the
 installer should optionally launch tomcat (or jetty) and start a WAR
 application.
 
 I need to write the installer, that:
 1. Asks user for the list of components (=checkboxes)
 2. For each component, asks for the configuration options (then to be
 saved as .property file)
 3. Package everything from steps 1 and 2 into WAR file. Dependences
 should be fetched from publicly available maven repository.
 4. Optionally launch tomcat (or jetty) in a background
 5. Maybe execute some other script, depending on choices in 1 (like
 demo application).
 
 Let me know, if there is a universal solution for that.
 
 Thanks in advance for any hint.
 


-- 
With best regards,
Dmitry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Implementing an installer, which is maven-based

2010-02-01 Thread Dmitry Katsubo
Hi all!

Sorry, that my question seems to have been asked in maven user list
http://mail-archives.apache.org/mod_mbox/maven-users/200710.mbox/%3c2fbbcb49-65d3-4258-906f-e252372e9...@massol.net%3e
but I have the situation, similar to that. I hope you can help me, as
you might know what are the latest approaches to that.

I have some service, packaged as .WAR, which is completely build by
maven. However, this .WAR file requires customization: I need to package
it in different ways, depending on user input. Basically, user should
himself select the components, he would like to add to WAR, and define
some simple configuration for these components. After the packaging the
installer should optionally launch tomcat (or jetty) and start a WAR
application.

I need to write the installer, that:
1. Asks user for the list of components (=checkboxes)
2. For each component, asks for the configuration options (then to be
saved as .property file)
3. Package everything from steps 1 and 2 into WAR file. Dependences
should be fetched from publicly available maven repository.
4. Optionally launch tomcat (or jetty) in a background
5. Maybe execute some other script, depending on choices in 1 (like
demo application).

Let me know, if there is a universal solution for that.

Thanks in advance for any hint.

-- 
With best regards,
Dmitry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Implementing an installer, which is maven-based

2010-02-01 Thread Dmitry Katsubo
Stephen Connolly wrote on 01/02/2010 11:50:
 have you tried izpack-maven-plugin?

Hi Stephan!

I had a look at IzPack shortly, and as I understood, IzPack creates an
installer for your maven project. So, your maven targets artifacts have
to be packaged before creating an installation. What I ideally need is:

1. Create a lightweight installator, that will not contain any maven
artifacts (or, if not possible, contain all of them).
2. When end user launches the installator, it is asked for some input,
which is saved as .property file.
3. Installator then fetches only the artifacts needed (selected by user
+ those which are obligatory), and replaces the property file(s) in
those artifacts. Finally it creates ready to-use WAR package.

If you have an example of above -- give me a link, please. That would be
great!

Right now I see the only way is to create a temporary maven project and
after doing steps (1) and (2) launch maven to complete the packaging.

-- 
With best regards,
Dmitry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



If there any way to execute plugin conditionally?

2009-12-09 Thread Dmitry Skavish
Hi,

I need to run dependency-copy plugin only when some environment variable
set. Is it possible? I could not find anything even remotely related to
that. Thanks!

-- 
Dmitry Skavish


Re: If there any way to execute plugin conditionally?

2009-12-09 Thread Dmitry Skavish
Thanks a lot! Works perfectly! That's exactly what I was looking for.

On Wed, Dec 9, 2009 at 12:28 PM, Adam Leggett (UPCO) 
adam.legg...@upco.co.uk wrote:

 Did you look at profiles for this -
 http://maven.apache.org/guides/introduction/introduction-to-profiles.html?

 They can be activated with an env var.

 Thanks

 Adam

 On Wed, 2009-12-09 at 12:24 -0500, Dmitry Skavish wrote:
  Hi,
 
  I need to run dependency-copy plugin only when some environment variable
  set. Is it possible? I could not find anything even remotely related to
  that. Thanks!
 


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
Dmitry Skavish


Re: how to cope all jars from all modules to some top level project directory?

2009-06-21 Thread Dmitry Skavish
thanks, it seems to work.

On Fri, Jun 19, 2009 at 5:02 PM, Johan Lindquist jo...@kawoo.co.uk wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi,

 Agree with Stephen - this is then one (the latter) that worked for me.

 Cheers,

 Johan

 Stephen Connolly wrote:
  you'll want to set inherited to false, or else create a special module
  which has the config
 
  On Friday, June 19, 2009, Dmitry Skavish skav...@gmail.com wrote:
  Hi,
  I am stuck trying to figure out how to do that. I have root pom and
 several
  modules under it. I need to build all the modules and then copy all the
  modules jars with their dependencies to some top level directory. I
 tried to
  use dependency plugin for this, but it copies jars and deps under each
  module dir. I configured the plugin:
 
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
  execution
idcopy-dependencies/id
phasepackage/phase
goals
  goalcopy-dependencies/goal
/goals
configuration
 
   outputDirectory${project.build.directory}/libs/outputDirectory
/configuration
  /execution
/executions
  /plugin
 
  It creates libs under each of the modules and copies deps there, but I
 need
  one dir for all the modules. The plugin is defined in the top level pom.
 
  Any ideas what I am doing wrong? Thank you!
 
  --
  Dmitry Skavish
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 

 - --
 you too?
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAko7/M4ACgkQpHYnED7eviox/gCgpL59N3GoTsSRyou9yvRnEpZw
 d+8AoIYWUp6FvCBQGRjYT6Molp8EJ9Qc
 =Qv9H
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
Dmitry Skavish


how to cope all jars from all modules to some top level project directory?

2009-06-19 Thread Dmitry Skavish
Hi,
I am stuck trying to figure out how to do that. I have root pom and several
modules under it. I need to build all the modules and then copy all the
modules jars with their dependencies to some top level directory. I tried to
use dependency plugin for this, but it copies jars and deps under each
module dir. I configured the plugin:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-dependency-plugin/artifactId
  executions
execution
  idcopy-dependencies/id
  phasepackage/phase
  goals
goalcopy-dependencies/goal
  /goals
  configuration

 outputDirectory${project.build.directory}/libs/outputDirectory
  /configuration
/execution
  /executions
/plugin

It creates libs under each of the modules and copies deps there, but I need
one dir for all the modules. The plugin is defined in the top level pom.

Any ideas what I am doing wrong? Thank you!

-- 
Dmitry Skavish


Re: Multi-module build is not building with current module source code

2009-04-16 Thread Dmitry Skavish
I am having the same problem and would like to know that as well. Thanks!

On Thu, Apr 16, 2009 at 10:19 AM, David Hoffer dhoff...@gmail.com wrote:

 I have a multi-module build where some modules are dependent on other
 modules.  What is happening is that the dependent module is getting its
 dependency from the local/corporate maven repo instead of the source code
 that was just built.  How do I specify that modules always build using
 current source not prior built snapshot jars?

 Here is an example of the problem (it is really simple)

 Parent pom:
 version0.1-SNAPSHOT/version
 modules
modulepublic/module
moduleinternal/module
modulesecurity-public/module
 /modules

 public pom:
 version0.1-SNAPSHOT/version

 internal pom:
 dependencies
dependency
groupId${project.groupId}/groupId
artifactIdpublic/artifactId
version0.1-SNAPSHOT/version
/dependency
 /dependencies

 security-public:
 dependency
groupId${project.groupId}/groupId
artifactIdpublic/artifactId
version0.1-SNAPSHOT/version
 /dependency

 So what is happening is that instead of internal   security-public
 building
 using the just built public (note it is first so it was built first) they
 go
 out and download the last deployed snapshot and build using that instead.

 Nothing in the pom dependency syntax really says which to use but I assumed
 that because maven 'knows' these are all in the reactor it would use module
 source.  However this doesn't seem to work, what do I need to do to fix
 this?

 BTW, the goals being run are 'clean deploy site-deploy'

 -Dave




-- 
Dmitry Skavish


Re: Multi-module build is not building with current module source code

2009-04-16 Thread Dmitry Skavish
I asked the same question on OSGi maillist and they advised me to use
incremental-build plugin: https://maven-incremental-build.dev.java.net/I
does exactly what I need, check it out, it could solve your problem as
well.

On Thu, Apr 16, 2009 at 12:33 PM, David Hoffer dhoff...@gmail.com wrote:

 Then there is a big bug here because I have a multi-module project with a
 few modules, the dependent one was built first (as seen in the build log)
 but yet when the depending module was built it did NOT use the dependent
 build rather it went to the repo and downloaded the previously deployed
 artifact snapshot.

 -Dave

 On Thu, Apr 16, 2009 at 10:24 AM, Todd Thiessen thies...@nortel.com
 wrote:

  FYI. Here is one reference,
 
  http://maven.apache.org/pom.html#Aggregation
 
  ---
  Todd Thiessen
 
 
   -Original Message-
   From: David Hoffer [mailto:dhoff...@gmail.com]
   Sent: Thursday, April 16, 2009 11:46 AM
   To: Maven Users List
   Subject: Re: Multi-module build is not building with current
   module source code
  
   Then I'm understanding the order of the reactor wrong.  I
   assumed its top to bottom, that is...just before internal is
   built...public is built; and just before security-public is
   built...internal is built.
  
   Can you clarify the order?
  
   -Dave
  
   On Thu, Apr 16, 2009 at 9:39 AM, Nick Stolwijk
   nick.stolw...@gmail.comwrote:
  
Maven always takes the artifacts out of the local
   repository. However,
this is not a problem, because the reactor knows in which order to
built the projects. Just before your internal project is
   built, maven
has installed the most recent version of security-public in
   the local
repository.
   
Maybe I don't understand your problem. If that is the case,
   please clarify.
   
Hth,
   
Nick Stolwijk
~Java Developer~
   
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
   
   
   
On Thu, Apr 16, 2009 at 5:26 PM, Dmitry Skavish
   skav...@gmail.com wrote:
 I am having the same problem and would like to know that
   as well. Thanks!

 On Thu, Apr 16, 2009 at 10:19 AM, David Hoffer
   dhoff...@gmail.com
wrote:

 I have a multi-module build where some modules are dependent on
 other modules.  What is happening is that the dependent
   module is
 getting its dependency from the local/corporate maven
   repo instead
 of the source
code
 that was just built.  How do I specify that modules always build
 using current source not prior built snapshot jars?

 Here is an example of the problem (it is really simple)

 Parent pom:
 version0.1-SNAPSHOT/version
 modules
modulepublic/module
moduleinternal/module
modulesecurity-public/module /modules

 public pom:
 version0.1-SNAPSHOT/version

 internal pom:
 dependencies
dependency
groupId${project.groupId}/groupId
artifactIdpublic/artifactId
version0.1-SNAPSHOT/version
/dependency
 /dependencies

 security-public:
 dependency
groupId${project.groupId}/groupId
artifactIdpublic/artifactId
version0.1-SNAPSHOT/version /dependency

 So what is happening is that instead of internal  
   security-public
 building using the just built public (note it is first so it was
 built first)
they
 go
 out and download the last deployed snapshot and build using that
instead.

 Nothing in the pom dependency syntax really says which
   to use but I
assumed
 that because maven 'knows' these are all in the reactor it would
 use
module
 source.  However this doesn't seem to work, what do I
   need to do to
 fix this?

 BTW, the goals being run are 'clean deploy site-deploy'

 -Dave




 --
 Dmitry Skavish

   
   
   -
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
   
   
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 




-- 
Dmitry Skavish


how to force a rebuild of a module dependent on a module with changes

2009-04-14 Thread Dmitry Skavish
Hello,
I am having some trouble making maven work as regular make and I believe I
am missing something obvious.

I have a root project: say R and two subproject (modules): A  B. B depends
on A. All versions in all the projects are specified with –SNAPSHOT.

Now B is using some class from A. If I change that class in A, but don’t
change anything in B and then run “mvn install” it will recompile A, but it
won’t recompile B (because nothing changed there) and the repository ends up
with version of B which uses obsolete version of this class from A.

If I do “mvn clean install” it works, but it’s expensive to do it on a
regular basis (at least on a big project).

Basically I want to just invoke “mvn somegoal” on a root project so that it
picks up all the changes and dependencies and rebuilds what needs to be
rebuilt. In this case it should figure out that it needs to rebuild B as
well because it's dependency changed. I believe it tries to rebuild B, but
since nothing changed there it does not recompile it.

I tried reactor plugin but it's essentially the same, it does not recompile
B in this case.

Thank you!

-- 
Dmitry Skavish


Re: maven 2.0.9+ and windows absolute paths

2008-12-17 Thread Dmitry Beransky
On Tue, Dec 16, 2008 at 3:34 PM, Jörg Schaible joerg.schai...@gmx.de wrote:
 Dmitry Beransky wrote:

 Hi,

 It seems that Maven 2.0.9 has introduced a bug where Windows absolute
 paths aren't being properly resolved.

 [snip]

 Are you running Maven under Cygwin?

Nope, pure unadulterated Windows.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven 2.0.9+ and windows absolute paths

2008-12-17 Thread Dmitry Beransky
Another datapoint:

I've taken out the ant plugin where the problem was showing up before,
so now the Cargo plugin is failing with the same error.  Here's my
Cargo configuration:

configuration
container
containerIdtomcat5x/containerId
typeremote/type
/container

configuration
typeruntime/type
properties
cargo.tomcat.manager.url
${appserver.home}:8100/manager
/cargo.tomcat.manager.url
cargo.remote.usernamecsa/cargo.remote.username
cargo.remote.passwordcheckit
/cargo.remote.password
/properties
/configuration

deployer
typeremote/type
deployables
deployable
groupIdcom.csatp.website/groupId
artifactIdcsa/artifactId
location
${project.build.directory}/${warName}.war
/location
typewar/type
/deployable
/deployables
/deployer
/configuration
/plugin


Just like the ant plugin before, Cargo configuration uses
${project.build.directory} variable that comes through with an
incorrectly resolved Windows path.


Dmitry
On Wed, Dec 17, 2008 at 10:50 AM, Dmitry Beransky
dmitry.ma...@gmail.com wrote:
 On Tue, Dec 16, 2008 at 3:34 PM, Jörg Schaible joerg.schai...@gmx.de wrote:
 Dmitry Beransky wrote:

 Hi,

 It seems that Maven 2.0.9 has introduced a bug where Windows absolute
 paths aren't being properly resolved.

 [snip]

 Are you running Maven under Cygwin?

 Nope, pure unadulterated Windows.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven 2.0.9+ and windows absolute paths

2008-12-16 Thread Dmitry Beransky
Hi,

It seems that Maven 2.0.9 has introduced a bug where Windows absolute
paths aren't being properly resolved.  A project that builds just fine
with 2.0.8 produces this error under 2.0.9:

[INFO] An Ant BuildException has occured: Failed to copy E:\svn\team\csa\main\re
sources\WEB-INF\log4j-production.xml to E:\svn\team\csa\main\e:\temp\maven\csa\t
arget\csa-5.2.1\WEB-INF\classes\log4j.xml due to java.io.FileNotFoundException E
:\svn\team\csa\main\e:\temp\maven\csa\target\csa-5.2.1\WEB-INF\classes\log4j.xml
 (The filename, directory name, or volume label syntax is incorrect)

Notice that e: is being treated as a relative path.

Here's the plugin where the error happens:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.3/version
executions
execution
idcopy-extra/id
phaseprocess-resources/phase
configuration
tasks
copy
tofile=${buildDirectory}/${artifactId}-${version}/WEB-INF/classes/log4j.xml

file=resources/WEB-INF/log4j-production.xml
  overwrite=true/
copy
tofile=${buildDirectory}/${artifactId}-${version}/META-INF/context.xml
  file=resources/WEB-INF/conf/context.xml
  overwrite=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin

${buildDirectory} is defined in the same pom as:

buildDirectory${project.build.directory}/buildDirectory

And the project's output directory is set in a parent pom:

 outputDirectory${buildDir}/classes/outputDirectory

   properties
 workDir${java.io.tmpdir}/workDir
 buildDir${workDir}/maven/${pom.artifactId}/target/buildDir
   /properties


Has anyone seen this or similar problem before, any ideas how to solve it?

I've tried compiling the latest version of Maven 2.1 from the
subversion repo and I'm getting the same error there too.


Thanks
Dmitry

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: ConversionException

2008-12-05 Thread Dmitry Beransky
I wish I remembered since I just got this error again.

On Thu, Nov 6, 2008 at 5:44 AM, eznibe [EMAIL PROTECTED] wrote:

 Hi,

 Did you find the problem, since im now getting the same exception

 thanks





 Dmitry Beransky-3 wrote:

 Hi,

 what could be causing this exception (in maven 2.0.9)?

 [INFO] Trace com.thoughtworks.xstream.converters.ConversionException:
 dependenciesInfo : dependenciesInfo
  Debugging information 
 message : dependenciesInfo : dependenciesInfo
 cause-exception :
 com.thoughtworks.xstream.mapper.CannotResolveClassException
 cause-message   : dependenciesInfo : dependenciesInfo
 class   : org.apache.maven.plugin.war.util.WebappStructure
 required-type   : org.apache.maven.plugin.war.util.WebappStructure
 path: /webapp-structure/dependenciesInfo
 line number : 10
 ---
 at
 com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
 at
 com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
 at
 com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
 at
 com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
 at
 com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)

 Here's what the pom looks like:

 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 modelVersion4.0.0/modelVersion
 artifactIdnotificationWebUI/artifactId
 packagingwar/packaging

 parent
 groupIdservice.notification/groupId
 artifactIdnotificationProject/artifactId
 version1.1.2-SNAPSHOT/version
 relativePath../pom.xml/relativePath
 /parent

 dependencies
 dependency
 groupId${pom.groupId}/groupId
 artifactIdnotificationClient/artifactId
 version1.1.2-SNAPSHOT/version
 scopeprovided/scope
 /dependency
 /dependencies
 /project


 thanks
 Dmitry

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




 --
 View this message in context: 
 http://www.nabble.com/ConversionException-tp19730105p20361267.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Build error just after install during 5 minutes guide

2008-10-20 Thread Dmitry S. Kravchenko
Hi!

I have installed maven-2.0.9 into C:\Program Files\Apache Software Foundation
Also I have followed instructions 2-7 from here 
http://maven.apache.org/download.html#Installation

After that mvn --version says this:

D:\Users\Dims\Design\Mavenmvn --version
Maven version: 2.0.9
Java version: 1.6.0_03
OS name: windows xp version: 5.1 arch: x86 Family: windows

But the next instruction from 5 minute guide causes an error (I have
supplied -e switch for more details):

D:\Users\Dims\Design\Mavenmvn -e archetype:create -DgroupId=com.mycompany.app 
-DartifactId=my-app
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for 
updates from central
[WARNING] repository metadata for: 'artifact 
org.apache.maven.plugins:maven-archetype-plugin' could
not be retrieved from repository: central due to an error: Error transferring 
file
[INFO] Repository 'central' will be blacklisted
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not 
exist or no valid versi
on could be found
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 
'org.apache.maven.plugins:maven-a
rchetype-plugin' does not exist or no valid version could be found
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor
.java:1303)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
cutor.java:1542)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
aultLifecycleExecutor.java:405)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The 
plugin 'org.apache.ma
ven.plugins:maven-archetype-plugin' does not exist or no valid version could be 
found
at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultP
luginVersionManager.java:229)
at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultP
luginVersionManager.java:91)
at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor
.java:1274)
... 14 more
[INFO] 
[INFO] Total time: 38 seconds
[INFO] Finished at: Mon Oct 20 12:44:21 MSD 2008
[INFO] Final Memory: 12M/64M
[INFO] 



Why? And what to do?

Thanks.


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



Netbeans plugin: how to configure repository location?

2008-10-20 Thread Dmitry S. Kravchenko
Hi!

I'm a Maven newbie.

I found a way to configure repository location in standalone version
of Maven. Is it a way to do the same with Maven plugin for Netbeans?
It is still placing repository in .m2 folder within %HOME%.

Thanks.

Dims.


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



Thanks

2008-10-20 Thread Dmitry S. Kravchenko
Thank you!

I had no proxy, but it was really some network issue. The problem
selfsolved after some time.

Dims.


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



Re[2]: Netbeans plugin: how to configure repository location?

2008-10-20 Thread Dmitry S. Kravchenko
Hi, Milos!

I can't locate it. Tools/Options has the common buttons at the top:
General, Editor, Java Code, Fonts  Colors, Keymap, C/C++,
Miscelaneous.

 the Tools/Options shall have a panel where you can set the local
 repository. That will write in your ~/.m2/settings.xml file the
 appropriate settings entry..

 I found a way to configure repository location in standalone version
 of Maven. Is it a way to do the same with Maven plugin for Netbeans?
 It is still placing repository in .m2 folder within %HOME%.


Dims.



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



I found it!

2008-10-20 Thread Dmitry S. Kravchenko
There is a new WINDOW, called Maven repository browser, and there
is a branch Local Repository there. And one can call properties of
this branch!


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



Re[2]: I found it!

2008-10-20 Thread Dmitry S. Kravchenko
Sorry :

 Dmitry, it would be helpful if you could just reply to the existing
 thread, rather than changing the subject and removing all the context
 from previous emails. Very few people have any idea what you're
 talking about with these emails...

 Wayne

 On Mon, Oct 20, 2008 at 9:30 AM, Dmitry S. Kravchenko [EMAIL PROTECTED] 
 wrote:
 There is a new WINDOW, called Maven repository browser, and there
 is a branch Local Repository there. And one can call properties of
 this branch!


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



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




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



ConversionException

2008-09-29 Thread Dmitry Beransky
Hi,

what could be causing this exception (in maven 2.0.9)?

[INFO] Trace com.thoughtworks.xstream.converters.ConversionException:
dependenciesInfo : dependenciesInfo
 Debugging information 
message : dependenciesInfo : dependenciesInfo
cause-exception :
com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message   : dependenciesInfo : dependenciesInfo
class   : org.apache.maven.plugin.war.util.WebappStructure
required-type   : org.apache.maven.plugin.war.util.WebappStructure
path: /webapp-structure/dependenciesInfo
line number : 10
---
at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
at 
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
at 
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
at 
com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)

Here's what the pom looks like:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;
modelVersion4.0.0/modelVersion
artifactIdnotificationWebUI/artifactId
packagingwar/packaging

parent
groupIdservice.notification/groupId
artifactIdnotificationProject/artifactId
version1.1.2-SNAPSHOT/version
relativePath../pom.xml/relativePath
/parent

dependencies
dependency
groupId${pom.groupId}/groupId
artifactIdnotificationClient/artifactId
version1.1.2-SNAPSHOT/version
scopeprovided/scope
/dependency
/dependencies
/project


thanks
Dmitry

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



java.lang.ClassNotFoundException: TestSuite

2008-06-02 Thread Dmitry Beransky
Hi folks,

Any ideas what might be causing the exception below?  I'm at my whit's ends.

(using surefire 2.4.3)

[09:15:30]: Forking command line: cmd.exe /X /C C:\Program Files
(x86)\Java\jdk1.5.0_06\jre\bin\java -jar
C:\BuildAgent\temp\buildTmp\surefirebooter52899.jar
C:\BuildAgent\temp\buildTmp\surefire52897tmp
C:\BuildAgent\temp\buildTmp\surefire52898tmp
[09:15:33]: org.apache.maven.surefire.booter.SurefireExecutionException:
Unable to create test class 'TestSuite'; nested exception is
java.lang.ClassNotFoundException: TestSuite; nested exception is
org.apache.maven.surefire.testset.TestSetFailedException: Unable to
create test class 'TestSuite'; nested exception is
java.lang.ClassNotFoundException: TestSuite
[09:15:33]: org.apache.maven.surefire.testset.TestSetFailedException:
Unable to create test class 'TestSuite'; nested exception is
java.lang.ClassNotFoundException: TestSuite
[09:15:33]: java.lang.ClassNotFoundException: TestSuite
[09:15:33]: at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[09:15:33]: at java.security.AccessController.doPrivileged(Native Method)
[09:15:33]: at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[09:15:33]: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[09:15:33]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[09:15:33]: at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[09:15:33]: at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:87)
[09:15:33]: at
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
[09:15:33]: at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
[09:15:33]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[09:15:33]: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[09:15:33]: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[09:15:33]: at java.lang.reflect.Method.invoke(Method.java:585)
[09:15:33]: at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
[09:15:33]: at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
[09:15:33]:
[INFO] 


Thanks
Dmitry

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



resolving snapshots

2008-05-30 Thread Dmitry Beransky
hi,

it's probably friday talking, but I can't figure out what my builds
stopped working all of a sudden.  I get this message in the log:

 Downloading: 
 http://newzealand/repository/maven2/com/csa/maven/web-app-parent/2-SNAPSHOT/web-app-parent-2-SNAPSHOT.pom

why isn't SNAPSHOT in the pom file name being resolved to a time stamp?

From settings.xml:

   repositories
  repository
 idcsa-internal/id
 nameCSA Maven 2 Repository/name
 urlhttp://newzealand/repository/maven2/url
 releases
enabledtrue/enabled
 /releases
 snapshots
enabledtrue/enabled
 /snapshots
  /repository
   /repositories


thanks
dmitry

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



plugin for schema documenation

2008-04-18 Thread Dmitry Beransky
Hi,

Does anyone know of a maven 2 plugin for generating xml schema
documentation (similar to http://www.buldocs.com/xnsdoc/)?


Thanks
Dmitry

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



Re: changing location of site.xml

2008-04-15 Thread Dmitry Beransky
D'oh! I should have realized the version issue.  Thanks, putting the
version in did the trick.

On Mon, Apr 14, 2008 at 1:29 PM, Wayne Fay [EMAIL PROTECTED] wrote:
 You should specify a version of the site plugin to make sure you're
  using the version you think you are.

 But I agree with Jason and think  this is generally a bad idea.

Generally, I agree as well, but specifically in our environment, it
makes more sense not to have site under src :)


Thanks
Dmitry

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



disabling default deploy behavior

2008-04-15 Thread Dmitry Beransky
Hi,

We've configured maven to run cargo:deploy during the deploy phase.
However, maven is still trying to copy the war artifact into our
internal repository as well.  How do tell it not to?


Thanks
Dmitry

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



Re: disabling default deploy behavior

2008-04-15 Thread Dmitry Beransky
cool!  do you know which repository would have the dev version of the
plugin?  It's not in the central yet.

On Tue, Apr 15, 2008 at 2:03 PM, Wendy Smoak [EMAIL PROTECTED] wrote:

  The next version of the deploy plugin will have the option to skip 
 deployment.

  http://jira.codehaus.org/browse/MDEPLOY-63

  --
  Wendy


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



changing location of site.xml

2008-04-14 Thread Dmitry Beransky
Hi,

Does anyone know what the deal is with this bug:
http://jira.codehaus.org/browse/MSITE-91?  It's marked as resolved,
but in version 2.0.7 I still cannot change the location of site.xml
from the default of src/site.

Here's my configuration:
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
configuration
   siteDirectory${basedir}/sitenew/siteDirectory
 /configuration
 /plugin

and when I run File Monitor to see which files/directories maven is
trying to access I get:

9:12:50 AM  java.exe:2100   QUERY
INFORMATION E:\svn\team\iris2\core\sitenew  SUCCESS Attributes: D
9:12:52 AM  java.exe:2100   QUERY
INFORMATION E:\svn\team\iris2\core\src\site\site.xmlPATH NOT
FOUND   Attributes: Error
9:12:52 AM  java.exe:2100   QUERY
INFORMATION E:\svn\team\iris2\core\sitenew  SUCCESS Attributes: D
9:12:52 AM  java.exe:2100   QUERY
INFORMATION E:\svn\team\iris2\core\sitenew\xdoc NOT FOUND   
Attributes:
Error
9:12:52 AM  java.exe:2100   QUERY
INFORMATION E:\svn\team\iris2\core\sitenew\apt  NOT FOUND   
Attributes:
Error
9:12:52 AM  java.exe:2100   QUERY
INFORMATION E:\svn\team\iris2\core\sitenew\docbook  NOT
FOUND   Attributes: Error
9:12:52 AM  java.exe:2100   QUERY
INFORMATION E:\svn\team\iris2\core\sitenew\fml  NOT FOUND   
Attributes:
Error
9:12:52 AM  java.exe:2100   OPEN
E:\svn\team\iris2\core\sitenew\checkstyle.html  NOT
FOUND   Options: Open  Access: 00100080


any thoughts?

Thanks
Dmitry

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



Re: changing location of site.xml

2008-04-14 Thread Dmitry Beransky
we don't follow maven's suggested project layout.

On Mon, Apr 14, 2008 at 9:38 AM, Jason van Zyl [EMAIL PROTECTED] wrote:
 Why would you want to?

  You just make it harder for anyone new to a project to understand where all
 the resources for a project are. You can override it, but what real value is
 there in it?



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



finding execution ids

2008-04-11 Thread Dmitry Beransky
Hi,

I'm binding cargo deployment goals to the deploy phase, but when I do
this, the default deploy plugin is still runs deploying the artifact
to a remote repository.  I don't want this behavior. As far as I
understand, I need to override the existing execution binding by
specifying the same execution id in my configuration.  Is this right?
If so, how do I find out what that id is?


Thanks
Dmitry

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



maven webstart

2008-04-09 Thread Dmitry Beransky
Hi,

I'm aware of the webstart plugin, but what I can't figure out if it's
possible to use maven to do the end-to-end automated deployment of an
app.  In other words, can maven build, package, and deploy to tomcat a
webstart application?

Thanks
Dmitry

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



Re: taglib plugin

2008-01-04 Thread Dmitry Beransky
I did some more digging around and it looks like my problem is similar
to the one described here:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg70522.html

when I tried running the plugin using its fully qualified name:

   mvn net.sourceforge.maven-taglib:maven-taglib-plugin:2.3.1:tagreference

the error went away.


thanks for all the help
Dmitry

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



Re: taglib plugin

2008-01-03 Thread Dmitry Beransky
On Jan 2, 2008 3:07 PM, Evan Worley [EMAIL PROTECTED] wrote:
 Try changing the update policy in your pluginRepository to always.  I am
 not positive how this policy works with respect to resolving new plugins (as
 opposed to updating an existing), but might be worth a try.

Evan,

It's my understanding that all information about the central
repository is hard coded into Maven.  I'm not sure how to make the
change you are recommending.

Also, I've gone more carefully over the debug log and found this message:

[DEBUG] repository metadata for: 'artifact
org.apache.maven.plugins:maven-taglib-plugin' could not be found on
repository: central

Could this be the problem?


Dmitry

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



Re: taglib plugin

2008-01-03 Thread Dmitry Beransky
I have.  It didn't seem to help.

On Jan 3, 2008 10:06 AM, Evan Worley [EMAIL PROTECTED] wrote:
 Hi Dmitry,

 You are right, sorry for confusing the result of the effective-pom with your
 actual POM.  Can you try running mvn -cpu install ?

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



taglib plugin

2008-01-02 Thread Dmitry Beransky
Hi,

I'm trying to use the taglib plugin
(http://maven-taglib.sourceforge.net/m2/project-reports.html).  I've
followed the documentation for configuring the project with the
plugin, but now when I run mvn taglib:tagreference, I get

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

my local repsitory cache for the plugin only contains a single file
maven-metadata-central.xml

Do I need to configure Maven to use some other repository?


Thanks
Dmitry

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



Re: taglib plugin

2008-01-02 Thread Dmitry Beransky
Here's what I got for the plugin:

plugin
  groupIdnet.sourceforge.maven-taglib/groupId
  artifactIdmaven-taglib-plugin/artifactId
  version2.3.1/version

  configuration
taglib.src.dirMETA-INF/taglib.src.dir
  /configuration
/plugin

The central repository is configured, I'm using it all the time.
here's a snippet of the output I get from running maven with -X:


[INFO] artifact org.apache.maven.plugins:maven-taglib-plugin: checking
for updates from central
[DEBUG] repository metadata for: 'artifact
org.apache.maven.plugins:maven-taglib-plugin' could not be found on
repository: central
[DEBUG] maven-taglib-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version

  org.apache.maven.plugins:maven-taglib-plugin:pom:LATEST


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

  org.apache.maven.plugins:maven-taglib-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-taglib-plugin:pom:RELEASE
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-taglib-plugin' does
not exist or no valid version could be found
[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-taglib-plugin' does not exist or no
valid version could be found
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1286)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
...


this is very weird.  I can't make any heads or tails of it.


Thanks
Dmitry

On Jan 2, 2008 12:35 PM, Wendy Smoak [EMAIL PROTECTED] wrote:

 How did you configure it?  Looks like you need
 groupIdnet.sourceforge/groupId to get the one that Evan linked
 to...

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



Re: taglib plugin

2008-01-02 Thread Dmitry Beransky
On Jan 2, 2008 2:49 PM, Evan Worley [EMAIL PROTECTED] wrote:
 Can you attach your entire repositories and pluginRepositories entries 
 from your pom?

Hey Evan,

Here they are, copied directly from help:effective-pom's output:

  repositories
repository
  idcsa-internal/id
  nameCSA Maven 2 Repository/name
  urlhttp://newzealand/repository/maven2/url
/repository
repository
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  nameMaven Repository Switchboard/name
  urlhttp://repo1.maven.org/maven2/url
/repository
  /repositories
  pluginRepositories
pluginRepository
  releases
updatePolicynever/updatePolicy
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  nameMaven Plugin Repository/name
  urlhttp://repo1.maven.org/maven2/url
/pluginRepository
  /pluginRepositories


Thanks
Dmitry

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



Re: state of maven support for Google Web Toolkit ?

2007-12-11 Thread Dmitry
interesting question  it will be great to have by maven GWT library  - we 
are using GWT and to have in Maven Repository is a big advantage.

Thanks,
Search News
www.ejinz.com
EjinZ

- Original Message - 
From: nicolas de loof [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Tuesday, December 11, 2007 5:49 AM
Subject: state of maven support for Google Web Toolkit ?


Thanks to google, I've found 
http://codehaus.org/~shinobu/gwt-maven-plugin/and

http://code.google.com/p/gwt-maven/

What is the status of supporting GWT compiler in maven builds ?

Nico.




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



Re: Testing maven java web projects?

2007-11-24 Thread Dmitry
Would like to test Web based maven java project and use Maven 2.0 with stubs 
llibs open source like Junits and etc.

Any advices?

thanks,
dt
ww.ejinz.com search tools 



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



Re: Dependency resolution for multi-module projects

2007-11-07 Thread Dmitry

Please check documentation  - maven book its very usefull.
Thanks,
DT
Search www.ejinz.com
- Original Message - 
From: Plotnicki, Grzegorz  [EMAIL PROTECTED]

To: users@maven.apache.org
Sent: Tuesday, November 06, 2007 5:29 PM
Subject: Dependency resolution for multi-module projects


Hi,

I'm writing a custom plug-in with its own packaging. Everything works
great until I have a multi-module project with some of the subprojects
being interdependent; then maven starts complaining that it cannot find
dependencies in a repository. I don't want to do install first. 


Does any one know how to access the maven framework from, let's say,
initialize phase and perhaps inject there already resolved dependencies
(pointing to the aggregated sub-projects), so that maven doesn't try
looking for them in a repository?

thanQ

Grzeg~
=)


..{-_-}...
In a real dark night of the soul 
it is always three o'clock in the morning, day after day.

-- F. Scott Fitzgerald



-
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: Exception transfering site files via webdav

2007-11-02 Thread Dmitry Beransky
I've suspected as much.  Is there a way to tell the site plugin to
throttle it's connection creation rate?  I understand that Windows is
running out of ports, but in reality, it's program opening connections
that's at fault.  It shouldn't be flooding the TCP/IP stack with so
many connection requests.


D.

On 11/1/07, Heinrich Nirschl [EMAIL PROTECTED] wrote:
 This is a problem with the default Windows TCP/IP configuration. The
 client runs out of available ports during the many webdav transfers.

 The solution is described here:
 http://msdn2.microsoft.com/en-us/library/aa560610.aspx

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



Exception transfering site files via webdav

2007-11-01 Thread Dmitry Beransky
Hi,
uploading a site file with site:site has worked quite well for me
until a few months ago.  Now, I consistantly get an exception half way
through the process.  The only thing that really changed, I think, is
the size of the projects: more files.  here's the exception:



Embedded error: Failed to create destination WebDAV collection (directory): /pro
jects/web-app-parent/csa/./apidocs/com/csatravelprotection/rules/class-use
Address already in use: connect
[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site
at 
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:172)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
create destination
WebDAV collection (directory):
/projects/web-app-parent/csa/./apidocs/com/csatravelprotection/rules/class-use
at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:270)
at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:555)
at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:549)
at 
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:156)
... 18 more
Caused by: java.net.BindException: Address already in use: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.init(Socket.java:366)
at java.net.Socket.init(Socket.java:179)
at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
at 
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
at 
org.apache.webdav.lib.WebdavResource.mkcolMethod(WebdavResource.java:4106)
at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:264)
... 25 more

Any pointers how to fix this?

Thanks
Dmitry

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



Re: JMock 2

2007-09-01 Thread Dmitry

please check ibiblio.org
thanks,
www.ejinz.com Search 

- Original Message - 
From: Marco Mistroni [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Saturday, September 01, 2007 4:23 PM
Subject: JMock 2



hello all,
does anyone know if jmock2 has been uploaded in some maven2 repositories?

thanks and regards
  Marco



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



Creating maven project issue

2007-08-02 Thread Dmitry
Creating maven project using mvn archetype:create - 
DgropuId=com.project.interfaces\ -DartifactId=my-proj


got exception. What can be wrong with this command?

project

modelVersion4.0.0/modelVersion

groupIdcom.project.interfaces/groupId

artifactIdmy-proj/artifactId

packagingjar/packaging

version1.0-SNAPSHOT/version

nameMy Archetype/name

urlhttp://www.ejinz.com/url

dependencies

dependency

groupIdjunit/groupId

artifactIdjunit/artifactId

version3.8.1/version

scopetest/scope

/dependency

/dependency

thanks,

DT

www.ejinz.com Search News Category


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



Re: Where can i find the list of maven goals and phases along with examples

2007-08-02 Thread Dmitry
check book - Better Build with Maven: goals -  package, install, deploy, 
test

and specific to IDE like for instance mvn eclipse:eclipse

thanks,
DT
www.ejinz.com
Search Blogs News
- Original Message - 
From: Haraprasad [EMAIL PROTECTED]

To: users@maven.apache.org
Sent: Thursday, August 02, 2007 3:44 AM
Subject: Re: Where can i find the list of maven goals and phases along with 
examples





I am looking for examples... where can i find it ?


Nick Stolwijk wrote:


Also this [1] page lists all the packaging types with the attached goals
and phases.

Hth,

Nick Stolwijk

[1]
http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html

[EMAIL PROTECTED] wrote:

Go through the same link:

http://maven.apache.org

and start with a Maven in 20 minutes(the provided link).I guess there
are some other link also which includes the examples and goals required.


-Original Message-
From: Haraprasad [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 02, 2007 1:45 PM
To: users@maven.apache.org
Subject: Where can i find the list of maven goals and phases along with
examples


I am a maven newbie...

Pl. let me where can i find list of list of maven goals and phases with
description and examples ???
The one i can find is

http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_project
But
it does not have any examples
--
View this message in context:
http://www.nabble.com/Where-can-i-find-the-list-of-maven-goals-and-phase
s-along-with-examples-tf4204744s177.html#a11960268
Sent from the Maven - Users mailing list archive at Nabble.com.

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.

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






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





--
View this message in context: 
http://www.nabble.com/Where-can-i-find-the-list-of-maven-goals-and-phases-along-with-examples-tf4204744s177.html#a11960675

Sent from the Maven - Users mailing list archive at Nabble.com.


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





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



Maven local process artifacts

2007-07-30 Thread Dmitry
By default Maven attempts to locate a dependecies artifact using the 
follloing process: 1-st generate path to the artifact in local repositiory. 
etc
How we can change Maven configuration that instead having to add the Spring 
framework jar to every project  - change just from one common configuration?


Thanks,
DT,
www.ejinz.com
Search Engine News Shop 



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



Re: How to use ${project.build.directory}?

2007-07-30 Thread Dmitry
When we run maven JUnits - and ensure that testing is successful. - run mvn 
test
but its through out exception and looks like it did not run properly JUnit 
in project.
How the first step to check where is error in configuration  / setting sof 
maven and fix this error


thanks,
DT
www.ejinz.com
Search Shopping 



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



Maven coherent dependencies build

2007-07-30 Thread Dmitry


we changed configuration using Coherent Dependency  - Maven conf but it did 
not work. Any advices about how to use coherent dependecies?


project

modelVersion4.0.0/modelVersion

groupIdcom.mycompany.app/groupId

artifactIdAdvertiseFreeModule/artifactId

packagingjar/packaging

version1.1-SNAPSHOT/version

dependencies

dependency

groupIdjunit/groupId

artifactIdjunit/artifactId

version3.8.1/version

scopetest/scope

/dependency

/dependencies

/project

thanks,

DT

www.ejinz.com Search Shopping Engine




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



Maven standard directory layout question

2007-07-30 Thread Dmitry
We are suing common  case which requires no changes to the POM project - 
the packaging


of resources into a JAR file. Maven again uses for this task the standard 
directory layout.


This means that by adopting Maven's standard conventions, we can package 
resources within JARs, simply by placing those resources in a standard 
directory structure. But when we put resources in standard directory we get 
nothing -what we did wrong?


thanks,

DT

www.ejinz.com EjinZ

Search Shopping




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



Re: Question - weblogic-maven-plugin - Urgent

2007-07-27 Thread Dmitry

Eric,
Probably you did not set correct configuration for maven..it's one point.
Actually its interesting about maven plagin for Workshop. 
Can you sene the link to that plugin i also try to use it.

thanks,
dt
www.ejinz.com
Search Engine News
  - Original Message - 
  From: Eric YH WONG 
  To: 'Maven Users List' 
  Sent: Friday, July 27, 2007 8:52 PM
  Subject: Question - weblogic-maven-plugin - Urgent


  Hi All,

   

  Here is my env setting: JDK v1.4.2, WebLogic Platform v8.1.6, Windows XP SP2. 
I use WebLogic Workshop (accompany with the WebLogic Platform installer) v8.1.6 
to create a new Application and a portal project.

   

  Attached the Directory Layout.

   

  And I want to use Maven2 to build an EAR, so I created a pom.xml and using 
weblogic-maven-plugin v2.8.0.. When I execute mvn weblogic:appc I got 
errors (see the attached files Debug.txt and Error.txt).

   

  Does anyone can help to resolve it ???

   

  Thanks,

   

  Eric

   

   



--


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

Differences between dependencies

2007-07-26 Thread Dmitry
Could you please give the main differences between the following 
depedencies:


- Release and Snapshot

thanks,

DT,

www.ejinz.com

Search Engine



Maven differentiates between two kinds of dependencies:

 a.. Release. Released dependencies are artifacts downloaded to the local 
maven repository only once - when maven detects that there is no such 
artifact in the local repo.
 b.. Snapshot. Snapshot dependencies are downloaded to your local maven 
repository every time maven detects there is a newer version in the remote 
one.
Maven treats dependencies as snapshot when the version number ends 
with -SNAPSHOT.


When you specify repositories for your project you specify if each 
repository contains snapshot versions of artifacts and how often maven has 
to check for newer version (always, daily, etc).




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



Re: resources question

2007-07-25 Thread Dmitry

Eric,
What the purpose of CI server? I am just curious...

thanks,
DT
www.ejinz.com
Search Engine EjinZ
- Original Message - 
From: Eric Redmond [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Wednesday, July 25, 2007 11:40 PM
Subject: Re: resources question



This looks to me to be a case of a single project with 4 different build
profiles. When you look at it that way - it's kind of odd to shove them 
all

into a single build. Is there any reason all 4 builds must happen via one
Maven call, rather than calling mvn package (or whatever) for each 
desired
package? If you're using a CI server, it'd then be 4 distinct builds - 
which

makes sense, since there are 4 distinct artifacts created.

Eric

On 7/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi,

I have a single POM file of package type pom. I use it to generate 4
different assemblies, that's it.

I have a single resource file in src/main/resources directory. It has 
some

property name placeholders embedded in it for filtering purposes.

What I need to do is copy that single resource file 4 different times to
four different sub-directories of the target directory. Then each 
assembly

picks up the appropriate file for that assembly.

When I do the copy, I need to use a different set of filter values for
each file (so that each assembly ends up with a slightly different
configuration).

I am having trouble making this happen - mostly I cannot figure out a way
to use a different filter.properties type file for each copy.

Any ideas?

Thanks


--
Craig Dickson
Software Engineering Manager
Behr Process Corporation
Santa Ana, California



---
The information contained in this e-mail message may be proprietary,
privileged, confidential or protected from disclosure. If you are not the
intended recipient, any dissemination, distribution or copying is 
strictly

prohibited. If you think that you have received this e-mail message in
error, please e-mail the sender.





--
Eric Redmond
http://blog.propellors.net




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



Maven repository metadata

2007-07-25 Thread Dmitry
I've got a quick question about repository metadata. If you take a look at 
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml 
it has all of the versioning information, which makes sense, but it also has 
a version tag with a version that's neither the oldest nor the most recent. 
How does this tag get populated and what is it used for? It seems like this 
tag shouldn't even be there... Are there metadata files that are only 
associated with a particular version?


thanks,

DT,

www.ejinz.com

Search engine news , tech


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



Writing portable CVS configuration using Maven 2

2007-07-25 Thread Dmitry
1. Assuming several users connecting to a CVS server using ext method and 
ssh. As far as I understand, the pom.xml, checked out from CVS is the same 
for everyone. Only the settings.xml and maybe cvs-settings.xml might have 
specific content for each user, right ?


In the scm plugin documentation they expect the scm URL to be written in the 
pom as follow: scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:module_name


how can I organize everything so that the user name, password or private key 
are provided outside of the pom, in some user specific resource? What are 
the recommended practices?



2. How do I control the command line options? I see by default scm:update = 
cvs -z3 -f -q update -d


I don't want the -f cvs option I'd like a -P update option


3. Can somebody clarify the difference between connection and developper 
connection? When is each one used?


- 
thanks,

DT
www.ejinz.com
Search Engine News Economy Tech
www.ejinz.com/YourHome 



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



Re: Maven dependencies issues

2007-07-23 Thread Dmitry

Henry,
I will take a look..
thanks,
dt
www.ejinz.com
Search Progress
- Original Message - 
From: Henry Isidro [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Monday, July 23, 2007 1:36 AM
Subject: Re: Maven dependencies issues



This might prove helpful
http://maven.apache.org/plugins/maven-dependency-plugin/ especially the
copy-dependencies goal.

HTH,
Henry

On 7/23/07, Dmitry [EMAIL PROTECTED] wrote:


My application is a jar file and when I run mvn package it generates my
jar
ok.

But I need to distribute my app with all the related jar dependencies so 
I

wonder how could I do it with maven2..

Actually, I did an ant task that at package cycle copy my project
depdenciens from mvnrepository to a lib folder inside target folder. It
works well but force me to make the list of files to be copied by hand. I
want to see maven doing this job automatically...

Is this posible ?

thanks in advance, Dmitry

www.ejinz.com Search Engine Revolution

news, categories, country



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



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







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



maven logging issue

2007-07-23 Thread Dmitry
I've been working on several log4j related projects with Maven recently and 
I've started having errors during site generation start occurring on 
projects that had been working. The symptom is: Error loading report 
org.apache.maven.plugin.jxr.JxrReport - AbstractMethodError: 
canGenerateReport()


And will disappear if the ${ reports} is removed from src/site/site.xml.

I've been experiencing the problem with Maven 2.0.6 or Maven 2.0.4 java 
version 1.5.0_07 Java(TM) 2 Runtime Environment, Standard Edition (build 
1.5.0_07-164) Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, 
sharing)


and still had the problem after deleting my local repository.

To reproduce the problem, check out the following project:

svn co https://svn.apache.org/repos/asf/logging/sandbox/log4j/component

and then do mvn site


thanks,

DT,

www.ejinz.com

Search Technology Economy News




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



Quality level attribute during version selection process

2007-07-22 Thread Dmitry
I saw a post recently that referred to a quality attribute being used 
during plugin resolution. The purpose of the attribute was to make sure that 
only released or beta, etc. versions were selected rather than alpha or 
lower level qualtiy.


As far as I can tell Maven doesn't use a quality level for version 
selection. There are version number qualifiers but that's different than 
using something like a qualtiy attribute in conjuction with version, 
etc.


In any case, having something like quality is really important (at least 
to my company). Ivy does this and in fact allows users to set up their own 
set of ordered quality levels to choose from.


So: am I missing something and Maven in fact does do quality level selection 
(I don't see it in the code). Or, is this something Maven can do in the 
future?


thnaks,

Dmitry

www.ejinz.com

Search Engine Technology

JAVA, JSF, J2EE, JMS,EJB



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



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



Maven plugin eclipse question

2007-07-22 Thread Dmitry

Maven plugin eclipse question

When we execute mvn eclipse :eclipse , it generate .classpath that contain a 
variable named M2_REPO with all dependecnise declared in th pom file.


So it is possible to deactivate this behaviour ? ie : I don't want the 
plugin eclipse to generate to me the dependencies in .classpath ??


thanks,

Dmitry

www.ejinz.com

Search Find Everything Technology


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



Re: Maven plugin eclipse question

2007-07-22 Thread Dmitry

Dan,
thanks for answer, actually we are not storing all files like.classpath in 
our version control system (using Subversion ), generate again all specific 
to Eclipse files , that's why I don't want to have dependencies(just 
thinking about it, did not decide yet)


Thanks,
www.ejinz.com
Search tool web
- Original Message - 
From: Dan Tran [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Sunday, July 22, 2007 3:44 PM
Subject: Re: Maven plugin eclipse question



no.  And you may as well manually create the project files using eclipse
itself.

Just curious, why dont you want the dependencies?


On 7/22/07, Dmitry [EMAIL PROTECTED] wrote:


Maven plugin eclipse question

When we execute mvn eclipse :eclipse , it generate .classpath that 
contain

a
variable named M2_REPO with all dependecnise declared in th pom file.

So it is possible to deactivate this behaviour ? ie : I don't want the
plugin eclipse to generate to me the dependencies in .classpath ??

thanks,

Dmitry

www.ejinz.com

Search Find Everything Technology


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







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



Maven dependencies issues

2007-07-22 Thread Dmitry
My application is a jar file and when I run mvn package it generates my jar 
ok.


But I need to distribute my app with all the related jar dependencies so I 
wonder how could I do it with maven2..


Actually, I did an ant task that at package cycle copy my project 
depdenciens from mvnrepository to a lib folder inside target folder. It 
works well but force me to make the list of files to be copied by hand. I 
want to see maven doing this job automatically...


Is this posible ?

thanks in advance, Dmitry

www.ejinz.com Search Engine Revolution

news, categories, country



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



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



Maven Source filtering issue

2007-07-22 Thread Dmitry
I want to be able to interpolate ${pom.version} in Java source code before 
compilation. How can I do this (Eclipse IDE)?


I see that there is a simple way to turn on resource filtering, but that 
does not appear to be applicable to source code.


I also see that the process-sources phase is where source filtering should 
be done, but I can find no description of how to do this.


What am I missing?

thanks in advance, Dmitry

www.ejinz.com Search Engine

-
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: List of all dependencies as text on console?

2007-07-20 Thread Dmitry
hey, there is a book for maven usage , try to find the link on 
maven.apache.org

thanks
Dmitry
www.ejinz.com

- Original Message - 
From: Patrick Forhan [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 2:10 PM
Subject: Re: List of all dependencies as text on console?



I don't mean to co-opt this thread for my own purpose, but I have a
similar question:  How do I get a list of depenencies in a maven
plugin?  Is there better documentation on this?  I tried to read the
assembly and dependency plugin source, but things are not very clear.

I've tried something like the following in my Mojo... everything comes
back as a basically empty instance.

   /**
* One dependency.
*
* @parameter expression=${project.dependency}
*/
   private Dependency   dependency;

   /**
* Dependency array?.
*
* @parameter expression=${project.dependency}
*/
   private Dependency[] dependencies;

   /**
* Dep mgr.
*
* @parameter expression=${project.dependencyManagement}
*/
   private DependencyManagement dependencyMgmt;

   /**
* resources?.
*
* @parameter expression=${project.resources}
*/
   private ListResource res;


--
Defy mediocrity.

-
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: google-testar with Maven

2007-07-20 Thread Dmitry
hey, never used before testart. what the purposes of it? 
thanks,

DM
www.ejinz.com
- Original Message - 
From: Martin Alejandro Villalobos [EMAIL PROTECTED]

To: users@maven.apache.org
Sent: Friday, July 20, 2007 2:31 PM
Subject: google-testar with Maven



Hello.
Somebody knows if is possible integrate google-testar with Maven?

Thanks.

MArtin.



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




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



Re: Maven proxy

2007-07-20 Thread Dmitry
I have succesfuly installed codehaus eclipse plugin and i have downloaded 
dependencys for my projects (connection to internet works fine).


The next step was to create a network repository so that co-workers and I 
could share the jars that we download from the internet and have less lag 
when in need of a jar.


I THINK I have configured maven-proxy ok but I DONT think its working 
correctly. This is what I did: 1) Downloaded maven-proxy and the config file 
2) Adjust config file to my needs. 3) Start maven-proxy.


After that I started to try to configure the eclipse plugin so that it uses 
my repository. To do that I had to copy the conf.xml file from maven folder 
to the root of my local repository and I added the following lines:


mirror idmaven-proxy/id nameMaven-Proxy Mirror/name 
urlhttp://j2eedesar3:/repository/url mirrorOfcentral/mirrorOf 
/mirror mirror idmaven-proxy/id nameMaven-Proxy Mirror/name 
urlhttp://j2eedesar3:/repository/url mirrorOfsnapshots/mirrorOf 
/mirror where j2eedesar3 is the name of the machine where maven-proxy is 
running.When I view maven-proxy's log I see the requests made from my 
machine to maven-proxy but I in the filesystem I don't see any downloaded 
jars

thanks,
DM
www.ejinz.com - Search Biz

- Original Message - 
From: Dennis Lundberg [EMAIL PROTECTED]
To: Sujit Samantaray [EMAIL PROTECTED]; Maven Users List 
users@maven.apache.org

Sent: Friday, July 20, 2007 1:33 PM
Subject: Re: Help


I'm sorry, but I have little experience with Continuum, perhaps someone 
else can help you.


Sujit Samantaray wrote:

Thanks Dennis,
I am really very sorry about mailing you.I had mailed 
to userlist earlier .But i didnt got any reply.I found continuum really 
interesting ,but i am completely new to it and i am struck at one point 
since 15 days and getting no idea how to procede.

please spare a little time in helping me.
 till now i have installed continuum.i am using vss and an ant project.so 
through add an ant project i have given vss foldername which i want to 
get.i have used the scm url which is given in internet.

scm:vss:path to repository:\foldername
 after thati am trying to build it.but it is showing update  checkout 
command not found. i dont have much idea about scm configuration.

 plz help me   .again i am really sorry for taking ur valuable time .
 thanks in advance
sujit On 7/20/07, *Dennis Lundberg* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


First off - do not send questions directly to the developers. This is
what the users mailing list is for.

Now to your problem.

Have you verified that the scm configuration for your project is
working, before trying to run it through Continuum? If not, you can 
do

this by using the maven-scm-plugin:
   http://maven.apache.org/scm/plugins/index.html

You should also be using version 1.0 of maven-scm-* - not the beta-3
version.

Sujit Samantaray wrote:
 
  Hi,
 
  I am trying to use continuum .i am using visual source safe with 
ant

  projects.First the vss SCM url showed invalid . i didnt found
  *maven-scm-provider-vss:jar:1.0-beta-3 *
  file in lib folder.So i searched in net and found this jar 
file.after

  putting this jar file SCM url is validated but now  it is showing
  CHECKOUT COMMAND not found and UPDATE command not found while
building
  it.I saw the jar file and saw that it is not having checkout class 
or

  update class.
  plz help me what to do regarding this. I am not sure whether
Continuum
  supports VSS fully or not .
 
  If u have the correct jar file plz send it to me soon.If i am 
doing

  wrong somewhere else plz tell me.
 
  Or please send me some links by which i will be able to work in
VSS,Ant
  project and continuum .
 
  thanks in advance.
 
  sujit


--
Dennis Lundberg





--
Dennis Lundberg

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



Loading property from specific file

2007-07-20 Thread Dmitry
I need loading my property build.number from my file data.txt to Maven. And 
I need using this property in scm:tag for set tag name


thanks,
Dmtiry
www.ejinz.com - search biz
- Original Message - 
From: Jim Crossley [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 2:23 PM
Subject: Missing bundle for site-plugin?



Hi all,

With the latest released versions of Maven, Eclipse, and the
corresponding plugins for each, I get this when I attempt to run the
install goal from within Eclipse.  I can run the same goal fine from
the command line, outside of Eclipse.

site:attach-descriptor
[ERROR] reactor-execute : C:\EclipseWorkspace\distributor_Maven
Diagnosis: Can't find bundle for base name site-plugin, locale en
FATAL ERROR: Error executing Maven for a project
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Can't find bundle for base name site-plugin, locale en
[INFO] 
[DEBUG] Trace Can't find bundle for base name site-plugin, locale en

Any ideas?

Thanks,
Jim


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



issues maven- hibernate- spring

2007-07-20 Thread Dmitry
hey, I'm building a project that uses Spring and Hibernate with Maven. So 
far I've been able to get a jar of just my project or a jar of everything 
with dependencies (using assembly:assembly). Unfortunately, when I do the 
with dependencies build, I'm getting errors from Spring trying to find the 
Hibernate mapping files inside the jar. They are in the same location inside 
the jar as in the non-dependency jar (and the same as the manually built 
jars from the pre-Maven builds). I'm using the standard Maven directory 
structure for my project.


Is there something special about the with dependency jars? Is there a 
special way I need to specify the classpath? Previously I was able to just 
specify the jar as part of the classpath, but that doesn't seem to be 
working for the Maven-built jar.


Also, the assembly:assembly build is placing my Spring xml configuration and 
properties files inside the jar. I'm having a bit of trouble figuring out 
how to configure my pom to achieve that, since the documentation is a bit 
sparse. Does someone have an example of how to do that?


thnaks,

Dmtiry Tkach

www.ejinz.com search biz





- Original Message - 
From: Dennis Lundberg [EMAIL PROTECTED]
To: Sujit Samantaray [EMAIL PROTECTED]; Maven Users List 
users@maven.apache.org

Sent: Friday, July 20, 2007 1:33 PM
Subject: Re: Help


I'm sorry, but I have little experience with Continuum, perhaps someone 
else can help you.


Sujit Samantaray wrote:

Thanks Dennis,
I am really very sorry about mailing you.I had mailed 
to userlist earlier .But i didnt got any reply.I found continuum really 
interesting ,but i am completely new to it and i am struck at one point 
since 15 days and getting no idea how to procede.

please spare a little time in helping me.
 till now i have installed continuum.i am using vss and an ant project.so 
through add an ant project i have given vss foldername which i want to 
get.i have used the scm url which is given in internet.

scm:vss:path to repository:\foldername
 after thati am trying to build it.but it is showing update  checkout 
command not found. i dont have much idea about scm configuration.

 plz help me   .again i am really sorry for taking ur valuable time .
 thanks in advance
sujit On 7/20/07, *Dennis Lundberg* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


First off - do not send questions directly to the developers. This is
what the users mailing list is for.

Now to your problem.

Have you verified that the scm configuration for your project is
working, before trying to run it through Continuum? If not, you can 
do

this by using the maven-scm-plugin:
   http://maven.apache.org/scm/plugins/index.html

You should also be using version 1.0 of maven-scm-* - not the beta-3
version.

Sujit Samantaray wrote:
 
  Hi,
 
  I am trying to use continuum .i am using visual source safe with 
ant

  projects.First the vss SCM url showed invalid . i didnt found
  *maven-scm-provider-vss:jar:1.0-beta-3 *
  file in lib folder.So i searched in net and found this jar 
file.after

  putting this jar file SCM url is validated but now  it is showing
  CHECKOUT COMMAND not found and UPDATE command not found while
building
  it.I saw the jar file and saw that it is not having checkout class 
or

  update class.
  plz help me what to do regarding this. I am not sure whether
Continuum
  supports VSS fully or not .
 
  If u have the correct jar file plz send it to me soon.If i am 
doing

  wrong somewhere else plz tell me.
 
  Or please send me some links by which i will be able to work in
VSS,Ant
  project and continuum .
 
  thanks in advance.
 
  sujit


--
Dennis Lundberg





--
Dennis Lundberg

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





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



Maven repository metadata

2007-07-20 Thread Dmitry
I've got a quick question about repository metadata. If you take a look at 
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml 
it has all of the versioning information, which makes sense, but it also has 
a version tag with a version that's neither the oldest nor the most recent. 
How does this tag get populated and what is it used for? It seems like this 
tag shouldn't even be there... Are there metadata files that are only 
associated with a particular version?

thanks,
Dmitry
www.ejinz.com search biz
- Original Message - 
From: Chris Russell [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 1:29 PM
Subject: Running Maven commands with CRON



Hello,

I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh

/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site

This runs fine when I run it from the command line. But when CRON runs it 
I get:

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

[INFO] Building Maven Default Project
[INFO]task-segment: [site:site]
[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] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Cannot execute mojo: site. It requires a project with an existing 
pom.xml, but the build is not using one.


It seems when running from CRON Maven can't find the pom file.

Is there a way to specify the location of the top level pom via that 
command line?


Thanks in advance,
Chris


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





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



maven https

2007-07-20 Thread Dmitry
Can someone tell me how do i get Maven to connect to a windows https: remote 
server. Can I pass the username and password?

thanks,
Dmitry Tkach
www.ejinz.com - search biz
- Original Message - 
From: Baz [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 4:39 PM
Subject: Re: How can i create a repo search order?


Denis, thanks. How can i configure the searching behaviour? Is there a 
file?

Syntax?

On 7/20/07, Denis Cabasson [EMAIL PROTECTED] wrote:



Maven is always searching first for the local repo.

Searching for dev or release or public repo is not, to my knowledge,
possible. A given artifact should be the same on all repos, so maven will
look for it wherever it can.

Denis.


Baz-6 wrote:

 All,

 How can i write the pom so that it looks for local repo (local 
 machine),

 then development repo, then release repo, then public repo?

 Thanks.

 A.



--
View this message in context:
http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
Sent from the Maven - Users mailing list archive at Nabble.com.


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







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



How to configure the repository to be used for downloading dependencies in a plugin WITHOUT changing my POM ?

2007-07-20 Thread Dmitry
I'd like to configure a dependency to the compiler plugin (the **.jar java 
1.3) as I use it for bootclasspath :


artifactIdmaven-compiler-plugin/artifactId configuration 
compilerArguments bootclasspath 
${settings.localRepository}/com/sun/rt/${ 
maven.compile.runtime}/rt-${maven.compile.runtime}.jar /bootclasspath 
/compilerArguments /configuration dependencies dependency 
groupIdcom.sun/groupId artifactIdrt/artifactId 
version${maven.compile.runtime}/version /dependency /dependencies


To resolve this non-free dependency, I need to set a custom repository in my 
settings.xml to point to my corporate repo.


When I run maven, it complain for dependency . It searched in central and 
apache.snapshot repositories. I myself have NOT declared apache.snapshots as 
a repository. It is declared in the apache-3 parent POM that the plugin 
extends


I then have two questions :

1. How to configure the repository to be used for downloading dependencies 
in a plugin WITHOUT changing my POM ?


2. Is this exepected for a released POM to make reference to a snapshot 
repository ?


thanks,

Dmitry Tk

www.ejinz.com search biz

- Original Message - 
From: Baz [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 4:39 PM
Subject: Re: How can i create a repo search order?


Denis, thanks. How can i configure the searching behaviour? Is there a 
file?

Syntax?

On 7/20/07, Denis Cabasson [EMAIL PROTECTED] wrote:



Maven is always searching first for the local repo.

Searching for dev or release or public repo is not, to my knowledge,
possible. A given artifact should be the same on all repos, so maven will
look for it wherever it can.

Denis.


Baz-6 wrote:

 All,

 How can i write the pom so that it looks for local repo (local 
 machine),

 then development repo, then release repo, then public repo?

 Thanks.

 A.



--
View this message in context:
http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
Sent from the Maven - Users mailing list archive at Nabble.com.


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







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



How can i add or replace project specific variables locally?

2007-07-20 Thread Dmitry

How can i add or replace project specific variables locally?

Specific case: How can i read a file and replace a variable in the pom.xml 
so i dont need to produce SNAPSHOT but using a variable $VERSION that 
control by build system?


What is the recommended approach to this? So that I can produce 
package-SNAPSHOT.jar by default, and package-nightlybuild-041007.jar if 
reading variables?


thanks,

Dmitry

www.ejinz.com - search biz

- Original Message - 
From: Jim Crossley [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Friday, July 20, 2007 2:23 PM
Subject: Missing bundle for site-plugin?



Hi all,

With the latest released versions of Maven, Eclipse, and the
corresponding plugins for each, I get this when I attempt to run the
install goal from within Eclipse.  I can run the same goal fine from
the command line, outside of Eclipse.

site:attach-descriptor
[ERROR] reactor-execute : C:\EclipseWorkspace\distributor_Maven
Diagnosis: Can't find bundle for base name site-plugin, locale en
FATAL ERROR: Error executing Maven for a project
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Can't find bundle for base name site-plugin, locale en
[INFO] 
[DEBUG] Trace Can't find bundle for base name site-plugin, locale en

Any ideas?

Thanks,
Jim


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





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



Re: How to build sub-directories recursively without knowing the exact names for sub-directories?

2007-07-19 Thread Dmitry
think it makes sense , partucularly if you have always growth of products/ 
modules, had before the same issue with maven.

www.ejinz.com
- Original Message - 
From: Baz [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Thursday, July 19, 2007 11:47 PM
Subject: Re: How to build sub-directories recursively without knowing the 
exact names for sub-directories?




Say I have a the following directory structure:

product/
  module_1/
  module_2/
  ...

Can i have a pom.xml at product directory level, and it will go into 
module

directories and run their pom files?

The number of module subdirectories can increase but i do not want to
maintain the product/pom.xml. Does it make sense?

A.

On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:


What's your use case? How could you possibly not know the names of the
modules when you're building a project? Are you trying to build a
super master pom that builds all your company's projects, or
something along those lines?

Wayne

On 7/19/07, Baz [EMAIL PROTECTED] wrote:
 All,

 I know we can use modules to specify which sub-directories that we
would
 like to build. What if i dont know the name of the sub-directories? Can
i do
 wildcards?

 Thanks.


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







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



Re: [m2] maven embedder

2007-02-27 Thread Dmitry Beransky

On 2/14/07, Jason van Zyl [EMAIL PROTECTED] wrote:

On the IDEA side the Maven Reloaded Plugin by Brian Kate, and
the Maven 2.x Integration by Ralf Quebbemann. I am also working on
this in addition to the embedder as it's the IDE I use.


Thanks!  I didn't see the Reloaded plugin when I did the initial
search.  Sounds like it's exactly what I wanted to do.

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



Re: [m2] maven embedder

2007-02-13 Thread Dmitry Beransky

Hi Franz,

I'm looking at the 2.0.4 sources (that's what I'm using) and I see
MavenEmbedder.readModel() declaring throws XmlPullParserException

D.

On 2/12/07, franz see [EMAIL PROTECTED] wrote:


Good day,

Odd. I just tried it and it works fine with me. Also, I have just checked
the source code of MavenEmbedder() and it does not use
XmlPullParserException, so I am not sure why it was looking for that.

Are you sure your debugging the right line?

Cheers,
Franz


Dmitry Beransky-3 wrote:

 Hi Franz,

 If I only add the embedder, i get a long list of NoClassDefFoundError,
 which goes away only when I counter balance by an equally long list of
 included jars.  The very first error I get is this:

 Exception in thread main java.lang.NoClassDefFoundError:
 org/codehaus/plexus/util/xml/pull/XmlPullParserException
   at org.dembel.maven.MavenUtils.createEmbedder(MavenUtils.java:53)
   at Main.main(Main.java:14)
   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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

 Where MavenUtils.createEmbedder() looks like this:

public static MavenEmbedder createEmbedder() {
   MavenEmbedder embedder = new MavenEmbedder();
   return embedder;
}


 thanks
 Dmitry


 On 2/11/07, franz see [EMAIL PROTECTED] wrote:

 Good day to you, Dmitry,

 AFAIK, It should be enough to add the maven-embedder artifact to your
 pom's
 dependencies for it to run. Why, what error are you getting?

 Cheers,
 Franz


 Dmitry Beransky-3 wrote:
 
  Hi,
 
  I'm not sure if this message is more appropriate here or on the dev
  list.  Please advise for future messages.
 
  What other maven run-time libraries do I need in order to use the
  embedder?
 
 
  Thanks
  Dmitry
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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




--
View this message in context: 
http://www.nabble.com/maven-embedder-tf3209782s177.html#a8938749
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: [m2] maven embedder

2007-02-13 Thread Dmitry Beransky

Jason,

Thanks.  That worked great, however I ran into another problem.  I'm
using embedder to write an IntelliJ IDEA plugin and IDEA insists on
using it's own JDOM library.  See this discussion for reference:

http://intellij.net/forums/thread.jspa?messageID=3441989

I was able to work around the problem temporarily by removing all JDOM
classes from the embedder jar.  I'm hoping for a more permanent
solution, though.  Is that possible?


Thanks
Dmitry


The folks I'm directly supporting for the embedder are the IDE folks.
They are using the embedder from trunk. I will attempt to merge the
trunk into the 2.0.6 release of Maven. If you want something then use
these:

http://idisk.maven.org/jvanzyl/Public/embedder/

Use the first version, that's what was used in the last release of
the Maven Eclipse Integration.

We're just about to release 2.0.5 and I don't have time to merge it
into 2.0.5.

Jason.

 D.

 On 2/12/07, franz see [EMAIL PROTECTED] wrote:

 Good day,

 Odd. I just tried it and it works fine with me. Also, I have just
 checked
 the source code of MavenEmbedder() and it does not use
 XmlPullParserException, so I am not sure why it was looking for that.

 Are you sure your debugging the right line?

 Cheers,
 Franz


 Dmitry Beransky-3 wrote:
 
  Hi Franz,
 
  If I only add the embedder, i get a long list of
 NoClassDefFoundError,
  which goes away only when I counter balance by an equally long
 list of
  included jars.  The very first error I get is this:
 
  Exception in thread main java.lang.NoClassDefFoundError:
  org/codehaus/plexus/util/xml/pull/XmlPullParserException
at org.dembel.maven.MavenUtils.createEmbedder
 (MavenUtils.java:53)
at Main.main(Main.java:14)
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 com.intellij.rt.execution.application.AppMain.main
 (AppMain.java:90)
 
  Where MavenUtils.createEmbedder() looks like this:
 
 public static MavenEmbedder createEmbedder() {
MavenEmbedder embedder = new MavenEmbedder();
return embedder;
 }
 
 
  thanks
  Dmitry
 
 
  On 2/11/07, franz see [EMAIL PROTECTED] wrote:
 
  Good day to you, Dmitry,
 
  AFAIK, It should be enough to add the maven-embedder artifact
 to your
  pom's
  dependencies for it to run. Why, what error are you getting?
 
  Cheers,
  Franz
 
 
  Dmitry Beransky-3 wrote:
  
   Hi,
  
   I'm not sure if this message is more appropriate here or on
 the dev
   list.  Please advise for future messages.
  
   What other maven run-time libraries do I need in order to use
 the
   embedder?
  
  
   Thanks
   Dmitry
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
  http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: http://www.nabble.com/maven-embedder-
 tf3209782s177.html#a8938749
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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




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




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



maven embedder

2007-02-11 Thread Dmitry Beransky

Hi,

I'm not sure if this message is more appropriate here or on the dev
list.  Please advise for future messages.

What other maven run-time libraries do I need in order to use the embedder?


Thanks
Dmitry

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



Re: [m2] maven embedder

2007-02-11 Thread Dmitry Beransky

Hi Franz,

If I only add the embedder, i get a long list of NoClassDefFoundError,
which goes away only when I counter balance by an equally long list of
included jars.  The very first error I get is this:

Exception in thread main java.lang.NoClassDefFoundError:
org/codehaus/plexus/util/xml/pull/XmlPullParserException
at org.dembel.maven.MavenUtils.createEmbedder(MavenUtils.java:53)
at Main.main(Main.java:14)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

Where MavenUtils.createEmbedder() looks like this:

  public static MavenEmbedder createEmbedder() {
 MavenEmbedder embedder = new MavenEmbedder();
 return embedder;
  }


thanks
Dmitry


On 2/11/07, franz see [EMAIL PROTECTED] wrote:


Good day to you, Dmitry,

AFAIK, It should be enough to add the maven-embedder artifact to your pom's
dependencies for it to run. Why, what error are you getting?

Cheers,
Franz


Dmitry Beransky-3 wrote:

 Hi,

 I'm not sure if this message is more appropriate here or on the dev
 list.  Please advise for future messages.

 What other maven run-time libraries do I need in order to use the
 embedder?


 Thanks
 Dmitry

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




--
View this message in context: 
http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: categorizing tests

2007-01-19 Thread Dmitry Beransky

On 1/18/07, Jiaqi Guo [EMAIL PROTECTED] wrote:

Dmitry Beransky wrote:
 Just finished reading an article on test categorization:
 
http://www-128.ibm.com/developerworks/java/library/j-cq10316/index.html?ca=drs-.

 Any recommendations how how to implement this in Maven?

Although I don't 100% percent agree with the article, I believe
technically multiple test case file pattern can be defined for each
sunfire-plugin in multiple profiles.


Thanks, that's an interesting idea and got me thinking...

Ideally, I wish I could annotate tests with a type (e.g.
@Test(type=component) public void testSomeFunction() {...}) and have
the test framework pick the tests out for me.

Lacking above, it's probably a good idea to break tests into multiple
directories based on their type (could be a good idea regardless), and
then simply modify test source directory based on the same system
property your recommended:

build
  testSourceDirectorysrc/test/java/${test.category}/testSourceDirectory
/build

can I define a default value for ${test.category} in POM and then
override it at runtime with -Dtest.category=value?

or is profiles still a preferred way of approaching this and if so, why?

thanks
d.

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



categorizing tests

2007-01-18 Thread Dmitry Beransky

Hi,

Just finished reading an article on test categorization:
http://www-128.ibm.com/developerworks/java/library/j-cq10316/index.html?ca=drs-.
Any recommendations how how to implement this in Maven?


Thanks
D.

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



missing resources in .jnlp

2007-01-16 Thread Dmitry Beransky

Hi,

Can't figure out what I'm doing wrong.  I've set up a project for
building a WebStart app.  Copied template.vm from the plugin's svn.
When I run webstart:jnlp goal, I get a zip containing all dependencies
properly signed, but the index.jnlp file only has the following:


?xml version=1.0 encoding=utf-8?
jnlp
   codebase=$$codebase
   href=$outputFile.name
 resources
 /resources
 application-desc main-class=${config.jnlp.mainClass}/
/jnlp

so, why is ther resources section empty (and why
${config.jnlp.mainClass} didn't get expanded)?

any thoughts?

thanks
d.

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



enabling logging

2007-01-11 Thread Dmitry Beransky

Hi,

How can I enable debug level logging for maven's plugins.  I'd like to
see what goes on before this exception is thrown:

Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site
at 
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:184)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 10 more
Caused by: org.apache.maven.wagon.authentication.AuthenticationException:
Cannot connect. Reason: reject HostKey: newzealand.TRAVELSECURE.LOCAL
at 
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(AbstractSshWagon.java:239)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
at 
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:153)
... 12 more
Caused by: com.jcraft.jsch.JSchException: reject HostKey:
newzealand.TRAVELSECURE.LOCAL
at com.jcraft.jsch.Session.checkHost(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at 
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(AbstractSshWagon.java:228)
... 15 more

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



Re: enabling logging

2007-01-11 Thread Dmitry Beransky

I can't.  This problem happens only when I run maven under TeamCity (a
continuous build app). Unfortunately, TeamCity doesn't give me an
option of passing command line parameters to Maven.

On 1/11/07, Ian Springer [EMAIL PROTECTED] wrote:

Have you tried running mvn with -X ?

| -Original Message-
| From: Dmitry Beransky [mailto:[EMAIL PROTECTED]
| Sent: Thursday, January 11, 2007 11:22 AM
| To: Maven Users List
| Subject: enabling logging
|
| Hi,
|
| How can I enable debug level logging for maven's plugins.
| I'd like to see what goes on before this exception is thrown:
|
| Caused by: org.apache.maven.plugin.MojoExecutionException:
| Error uploading site
|   at
| org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeplo
| yMojo.java:184)
|   at
| org.apache.maven.plugin.DefaultPluginManager.executeMojo(Defau
| ltPluginManager.java:412)
|   at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
| ls(DefaultLifecycleExecutor.java:534)
|   ... 10 more
| Caused by:
| org.apache.maven.wagon.authentication.AuthenticationException:
| Cannot connect. Reason: reject HostKey: newzealand.TRAVELSECURE.LOCAL
|   at
| org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConn
| ection(AbstractSshWagon.java:239)
|   at
| org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
|   at
| org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
|   at
| org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeplo
| yMojo.java:153)
|   ... 12 more
| Caused by: com.jcraft.jsch.JSchException: reject HostKey:
| newzealand.TRAVELSECURE.LOCAL
|   at com.jcraft.jsch.Session.checkHost(Unknown Source)
|   at com.jcraft.jsch.Session.connect(Unknown Source)
|   at com.jcraft.jsch.Session.connect(Unknown Source)
|   at
| org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConn
| ection(AbstractSshWagon.java:228)
|   ... 15 more
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|

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




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



Re: enabling logging

2007-01-11 Thread Dmitry Beransky

On 1/11/07, Ian Springer [EMAIL PROTECTED] wrote:

Have you tried running mvn with -X ?


besides, when I do this from CLI, i don't get debug level messages,
just extra exception traces, which is not what I'm after.

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



Re: enabling logging

2007-01-11 Thread Dmitry Beransky

On 1/11/07, Ian Springer [EMAIL PROTECTED] wrote:

I keep meaning to file a JIRA with JetBrains for it, so they'll add something 
in 1.2.



there is an inssue (kind of) for it already:
http://www.jetbrains.net/jira/browse/TW-1409

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



Re: uml reports

2007-01-05 Thread Dmitry Beransky

I'd like to have images (png, png, vml, etc.)

On 1/4/07, Wayne Fay [EMAIL PROTECTED] wrote:

What do you want to do with them -- convert to JPG or PNG and
include in Javadoc or another webpage? Or just include links to the
UML files?

Wayne



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



uml reports

2007-01-04 Thread Dmitry Beransky

Hi,

I've got UML diagrams that I'm maintaining using StarUML.  Is there a
way I can have them included with other Maven-generated reports?  If
not, is there another UML application that works better with Maven?


Thanks
Dmitry

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



Re: deploying to remote repository

2007-01-03 Thread Dmitry Beransky

On 1/2/07, Mykel Alvis wrote:

You first need to define your internal repository representation and how you
plan to host it.


I've run a Maven1 internal repository, so I have a relatively good
idea of what I'd like to do.  At the moment, the simplest method for
updating repo would be via scp and that's what I was trying to do.
Anyway, I've figured out what my problem was.  Ended up using the
following syntax:

mvn deploy:deploy-file -DgroupId=jaxb -DartifactId=jaxb-api
-Dversion=2.0 -DgeneratePom=true -Dpackaging=jar -Dfile=c:/Documents
and Settings/dqb/.m2/repository/jaxb/jaxb-api/2.0/jaxb-api-2.0.jar
-DrepositoryId=csa_internal
-Durl=scp://[EMAIL PROTECTED]/Storage/web/repository/maven2


thanks
d.

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



site:deploy via ssh under Windows

2007-01-03 Thread Dmitry Beransky

Hi,

I've found a few posts asking a similar question, but there were no
answers as far as I could tell...

I want to run a site:deploy via an external ssh and get this error message:

  Embedded error: Error performing commands for file transfer
  Exit code 1 - 'ssh' is not recognized as an internal or external command,
  operable program or batch file.

here's what my pom looks like:

   distributionManagement
   site
   idcsa-repository/id
   urlscpexe://maven-remote:[EMAIL PROTECTED]/Storage/web/iris2/url
   /site
   /distributionManagement

and settings.xml:

servers
   server
 idcsa-repository/id
 usernamemaven-remote/username
 passphrasex/passphrase
 configuration
   sshExecutablec:\winnt\plink.exe/sshExecutable
   scpExecutablec:\winnt\pscp.exe/scpExecutable
 /configuration
/server
 /servers


According to the docs, this is all I need.  What am I missing?


Thanks
D.

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



Re: site:deploy via ssh under Windows

2007-01-03 Thread Dmitry Beransky

I'm using scp with a password based authentication.  While I have no
problems running the command from my workstation, if I run the same
build on the continous build box, I'm constantly being asked to accept
RSA key fingerprint.  Perhaps, switching to a key-based login would
fix the problem.

On 1/3/07, Barrie Treloar [EMAIL PROTECTED] wrote:

Is there a reason for wanting an external ssh?

I am on windows and use putty but I have not configured external ssh.
[...]
In my settings.xml I have:

   server
 idinhouse/id
 usernameUSER/username
 privateKey/PATH/TO/KEY.openssh/privateKey
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions
   /server


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



Re: site:deploy via ssh under Windows

2007-01-03 Thread Dmitry Beransky

On 1/3/07, Barrie Treloar [EMAIL PROTECTED] wrote:

This is because you are missing the directory ~/.ssh so that the file
known_hosts can be created.


d'oh!  that was it.  thanks!

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



teamcity + maven + site:deploy

2007-01-03 Thread Dmitry Beransky

is anyone here running the $subj$ config?  I can site:deploy by
running Maven manually on the same box, using the same maven
installation as TeamCity, but when TeamCity runs the build, I keep
getting an exception: com.jcraft.jsch.JSchException: reject HostKey:
newzealand

thanks
d.

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



deploying to remote repository

2007-01-02 Thread Dmitry Beransky

Hi,

I need a bit of help installing a third party plugin into an internal
repository.  I know that I need to be using some form of the following:

mvn deploy:deploy-file -DpomFile=
http://mirrors.ibiblio.org/pub/mirrors/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.pom\
   -DrepositoryId=csa-repository \
   -Durl=url-of-the-repositor-to-deploy  \
   -Dfile=jta-1.0.1B.jar

a few questions about the above:

1.  Can I point to jta's POM that's sitting on the central repository or do
I need to create my own?
2. What is a repositor and what is its url?
3. Am I on the right track at all?


thanks
Dmitry


  1   2   >