CA certificate issue while deploying via DAV

2011-07-12 Thread Daniele Dellafiore
Hi.

maven 3.0.3, ubuntu linux 11.04 with both OpenJDK and Oracle JDK 6

Launching a mvn deploly on a dav:https repository gives me this:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on
project pipelean.sdk: Failed to retrieve remote metadata
com.pipelean.sdk:pipelean.sdk:0.1.0-SNAPSHOT/maven-metadata.xml: Could not
transfer metadata
com.pipelean.sdk:pipelean.sdk:0.1.0-SNAPSHOT/maven-metadata.xml from/to
cloudbees-private-snapshot-repository (dav:
https://repository-pipelean.forge.cloudbees.com/snapshot):
sun.security.validator.ValidatorException: PKIX path validation failed:
java.security.cert.CertPathValidatorException: CA key usage check failed:
keyCertSign bit is not set

Here's the template settings.xml I'm using
https://cloudbees.zendesk.com/attachments/token/rmg04yx4dm2o6x8/?name=settings.xml

found on this instructions page:
https://cloudbees.zendesk.com/entries/252254-cloudbees-private-maven-repository-howto

And the distribution repository is configured like:

snapshotRepository
  idcloudbees-private-snapshot-repository/id
  urldav:https://repository-pipelean.forge.cloudbees.com/snapshot
/url
/snapshotRepository

I'm stuck here, no idea on how to proceed. I hope someone got some helpful
advice.

Thanks.



-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: CA certificate issue while deploying via DAV

2011-07-12 Thread Daniele Dellafiore
I've read this but I do not understand what to do.. does that fix the
problem for you?

On Tue, Jul 12, 2011 at 10:18 PM, Manos Batsis
manos_li...@geekologue.comwrote:

 For me it was the same as

 http://www.jroller.com/**agileanswers/entry/resolving_**a_ca_key_usagehttp://www.jroller.com/agileanswers/entry/resolving_a_ca_key_usage


 On 07/12/2011 11:05 PM, Daniele Dellafiore wrote:

 Hi.

 maven 3.0.3, ubuntu linux 11.04 with both OpenJDK and Oracle JDK 6

 Launching a mvn deploly on a dav:https repository gives me this:

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:**maven-deploy-plugin:2.6:deploy
 (default-deploy) on
 project pipelean.sdk: Failed to retrieve remote metadata
 com.pipelean.sdk:pipelean.sdk:**0.1.0-SNAPSHOT/maven-metadata.**xml:
 Could not
 transfer metadata
 com.pipelean.sdk:pipelean.sdk:**0.1.0-SNAPSHOT/maven-metadata.**xml
 from/to
 cloudbees-private-snapshot-**repository (dav:
 https://repository-pipelean.**forge.cloudbees.com/snapshothttps://repository-pipelean.forge.cloudbees.com/snapshot
 ):
 sun.security.validator.**ValidatorException: PKIX path validation failed:
 java.security.cert.**CertPathValidatorException: CA key usage check
 failed:
 keyCertSign bit is not set

 Here's the template settings.xml I'm using
 https://cloudbees.zendesk.com/**attachments/token/**
 rmg04yx4dm2o6x8/?name=**settings.xmlhttps://cloudbees.zendesk.com/attachments/token/rmg04yx4dm2o6x8/?name=settings.xml

 found on this instructions page:
 https://cloudbees.zendesk.com/**entries/252254-cloudbees-**
 private-maven-repository-howtohttps://cloudbees.zendesk.com/entries/252254-cloudbees-private-maven-repository-howto

 And the distribution repository is configured like:

 snapshotRepository
   idcloudbees-private-**snapshot-repository/id
   urldav:https://repository-**pipelean.forge.cloudbees.com/**
 snapshot https://repository-pipelean.forge.cloudbees.com/snapshot
 /url
 /snapshotRepository

 I'm stuck here, no idea on how to proceed. I hope someone got some helpful
 advice.

 Thanks.





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




-- 
Daniele Dellafiore
http://danieledellafiore.net


A project uses a resource defined in a module that it does not depends upon

2010-10-19 Thread Daniele Dellafiore
Hi, I have this situation.

Project A and B have many modules. Everyone has a configuration in
which the root pom defines modules and all the dependency management,
all the submodules uses root A pom as parent. Before I used to have a
separate parent project as onother module but in the end did not seem
really necessary.

Module B1 uses some of the modules of A, but not everyone,

now, I expect that if B1 depends on A1 and A2, it will not have any
relation to A3.
But what happens? That B1 see a file in the classpath of A3, to be
precise, spring loads a properties file that is in
A3/src/main/resources, overriding other properties.
In fact, if from A pom I remove the A3 modulo, the properties file is
not loaded anymore.

I suspect that this happen because A1/2/3 all has A as parent pom.
But this behavior really seem strange to me.

-- 
Daniele Dellafiore
http://danieledellafiore.net

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



can clean plugin clean also local repository?

2010-10-18 Thread Daniele Dellafiore
Hi.

It happens sometimes that something that should be broken in the build
continue to work because use a old dependency in the repository. Btw
works at half, but does not broke for the right reason or does not
broke at all when it should.
It happens for example after a refactoring of the modules, moving one
module from one project to another.

It should be nice to tell mvn clean plugin to clean the local
reposotory as well. What do you think? There is a way to do this? If
not, is a patch for it interesting?

-- 
Daniele Dellafiore
http://danieledellafiore.net

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



compile failure warning and build succesfull?

2010-09-13 Thread Daniele Dellafiore
Hi.

For the first time in years, I am shocked seeing a maven behavior:

[WARNING]
/contacts-client-rest/src/main/java/commons/rest/client/ContactsClient.java:[17,42]
cannot find symbol
symbol  : class Profile
location: class commons.rest.client.ContactsClient

[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 

what is that?
How can the build be succesful if the compilations fails?
The trick here was that in Eclipse the build works cause Eclipse does
not honor the maven scope. The symbol maven can't fine here, class
Profile, is in a dep with test scope, so works in Eclipse, but not in
maven.

Actually, I expect the bahavior to be: BUILD FAILURE.

I see something strange here, dont' you?
Anywayt, there, is a way to change that default and make the build
fail if the compilations fails?

Thanks.

-- 
Daniele Dellafiore
http://danieledellafiore.net

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



Re: compile failure warning and build succesfull?

2010-09-13 Thread Daniele Dellafiore
yes it is, but the class with the warning has this method:

   public ContactsServerResponse register(Profile profile) {

and the corresponding import

import lavazza.commons.profiles.core.domain.Profile;

if the import is not found, the class just does not compile, and the
project is not really compiled (that is, the .class aren't put in the
target folder) and no test is even run.

Now, I should have noticed the warning but I would prefer that this
kind of situations, when the project is not being compiled at all,
give an error and the build a failure.
Maybe is a javac settings, I just need it to be fatal for my build.

I had build and hudson working with no errors with this for two week.
This is not fine.

On Mon, Sep 13, 2010 at 7:50 PM, Joao Maciel joaomac...@gmail.com wrote:
 Well, it seems to be a compilation warning, not a compilation error, in'it?

 On Mon, Sep 13, 2010 at 2:05 PM, Daniele Dellafiore ilde...@gmail.comwrote:

 Hi.

 For the first time in years, I am shocked seeing a maven behavior:

 [WARNING]
  /contacts-client-rest/src/main/java/commons/rest/client/ContactsClient.java:[17,42]
 cannot find symbol
 symbol  : class Profile
 location: class commons.rest.client.ContactsClient

 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 

 what is that?
 How can the build be succesful if the compilations fails?
 The trick here was that in Eclipse the build works cause Eclipse does
 not honor the maven scope. The symbol maven can't fine here, class
 Profile, is in a dep with test scope, so works in Eclipse, but not in
 maven.

 Actually, I expect the bahavior to be: BUILD FAILURE.

 I see something strange here, dont' you?
 Anywayt, there, is a way to change that default and make the build
 fail if the compilations fails?

 Thanks.

 --
 Daniele Dellafiore
 http://danieledellafiore.net

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






-- 
Daniele Dellafiore
http://danieledellafiore.net

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



Re: [maven-release-plugin] problem with a multi-module project, perform phase

2010-06-22 Thread Daniele Dellafiore
I fixed the last problem removing myProject inheritance from the company
pom.

Now I am stucked cause the release plugin is deploying the source artifact
two times and the second time Nexus give me a 400 cause it does not allow to
overwrite an artifact in the release repository, and it's right.

It install and then deploy the sources artifact two times.

Here is the execution for the source-plugin

  execution
idattach-sources/id
goals
  goaljar-no-fork/goal
/goals
  /execution

And here is the log

[INFO] [INFO] [install:install {execution: default-install}]
[INFO] [INFO] Installing ..lcore-1.0.jar to ../lcore-1.0.jar
[INFO] [INFO] Installing ..lcore-1.0-sources.jar to ..lcore-1.0-sources.jar
[INFO] [INFO] Installing ..lcore-1.0-sources.jar to ..lcore-1.0-sources.jar
[INFO] [INFO] Installing ..lcore-1.0-javadoc.jar to ..lcore-1.0-javadoc.jar
[INFO] [INFO] [deploy:deploy {execution: default-deploy}]
[INFO] Uploading:
http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0.jar
[INFO] 4/70K
[INFO] 8/70K
...
[INFO] 70/70K
[INFO] 70K uploaded  (lcore-1.0.jar)
[INFO] [INFO] Retrieving previous metadata from releases.company.it
[INFO] [INFO] repository metadata for: 'artifact lavazza.eshop:lcore' could
not be found on repository: releases.iconmedialab.it, so will be created
[INFO] [INFO] Uploading repository metadata for: 'artifact
lavazza.eshop:lcore'
[INFO] [INFO] Uploading project information for lcore 1.0
[INFO] Uploading:
http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
[INFO] 4/61K
...
[INFO] 61/61K
[INFO] 61K uploaded  (lcore-1.0-sources.jar)
[INFO] Uploading:
http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
[INFO] 4/61K
...
[INFO] 61/61K
[INFO] [INFO]

[INFO] [ERROR] BUILD ERROR
[INFO] [INFO]

[INFO] [INFO] Error deploying artifact: Failed to transfer file:
http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar.
Return code is: 400

-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: [maven-release-plugin] problem with a multi-module project, perform phase

2010-06-22 Thread Daniele Dellafiore
ok, I changed executions goal from jar-no-fork to just jar and it works
I think that m-r-p by default has the attach-sources on the goal jar active
and if I add a jar-no-fork executions, they are summed.
In fact nowhere in my config I tell maven to make javadoc but the release
plugin just make it.

I think this is a little tricky, probably an issue to report, what do you
think?

On Tue, Jun 22, 2010 at 11:26 AM, Daniele Dellafiore ilde...@gmail.comwrote:

 I fixed the last problem removing myProject inheritance from the company
 pom.

 Now I am stucked cause the release plugin is deploying the source artifact
 two times and the second time Nexus give me a 400 cause it does not allow to
 overwrite an artifact in the release repository, and it's right.

 It install and then deploy the sources artifact two times.

 Here is the execution for the source-plugin

   execution
 idattach-sources/id
 goals
   goaljar-no-fork/goal
 /goals
   /execution

 And here is the log

 [INFO] [INFO] [install:install {execution: default-install}]
 [INFO] [INFO] Installing ..lcore-1.0.jar to ../lcore-1.0.jar
 [INFO] [INFO] Installing ..lcore-1.0-sources.jar to ..lcore-1.0-sources.jar
 [INFO] [INFO] Installing ..lcore-1.0-sources.jar to ..lcore-1.0-sources.jar
 [INFO] [INFO] Installing ..lcore-1.0-javadoc.jar to ..lcore-1.0-javadoc.jar
 [INFO] [INFO] [deploy:deploy {execution: default-deploy}]
 [INFO] Uploading:
 http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0.jar
 [INFO] 4/70K
 [INFO] 8/70K
 ...
 [INFO] 70/70K
 [INFO] 70K uploaded  (lcore-1.0.jar)
 [INFO] [INFO] Retrieving previous metadata from releases.company.it
 [INFO] [INFO] repository metadata for: 'artifact lavazza.eshop:lcore' could
 not be found on repository: releases.iconmedialab.it, so will be created
 [INFO] [INFO] Uploading repository metadata for: 'artifact
 lavazza.eshop:lcore'
 [INFO] [INFO] Uploading project information for lcore 1.0
 [INFO] Uploading:
 http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
 [INFO] 4/61K
 ...
 [INFO] 61/61K
 [INFO] 61K uploaded  (lcore-1.0-sources.jar)
 [INFO] Uploading:
 http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
 [INFO] 4/61K
 ...
 [INFO] 61/61K
 [INFO] [INFO]
 
 [INFO] [ERROR] BUILD ERROR
 [INFO] [INFO]
 
 [INFO] [INFO] Error deploying artifact: Failed to transfer file:
 http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar.
 Return code is: 400


 --
 Daniele Dellafiore
 http://danieledellafiore.net




-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: [maven-release-plugin] problem with a multi-module project, perform phase

2010-06-22 Thread Daniele Dellafiore
Ok, the problem here is that if this conflict with existent source and
javadocs generation configuration, it causes the release to fail.

On Tue, Jun 22, 2010 at 11:50 AM, Nick Stolwijk nick.stolw...@gmail.comwrote:

 M-R-P activates a release profile by default, which contains the
 source and javadocs. See [1]

 [1]
 http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#useReleaseProfile

 With regards,

 Nick Stolwijk
 ~Java Developer~

 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl



 On Tue, Jun 22, 2010 at 11:46 AM, Daniele Dellafiore ilde...@gmail.com
 wrote:
  ok, I changed executions goal from jar-no-fork to just jar and it works
  I think that m-r-p by default has the attach-sources on the goal jar
 active
  and if I add a jar-no-fork executions, they are summed.
  In fact nowhere in my config I tell maven to make javadoc but the release
  plugin just make it.
 
  I think this is a little tricky, probably an issue to report, what do you
  think?
 
  On Tue, Jun 22, 2010 at 11:26 AM, Daniele Dellafiore ilde...@gmail.com
 wrote:
 
  I fixed the last problem removing myProject inheritance from the company
  pom.
 
  Now I am stucked cause the release plugin is deploying the source
 artifact
  two times and the second time Nexus give me a 400 cause it does not
 allow to
  overwrite an artifact in the release repository, and it's right.
 
  It install and then deploy the sources artifact two times.
 
  Here is the execution for the source-plugin
 
execution
  idattach-sources/id
  goals
goaljar-no-fork/goal
  /goals
/execution
 
  And here is the log
 
  [INFO] [INFO] [install:install {execution: default-install}]
  [INFO] [INFO] Installing ..lcore-1.0.jar to ../lcore-1.0.jar
  [INFO] [INFO] Installing ..lcore-1.0-sources.jar to
 ..lcore-1.0-sources.jar
  [INFO] [INFO] Installing ..lcore-1.0-sources.jar to
 ..lcore-1.0-sources.jar
  [INFO] [INFO] Installing ..lcore-1.0-javadoc.jar to
 ..lcore-1.0-javadoc.jar
  [INFO] [INFO] [deploy:deploy {execution: default-deploy}]
  [INFO] Uploading:
 
 http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0.jar
  [INFO] 4/70K
  [INFO] 8/70K
  ...
  [INFO] 70/70K
  [INFO] 70K uploaded  (lcore-1.0.jar)
  [INFO] [INFO] Retrieving previous metadata from releases.company.it
  [INFO] [INFO] repository metadata for: 'artifact lavazza.eshop:lcore'
 could
  not be found on repository: releases.iconmedialab.it, so will be
 created
  [INFO] [INFO] Uploading repository metadata for: 'artifact
  lavazza.eshop:lcore'
  [INFO] [INFO] Uploading project information for lcore 1.0
  [INFO] Uploading:
 
 http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
  [INFO] 4/61K
  ...
  [INFO] 61/61K
  [INFO] 61K uploaded  (lcore-1.0-sources.jar)
  [INFO] Uploading:
 
 http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
  [INFO] 4/61K
  ...
  [INFO] 61/61K
  [INFO] [INFO]
  
  [INFO] [ERROR] BUILD ERROR
  [INFO] [INFO]
  
  [INFO] [INFO] Error deploying artifact: Failed to transfer file:
 
 http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
 .
  Return code is: 400
 
 
  --
  Daniele Dellafiore
  http://danieledellafiore.net
 
 
 
 
  --
  Daniele Dellafiore
  http://danieledellafiore.net
 

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




-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: maven-eclipse-plugin and POM packaging projects

2010-06-17 Thread Daniele Dellafiore
M2Eclipse does some things fine but not all.

Use case:

pom A define a resource folder
I have in eclipse, imported with M2E, project A and B, the latter inherit
from A.

Change the resource folder in A from eclipse, save.
Nothing change in eclipse.

So while changing a dep in the pom make the builder run, changing resourcer
requires maven-eclipse-plugin.

Or maybe I am making something wrong.

On Wed, Jun 16, 2010 at 9:18 PM, Wayne Fay wayne...@gmail.com wrote:

  Actually, m-e-p does not create any .project while M2Eclipse import both
 of
  them... and the multi-module is useless and I will just delete it.

 IMO you are better off just switching over to m2eclipse full time
 instead of continuing to fight with m-e-p.

 Wayne

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




-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: maven-eclipse-plugin and POM packaging projects

2010-06-16 Thread Daniele Dellafiore
Mixed feeling for me.

MultiModule pom project aren't to be imported as a project, I do agree.
But parent kind of pom project, I would like to see them imported. Problem
is that there is no way in maven to make a distinction.

Actually, m-e-p does not create any .project while M2Eclipse import both of
them... and the multi-module is useless and I will just delete it.

On Wed, Jun 16, 2010 at 5:14 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 On Tue, Jun 15, 2010 at 12:04 PM, Daniele Dellafiore ilde...@gmail.com
 wrote:
  I have patched maven-eclipse-plugin to create an eclipse project also
 for
  projects with pom packaging type.
  I was wondering if this was a bug or a feature and if someone is
 interested
  in the plugin behaving this way other than me.

 I am glad the pom packaging projects don't generate .project files
 anymore. It was a drag with importing multimodule projects in eclipse.
 Far more easy to get all non-pom projects in one go, and just add the
 three pom type projects.

 My €0.02 (which isn't that much worth nowadays)

 Martijn

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




-- 
Daniele Dellafiore
http://danieledellafiore.net


maven-eclipse-plugin and POM packaging projects

2010-06-15 Thread Daniele Dellafiore
Hi everyone.

I have patched maven-eclipse-plugin to create an eclipse project also for
projects with pom packaging type.
I was wondering if this was a bug or a feature and if someone is interested
in the plugin behaving this way other than me.

In case, I can work on it and submit a patch.

I would also like to share with you my thoughts about the pom packaging:
basically I think that pom is misleading, because you can make
multi-module and use it for inheritance and developers are confused. I think
that a best practice is to avoid that a multi-module is also inherited by
others and that having different keywords for packaging type should be
better. Something like multi-module and abstract.

What do you think?

-- 
Daniele Dellafiore
http://danieledellafiore.net


cobertura and build-helper-maven-plugin problems

2009-11-07 Thread Daniele Dellafiore
Hi.

Take a project that has mvn test is succesfull.
Then I run mvn site, with cobertura reporting.
I have a compilation problem. In pom I configured an additional test
source folder (src/test/functional) with some dependencies (htmlunit).

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
version1.1/version
executions
   execution
  idadd-test-source/id
  phasegenerate-test-sources/phase
  goals
 goaladd-source/goal
  /goals
  configuration
 sources
sourcesrc/test/functional/source
 /sources
  /configuration
   /execution
/executions
 /plugin

Here the log starting form the end of tests (i removed complete folder
path for privacy).
It seems that cobertura does not use dependencies with scope test
(junit, htmlunit) even if the folder is added, using
build-helper-maven-plugin, as a test source folder

=

Tests run: 64, Failures: 0, Errors: 0, Skipped: 2

Cobertura: Loaded information on 135 classes.
Cobertura: Saved information on 135 classes.
[INFO] Preparing surefire-report:report
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding
UTF-8, i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 5 resources to contents
[INFO] Copying 4 resources
[INFO] Copying 40 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 2 source files to
/home/ildella/projects/work/citigroup/newsautomation/target/generated-classes/cobertura
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Compilation failure

/home/ildella/.../src/test/functional/presentation/WebFunctionalTest.java:[6,36]
package com.gargoylesoftware.htmlunit does not exist

[other similar error...]

/home/ildella/../src/test/functional/presentation/WebFunctionalTest.java:[15,13]
cannot find symbol
symbol  : class HtmlPage
location: class presentation.WebFunctionalTest

[other similar error...]

/home/ildella/../src/test/functional/presentation/NewsAutomFunctionalTest.java:[6,16]
package org.junit does not exist

[other similar error...]

[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 25 seconds
[INFO] Finished at: Sat Nov 07 17:09:40 CET 2009
[INFO] Final Memory: 34M/508M
[INFO] 





-- 
Daniele Dellafiore
http://danieledellafiore.net

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



Re: cobertura and build-helper-maven-plugin problems

2009-11-07 Thread Daniele Dellafiore
I am sorry, just change:

 goaladd-source/goal

with

 goaladd-test-source/goal

and works, btw, I already tried it but made some confusion between two pom...
Now works, but eclipse:eclipse does not generate a source folder accordingly...

On Sat, Nov 7, 2009 at 5:16 PM, Daniele Dellafiore ilde...@gmail.com wrote:
 Hi.

 Take a project that has mvn test is succesfull.
 Then I run mvn site, with cobertura reporting.
 I have a compilation problem. In pom I configured an additional test
 source folder (src/test/functional) with some dependencies (htmlunit).

 plugin
            groupIdorg.codehaus.mojo/groupId
            artifactIdbuild-helper-maven-plugin/artifactId
            version1.1/version
            executions
               execution
                  idadd-test-source/id
                  phasegenerate-test-sources/phase
                  goals
                     goaladd-source/goal
                  /goals
                  configuration
                     sources
                        sourcesrc/test/functional/source
                     /sources
                  /configuration
               /execution
            /executions
         /plugin

 Here the log starting form the end of tests (i removed complete folder
 path for privacy).
 It seems that cobertura does not use dependencies with scope test
 (junit, htmlunit) even if the folder is added, using
 build-helper-maven-plugin, as a test source folder

 =

 Tests run: 64, Failures: 0, Errors: 0, Skipped: 2

 Cobertura: Loaded information on 135 classes.
 Cobertura: Saved information on 135 classes.
 [INFO] Preparing surefire-report:report
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] File encoding has not been set, using platform encoding
 UTF-8, i.e. build is platform dependent!
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 5 resources to contents
 [INFO] Copying 4 resources
 [INFO] Copying 40 resources
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Compiling 2 source files to
 /home/ildella/projects/work/citigroup/newsautomation/target/generated-classes/cobertura
 [INFO] 
 
 [ERROR] BUILD FAILURE
 [INFO] 
 
 [INFO] Compilation failure

 /home/ildella/.../src/test/functional/presentation/WebFunctionalTest.java:[6,36]
 package com.gargoylesoftware.htmlunit does not exist

 [other similar error...]

 /home/ildella/../src/test/functional/presentation/WebFunctionalTest.java:[15,13]
 cannot find symbol
 symbol  : class HtmlPage
 location: class presentation.WebFunctionalTest

 [other similar error...]

 /home/ildella/../src/test/functional/presentation/NewsAutomFunctionalTest.java:[6,16]
 package org.junit does not exist

 [other similar error...]

 [INFO] 
 
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
 
 [INFO] Total time: 25 seconds
 [INFO] Finished at: Sat Nov 07 17:09:40 CET 2009
 [INFO] Final Memory: 34M/508M
 [INFO] 
 





 --
 Daniele Dellafiore
 http://danieledellafiore.net




-- 
Daniele Dellafiore
http://danieledellafiore.net

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



include resource changing the path

2009-11-04 Thread Daniele Dellafiore
Hi everyone.

I have this resource:

resource
directorysrc/main/contents/directory
includes
   include${runtime}/**/include
/includes
targetPathcontents/targetPath
/resource

let's suppose that ${runtime} has this value: stage.
The result is that I have the src/main/contents/stage files copied into
WEB-INF/classes/contents/stage.
What I would like to achieve is that those files are copied info
WEB-INF/classes/contents/ without stage.
This would save me to know in many part of the code, what is the actual
value of runtime and I can provide different version of same application
with different resources (text, images, everything).

Any idea?

Thanks.

-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: include resource changing the path

2009-11-04 Thread Daniele Dellafiore
I also see a strange behavior that tells me I am missing something:

with the configuration I described, I have my contents put in:

WEB-INF/classes/contents/stage

The same result I have if I put them in
src/main/webapp/contents/stage

without any additional configuration or targetPath, of course.

Well, with the first configuration, images are *not* found. With the second
one, they are. This while the target folder is the same in both cases. Maybe
I have to dig in war plugin and war resources to understand this...

On Wed, Nov 4, 2009 at 12:32 PM, Daniele Dellafiore ilde...@gmail.comwrote:

 Hi everyone.

 I have this resource:

 resource
 directorysrc/main/contents/directory
 includes
include${runtime}/**/include
 /includes
 targetPathcontents/targetPath
 /resource

 let's suppose that ${runtime} has this value: stage.
 The result is that I have the src/main/contents/stage files copied into
 WEB-INF/classes/contents/stage.
 What I would like to achieve is that those files are copied info
 WEB-INF/classes/contents/ without stage.
 This would save me to know in many part of the code, what is the actual
 value of runtime and I can provide different version of same application
 with different resources (text, images, everything).

 Any idea?

 Thanks.

 --
 Daniele Dellafiore
 http://danieledellafiore.net




-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: include resource changing the path

2009-11-04 Thread Daniele Dellafiore
On Wed, Nov 4, 2009 at 12:54 PM, Daniele Dellafiore ilde...@gmail.comwrote:

 I also see a strange behavior that tells me I am missing something:

 with the configuration I described, I have my contents put in:


 WEB-INF/classes/contents/stage

 The same result I have if I put them in
 src/main/webapp/contents/stage

 without any additional configuration or targetPath, of course.

 Well, with the first configuration, images are *not* found. With the second
 one, they are. This while the target folder is the same in both cases. Maybe
 I have to dig in war plugin and war resources to understand this...



in fact adding

 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration
   webResources
  resource
 !--  this is relative to the
pom.xml directory --
 directorysrc/main/contents/directory
 !--  the list has a default value
of ** --
 includes
include${runtime}/*.jpg/include
 /includes
 targetPathcontents/targetPath
  /resource
   /webResources
/configuration
 /plugin

the resources are used.
Unfortunately in mnv jetty:run I do not see the jpg included cause the
static source remains just src/main/webapp even configuring webapp for
multiple static source like explained here:
http://docs.codehaus.org/display/JETTY/Multiple+WebApp+Source+Directory

I add:

webAppConfig
  contextPath//contextPath
  baseResource
implementation=org.mortbay.resource.ResourceCollection

resourcesAsCSVsrc/main/webapp,src/main/contents/resourcesAsCSV
  /baseResource
/webAppConfig

but images in src/main/contents/stage is not displayed pointing to
http://localhost:9090/contents/stage/pic.jpg
while it works if I run mvn jetty:run-war


-- 
Daniele Dellafiore
http://danieledellafiore.net


[cobertura] do not publish source code

2009-10-23 Thread Daniele Dellafiore
Hi everyone.

I want to publish code coverage for my project on a public site but
some projects are not open source. How can I avoid cobertura to
publish the source code for each class leaving all the coverage
reports?

Thanks..

-- 
Daniele Dellafiore
http://ildella.net
http://twitter.com/ildella

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



Re: eclipse plugin 2.7: link project instead of repository jar

2009-06-18 Thread Daniele Dellafiore
this is exactly what I understood.

I have, in the same folder, two projects, A and B. A uses B as dependancy.
I expect that when I mvn eclipse:eclipse A it uses B as a link, in eclipse,
rather than pointing to the jar in M2 repo.

This is actually not happening

For both projects, the name of the folder is the same of the artifact id and
of the eclipse project.
Both have 2.7 version of plugin specified in the pom and both eclipse
projects are built from maven.

So, I am wondering what I am missing...

On Thu, Jun 18, 2009 at 8:40 AM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 This is not the functionality I described. What you describe already
 works in 2.5, as it is the multimodule functionality. What I described
 is that you can check out Wicket into your workspace, and start
 hacking on your own Wicket application, where the
 maven-eclipse-plugin:2.7 will find the wicket projects and link them
 as a project instead of a jar dependency.

 i.e.:

 workspace/wicket/wicket
 workspace/wicket/wicket-extensions
 workspace/wicket/wicket-spring
 workspace/mywicketapp

 This become workspace projects like:

 wicket
 wicket-extensions
 wicket-spring
 mywicketapp

 and if mywicketapp depends on wicket and wicket-spring, those will
 become project dependencies instead of jar dependencies. No need for a
 single parent, no need for a root pom to get this to work.

 Martijn

 On Wed, Jun 17, 2009 at 10:35 PM, Jim Sellersjim.sell...@gmail.com
 wrote:
  I've found that it only works if your other projects:
  1) have the same parent and you run the maven command from the parent
 
  2) the other project is at the top level of your workspace.  e.g.
  MyWonderfulProject
  \ pom.xml
 
  MyMasterLib
  \ pom
  \ MySubModuleLib
   \ pom.xml
 
  From MyWonderfulProject, if you have a dependency on MySubModuleLib, it
  doesn't seem to link it.  If you like to MyMaterLib, it would.
 
  HTH
  Jim
 
 
  On Wed, Jun 17, 2009 at 12:25 PM, Daniele Dellafiore ilde...@gmail.com
 wrote:
 
  Hi everyone.
 
  I read here:
 
 http://martijndashorst.com/blog/2009/05/29/maven-eclipse-plugin-woes-fixed/
 
  that eclipse maven plugin 2.7 has a new feature such as such as
  searching your workspace for projects that are snapshot dependencies,
  and adding a project link instead of a jar dependency..
  How is that supposed to work?
 
  I have a project A that uses B-1.0-SNAPSHOT but the mvn
  eclipse:eclipse still links the jar.
  There is some configuration to do?
 
  thanks!
 
  --
  Daniele Dellafiore
  http://blog.ildella.net
  http://twitter.com/ildella
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 



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

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




-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella


eclipse plugin 2.7: link project instead of repository jar

2009-06-17 Thread Daniele Dellafiore
Hi everyone.

I read here:
http://martijndashorst.com/blog/2009/05/29/maven-eclipse-plugin-woes-fixed/

that eclipse maven plugin 2.7 has a new feature such as such as
searching your workspace for projects that are snapshot dependencies,
and adding a project link instead of a jar dependency..
How is that supposed to work?

I have a project A that uses B-1.0-SNAPSHOT but the mvn
eclipse:eclipse still links the jar.
There is some configuration to do?

thanks!

-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

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



Very long wait during dependency report generation in mvn site

2009-05-25 Thread Daniele Dellafiore
Using mvn 2.1.0 (but also with previous release) the site target last
minutes, I mean 10-15 minutes in this point:

[INFO] Generating Dependencies report.
[WARNING] The repository url
'http://s3.amazonaws.com/maven.springframework.org/release' is invalid
- Repository 'spring-release' will be blacklisted.
[WARNING] The repository url
'http://s3.amazonaws.com/maven.springframework.org/external' is
invalid - Repository 'spring-external' will be blacklisted.
[INFO] Generating Project Plugins report.

The most if the time is after the second WARNING and before Genearting
Project Plugins.
For sure some time is spent waiting for the timeout for the repository but:

1. how long is the timeout? I expect 60secs most. Is it configurable?
2. maven say that now the repo is blacklisted but will check again at
the next build.

Any advice?

-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

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



[maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Daniele Dellafiore
Hi all.

Hi have this issue: every time I run mvn eclipse:eclipse the .settings
folder of the project is cleaned and I lose my project specific
compiler settings. I would like to keep them or at least be able to
define them in the POM.

What solution do you suggest? I have not found any on the web...

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Daniele Dellafiore
That is easy, I am talking about all the others:

org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.autoboxing=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled

and so on...

On Wed, Mar 4, 2009 at 3:13 PM, Todd Thiessen thies...@nortel.com wrote:
 maven-compiler-plugin

      plugin
        artifactIdmaven-compiler-plugin/artifactId
        configuration
          source1.5/source
          target1.5/target
        /configuration
      /plugin

 ---
 Todd Thiessen


 -Original Message-
 From: Daniele Dellafiore [mailto:ilde...@gmail.com]
 Sent: Wednesday, March 04, 2009 9:10 AM
 To: Maven Users List
 Subject: [maven-eclipse-plugin] Define compiler options in POM

 Hi all.

 Hi have this issue: every time I run mvn eclipse:eclipse the
 .settings folder of the project is cleaned and I lose my
 project specific compiler settings. I would like to keep them
 or at least be able to define them in the POM.

 What solution do you suggest? I have not found any on the web...

 --
 Daniele Dellafiore
 http://blog.ildella.net/

 -
 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





-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: [maven-eclipse-plugin] Define compiler options in POM

2009-03-04 Thread Daniele Dellafiore
On Wed, Mar 4, 2009 at 3:24 PM, Todd Thiessen thies...@nortel.com wrote:
 I don't know if the plugin can do that. Have you tried passing in specific 
 compiler arguments in the configuration of the plugin?

I have no idea on how to do this...

 I use workspace settings to do what you are asking but I am curious if the 
 compiler plugin could do this at the project level too.

yep, but to avoid reconfigure every machine on every new change, the
best solution is to share in svn b y sharing eclipse .settings
folders.
Unfortunately, there is no options to avoid m-e-p to ignore the settings...


 ---
 Todd Thiessen


 -Original Message-
 From: Daniele Dellafiore [mailto:ilde...@gmail.com]
 Sent: Wednesday, March 04, 2009 9:19 AM
 To: Maven Users List
 Subject: Re: [maven-eclipse-plugin] Define compiler options in POM

 That is easy, I am talking about all the others:

 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
 org.eclipse.jdt.core.compiler.problem.autoboxing=warning
 org.eclipse.jdt.core.compiler.problem.deprecation=warning
 org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedC
 ode=disabled

 and so on...

 On Wed, Mar 4, 2009 at 3:13 PM, Todd Thiessen
 thies...@nortel.com wrote:
  maven-compiler-plugin
 
       plugin
         artifactIdmaven-compiler-plugin/artifactId
         configuration
           source1.5/source
           target1.5/target
         /configuration
       /plugin
 
  ---
  Todd Thiessen
 
 
  -Original Message-
  From: Daniele Dellafiore [mailto:ilde...@gmail.com]
  Sent: Wednesday, March 04, 2009 9:10 AM
  To: Maven Users List
  Subject: [maven-eclipse-plugin] Define compiler options in POM
 
  Hi all.
 
  Hi have this issue: every time I run mvn eclipse:eclipse the
  .settings folder of the project is cleaned and I lose my project
  specific compiler settings. I would like to keep them or
 at least be
  able to define them in the POM.
 
  What solution do you suggest? I have not found any on the web...
 
  --
  Daniele Dellafiore
  http://blog.ildella.net/
 
 
 -
  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
 
 



 --
 Daniele Dellafiore
 http://blog.ildella.net/

 -
 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





-- 
Daniele Dellafiore
http://blog.ildella.net/

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



override resource inclusion

2009-01-02 Thread Daniele Dellafiore
Hi all.

I have defined a resource this way:

resource
filteringtrue/filtering
directorysrc/main/resources/directory
includes
include*.xml/include
include**/*.properties/include
include**/*.jpg/include
include**/*.png/include
include**/*.js/include
include**/*.html/include
/includes
/resource


And I have this profile:

profile
idstage/id
build
resources
resource

directorysrc/main/resources/directory
excludes

exclude**/*local.properties/exclude
/excludes
/resource
/resources


Well, I expect that the fuile *local.properties would not be copied to
target/classes if I compile with -P stage.
But it is copied.

Anyone knows why?

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



[fitnesse] goal run fails with misterious code 9

2008-07-30 Thread Daniele Dellafiore
When I run fitnesse:run, the build fails with:

[ERROR] BUILD FAILURE
[INFO] 
[INFO] Fitnesse command ended with errors, exit code:9

The log give these informations:

[INFO]task-segment: [fitnesse:run] (aggregator-style)
[INFO] 
[INFO] [fitnesse:run]
[INFO] Found 1 Fitnesse configuration.
[INFO] Call result of the server,Fitnesse
address=http://localhost:8181/PetrolProject.TracciatiSiges
[INFO] Use path
[../target/classes:../target/test-classes:/home/dev2/development/morbegno/petrol/fitnesse/../target/dependency/log4j-1.2.14.jar:/home/dev2/development/morbegno/petrol/fitnesse/../target/dependency/spring-2.5.5.jar

and so on for all dependencies. The folder:

/home/dev2/development/morbegno/petrol/fitnesse/../target/dependency/

is resolved rightly and contains all updated dependency (i have
configured dependency plugin)

On fitnesse server, I have this classpath:

!path ../target/classes
!path ../target/test-classes
!path ../target/dependency/*.jar

and it works on fitnesse.

If I configure maven-fitnesse-plugin to use maven as classpath
provider, the error is the same but the classpath does not contains my
classes and test-classes folder.
This is strange, I expect that those folder are included automatically.


Anyway, anyone knows what is error code 9? Is related to missing
classes as I am guessing?

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: Avoid site plugin to run test phase, run integration-test instead.

2008-07-29 Thread Daniele Dellafiore
Anyone does know anything about this?

The task should be simple: just avoid that site:stage or, say,
tomcat:deploy plugin run the test phase.
I thought about configuring some executions but failed till now...

Any idea?

On Thu, Jul 17, 2008 at 5:06 PM, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 Hi.

 I would like to avoid site plugin to launch test with any target and
 run the integration-test phase instead.

 right now, if I run mvn site:stage the reports (cobertura, jdepend...)
 runs and after I have this output:

 [INFO] [resources:testResources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:testCompile]
 [INFO] Compiling 1 source file to
 /home/dev1/development/morbegno/petrol/target/test-classes
 [INFO] [surefire:test]
 [INFO] Tests are skipped.
 [INFO] [surefire:test {execution: unit-tests}]
 [INFO] Surefire report directory:
 /home/dev1/development/morbegno/petrol/target/surefire-reports

 and then the test starts.
 How can I avoid this?

 In a second instance, I would like to run integration-test phase
 before site:stage target starts its own execution. I have modified
 maven-surefire-plugin and the integration-test phase now runs all the
 test while test runs only what I consider unit test.  So in the site
 report I want to tun all test and integration-test.

 I think I have to add an executions somewhere but I have no good idea about...

 Can anyone help? Thanks.

 --
 Daniele Dellafiore
 http://blog.ildella.net/




-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: Avoid site plugin to run test phase, run integration-test instead.

2008-07-29 Thread Daniele Dellafiore
On Tue, Jul 29, 2008 at 6:32 PM, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 Anyone does know anything about this?

 The task should be simple: just avoid that site:stage or, say,
 tomcat:deploy plugin run the test phase.
 I thought about configuring some executions but failed till now...

 Any idea?

sorry, emails uncomplete.

I am trying something like this, but does not work: no errors and
tests runs anyway.

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
executions
execution
idsite/id
phasetest/phase
goals
goalstage/goal
/goals
configuration

skipTeststrue/skipTests
/configuration
/execution
/executions
/plugin

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Avoid site plugin to run test phase, run integration-test instead.

2008-07-17 Thread Daniele Dellafiore
Hi.

I would like to avoid site plugin to launch test with any target and
run the integration-test phase instead.

right now, if I run mvn site:stage the reports (cobertura, jdepend...)
runs and after I have this output:

[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to
/home/dev1/development/morbegno/petrol/target/test-classes
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [surefire:test {execution: unit-tests}]
[INFO] Surefire report directory:
/home/dev1/development/morbegno/petrol/target/surefire-reports

and then the test starts.
How can I avoid this?

In a second instance, I would like to run integration-test phase
before site:stage target starts its own execution. I have modified
maven-surefire-plugin and the integration-test phase now runs all the
test while test runs only what I consider unit test.  So in the site
report I want to tun all test and integration-test.

I think I have to add an executions somewhere but I have no good idea about...

Can anyone help? Thanks.

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



[tomcat] configure hot redeploy

2008-05-19 Thread Daniele Dellafiore
Hi.

I am not able to find any information about configuring the tomcat
plugin for maven 2 to perform class reloading like I do with jetty
plugin with:

configuration
  scanIntervalSeconds5/scanIntervalSeconds
/configuration

Anyone can help?

Thanks.

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



More than one source folder

2008-02-27 Thread Daniele Dellafiore
Is possible to configure pom to have more than one source folder? How?
And if so, does the eclipse plugin support this?

I am managing a pom for a project with external svn java sources that
are, say, under /vendor/projectX/src
If I specify the external source folder as a resource in pom, eclipse
plugins put that folder in the build path but excludes *.java so it is
of no use and is a workaround.

Thanks.

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: More than one source folder

2008-02-27 Thread Daniele Dellafiore
rock'n'roll! :)

On Wed, Feb 27, 2008 at 8:07 PM, Sebastian Johnck [EMAIL PROTECTED] wrote:
 Check out build-helper plugin

  Here is how I use it

 !--Getting the generated source dir added --
 plugin
 groupIdorg.codehaus.mojo/groupId
 
 artifactIdbuild-helper-maven-plugin/artifactId
 version1.0/version
 executions
 execution
 idadd-source/id
 
 phasegenerate-sources/phase
 goals
 
 goaladd-source/goal
 /goals
 configuration
 sources

  source${basedir}/target/generated-sources/java/source
 /sources
 /configuration
 /execution
 /executions
 /plugin


 --- Daniele Dellafiore [EMAIL PROTECTED] wrote:

   Is possible to configure pom to have more than one
   source folder? How?
   And if so, does the eclipse plugin support this?
  
   I am managing a pom for a project with external svn
   java sources that
   are, say, under /vendor/projectX/src
   If I specify the external source folder as a
   resource in pom, eclipse
   plugins put that folder in the build path but
   excludes *.java so it is
   of no use and is a workaround.
  
   Thanks.
  
   --
   Daniele Dellafiore
   http://blog.ildella.net/
  
  
  -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  




   
 
  Looking for last minute shopping deals?
  Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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





-- 
Daniele Dellafiore
http://blog.ildella.net/

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



[assembly] add all dependency jars to lib folder in a bin assembly

2007-12-13 Thread Daniele Dellafiore
Hi all.

I am trying to accomplish this task. My target is to create a
compressed archive with the jar of my app and all the jars it depends
upon in a subfolder called lib. I am trying to customize the standard
bin descriptor so I have

  configuration
descriptors
  descriptorsrc/assembly/bin.xml/descriptor
/descriptors
 [.]


and the bin.xml file is almost the same than the original. I just added a

includelib/**/include

to include some native libraries I keep in lib folder. But the point
is that of course the jars are handled by maven so I expect there is
some automatic way to put all them in a custom output folder. I am
trying to understand how to do but I am failing.
I think the solutions is somewhere here:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_binaries
but I Cannot figure out how...

Here is the bin.xml, thanks for any help.

assembly
  idbin/id
  formats
formattar.gz/format
  /formats
  moduleSets
moduleSet
  binaries
includeDependenciestrue/includeDependencies
outputDirectorylib/outputDirectory
  /binaries
/moduleSet
  /moduleSets
  fileSets
fileSet
  includes
includeREADME*/include
includeLICENSE*/include
includeNOTICE*/include
includelib/**/include
  /includes
/fileSet
fileSet
  directorytarget/directory
  outputDirectory/outputDirectory
  includes
include*.jar/include
  /includes
/fileSet
  /fileSets
/assembly

-- 
Daniele Dellafiore
http://ildella.wordpress.com/

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



Re: [assembly] add all dependency jars to lib folder in a bin assembly

2007-12-13 Thread Daniele Dellafiore
it works!
The only problem is that include the main artifact in lib folder. I
just want the dependencies jars.
Now I have:

  dependencySets
   dependencySet
   outputDirectory/lib/outputDirectory
   unpackfalse/unpack
   scoperuntime/scope
   excludes
 excludearte*/exclude
   /excludes
   /dependencySet
  /dependencySets

where arte-0.1.jar and arte is the name of the artifact I am
assembling is the name of the project artifact. Even with this,
arte-0.1.jar is in lib folder... any ideas?

On Dec 13, 2007 1:19 PM, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 Hi all.

 I am trying to accomplish this task. My target is to create a
 compressed archive with the jar of my app and all the jars it depends
 upon in a subfolder called lib. I am trying to customize the standard
 bin descriptor so I have

   configuration
 descriptors
   descriptorsrc/assembly/bin.xml/descriptor
 /descriptors
  [.]


 and the bin.xml file is almost the same than the original. I just added a

 includelib/**/include

 to include some native libraries I keep in lib folder. But the point
 is that of course the jars are handled by maven so I expect there is
 some automatic way to put all them in a custom output folder. I am
 trying to understand how to do but I am failing.
 I think the solutions is somewhere here:
 http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_binaries
 but I Cannot figure out how...

 Here is the bin.xml, thanks for any help.

 assembly
   idbin/id
   formats
 formattar.gz/format
   /formats
   moduleSets
 moduleSet
   binaries
 includeDependenciestrue/includeDependencies
 outputDirectorylib/outputDirectory
   /binaries
 /moduleSet
   /moduleSets
   fileSets
 fileSet
   includes
 includeREADME*/include
 includeLICENSE*/include
 includeNOTICE*/include
 includelib/**/include
   /includes
 /fileSet
 fileSet
   directorytarget/directory
   outputDirectory/outputDirectory
   includes
 include*.jar/include
   /includes
 /fileSet
   /fileSets
 /assembly

 --
 Daniele Dellafiore
 http://ildella.wordpress.com/




-- 
Daniele Dellafiore
http://ildella.wordpress.com/

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



Some advice needed on native lib inclusion

2007-12-04 Thread Daniele Dellafiore
hi. I am developing an app that uses JOGL (Java OpenGL Binding) that
has many native jars.
There is no artifact on any repository. What I want to do his:

1. create a pom for jogl artifact and put it on a repo.
That is, using maven for distribution (not for building) to have an
artifact on a repo, with the correct dependencies.
2. Use jogl in my project, so that I can make a distribution for any
operating system from maven or from some shell script that uses maven.

Let's start with my solutions:

1. I already created a basic pom with all information needed to upload
jogl to java.net maven2 repo and it seems to work (still waiting for
authorization to upload artifact there).
The problem here is that jogl.jar is the same for all platform, what
changes are the binaries. jogl project provides a zip for webstart
that contains jogl.jar and all the various jogl-natives packages, in
jar format.

What I think is that I can deploy jogl.jar and then a single artifact
for each native jar that has jogl.jar as a dependencies.
In this case I need a single pom for jogl and a pom for each native
platform. The result is a different artifact deployed for every
platform.
A developer than can depend on a single native-jar and will get all
the jogl.jar files.

There is a issue here. I need that the native files, dll or so or
whatever, are un-jarred in order to be used outside a webstart
application. Any chance to make this with maven without using some ant
task?

2. BTW, many developers will need to package it's application for
different platform. In order to accomplish this, I think a way should
be:
. make different profile for different supported platforms
. make a script that run mvn package -P target-platform every time
that is needed to get all the distribution package with just one
command.

For what concern webstart, codehaus is working on a plugin and native
liberies are supported in the development version that eventually will
bocome 1.0 alpha2 so I will wait for a release.

Thanks for reading, I wait for any advice!

-- 
Daniele Dellafiore
http://ildella.wordpress.com/

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



Re: Some advice needed on native lib inclusion

2007-12-04 Thread Daniele Dellafiore
Well I made something:

http://download.java.net/maven/2/net/java/dev/jogl/

what do you think?

Just remains to see how  to explode the jar, I think I can make that
job in the start script, native-lib are needed just at runtime.

On Dec 4, 2007 5:39 PM, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 hi. I am developing an app that uses JOGL (Java OpenGL Binding) that
 has many native jars.
 There is no artifact on any repository. What I want to do his:

 1. create a pom for jogl artifact and put it on a repo.
 That is, using maven for distribution (not for building) to have an
 artifact on a repo, with the correct dependencies.
 2. Use jogl in my project, so that I can make a distribution for any
 operating system from maven or from some shell script that uses maven.

 Let's start with my solutions:

 1. I already created a basic pom with all information needed to upload
 jogl to java.net maven2 repo and it seems to work (still waiting for
 authorization to upload artifact there).
 The problem here is that jogl.jar is the same for all platform, what
 changes are the binaries. jogl project provides a zip for webstart
 that contains jogl.jar and all the various jogl-natives packages, in
 jar format.

 What I think is that I can deploy jogl.jar and then a single artifact
 for each native jar that has jogl.jar as a dependencies.
 In this case I need a single pom for jogl and a pom for each native
 platform. The result is a different artifact deployed for every
 platform.
 A developer than can depend on a single native-jar and will get all
 the jogl.jar files.

 There is a issue here. I need that the native files, dll or so or
 whatever, are un-jarred in order to be used outside a webstart
 application. Any chance to make this with maven without using some ant
 task?

 2. BTW, many developers will need to package it's application for
 different platform. In order to accomplish this, I think a way should
 be:
 . make different profile for different supported platforms
 . make a script that run mvn package -P target-platform every time
 that is needed to get all the distribution package with just one
 command.

 For what concern webstart, codehaus is working on a plugin and native
 liberies are supported in the development version that eventually will
 bocome 1.0 alpha2 so I will wait for a release.

 Thanks for reading, I wait for any advice!

 --
 Daniele Dellafiore
 http://ildella.wordpress.com/




-- 
Daniele Dellafiore
http://ildella.wordpress.com/

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



Re: Cannot download parent pom from specified remote repository

2007-07-16 Thread Daniele Dellafiore

On 7/11/07, Rémy Sanlaville [EMAIL PROTECTED] wrote:


 Ok, I have added this and works.


Happy to see that it works :-)


Yesm it works but is not a suitable solution. I explain you why...



I still have one question unresolved:
 why to download artifact defined as dependency from my company repo I
 just need to add the repository in my pom (or in settings.xml) while
 when the artifact to download is the parent project I need to specify
 the mirror?


It's difficult to give an answer. I need to know your configuration
(configuration of your
maven 2 proxy, your parent pom...).


My company repo is *not* a mirror :|
So if I left it specified as a mirror in settings.xml, I am no more
able to download from official repo!
So is not possible to let it.


I think that in your parent pom you define some repositories which are used
to found your dependencies. But for the parent pom you need to specify where
to found it.


in both parent pom and project pom I define my company repo as
distribution server and as repository:

distributionManagement
repository
idsourcesense/id

urldav:https://dev.sourcesense.com/repos/dev/maven2/url
/repository
/distributionManagement

repositories
repository
idsourcesense/id

urldav:https://dev.sourcesense.com/repos/dev/maven2/url
/repository
/repositories

Maybe a issue related to dav?

I remember you the log, as you can see maven does not even try to
download the parent pom from my company repo, goes directly on repo1.
After he said he had tried, but we know this is not true.

I am thinking this is a issue, maybe just of dav plugin, maybe of maven.

[INFO] Scanning for projects...
Downloading: 
http://repo1.maven.org/maven2/com/sourcesense/alfresco/alfresco-base/1.0/alfresco-base-1.0.pom
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: com.sourcesense.alfresco
ArtifactId: alfresco-base
Version: 1.0

Reason: Unable to download the artifact from any repository

 com.sourcesense.alfresco:alfresco-base:pom:1.0

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 sourcesense (dav:https://dev.sourcesense.com/repos/dev/maven2)

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



Re: Cannot download parent pom from specified remote repository

2007-07-11 Thread Daniele Dellafiore

On 7/10/07, Rémy Sanlaville [EMAIL PROTECTED] wrote:

Hi,

As I mentioned in my first post, try to add this in your setting.xml
  mirrors
mirror
  idCorporate Proxy/id
  mirrorOfcentral/mirrorOf
  namemy corporate repository/name
  urlurl to your maven 2 proxy/url
/mirror
  /mirrors

This indicates to maven 2 to look at your maven 2 proxy instead of repo1.
Normally your proxy is configure in order to look at maven 2 repository if
needed


Ok, I have added this and works.

I still have one question unresolved:
why to download artifact defined as dependency from my company repo I
just need to add the repository in my pom (or in settings.xml) while
when the artifact to download is the parent project I need to specify
the mirror?

The second part  is not needed, you think is better to add it anyway?

Thanks so much for help.


It also depends on how your maven 2 proxy is configure. In your case, it
seems that
you also have to add your corporate repository in your pom.xml in order to
find your
pom corporate (I assume that you pom corporate is in your inhouse
repository) :

  repositories
repository
  idinhouse/id
  nameInhouse maven repository/name
  urlurl to your corporate repository/url
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
/repository
  /repositories

This indicates to maven 2 to look at your inhouse repository to find your
pom corporate in order to download it in your local repository.

Rémy


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



Re: Cannot download parent pom from specified remote repository

2007-07-10 Thread Daniele Dellafiore

Here it is.

But I do not see the point: how is the mirror involved? It seems that
maven tries to download from repo1 and not from my company repo, where
it is supposed to try first.

Anyway, maybe I am missing some point here :)

Thanks.

On 7/10/07, Rémy Sanlaville [EMAIL PROTECTED] wrote:

Can we see you setting.xml ?
It seems that you have not a mirror of central.

Rémy


settings
servers
	server
server
  idsourcesense/id
  usernameusername/username
  passwordvery-secret/password
/server
server
  idtomcat-localhost/id
  usernameadmin/username
  passwordadmin/password
/server
/servers

  proxies
   proxy
  activefalse/active
  protocolhttps/protocol
  host10.11.2.100/host
  port80/port
  usernameuser/username
  passwordpass/password
  nonProxyHosts127.0.0.1|localhost/nonProxyHosts
/proxy
   proxy
  activefalse/active
  protocolhttp/protocol
  host10.11.2.100/host
  port80/port
  usernameuser/username
  passwordpass/password
  nonProxyHosts127.0.0.1|localhost/nonProxyHosts
/proxy  
   proxy
  activefalse/active
  protocoldav/protocol
  host10.11.2.100/host
  port80/port
  usernameuser/username
  passwordpass/password
  nonProxyHosts127.0.0.1|localhost/nonProxyHosts
/proxy   
  /proxies

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

Re: Cannot download parent pom from specified remote repository

2007-07-10 Thread Daniele Dellafiore

On 7/10/07, Andrew Williams [EMAIL PROTECTED] wrote:

You may have indeed identified a problem there, but I do not see
information about which maven version
you are using (please forgive me if I missed it).
Are you on the latest (2.0.7)?


yes, 2.0.7

I will try tomorrow solutions proposed by Rémy.

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



Cannot download parent pom from specified remote repository

2007-07-09 Thread Daniele Dellafiore

Hi all.
I have this problem. I have created a super pom in a project defined as:

groupIdcom.sourcesense.alfresco/groupId
artifactIdalfresco-base/artifactId
packagingpom/packaging
version1.0/version

then I use it in my actual project in this way:

parent
groupIdcom.sourcesense.alfresco/groupId
artifactIdalfresco-base/artifactId
version1.0/version
/parent

I have made mvn install of parent-pom project and then the child
project resolve correctly all dependancies.
So I make a mvn deploy of parent-pom to share with others.

Other team members cannot make it work because the parent-pom is not
found on company repo.
Note that there are a lot of dependencies in child project that were
downloaded correctly. Looking the log it seems that maven2 tries to
download the parent-pom just from repo1.maven.org ignoring the repo
declared in pom.xml of child project.

* LOG BEGINS ***

[INFO] Scanning for projects...
Downloading: 
http://repo1.maven.org/maven2/com/sourcesense/alfresco/alfresco-base/1.0/alfresco-base-1.0.pom
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: com.sourcesense.alfresco
ArtifactId: alfresco-base
Version: 1.0

Reason: Unable to download the artifact from any repository

 com.sourcesense.alfresco:alfresco-base:pom:1.0

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 sourcesense (dav:https://dev.sourcesense.com/repos/dev/maven2)

* LOG ENDS ***

As you can see, it claims to try to download alfresco-base pom from my
company repository but the first lines of the log tell me a different
thing.

What can I do?

Thanks.

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



Cannot download parent pom from specified remote repository

2007-07-09 Thread Daniele Dellafiore

Hi all.
I have this problem. I have created a super pom in a project defined as:

  groupIdcom.sourcesense.alfresco/groupId
  artifactIdalfresco-base/artifactId
  packagingpom/packaging
  version1.0/version

then I use it in my actual project in this way:

  parent
  groupIdcom.sourcesense.alfresco/groupId
  artifactIdalfresco-base/artifactId
  version1.0/version
  /parent

I have made mvn install of parent-pom project and then the child
project resolve correctly all dependancies.
So I make a mvn deploy of parent-pom to share with others.

Other team members cannot make it work because the parent-pom is not
found on company repo.
Note that there are a lot of dependencies in child project that were
downloaded correctly. Looking the log it seems that maven2 tries to
download the parent-pom just from repo1.maven.org ignoring the repo
declared in pom.xml of child project.

* LOG BEGINS ***

[INFO] Scanning for projects...
Downloading: 
http://repo1.maven.org/maven2/com/sourcesense/alfresco/alfresco-base/1.0/alfresco-base-1.0.pom
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: com.sourcesense.alfresco
ArtifactId: alfresco-base
Version: 1.0

Reason: Unable to download the artifact from any repository

com.sourcesense.alfresco:alfresco-base:pom:1.0

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
sourcesense (dav:https://dev.sourcesense.com/repos/dev/maven2)

* LOG ENDS ***

As you can see, it claims to try to download alfresco-base pom from my
company repository but the first lines of the log tell me a different
thing.

What can I do?

Thanks.

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



Re: Cannot download parent pom from specified remote repository

2007-07-09 Thread Daniele Dellafiore

I know, there are a lot of dependencies that are downloaded from my
company repository that is specified in the child project pom.
As you can see in my log, there is a incoherence that I am trying to point out:

Maven tries to download the parent pom just from repo1.maven.org:

[INFO] Scanning for projects...
Downloading: 
http://repo1.maven.org/maven2/com/sourcesense/alfresco/alfresco-base/1.0/alfresco-base-1.0.pom
[INFO] ---

and then give the Fatal Error.
But after it tells that it cannot found artifact in both repos:

--
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
sourcesense (dav:https://dev.sourcesense.com/repos/dev/maven2)
--

I suspect that it does not even try to download the parent pom
artifact from my company repo. All other artifact are correclty
downloaded and normally the download sequence is: first, specified
repo, later the default repo, in fact this is a typical sequence:

Downloading: 
https://dev.sourcesense.com/repos/dev/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
Downloading: 
http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
Downloading: 
https://dev.sourcesense.com/repos/dev/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom
Downloading: http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom

Finally: or I am missing something in configuration or there is a bug
in the sequence: maven does not look for repositories defined in pom
before looking for the parent project artifact.
In fact if I already have the artifact in local repo, everything works.

On 7/9/07, Rémy Sanlaville [EMAIL PROTECTED] wrote:

Hi,

You parent pom is like any artifact and you have to indicate to maven 2
where to find it.

Since you have a corporate repository (via a maven proxy) you have two
solutions :
1. Either you add a reference to your corporate repository in your pom.xml
  repositories
repository
  idinhouse/id
  nameInhouse maven repository/name
  urlurl to your corporate repository/url
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
/repository

2. or by specifying your corporate repository to maven 2 in your setting.xml
  mirrors
mirror
  idCorporate Proxy/id
  mirrorOfcentral/mirrorOf
  namemy corporate repository/name
  urlurl to your corporate repository/url
/mirror
It's important to use the token central for the node mirrorOf.

In general, the second solution is better when using a maven 2 proxy.

HTH,

Rémy



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