Re:snapshotRepository.uniqueVersion does not work

2007-06-21 Thread gc134728
-- Initial header ---

From  : gc134728 [EMAIL PROTECTED]
To  : users users@maven.apache.org
CC  :
Date  : Wed, 20 Jun 2007 15:22:47 +0200
Subject : Re:snapshotRepository.uniqueVersion does not work

You also could try the new maven release. If you check the release notes the
talk about a bug of snapshot parent poms not being updated.
This maybe your problem.
 -- Initial header ---

 From  : Stefan Arentz [EMAIL PROTECTED]
 To  : Maven Users List users@maven.apache.org
 CC  :
 Date  : Wed, 20 Jun 2007 13:03:32 +0200
 Subject : snapshotRepository.uniqueVersion does not work

 Hey,

 You 're very vaig about what you have done.

 First of all check if you child poms have the correct parent declaration.
 Specifically look at the version.
 Second check your local repo if it contains the correct top pom.
 Third if you deploy your top pom to the remote repo and you use a non snapshot
 version it won't look for an update if you all ready have that same version in
 your local repo. If it is a snapshot it can look to the remote repository.
 This depends on your repo settings. Standard it will look for updates for
 snapshots once a day. You can try mvn install -U to look for updates.
 Forth if you deployed the top pom on the same pc as you are compiling the
 child pom it should find the latest pom because on a deploy you perform a
 install. So the problem lies with your top pom.

  I have set distributionManagement.snapshotRepository.uniqueVersion to
  false in the top level pom of a multi module project. Only the top
  level project is deployed to the repository without timestamps. The
  child modules are all still deployed with timestamps.
 
  This seems broken. The child modules don't seem to inherit this
  setting from the master pom?
 
   S.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ---
 http://www.scarlet.be/


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


 
---
http://www.scarlet.be/


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



Plugin versions

2007-06-20 Thread gc134728
Hey maven users,

When I want to use in my entire project structure (top pom and all sub poms)
the install plugin with version 2.2.  Do I need to place it under the
pluginmanagement of under the build/plugin section of the pom?

The install plugin is mapped by the default lifecycle so will maven get the
correct version with possible configuration declared from the pluginmanagement
or is plugin management only for use when you need to yourself add general
plugin declarations for use in sub poms ?

Thanks for your answers.
---
http://www.scarlet.be/


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



Release top pom without sub modules (projects)

2007-06-20 Thread gc134728
Hey maven users,

I have a multi-module project architecture with at the top one pom.  This pom
contains several sub poms which contain sub poms ...  When i perform a release
on the top pom every project gets released with it.  How can i just perform a
release on the top pom without releasing it's subprojects with it?

One remark sometimes i do want to make a full release of top pom and all
subpoms.  So what I'm looking for is a property that blocks the transitive
release process of the maven-release-plugin.

for example : release:prepare -Dblock-reactor

Thx for any info
Yves
---
http://www.scarlet.be/


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



Re:snapshotRepository.uniqueVersion does not work

2007-06-20 Thread gc134728
-- Initial header ---

From  : Stefan Arentz [EMAIL PROTECTED]
To  : Maven Users List users@maven.apache.org
CC  :
Date  : Wed, 20 Jun 2007 13:03:32 +0200
Subject : snapshotRepository.uniqueVersion does not work

Hey,

You 're very vaig about what you have done.

First of all check if you child poms have the correct parent declaration.
Specifically look at the version.
Second check your local repo if it contains the correct top pom.
Third if you deploy your top pom to the remote repo and you use a non snapshot
version it won't look for an update if you all ready have that same version in
your local repo. If it is a snapshot it can look to the remote repository.
This depends on your repo settings. Standard it will look for updates for
snapshots once a day. You can try mvn install -U to look for updates.
Forth if you deployed the top pom on the same pc as you are compiling the
child pom it should find the latest pom because on a deploy you perform a
install. So the problem lies with your top pom.

 I have set distributionManagement.snapshotRepository.uniqueVersion to
 false in the top level pom of a multi module project. Only the top
 level project is deployed to the repository without timestamps. The
 child modules are all still deployed with timestamps.

 This seems broken. The child modules don't seem to inherit this
 setting from the master pom?

  S.

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

 
---
http://www.scarlet.be/


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



Maven Changes Plugin (NoClassDefFoundError = javax/activation/DataSource)

2007-06-15 Thread gc134728
Dear maven users,

I want to use the changes plugin and when i execute it it doesn't work.
It says It can't find no DataSource class.
Anyone have any ideas?

OUTPUT :

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

[INFO] Building Orbis BPE BE Application
[INFO]task-segment: [changes:announcement-generate, 
changes:announcement-mail]
[INFO]

[INFO] Setting property: file.resource.loader.class =
'org.apache.maven.plugin.resource.loader.ProjectResourceLoader'.
[INFO] Setting property: class.resource.loader.class =
'org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader'.
[INFO] Setting property: resource.loader = 'file,class'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.apache.maven.plugin.resource.loader.ProjectResourceLoader
[INFO] ProjectResourceLoader : initialization starting.
[INFO] path :C:\hap\orbisbe2\src\main\resources\
[INFO] ProjectResourceLoader : adding path 'C:\hap\orbisbe2\src\main\resources\'
[INFO] ProjectResourceLoader : initialization complete.
[INFO] Resource Loader Instantiated:
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find reso
urce 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
global in scope if allowed.
[INFO] Velocimacro : messages on  : VM system will output logging messages
[INFO] Velocimacro : autoload off  : VM system will not automatically reload
global library macros
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [changes:announcement-generate]
[INFO] Creating announcement file from changes.xml...
[INFO] ResourceManager : found
org/apache/maven/plugin/announcement/announcement.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathReso
urceLoader
[ERROR] RHS of #set statement is null. Context will not be modified.
org/apache/maven/plugin/announcement/announcement.vm [line 40, column 1]
[ERROR] RHS of #set statement is null. Context will not be modified.
org/apache/maven/plugin/announcement/announcement.vm [line 41, column 1]
[ERROR] Left side ($!issue) of '!=' operation has null value. Operation not
possible. org/apache/maven/plugin/announcement/announcement.vm [line 42, colu
mn 27]
[ERROR] Left side ($!dueto) of '!=' operation has null value. Operation not
possible. org/apache/maven/plugin/announcement/announcement.vm [line 42, colu
mn 65]
[INFO] File created...
[INFO] Preparing changes:announcement-mail
[INFO] [changes:announcement-generate]
[INFO] Creating announcement file from changes.xml...
[INFO] ResourceManager : found
org/apache/maven/plugin/announcement/announcement.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathReso
urceLoader
[ERROR] RHS of #set statement is null. Context will not be modified.
org/apache/maven/plugin/announcement/announcement.vm [line 40, column 1]
[ERROR] RHS of #set statement is null. Context will not be modified.
org/apache/maven/plugin/announcement/announcement.vm [line 41, column 1]
[ERROR] Left side ($!issue) of '!=' operation has null value. Operation not
possible. org/apache/maven/plugin/announcement/announcement.vm [line 42, colu
mn 27]

Mail on release

2007-06-13 Thread gc134728
Hey maven users,

If i perform a release using the maven release plugin can automate it to send
a mail to a developers list?  and I like to have different mailing lists some
projects need to inform everybode on release and some project just by a select
number of people.

All my projects (artifacts) inherite from one single pom.

Thanks for the help.

Y. Van Steen
---
http://www.scarlet.be/


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



Re:install:install - POM isn't filtered when installed in repo

2007-05-23 Thread gc134728
-- Initial header ---

From  : Steinhauer, Frank [EMAIL PROTECTED]
To  : [EMAIL PROTECTED],users@maven.apache.org
CC  :
Date  : Tue, 22 May 2007 14:58:37 +0200
Subject : install:install - POM isn't filtered when installed in repo

Hey frank,

well you need to set the files you want filtered. like to

  build
resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering
excludes
  exclude**/*.jar/exclude
/excludes
  /resource
  resource
directorysrc/main/resources/directory
filteringfalse/filtering
includes
  include**/*.jar/include
/includes
  /resource
/resources
/build
...
For more info look at :
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files?

 Hello,

 In my POMs the version numbers are set according to local settings and
 given CLI parameters. This works fine e.g. in the effective pom, but not
 when installing or deploying the POM to the repository, the pom file is
 just copied 1:1 to the repo, without any filtering. Why? Any
 suggestions? I'm glad for any assistence, since it cost me already two
 days figuring that out

 Cheers,

 Frank



 Example 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/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion

groupIdaaa/groupId
artifactIdbbb/artifactId
version${buildVersion}/version !-- used throughout all of our
 projects/modules --
packagingpom/packaging
properties
   versionNo1.2/versionNo
   buildVersion${versionNo}${label}/buildVersion   !-- label is
 set differently in a local build and in the CruiseControl build --
/properties
 ...
repositories.../repositories
dependencies.../dependencies
build.../build
 ...
 /project



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


 
---
Scarlet ADSL20, 20 Mbits down, 1 Mbits up, 60 GB volume, http://www.scarlet.be/


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



Enabling a profile disables an other

2007-05-21 Thread gc134728
Hey maven users,

When I enable a profile using mvn clean install -PbuildCon It disables an
other profile that has an activation active by default.

profile
...
activation
  activeByDefaulttrue/activeByDefault
/activation
...
/profile

Is this a bug in maven or correct?

Thx for any assitance,
Y. Van Steen
Agfa Connectivity Engineer
---
Scarlet ADSL20, 20 Mbits down, 1 Mbits up, 60 GB volume, http://www.scarlet.be/


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



Error executing plugin only from reactor build not the declaring project

2007-05-15 Thread gc134728
Hey Maven Users,

So I created a pom with a plugin configuration added to it.  And It builds no
proplem. So far so good and know I want to add this project to a modular
build. Which means i add a reference to this pom in the parent pom (using
the module declaration) and add a parent tag in the pom (of the subproject).
So I build the project (just the subproject) and all is well.  Now I want to
build the parent project with the reactor build and bamm an error occurs when
executing the plugin which is declared in the subproject.

In my case the plugin I am using is the maven-install-plugin.
The pom I'm using you can find below.
The error that the top pom throws is the following :

Error configuring: org.apache.maven.plugins:maven-install-plugin. Reason:
ERROR: Cannot override read-only parameter: artifactId in goal:
install:install-file

I'm thinking this is a bug but not sure.
Maven : 2.0.6
OS : Windows XP
Plugin version : 2.2-SNAPSHOT (out of subversion)

POM (the sub pom) in question :
project
...

parent
 groupIdbe.test/groupId
 artifactIdbuginstall/artifactId
 version1.0-SNAPSHOT/version
/parent

groupIdbe.test.buginstall/groupId
artifactIdlower/artifactId
version1.0-SNAPSHOT/version
packagingpom/packaging

nameLower/name

build
  plugins
plugin
  artifactIdmaven-install-plugin/artifactId
  version2.2-SNAPSHOT/version
  executions
execution
  phaseinstall/phase
  goals
goalinstall-file/goal
  /goals
  configuration
artifactIddude/artifactId
groupIddude/groupId
version1.5/version
packagingjar/packaging
filedude.jar/file
generatePomtrue/generatePom
  /configuration
/execution
  /executions
/plugin
  /plugins
/build

/project


I also solved this error by placing in the top (or parent) pom a reference to
the plugin like so without any configuration but I have no idea why I should
do this.  Is this some kind of bug or am I missing some vital peace of
knowledge about maven. It can't have something to do with inheritance or can
It?  If anybode understands this error and solution please contact me
otherwise I'm just gonna post it as a bug on JIRA.

build
  plugins
plugin
  artifactIdmaven-install-plugin/artifactId
  version2.2-SNAPSHOT/version
/plugin
  /plugins
/build

Thx for any assistance.
Y. Van Steen

---
Scarlet ADSL20, 20 Mbits down, 1 Mbits up, 60 GB volume, http://www.scarlet.be/

---
Scarlet ADSL20, 20 Mbits down, 1 Mbits up, 60 GB volume, http://www.scarlet.be/


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



maven-install-plugin = Cannot override read-only parameter

2007-05-14 Thread gc134728
Dear maven-users,

I have a problem and have absolutely no idea why this occurs.  I added a
configuration of the maven-install-plugin to my pom.xml.

When i add this configuration i get the error :

Error configuring: org.apache.maven.plugins:maven-install-plugin. Reason:
ERROR: Cannot override read-only parameter: packaging in goal: install:install

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-install-plugin/artifactId
  version2.2-SNAPSHOT/version
  executions
!-- Installs main artifact = Comm --
execution
  iddeploy comm/id
  phaseinstall/phase
  goals
goalinstall-file/goal
  /goals
  configuration
  /configuration
/execution
  /executions
  configuration
file${orbis.path}/ROOT/generated/comm.jar/file
artifactIdcomm/artifactId
groupId${orbis.application.groupid}/groupId
version${orbis.application.version}/version
generatePomtrue/generatePom
packagingjar/packaging
  /configuration
/plugin

When I place the configuration between the execution configuration i get this
error :

Missing group, artifact, version, or packaging information

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-install-plugin/artifactId
  version2.2-SNAPSHOT/version
  executions
!-- Installs main artifact = Comm --
execution
  iddeploy comm/id
  phaseinstall/phase
  goals
goalinstall-file/goal
  /goals
  configuration
file${orbis.path}/ROOT/generated/comm.jar/file
artifactIdcomm/artifactId
groupId${orbis.application.groupid}/groupId
version${orbis.application.version}/version
generatePomtrue/generatePom
packagingjar/packaging
  /configuration
/execution
  /executions
  configuration
  /configuration
/plugin

2 bugs posted in Jira refer to this same error but according to the status It
should be fixed.  I tried the 2.1 release, the 2.2-snapshot and even the
latest from the repository but no luck.  Anyone know what causes this?  I
looked through the source but that seems OK.

http://jira.codehaus.org/browse/MINSTALL-14
http://jira.codehaus.org/browse/MINSTALL-12

Thx,
Yves Van Steen
Java Developer
---
Scarlet ADSL20, 20 Mbits down, 1 Mbits up, 60 GB volume, http://www.scarlet.be/


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



How to load Snapshot plugins from the CLI

2007-04-30 Thread gc134728
Dear maven users,

I'm stuck on a problem. I want to execute a plugin from the command line but
not the released version but the snapshot version.

How do I do that?

I added the link to the snapshot repository. No problem their.
But when i execute the following command :
mvn org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file ...

I get the following error :

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-install-plugin
Version: 2.2-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-install-plugin:pom:2.2-SNAPSHOT

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

What am i doing wrong?

Thx for any assistance.
Y. Van Steen
Agfa Connectivity Engineer
---
Scarlet ADSL Unlimited - Only 24,95 euro per month.
Max download Speed up to 6 Mbps, download volume of 30 GB. Order now...


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



Re: How to load Snapshot plugins from the CLI

2007-04-30 Thread gc134728
-- Initial header ---

From  : [EMAIL PROTECTED]
To  : Maven Users List users@maven.apache.org
CC  :
Date  : Mon, 30 Apr 2007 09:47:48 -0500
Subject : Re: How to load Snapshot plugins from the CLI

 If that's your whole log, then you're not pointed to the maven SNAPSHOT repo
 for plugins.  The message indicates that you haven't defined any new
 references to the snapshot repo as indicated by the fact that only central
 is listed as a repo to look in and central doesn't host plugin snapshots (as
 far as I know).  You'll need to define a snapshot repo pointing to
 http://people.apache.org/maven-snapshot-repository/ in order to get the
 (apache hosted) snapshot plugin.


I added a reference in a profile in my settings.xml and made it active.
I did It like instructed on the maven website.
So it should be available.  I ran help:effective-settings and it lists the
repository but doesn't mention it's ID which i find a bit strange but also
another profile is declared and the ID there is also not mentioned.
So probably normal.

Anyone have any clues ?


 On 4/30/07, gc134728 [EMAIL PROTECTED] wrote:
 
  Dear maven users,
 
  I'm stuck on a problem. I want to execute a plugin from the command line
  but
  not the released version but the snapshot version.
 
  How do I do that?
 
  I added the link to the snapshot repository. No problem their.
  But when i execute the following command :
  mvn
  org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file...
 
  I get the following error :
 
  [INFO] Failed to resolve artifact.
 
  GroupId: org.apache.maven.plugins
  ArtifactId: maven-install-plugin
  Version: 2.2-SNAPSHOT
 
  Reason: Unable to download the artifact from any repository
 
org.apache.maven.plugins:maven-install-plugin:pom:2.2-SNAPSHOT
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2)
 
  What am i doing wrong?
 
  Thx for any assistance.
  Y. Van Steen
  Agfa Connectivity Engineer
  ---
  Scarlet ADSL Unlimited - Only 24,95 euro per month.
  Max download Speed up to 6 Mbps, download volume of 30 GB. Order now...
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 I'm just an unfrozen caveman software developer.  I don't understand your
 strange, modern ways.

 
---
Scarlet ADSL Unlimited - Only 24,95 euro per month.
Max download Speed up to 6 Mbps, download volume of 30 GB. Order now...


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



Re: How to load Snapshot plugins from the CLI

2007-04-30 Thread gc134728
-- Initial header ---

From  : Wayne Fay [EMAIL PROTECTED]
To  : Maven Users List users@maven.apache.org
CC  :
Date  : Mon, 30 Apr 2007 10:16:15 -0500
Subject : Re: How to load Snapshot plugins from the CLI

 I don't know why its not working for you, but here's a possible workaround...

 Make a new pom, add the snapshot repo, and add the snapshot
 dependency. Run mvn package so it will download etc everything.

 Then go back to this project and try running the mvn install using the
 snapshot again. And perhaps specify -o for offline, so it doesn't
 attempt to look for updates.

 Wayne


Hey thanks Wayne.

You were wright. When i added it to a pom of a existing project it downloaded
the snapshot version. Then when i ran it from the cli and it worked.  When I
deleted the snapshot version out of the repository and retried it i got the
same result. So on an empty repo running the plugin from the cli does not work
 cause it can't get resolved.

But apparently on the maven site they specify that when you want to run
snapshot versions from the cli you need to do something in your settings.xml
but they don't specify what.  they could just mean a profile with the snapshot
repo defenition off course.

http://maven.apache.org/guides/development/guide-testing-development-plugins.html

Maybe it's a bug in Maven.
I reproduced the same situation on an other pc and got the same result.

Just one question the following command is OK wright or should something more
ve been done. Maybe an extra param (-U or something) needs to be submitted for
the snapshot plugin to be downloaded.

mvn groupId:artifactId:version:goal



 On 4/30/07, gc134728 [EMAIL PROTECTED] wrote:
  -- Initial header ---
 
  From  : [EMAIL PROTECTED]
  To  : Maven Users List users@maven.apache.org
  CC  :
  Date  : Mon, 30 Apr 2007 09:47:48 -0500
  Subject : Re: How to load Snapshot plugins from the CLI
 
   If that's your whole log, then you're not pointed to the maven SNAPSHOT 
   repo
   for plugins.  The message indicates that you haven't defined any new
   references to the snapshot repo as indicated by the fact that only 
   central
   is listed as a repo to look in and central doesn't host plugin snapshots 
   (as
   far as I know).  You'll need to define a snapshot repo pointing to
   http://people.apache.org/maven-snapshot-repository/ in order to get the
   (apache hosted) snapshot plugin.
  
 
  I added a reference in a profile in my settings.xml and made it active.
  I did It like instructed on the maven website.
  So it should be available.  I ran help:effective-settings and it lists the
  repository but doesn't mention it's ID which i find a bit strange but also
  another profile is declared and the ID there is also not mentioned.
  So probably normal.
 
  Anyone have any clues ?
 
  
   On 4/30/07, gc134728 [EMAIL PROTECTED] wrote:
   
Dear maven users,
   
I'm stuck on a problem. I want to execute a plugin from the command line
but
not the released version but the snapshot version.
   
How do I do that?
   
I added the link to the snapshot repository. No problem their.
But when i execute the following command :
mvn
org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file...
   
I get the following error :
   
[INFO] Failed to resolve artifact.
   
GroupId: org.apache.maven.plugins
ArtifactId: maven-install-plugin
Version: 2.2-SNAPSHOT
   
Reason: Unable to download the artifact from any repository
   
  org.apache.maven.plugins:maven-install-plugin:pom:2.2-SNAPSHOT
   
from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
   
What am i doing wrong?
   
Thx for any assistance.
Y. Van Steen
Agfa Connectivity Engineer
---
Scarlet ADSL Unlimited - Only 24,95 euro per month.
Max download Speed up to 6 Mbps, download volume of 30 GB. Order now...
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   I'm just an unfrozen caveman software developer.  I don't understand your
   strange, modern ways.
  
  
  ---
  Scarlet ADSL Unlimited - Only 24,95 euro per month.
  Max download Speed up to 6 Mbps, download volume of 30 GB. Order now...
 
 
  -
  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]

 
---
Scarlet ADSL Unlimited - Only 24,95 euro per month.
Max download Speed up to 6 Mbps, download volume of 30 GB. Order now

How to setup a scm subversion link

2007-02-16 Thread gc134728
Hey

I'm havin some problems settings up maven with scm subversion.

I'm stuck on 2 issues:
1) the place to save my passwords.
   is it possible to refer to a server connection in the settings.xml
2) a connection error (can't create tunnel)

Our clients run on windows and the subversion repo is accessed through ssh on
a linux system. This functions well with subeclipse but not with the cli tool
for subversion or embedded maven scm support.

It's going to be used mainly for relaese management which needs scm support.

Developer connection in pom.xml

scm
developerConnectionscm:svn:svn+ssh://${sc.ip}/${sc.uri}/trunk//developerConnection
/scm

THE ERROR IN QUESTION :

C:\test\maven_release\Clientmvn scm:checkin -Dmessage=ee -Dusername=temp
-Dpassword=temp
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'scm'.
[INFO]

[INFO] Building Client
[INFO]task-segment: [scm:checkin]
[INFO]

[INFO] [scm:checkin]
[INFO] Executing: svn --username temp --password * --non-interactive
commit --file C:\DOCUME~1\awxfm\LOCALS~1\Temp\maven-
scm-511768147.commit
[INFO] Working directory: C:\test\maven_release\Client
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: Commit failed (details follow):
svn: Can't create tunnel: The system cannot find the file specified.

[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Command failed.The svn command failed.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Feb 16 19:47:49 CET 2007
[INFO] Final Memory: 4M/8M
[INFO] 

Thx for any assitance

---
Scarlet One Unlimited
Free national calls, surf up to 6 Mbit/s, 50 GB download volume
For only EUR 49,95 per month. No Belgacom subscription needed.  All in!
http://www.scarlet.be


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



Download Sources

2007-02-15 Thread gc134728
Hey dear maven users,

I got a question.  I have one person in our team that updates the pom.xml and
creates the .classpath files namely MYSELF.  But i attach sources to our own
project artifacts but i want the other members of our team to get the attached
sources when they download dependencies so they can view it in eclipse.  The
problem is they have to execute the eclipse:eclipse -DdownloadSources=true
command.  And this fucks up some .classpath files cause some projects have
special eclipse project dependencies which i have to set manually.

My question is how can i download the sources with the eclipse:eclipse plugin
without the creation of the .project and .classpath file.  Or is there an
other way to download the sources?

If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.

Thx for any assitance.---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Download Sources

2007-02-15 Thread gc134728
I know but it's not all project that are set to interproject dependencies
which causes a problem. It's also the mapping of generated foldes as source
folder in eclipse.

I'm trying to limit the knowledge people need about maven internals just
operational knowledge is required.  We split up the work so everybody can
handle jobs retaining to their extensive knowledge. Other persons should just
do a checkout from the svn repo, refresh there workspace build and bamm
everything is setup.

 eclipse:eclipse can handle dependencies with other eclipse projects if it is
 ran from the top-level project. It will create .classpath  .project files
 for all modules and respect inter-projects dependencies
 (see
*useProjectReferenceshttp://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#useProjectReferences
 *)

 Nico.

 2007/2/15, gc134728 [EMAIL PROTECTED]:
 
  Hey dear maven users,
 
  I got a question.  I have one person in our team that updates the pom.xmland
  creates the .classpath files namely MYSELF.  But i attach sources to our
  own
  project artifacts but i want the other members of our team to get the
  attached
  sources when they download dependencies so they can view it in
  eclipse.  The
  problem is they have to execute the eclipse:eclipse
  -DdownloadSources=true
  command.  And this fucks up some .classpath files cause some projects have
  special eclipse project dependencies which i have to set manually.
 
  My question is how can i download the sources with the eclipse:eclipse
  plugin
  without the creation of the .project and .classpath file.  Or is there an
  other way to download the sources?
 
  If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.
 
  Thx for any assitance.---
  Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
  http://www.scarlet.be
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Download Sources

2007-02-15 Thread gc134728
Hmm i didn't know that it could also map generated-sources as source folders.
This could come in handy.  But that still won't handle all my problems.  I
also have to refer to a couple of projects (on different scm systems) that
aren't maven projects.
Maven would depend on a deployed binary version and in eclipse refer to the
eclipse project. And i know it's a mess but porting it to isn't an option.
Management won't let me cause lots of other teams rely on these projects.
So I would like to spare my team the problem of also mapping these projects
every time dependencies change.  Which is a lot. Since lots of version are
deployed.

So this maven-dependency-plugin seams interesting but i can't get i to work.
It doesn't download any sources.  Anyone have any idea.  I use this 
configuration.

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
execution
goalsgoalsources/goal/goals
/execution
/executions
configuration

/configuration
  /plugin

I tried them with these options but no deal. It doesn't work.

  silentfalse/silent
  classifiersources/classifier
  includeGroupIdscom.agfa.hap.bpe.basic/includeGroupIds

Anyone tried this before 

 I also try to limit maven knoledge requirement in my development team.
 We only use [svn checkout] + [mvn eclipse:eclipse] + [import existing
 projects into wrokspace].
 This is the only thing required by developpers to get the project configured
 in eclipse.
 They code/test in eclipse and package all using mvn install from the root
 folder.

 I don't really understand your requirement. Eclipse plugin handles generated
 source folders as well as they follow maven conventions
 (target/generated-sources/xxx). I'd suggest to align your build with those
 maven conventions and you will get a fully eclipse compliant project.

 Nico.

 2007/2/15, gc134728 [EMAIL PROTECTED]:
 
  I know but it's not all project that are set to interproject dependencies
  which causes a problem. It's also the mapping of generated foldes as
  source
  folder in eclipse.
 
  I'm trying to limit the knowledge people need about maven internals just
  operational knowledge is required.  We split up the work so everybody can
  handle jobs retaining to their extensive knowledge. Other persons should
  just
  do a checkout from the svn repo, refresh there workspace build and bamm
  everything is setup.
 
   eclipse:eclipse can handle dependencies with other eclipse projects if
  it is
   ran from the top-level project. It will create .classpath  .project
  files
   for all modules and respect inter-projects dependencies
   (see
  *useProjectReferences
 
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#useProjectReferences
  
   *)
  
   Nico.
  
   2007/2/15, gc134728 [EMAIL PROTECTED]:
   
Hey dear maven users,
   
I got a question.  I have one person in our team that updates the
  pom.xmland
creates the .classpath files namely MYSELF.  But i attach sources to
  our
own
project artifacts but i want the other members of our team to get the
attached
sources when they download dependencies so they can view it in
eclipse.  The
problem is they have to execute the eclipse:eclipse
-DdownloadSources=true
command.  And this fucks up some .classpath files cause some projects
  have
special eclipse project dependencies which i have to set manually.
   
My question is how can i download the sources with the eclipse:eclipse
plugin
without the creation of the .project and .classpath file.  Or is there
  an
other way to download the sources?
   
If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.
   
Thx for any assitance.---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400
  euros
http://www.scarlet.be
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
   ---
  Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
  http://www.scarlet.be
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Download Sources

2007-02-15 Thread gc134728
Well it can't because then he resolves to the depencency-maven-plugin from the
codehaus. which causes a problem because it doesn't contain the sources goal.

Can't seem to fix this? any ideas ?

 You shouldn't need to configure anything in the pom, just do mvn
 dependency:sources

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

 ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Download Sources

2007-02-15 Thread gc134728
Thx that seems to fix the resolving issue.

But it doesn't help with the downloading of the sources.
The command succeeds but doesn't download one source package any ideas ???
I think it isn't fully functional this plugin.
It seems to be in alpha status.

 Try -cpu or a -U option with that, maybe that'll trigger the download
 of the maven version.

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

 ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



How to use DotUml Plugin

2007-01-18 Thread gc134728
Hey Maven User,

Does anyone have a sample configuration for the use of the
maven-dotuml-plugin found on sourceforge?
The docs are still for the maven 1 version of the plugin.

I tried it with the maven 2 version and got this error:

java.lang.NullPointerException
at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:198)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1216)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:982)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
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)


My confguration is this:
...
plugin
  groupIdmaven-plugins/groupId
  artifactIdmaven-dotuml-plugin/artifactId
  version1.0/version
  executions
execution
  phasegenerate-resources/phase
  goalsgoalgenerate/goal/goals
/execution
  /executions
  configuration
destdir${maven.build.dir}/destdir
  /configuration
/plugin
...

Thx for any assitance
The Y---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re:maven-source-plugin and [WARNING] Removing: jar from forked lifecycle,to prevent recursive invocation.

2007-01-08 Thread gc134728
Hey,

I don't really know the answer to your question but you can also use the
property -DperformRelease=true.

Then javadoc  sourcejar are generated for you.  It saves you the trouble of
declaring the plugin's in every pom and it only generates the jars when you
ask it to. Not on every build. Saves in compile time.

 I've configured the maven-source-plugin as such:

 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-source-plugin/artifactId
   version2.0.1/version
   executions
   execution
   !-- To deploy the sources automatically --
   goals
   goaljar/goal
   goaltest-jar/goal
   /goals
   /execution
   /executions
 /plugin

 so now the sources are packaged during the package phase
 (and I don't need to manually call mvn source:jar),
 however I consistently get this warning:

 [INFO] Preparing source:jar
 [WARNING] Removing: jar from forked lifecycle, to prevent recursive
 invocation.

 Why do I get this warning and is it dangerous?

 --
 With kind regards,
 Geoffrey De Smet


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

 ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Site generation on a parent level

2007-01-08 Thread gc134728
Dear Maven Users,

Does anyone know a good way to set up the site generation on a parent level?
I would like to have all reports of the individual modules changed moved to
the target directory of the parent project so that all information together
will be together and not on a module level.

Any ideas ?

Thx, for you help.---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re:Maven2 eclipse:eclipse warning

2006-12-21 Thread gc134728

romdti [EMAIL PROTECTED]

[EMAIL PROTECTED]

Cc

DateThu, 21 Dec 2006 05:48:40 -0800 (PST)

SubjectMaven2 eclipse:eclipse warning




Hey

Just add a plugin reference in the pom or parent pom with the following 
configuration

PLUGIN
...
configuration
downloadSourcesfalse/downloadSources
/configuration
...
/plugin

 Hello,

 I have some warnings when using mvn eclipse:eclipse command:

 [INFO]
 Sources for some artifacts are not available.
 Please run the same goal with the -DdownloadSources=true parameter in
 order to check remote repositories for sources
 List of artifacts without a source archive:
 o junit:junit:4.1
 o javax.persistence:persistence-api:1.0
 o javax.ejb:ejb:3.0

 I read that the option maven.eclipse.src.download=false can be used to
 remove the message, but I'm not able to find where to set this option.

 Can somebody help me?

 Thanks for advance.

 PS: I don't want to use -DdownloadSources=true paramter.

 didier.

 --
 View this message in context: 
 http://www.nabble.com/Maven2-eclipse%3Aeclipse-warning-tf2865619s177.html#a8008096
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be