RE: Changes report - maven 2.0.4

2006-08-14 Thread Abhijit Diwan
Hi

After struggling a lot for the report here is the plugin snippet
from my pom.xml which creates change log successfully from perforce.

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-changelog-plugin/artifactId
version2.0-SNAPSHOT/version
reportSets
reportSet
idPerofrce report/id
configuration
typerange/type
range10/range
repositoryConnection
 
scm:perforce://EJB/ejb-dev/MavenCodeline//repositoryConnection
properties
maven.changelog.factory
 
org.apache.maven.perforcelib.PerforceChangeLogFactory/maven.changelog.f
actory
/properties
dateFormat/MM/dd HH:mm:ss/dateFormat
/configuration
reports
reportchangelog/report
reportfile-activity/report
reportdev-activity/report
/reports
/reportSet
/reportSets
/plugin

Hope this helps

Thanks a lot
Abhijit
-Original Message-
From: Jan Vissers [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 11, 2006 7:35 PM
To: users@maven.apache.org
Subject: Changes report - maven 2.0.4

Cannot use this report, cause it cannot be located.
Tried several things here:

according to documentation:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-changelog-plugin/artifactId
  /plugin

And according to some 'rumours' about relocation of the plugin:

  groupIdorg.codehaus.mojo/groupId
artifactIdchanges-maven-plugin/artifactId
version2.0-beta-1-SNAPSHOT/version
reportSets
  reportSet
reports
reportjira-report/report
/reports
  /reportSet
/reportSets

Come on guys ... this is getting pretty awkward!




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



Need help regarding the Changelog plugin.

2006-08-09 Thread Abhijit Diwan
Hi all

 

I am trying to get changelog for my project and  the mvn site command
generates empty changelog output.

 

Following is the scm section of my pom.xml

 

scm

 
connectionscm:perforce:PRIVACYHIDDEN@fish:1678://EJB/ejb-dev/MavenCo
deline/connection

/scm

 

and the plugin section I have 

 

plugin

groupIdorg.codehaus.mojo/groupId

artifactIdchangelog-maven-plugin/artifactId

reportSets

reportSet

idPerofrce report/id

configuration

typerange/type

range30/range

/configuration

reports

reportchangelog/report

reportfile-activity/report

reportdev-activity/report

/reports

/reportSet

/reportSets

/plugin

 

I get following error when I generate  site using maven site command.

 

[ERROR] There are test failures.

[INFO] [site:site]

[WARNING] Error loading report
org.apache.maven.changelog.ChangeLogReport - Abst

ractMethodError: canGenerateReport()

[WARNING] Error loading report
org.apache.maven.changelog.FileActivityReport - A

bstractMethodError: canGenerateReport()

[WARNING] Error loading report org.apache.maven.changes.ChangesMojo -
AbstractMe

thodError: canGenerateReport()

[WARNING] Error loading report org.apache.maven.jira.JiraMojo -
AbstractMethodEr

ror: canGenerateReport()

 

Is it something related to setting maven.changelog.factory to
org.apache.maven.perforcelib.PerforceChangeLogFactory. But where do
you set this value if this is what i need.

 

Any help would be really really appreciated. 

 

 

Thanks a lot

Abhijit

 



Dependancy within the modules while generating the site. Help Needed.

2006-07-28 Thread Abhijit Diwan
Hi all

 

 I have 2 modules under the main project POM. The directory
structure looks like this

 

*   JCA15Adapter

*   pom.xml
*   AeConnector

*   Pom.xml

*   EjbSupport

*   Pom.xml

 

Main project pom has dependencyManagement section which is as following

 

dependencyManagement

dependencies

dependency

groupIdcom.tibco.ejb/groupId

artifactIdEjbSupport/artifactId

version${project.version}/version

/dependency

/dependencies

/dependencyManagement

 

Now in AeConnector module I have reference to this other module which is
EjbSupport as following

 

project

parent

groupIdcom.tibco.ejb/groupId

artifactIdJCA15Adapter/artifactId

version1.0-SNAPSHOT/version

/parent

modelVersion4.0.0/modelVersion

artifactIdAeConnector/artifactId

packagingjar/packaging

nameAeConnector API/name

dependencies

dependency

groupIdcom.tibco.ejb/groupId

artifactIdEjbSupport/artifactId

/dependency

/dependencies

/project

 

Pom for EjbSupport looks like this 

 

project

parent

groupIdcom.tibco.ejb/groupId

artifactIdJCA15Adapter/artifactId

version1.0-SNAPSHOT/version

/parent

modelVersion4.0.0/modelVersion

artifactIdEjbSupport/artifactId

packagingjar/packaging

nameSupport API/name

/project

 

As far as compile phase is considered it goes fine and dependencies
related to EjbSupport module are resolved but when I try to build a site
usin mvn site I always get following error.

 

[INFO] Building AeConnector API

[INFO]task-segment: [site]

[INFO]


---

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Failed to resolve artifact.

 

Missing:

--

1) com.tibco.ejb:EjbSupport:jar:1.0-SNAPSHOT

 

  Try downloading the file manually from the project website.

 

  Then, install it using the command:

  mvn install:install-file -DgroupId=com.tibco.ejb
-DartifactId=EjbSupport

 

  -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 

  Path to dependency:

1) com.tibco.ejb:AeConnector:jar:1.0-SNAPSHOT

2) com.tibco.ejb:EjbSupport:jar:1.0-SNAPSHOT

 

--

1 required artifact is missing.

 

for artifact:

  com.tibco.ejb:AeConnector:jar:1.0-SNAPSHOT

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2)

 

 

[INFO]


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

[INFO]


 

I would really appreciate if any one can point the correct way for
setting the dependencies for generating the site?

 

Thanks a lot

Abhijit

 



Dependancy within the modules while generating the site. Help Needed.

2006-07-28 Thread Abhijit Diwan
 

Hi all

 

 I have 2 modules under the main project POM. The directory
structure looks like this

 

*   JCA15Adapter

*   pom.xml
*   AeConnector

*   Pom.xml

*   EjbSupport

*   Pom.xml

 

Main project pom has dependencyManagement section which is as following

 

dependencyManagement

dependencies

dependency

groupIdcom.tibco.ejb/groupId

artifactIdEjbSupport/artifactId

version${project.version}/version

/dependency

/dependencies

/dependencyManagement

 

Now in AeConnector module I have reference to this other module which is
EjbSupport as following

 

project

parent

groupIdcom.tibco.ejb/groupId

artifactIdJCA15Adapter/artifactId

version1.0-SNAPSHOT/version

/parent

modelVersion4.0.0/modelVersion

artifactIdAeConnector/artifactId

packagingjar/packaging

nameAeConnector API/name

dependencies

dependency

groupIdcom.tibco.ejb/groupId

artifactIdEjbSupport/artifactId

/dependency

/dependencies

/project

 

Pom for EjbSupport looks like this 

 

project

parent

groupIdcom.tibco.ejb/groupId

artifactIdJCA15Adapter/artifactId

version1.0-SNAPSHOT/version

/parent

modelVersion4.0.0/modelVersion

artifactIdEjbSupport/artifactId

packagingjar/packaging

nameSupport API/name

/project

 

As far as compile phase is considered it goes fine and dependencies
related to EjbSupport module are resolved but when I try to build a site
usin mvn site I always get following error.

 

[INFO] Building AeConnector API

[INFO]task-segment: [site]

[INFO]


---

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Failed to resolve artifact.

 

Missing:

--

1) com.tibco.ejb:EjbSupport:jar:1.0-SNAPSHOT

 

  Try downloading the file manually from the project website.

 

  Then, install it using the command:

  mvn install:install-file -DgroupId=com.tibco.ejb
-DartifactId=EjbSupport

 

  -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 

  Path to dependency:

1) com.tibco.ejb:AeConnector:jar:1.0-SNAPSHOT

2) com.tibco.ejb:EjbSupport:jar:1.0-SNAPSHOT

 

--

1 required artifact is missing.

 

for artifact:

  com.tibco.ejb:AeConnector:jar:1.0-SNAPSHOT

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2)

 

 

[INFO]


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

[INFO]


 

I would really appreciate if any one can point the correct way for
setting the dependencies for generating the site?

 

Thanks a lot

Abhijit

 



RE: How to deselect classes while creating jar?

2006-07-27 Thread Abhijit Diwan
Thanks a lot Simon. I have voted for the issue.

Abhijit
-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 28, 2006 3:18 AM
To: Maven Users List
Subject: RE: How to deselect classes while creating jar?

No, unfortunately the maven-jar-plugin for maven 2.x does not support
includes/excludes at the current time:
  http://jira.codehaus.org/browse/MJAR-30

You can of course control what goes into the jar by using
includes/excludes at the *compile* stage, if that's appropriate for your
project. If not, you might want to vote for that issue...

Regards,

Simon

On Thu, 2006-07-27 at 09:45 -0500, Chris Hilton wrote:
 I'm far from an expert, but I think you have to put your exclude
 elements in a separate excludes element, like:
 
 includes
   include/
 /includes
 excludes
   exclude/
 /excludes 
 
  -Original Message-
  From: Abhijit Diwan [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, 27 July, 2006 00:28
  To: users@maven.apache.org
  Subject: How to deselect classes while creating jar?
  
  Hi all
  
   
  
   I have maven 2.0 project which includes all the 
  java classes for my project. Now I do not want to create 
  single jar from the classes generated in the target 
  directory. But there is no documentation on the maven jar 
  plug-in site about how can I exclude the some of the classes 
  from getting them in to the jar. I am using maven 2.0. Also 
  there is lot of cyclic dependency in the classes so can not 
  really separate the projects. 
  
   
  
   I feel there is no clear documentation about how 
  can I skip some of the classes from getting in to the jar. I 
  am using following profile like this and calling mvn jar:jar 
  -PConnectorJar from the command line.
  
   
  
  profile
  
  idConnectorJar/id
  
  build
  
  plugins
  
  plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
 
artifactIdmaven-compiler-plugin/artifactId
  
  configuration
  
  includes
  
   
  includecom/tibco/ejb/common/*.java/include
  
   
  includecom/tibco/ejb/connector/*.java/include
  
   
  includecom/tibco/ejb/support/*.java/include
  
   
  includecom/tibco/ejb/util/*.java/include
  
   
  includecom/tibco/ejb/adapter/*.java/include
  
   
  includecom/tibco/ejb/jca15/support/*.java/include
  
   
  includecom/tibco/ejb/jca15/util/*.java/include
  
   
  includecom/tibco/ejb/jca15/connector/**/*.java/include
  
  
  !--exclude**/*Work*.java/exclude--
  
  /includes
  
  /configuration
  
  /plugin
  
  plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
  artifactIdmaven-jar-plugin/artifactId
  
  configuration
  
  jarNameAeConnector/jarName
  
  /configuration
  
  /plugin
  
  /plugins
  
  /build
  
  activation
  
  property
  
  nameAeConnectorJar/name
  
  /property
  
  /activation
  
  /profile
  
   
  
  Help on this will be really appreciated.
  
   
  
  Thanks a lot
  
  Abhijit
  
   
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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


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



How to deselect classes while creating jar?

2006-07-26 Thread Abhijit Diwan
Hi all

 

 I have maven 2.0 project which includes all the java
classes for my project. Now I do not want to create single jar from the
classes generated in the target directory. But there is no documentation
on the maven jar plug-in site about how can I exclude the some of the
classes from getting them in to the jar. I am using maven 2.0. Also
there is lot of cyclic dependency in the classes so can not really
separate the projects. 

 

 I feel there is no clear documentation about how can I skip
some of the classes from getting in to the jar. I am using following
profile like this and calling mvn jar:jar -PConnectorJar from the
command line.

 

profile

idConnectorJar/id

build

plugins

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-compiler-plugin/artifactId

configuration

includes

 
includecom/tibco/ejb/common/*.java/include

 
includecom/tibco/ejb/connector/*.java/include

 
includecom/tibco/ejb/support/*.java/include

 
includecom/tibco/ejb/util/*.java/include

 
includecom/tibco/ejb/adapter/*.java/include

 
includecom/tibco/ejb/jca15/support/*.java/include

 
includecom/tibco/ejb/jca15/util/*.java/include

 
includecom/tibco/ejb/jca15/connector/**/*.java/include

!--exclude**/*Work*.java/exclude--

/includes

/configuration

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-jar-plugin/artifactId

configuration

jarNameAeConnector/jarName

/configuration

/plugin

/plugins

/build

activation

property

nameAeConnectorJar/name

/property

/activation

/profile

 

Help on this will be really appreciated.

 

Thanks a lot

Abhijit