Re: release plugin can not build site

2012-12-08 Thread Robert Scholte

Hi,

which version of Maven are you using?
Do you see that the repository4hibernate-shared is installed/deployed  
before getting this message?


Robert

Op Fri, 07 Dec 2012 23:32:28 +0100 schreef Vitaliy Semochkin  
vitaliy...@gmail.com:



Hi,

I have a multi-module project that has following structure

repository4hibernate
  + repository4hibernate-shared
  + repository4hibernate-api

when I try to perform release

When I run:
mvn release:clean release:prepare release:perform

I receive following error:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on
project repository4hibernate-parent: failed to get report for
org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal
on project repository4hibernate: Could not resolve dependencies for
project net.sf.r4h:repository4hibernate:jar:4.1.21: Could not find
artifact net.sf.r4h:repository4hibernate-shared:jar:4.1.21 in central
(http://repo.maven.apache.org/maven2) - [Help 1]


However when I run
mvn release:clean release:prepare release:perform -Dgoals=deploy

everything goes fine.

The question is, why the site plugin fails to find the artifact and
how to make release plugin to deploy the site during the release
process?

here is the project source repository
http://sourceforge.net/p/r4h/code/ci/dab65bf55bc93d14f6deffac254b71371203713f/tree/

here is the parent pom
https://sourceforge.net/p/r4h/code/ci/dab65bf55bc93d14f6deffac254b71371203713f/tree/pom.xml


Thanks in advance.

Regards,
Vitaliy S

-
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



RE: exclusion only when test

2012-12-08 Thread Martin Gainty

centralising dependency information for differing child poms can be achieved 
via dependency-management 
mechanismhttp://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management
 activating which grouping is included is achieved by defining profiles by 
testinf your attributes (i.e. when condition) will trigger that profile to be 
includedhttp://maven.apache.org/guides/introduction/introduction-to-profiles.html
  
Martin 
__ 
Long winded disclaimer goes here
  Date: Sat, 8 Dec 2012 20:57:19 +0100
 Subject: exclusion only when test
 From: laudio.i...@gmail.com
 To: users@maven.apache.org
 
 hello
 
 i have one artifact (A1) that depends from another artifact (A2)
 
 the A2 artifact has one dependency but when i make the A1's tests i want to
 exclude one dependency
 i am using the exclusion into the dependency but i cannot say it that the
 exclusion applies only whent test.
 
 is this posible?
 
 thanks
  

Re: Optional dependency not overlaid

2012-12-08 Thread Dennis Lundberg
Hi Daniel,

The 2.0 version of Maven WAR Plugin is over 6 years old. The first thing
I'd do is try a later version to see if it solves your problem. The
latest version is 2.3.

On 2012-12-08 02:32, Winsor, Daniel wrote:
 Hi,
 
 I have declared an optional dependency, but it is not being overlaid with 
 maven-war-plugin v 2.0
 
 //parent-of-everything/pom.xml
 
 plugin
 
 groupIdorg.apache.maven.plugins/groupId
 
 artifactIdmaven-war-plugin/artifactId
 
 configuration
 
 overlays
 
 overlay
 
 artifactIdto-be-overlaid/artifactId
 
 includes
 
 include**/include
 
 /includes
 
 /overlay
 
 overlay
 
 !-- default self overlay --
 
 /overlay
 
 /overlays
 
 /configuration
 
 /plugin
 
 
 
 //some-webapp-war/pom.xml
 
 dependencies
 
 dependency
 
 artifactIdto-be-overlaid/artifactId
 
 optionaltrue/optional
 
 typewar/type
 
 /dependency
 
 /dependencies
 
 
 When optional is set to false, then
 
 [INFO] Assembling webapp some-webapp-war in /target/some-webapp-war
 
 [INFO] Expanding: /.m2/repository/to-be-overlaid.war into 
 /target/to-be-overlaid
 
 [INFO] Overlaying 1 war(s).
 
 
 When optional is set to true, then no such overlaying happens.
 
 However, according to optional dependencies, if some-webapp-war optionally 
 depends on to-be-overlaid, well it should show up in this first level 
 dependency, just like normal.  What is going on here?  And how can I best 
 overlay a war to certain other wars while leaving them out of most wars using 
 parent-of-everything (I am currently using a property in the skip parameter 
 in maven-war-plugin)?
 
 Thank you,
 Daniel Winsor
 Associate, IT Architecture
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


-- 
Dennis Lundberg

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



Re: exclusion only when test

2012-12-08 Thread Anders Hammar
No, you cannot set a scope for an exclusion.

/Anders


On Sat, Dec 8, 2012 at 8:57 PM, laudio.info laudio.i...@gmail.com wrote:

 hello

 i have one artifact (A1) that depends from another artifact (A2)

 the A2 artifact has one dependency but when i make the A1's tests i want to
 exclude one dependency
 i am using the exclusion into the dependency but i cannot say it that the
 exclusion applies only whent test.

 is this posible?

 thanks



Re: release plugin can not build site

2012-12-08 Thread Vitaliy Semochkin
Hello Robert,

Thank you for the fast reply

I'm using 3.0.4
I see that  repository4hibernate-shared is deployed but I don't see it
is installed.
Is there any way to force release plugin to install it?

On Sat, Dec 8, 2012 at 2:16 PM, Robert Scholte rfscho...@apache.org wrote:
 Hi,

 which version of Maven are you using?
 Do you see that the repository4hibernate-shared is installed/deployed before
 getting this message?

 Robert

 Op Fri, 07 Dec 2012 23:32:28 +0100 schreef Vitaliy Semochkin
 vitaliy...@gmail.com:

 Hi,

 I have a multi-module project that has following structure

 repository4hibernate
   + repository4hibernate-shared
   + repository4hibernate-api

 when I try to perform release

 When I run:
 mvn release:clean release:prepare release:perform

 I receive following error:
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on
 project repository4hibernate-parent: failed to get report for
 org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal
 on project repository4hibernate: Could not resolve dependencies for
 project net.sf.r4h:repository4hibernate:jar:4.1.21: Could not find
 artifact net.sf.r4h:repository4hibernate-shared:jar:4.1.21 in central
 (http://repo.maven.apache.org/maven2) - [Help 1]


 However when I run
 mvn release:clean release:prepare release:perform -Dgoals=deploy

 everything goes fine.

 The question is, why the site plugin fails to find the artifact and
 how to make release plugin to deploy the site during the release
 process?

 here is the project source repository

 http://sourceforge.net/p/r4h/code/ci/dab65bf55bc93d14f6deffac254b71371203713f/tree/

 here is the parent pom

 https://sourceforge.net/p/r4h/code/ci/dab65bf55bc93d14f6deffac254b71371203713f/tree/pom.xml


 Thanks in advance.

 Regards,
 Vitaliy S

 -
 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


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