Re: need all dependency at compile time

2006-10-12 Thread Gisbert Amm
The section 5.5.1. Accessing Project Dependencies of Better builds 
with Maven (http://www.mergere.com/m2book_download.jsp) probably 
explains what you need to do in your mojo:


...
Injecting the project dependency set
As described above, if the mojo works with a project's dependencies, it 
must tell Maven that it requires
access to that set of artifacts. As with all declarations, this is 
specified via a mojo parameter definition

and should use the following syntax:
/**
* The set of dependencies required by the project
* @parameter default-value=”${project.dependencies}”
* @required
* @readonly
*/
private java.util.Set dependencies;
...

-Gisbert

Neeraj Bisht wrote:

hi all
 i want to collect all jar file at one place  from my
pom.xmldependency ,i write one plugin for that but in that plugin i am
unable to
define the path of lib
how i can achieve this ,i do not know

we are migrating our project from maven 1.x  to maven 2.0.4

we have done that work in maven 1.x by useing this task as one of the
preGoal and writing our logic in jelly
but here in maven 2.x i am unable

please if any body have any content regarding this please send

i also refrence this

http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

but not got any properites regarding to my use
Regards
Neeraj



--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

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



Re: idea project jdk

2006-10-12 Thread Geoffrey De Smet

I had this issue when I migrated from intellij idea 4 to 5.
Maven 2 is actually doing the best thing ... it can.

4 calls its jdk by default java version1.5.0_08 and 5 calls it by 
default 1.5. So maven2 takes (if you don't override it with 
configurationjdkName...) java version1.5.0_08 in 4 and 1.5 in 5.


The fun starts when you've migrated from idea 4 to 5: you could be in 5 
with a name of java version1.5.0_08, because that name was imported 
from 4.


Not sure what happens in the new idea 6 though, I would expect it to 
behave like 5.


Paul Barry wrote, On 2006-10-11 10:20 PM:

Maven says this:

jdkName is not set, using [java version1.5.0_08] as default.

But then if you look at the .ipr that it generates, you see this:

 component name=ProjectRootManager version=2
assert-keyword=true jdk-15=true project-jdk-name=1.5 /

So I renamed by jdk to 1.5 in IDEA and it works now.  But that
message should porbably be changed to read:

jdkName is not set, using [1.5] as default.



On 10/11/06, Paul Barry [EMAIL PROTECTED] wrote:

Hello,

When I followed the tutorial at
http://maven.apache.org/guides/getting-started/index.html, after I ran
mvn idea:idea and opened the project in idea, the project jdk was not
set.  Is there something I can do in maven to have the project jdk
said.



--
With kind regards,
Geoffrey De Smet


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



[M2]Creating a companywide POM

2006-10-12 Thread Sebastian Krebs
Hello,

I've got the following question.
I want to create a companywide Parent-pom.xml with all of those
parameters and settings I will need in each project.

e.g.:
distributionManagement
repository
...
/repository
/distributionManagement

How can I inherit from my CompanyPOM? 

Regards

Sebastian Krebs

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



exclude integration tests from test phase in surefire-plugin ?

2006-10-12 Thread Jan-Olav Eide
I have a set of tests that I only want to run in the integration-test
phase. These are all in in the .../integration/.. package

I have the following in my pom, but the plugin still insists on running
the integration tests in the test phase.

 

What is wrong with this configuration  ?

 

plugin

   artifactIdmaven-surefire-plugin/artifactId

   executions

  execution

 idsurefire-test/id

 phasetest/phase

 goals

goaltest/goal

 /goals

 configuration

excludes

   exclude**/integration/**/exclude

 /excludes

  /configuration

   /execution

   execution

  idsurefire-integrationtest/id

   phaseintegration-test/phase

   goals

  goaltest/goal

   /goals

   configuration

  includes

  include**/integration/**/include

   /includes

   /configuration

/execution

 /executions

  /plugin

Jan-Olav Eide

Senior Software Engineer

FAST

Christian Frederiks plass 6

N-0120 Oslo, Norway

Mobile: + 47 4801 1184

Fax: + 47 2301 1201

www.fastsearch.com

 



Re: [M2]Creating a companywide POM

2006-10-12 Thread Borut Bolčina

Put Maven distribution somewhere on a network drive so all developers can
get it from there instead from maven site. Then modify settings.xml in conf
directory something like:

   profile
   idalwaysActiveProfile/id
   repositories
   repository
   idcentral/id
   nameyour-company-maven-proxy/name
   urlhttp://maven.your.company.com/url
   /repository
   /repositories
   pluginRepositories
   pluginRepository
   idcentral/id
   nameyour-company-maven-plugin-proxy/name
   urlhttp://maven.your.company.com/url
   /pluginRepository
   /pluginRepositories
   /profile
 /profiles

 activeProfiles
   activeProfilealwaysActiveProfile/activeProfile
 /activeProfiles


Company Maven proxy can have mirrors, not each developer, so no developer
should have mirror section in their settings.xml.

Developer's settins.xml can look like:

?xml version=1.0 encoding=UTF-8?
settings
   localRepositoryC:/m2/repository/localRepository
   servers
   server
   idhttps://svn.your.company.com/repositories/id
   usernameme_myself_and_i/username
   password/password
   /server
   server
   idyour-company-maven-repository/id
   usernameme_myself_and_i/username
   password/password
   /server
   server
   idyour-company-maven-docs-repository/id
   usernameme_myself_and_i/username
   password/password
   /server
   /servers
/settings

Other solutions are possible. Look in Better builds with Maven from
Mergere.

Cheers,
Borut

2006/10/12, Sebastian Krebs [EMAIL PROTECTED]:


Hello,

I've got the following question.
I want to create a companywide Parent-pom.xml with all of those
parameters and settings I will need in each project.

e.g.:
distributionManagement
repository
...
/repository
/distributionManagement

How can I inherit from my CompanyPOM?

Regards

Sebastian Krebs

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




RE: [M2]Creating a companywide POM

2006-10-12 Thread Jörg Schaible
Hi Sebastian,

Sebastian Krebs wrote on Thursday, October 12, 2006 9:22 AM:

 Hello,
 
 I've got the following question.
 I want to create a companywide Parent-pom.xml with all of those
 parameters and settings I will need in each project.
 
 e.g.:
 distributionManagement
   repository
   ...
   /repository
 /distributionManagement
 
 How can I inherit from my CompanyPOM?

just as normal. Create a parent secion in each project's POM and inherit from 
the company parent. But be aware of the drawback for your use case. To release 
anything you must now refer a released company POM. This means you cannot 
change any longer the address of the repo, since a released version of your 
artifact will now always refer the old repo location and you cannot repeat the 
build.

We use the global company POM for predefined settings of plugins in the 
pluginManagement section and version consistency in the dependencyManagement 
secion, but no longerr for the repos.

_ jörg

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



Re: Maven 1.1 RC1 SNAPSHOT needs testers

2006-10-12 Thread Gisbert Amm

Arnaud HERITIER wrote:

Thanks James for your feedback.
We'll add a note about plugin dependencies in projects.

Nobody else is interested by maven 1.1 ?

Should we continue to try to release a final version 1.1 ?
Everybody moved to maven 2 or your existing maven 1.x satisfy you ?


We are indeed interested in Maven 1.1 since more than 200 of our 
existing builds are currently using Maven 1.1 beta 2 and will definitely 
not be migrated to Maven 2.


However, we simply haven't got the time to test Maven 1.1 at the moment 
since we're fiddling with Maven 2 to probably make it the default for 
all future builds.


I shortly switched the live build system to Maven 1.1 beta 3 when it 
came out (beginning of last week, IIRC), but got some errors I haven't 
had the time to further investigate yet (most of them probably 
incompatibilities with our home grown plugins, I guess).
So I switched back to Maven 1.1 beta 2 until I got a bit more time (only 
touch a running system when you got time to fix it afterwords).


I think I can give the RC1 a try next week.

-Gisbert Amm

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



RE: [M2]Creating a companywide POM

2006-10-12 Thread Yves Van Steen
Hey,

This is very simple.

Just create a top or company pom where you declare the packaging to pom as
value.  The pom value means you just add the pom to your repository and
don't create a jar, ejb or ear.  In your project pom you declare the parent
element.

Project Pom

parent
groupIdcom.company/groupId
artifactIdCompany Pom/artifactId
version1/version
/parent

packgingjar/packaging
groupIdcom.company.project/groupId
artifactIdProject Pom/artifactId
version1.0-SNAPSHOT/version

Company Pom

groupIdcom.company/groupId
artifactIdCompany Pom/artifactId
version1/version

You can create and endless line of top poms.
What I usually do is this.

Company Pom - Project Pom - Module Pom - Sub Items Pom (if necessary ).
I also keep the company pom out of the project structure and deploy it to my
remote repo so other users don't need to rebuild it.
They can just use is by setting the parent tags in there pom projects.
And maven will download the pom to their local repo's.
You can also create multiple versions of your company pom.
Btw don't use snapshots for your company pom. This will create problems with
release. I haven version 1, 2, 3. It keeps things simple.

-Oorspronkelijk bericht-
Van: Sebastian Krebs [mailto:[EMAIL PROTECTED] 
Verzonden: donderdag 12 oktober 2006 9:22
Aan: Maven Users List
Onderwerp: [M2]Creating a companywide POM

Hello,

I've got the following question.
I want to create a companywide Parent-pom.xml with all of those
parameters and settings I will need in each project.

e.g.:
distributionManagement
repository
...
/repository
/distributionManagement

How can I inherit from my CompanyPOM? 

Regards

Sebastian Krebs

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date: 11/10/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date: 11/10/2006
 


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



RE: supported databases ?

2006-10-12 Thread Mohni, Daniel
)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(Action
ContextCleanUp.java:88)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Unknown Source)

NestedThrowables:
java.sql.SQLException: BLOB/TEXT column 'NAME' used in key specification
without a key length
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate(R
DBMSManager.java:3113)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManager.java:2540)
at
org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RDBMSManager.j
ava:2397)
at
org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.java:603)
at
org.jpox.store.rdbms.RDBMSManager.addClass(RDBMSManager.java:617)
at
org.jpox.store.StoreManager.getDatastoreClass(StoreManager.java:1016)
at
org.jpox.store.rdbms.RDBMSManager.getExtent(RDBMSManager.java:1134)
at
org.jpox.AbstractPersistenceManager.getExtent(AbstractPersistenceManager
.java:2216)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.getAll
Objects(JdoTool.java:199)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.getAll
Objects(JdoTool.java:182)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.trigge
rInit(JdoTool.java:131)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.getPer
sistenceManager(JdoTool.java:118)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.getObj
ectById(JdoTool.java:236)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.object
ExistsById(JdoTool.java:283)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoRbacManager
.roleExists(JdoRbacManager.java:124)
at
org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.getRole(Abst
ractDynamicRoleProfile.java:164)
at
org.codehaus.plexus.rbac.profile.DefaultRoleProfileManager.getDynamicRol
e(DefaultRoleProfileManager.java:87)
at
org.apache.maven.archiva.web.check.RoleExistanceEnvironmentCheck.validat
eEnvironment(RoleExistanceEnvironmentCheck.java:74)
at
org.codehaus.plexus.security.ui.web.interceptor.EnvironmentCheckIntercep
tor.init(EnvironmentCheckInterceptor.java:78)
at
org.codehaus.plexus.xwork.PlexusObjectFactory.buildInterceptor(PlexusObj
ectFactory.java:101)
... 35 more
Caused by: java.sql.SQLException: BLOB/TEXT column 'NAME' used in key
specification without a key length
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2998)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2927)
at com.mysql.jdbc.Statement.execute(Statement.java:535)
at
org.apache.tomcat.dbcp.dbcp.DelegatingStatement.execute(DelegatingStatem
ent.java:261)
at
org.jpox.store.rdbms.table.AbstractTable.executeDdlStatement(AbstractTab
le.java:561)
at
org.jpox.store.rdbms.table.AbstractTable.executeDdlStatementList(Abstrac
tTable.java:516)
at
org.jpox.store.rdbms.table.AbstractTable.create(AbstractTable.java:244)
at
org.jpox.store.rdbms.table.AbstractTable.exists(AbstractTable.java:287)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate(R
DBMSManager.java:3006)
... 54 more

this was tested with daily build of today (20061012

JPOX and Maven2

2006-10-12 Thread Aleksei Valikov

Hi folks,

Does anyone use JPOX with Maven2?
Which enhancer plugin do you use?

Bye.
/lexi

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



Running Maven 2.0.4 from behing a firewall

2006-10-12 Thread Peter_S

Hi!


I'm working on a project where one of the requirements is to update a
project to use Maven 2 instead of Maven 1. In the process of doing this I'm
trying to learn how to use Maven, as it is new to me. This has become a bit
of a problem because I have to deal with a corporate firewall. After reading
various forum posts and web articles I think I have configured the
settings.xml with the correct proxy settings, but I'm having some
difficulties with the archetype plugin.

When executing this command from the command line: 

mvn archetype:create -DgroupId=com.test.app -DartifactId=testapp

the trace informes me of a java.lang.nullPointerException at
org.apache.maven.plugin.DefaultPluginManager.addPlugin ...

I'd post the entire stack tracke but can't access the paste buffer from the
production network.

I've searched all over the web for some info but can't seem to find a
solution to the problem. I've installed Maven 2 on my laptop at home, and
when turning off the firewall I experience no such problems.

What am I doing wrong?

-- 
View this message in context: 
http://www.nabble.com/Running-Maven-2.0.4-from-behing-a-firewall-tf2429049.html#a6772621
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: JPOX and Maven2

2006-10-12 Thread Stéphane Bouchet

As I can see (1) , the last maven plugin is using jpox 1.1.1 .

Stéphane.

(1) *http://mojo.codehaus.org/jpox-maven-plugin/dependencies.html

*

Aleksei Valikov a écrit :

Hi folks,

Does anyone use JPOX with Maven2?
Which enhancer plugin do you use?

Bye.
/lexi

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





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



Re: JPOX and Maven2

2006-10-12 Thread Aleksei Valikov

Hi.


As I can see (1) , the last maven plugin is using jpox 1.1.1 .

Stéphane.

(1) *http://mojo.codehaus.org/jpox-maven-plugin/dependencies.html


Thanks, I've also found it.
I was a bit discouraged by JPOX supports Maven1, Maven2 is not supported 
statement on the JPOX site.


I've now the hotel sample running on Maven2.
Pretty nice. ;)

Thanks again.

Bye.
/lexi

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



[M1.1 Oct Snapshot] cannot generate jar/site

2006-10-12 Thread Benoit Xhenseval
Hi *,

I've downloaded the october 9 snapshot and installed in on top of the August 
one.  I get this error when I do nearly anything (jar, site, etc)

BUILD FAILED
File.. file:/C:/project/objectlabkit/maven.xml
Element... attainGoal
Line.. 50
Column 39
The build cannot continue because of the following unsatisfied dependency:

maven-model-3.0.2-20061008.232644.jar ( type = jar, groupid = maven, artifactid 
= maven-model, version = 3.0.2-20061008.
232644 )

I then removed the repository, did a clean install but I still have the same 
issue.
Do I need to add a repository or something? How?

Thanks

Benoit



Optional Repositories...

2006-10-12 Thread pankaj verma
Hi,
 
Do i have a option in maven2 version to optional repositores for downloading
the jar. Actually i have a bunch of jars in my own repository of local
machine however take the case that maven dont find the required jar at that
place then i want maven to download it from the URL given through mirror
tag.
 
Thanks in anticipation,
Pankaj Verma


Problem using central Maven repository

2006-10-12 Thread Morgovsky, Alexander \(US - Glen Mills\)
I am now bewildered by what is going on here.  The maven-scm-plugin is
clearly defined in the ibiblio repository.  I am not overriding
anything, and yet I get this error when I try to build the pom.  May
someone please tell me what is happening?

build
plugins
plugin
groupIdmaven/groupId
artifactIdmaven-scm-plugin/artifactId
version1.5-beta-3/version
/plugin
/plugins
  /build

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMana
ger.java:292)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defau
ltPluginManager.java:198)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:163) 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


mvn site strips my domain name (sometimes) from image url's

2006-10-12 Thread Samuel Jones

In my site.xml file, the banner tags have images in them. If the image is 
located at apache.org or google.com (for example), all is well. The url passes 
to the generated documents intact, as a fully-qualified url. But if the image 
is at my company's domain, maven is stripping out the domain, leaving a 
relative link (images/companylogo.jpg). 

Is this natural behavior? Is there any way I can keep the full url?

Thank you,
Sam Jones

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



[M2] execute first in phase

2006-10-12 Thread aXXa

How do I tell Maven that I need to run a specific task first i a goal? 
An example...
I need to run an ANT task during the site phase, but it needs to be executed
first, before the normal site tasks, but my ANT task allways seem to run
last in the phase.

Thanks
-Martin

 plugin
artifactIdmaven-antrun-plugin/artifactId
executions
  execution
phasesite/phase
goals
  goalrun/goal
/goals
configuration 
  tasks
echo/echo
  /tasks
/configuration
  /execution
/executions
  /plugin
-- 
View this message in context: 
http://www.nabble.com/-M2--execute-first-in-phase-tf2429325.html#a6773366
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [M2] execute first in phase

2006-10-12 Thread Dan Tran

try pre-site


https://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/plexus/components.xml


On 10/12/06, aXXa [EMAIL PROTECTED] wrote:



How do I tell Maven that I need to run a specific task first i a goal?
An example...
I need to run an ANT task during the site phase, but it needs to be
executed
first, before the normal site tasks, but my ANT task allways seem to run
last in the phase.

Thanks
-Martin

plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
 execution
   phasesite/phase
   goals
 goalrun/goal
   /goals
   configuration
 tasks
   echo/echo
 /tasks
   /configuration
 /execution
   /executions
 /plugin
--
View this message in context:
http://www.nabble.com/-M2--execute-first-in-phase-tf2429325.html#a6773366
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Problem using central Maven repository

2006-10-12 Thread Dan Tran

You are using maven1 plugin.

the maven-scm-plugin for maven 2 is some where else

try

groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-2/version

-D


On 10/11/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]
wrote:


I am now bewildered by what is going on here.  The maven-scm-plugin is
clearly defined in the ibiblio repository.  I am not overriding
anything, and yet I get this error when I try to build the pom.  May
someone please tell me what is happening?

build
   plugins
   plugin
   groupIdmaven/groupId
   artifactIdmaven-scm-plugin/artifactId
   version1.5-beta-3/version
   /plugin
   /plugins
/build

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
   at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMana
ger.java:292)
   at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defau
ltPluginManager.java:198)
   at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:163)


This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of
any action based on it, is strictly prohibited. [v.E.1]




Re: Optional Repositories...

2006-10-12 Thread Dan Tran

setup maven-proxy and have your repo as first on the list.

-D


On 10/11/06, pankaj verma [EMAIL PROTECTED] wrote:


Hi,

Do i have a option in maven2 version to optional repositores for
downloading
the jar. Actually i have a bunch of jars in my own repository of local
machine however take the case that maven dont find the required jar at
that
place then i want maven to download it from the URL given through mirror
tag.

Thanks in anticipation,
Pankaj Verma




Re: creating different packages for different customers

2006-10-12 Thread Andrew Williams
Aha, then I think the earlier suggestions may have been correct - you 
want to keep all the common work in 1 war artifact (NOT a parent pom, a 
separate child module) and depend on that in the client specific wars - 
this will then merge the common into the client specific work creating 
your complete wars.


A

Marek Chowaniok wrote:

We have separate projects (i.e.product-web-customer, product-web-customer1
and product-web-customer2) with just the different files.
i.e. we have 20 jsp pages but just the 2 are defferent and are in separate
projects.

Right now (not using maven in this project yet) we have to do deploy for
product-web-customer and replace files in this deploy with concrete jsp
files from different project. 


I am just starting using maven, so I don't know what the proper way how to
do it. And how maven usually handle this situation. 


So is there something that I would do deploy for product-web-customer and
tell maven to add/replace some JSP from different customer project ?

thanks Marek



Andrew Williams-5 wrote:
  
If you are seperating your logic from your view correctly (i.e. 
product-api, product-core and product-web modules) then you can have a 
different product-web module for each customer and just ship the correct 
one :)


Andrew

Marek Chowaniok wrote:


No one has request for this feature?

Please reply if you are using this.

Marek

Marek Chowaniok wrote:
  
  

Hi all,
In our company we need to create more packages (jar, war) for different
customers. The content mostly will be same (like logic layer of the
application) but the view layer should be different.

i.e. we have (Cust1Index.jsp, Cust2Index.jsp, Cust3Index.jsp) and we
need
to create 3 different deploys with correct web site inserted in in
corect
deploy (without those others).

My questions:
1. Is Maven2 able to do this?
2. Can you point me on some web or show how it can be done?

Thanks



  
  

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






  



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



Setting property in profiles not evaluated for POM validation?

2006-10-12 Thread Christoph

Hi,

I face a strange problem concerning POM validation and setting properties in
profiles.xml... 

My project C depends on module B, which itself is a child of module A.
Module A defines a system scope dependency like this:

dependency
groupIddb2/groupId
artifactIddb2/artifactId
version8.2/version
scopesystem/scope
systemPath${path.db2jar}/systemPath
/dependency

The path do db2.jar depends on the developer's machine and is specified in
the profiles.xml, toghether with other settings. Both A and B are building
and deploying fine.

Now, when I try to build C, it complains about missing definition for
'path.db2jar':

[WARNING] POM for '...B:pom:4.4.0-SNAPSHOT:compile' is invalid. It will be
ignored for artifact resolution. Reason: Failed to validate POM
[DEBUG] Reason: Failed to validate POM
[DEBUG]
Validation Errors:
[DEBUG] For dependency Dependency {groupId=db2, artifactId=db2, version=8.2,
type=jar}: system-scoped dependency must specify an absolute path
systemPath.

I'm using a profiles.xml section like this one:

profile
idenv-nb/id
activation
property
nameenv/name
valuenb/value
/property
/activation
properties
   
path.db2jarc:/programme/IBM/SQLLIB/java/db2java.zip/path.db2jar
...
/properties
/profile

which is triggered by -Denv=nb, and this is working fine since
'help:effective-pom' is showing me something like

  properties
path.db2jarc:/programme/IBM/SQLLIB/java/db2java.zip/path.db2jar
...
  /properties

So the profiles.xml seems to be evaluated correctly, but the property is not
used for validating the POM of dependent modules???

The strange thing is, when I run Maven without the profiles.xml, but with
specifying the property on command line (like '-Dpath.db2jar=...'), all is
working fine! But that's not exactly what we want, since profiles are meant
to encapsulate those kind of settings...

Any idea? Please help!!!

Thanks,
Christoph.
-- 
View this message in context: 
http://www.nabble.com/Setting-property-in-profiles-not-evaluated-for-POM-validation--tf2429572.html#a6774088
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Executin a plugin goal from another plugin

2006-10-12 Thread Mikko

Hello,

Couple of things still open here
1) Is there a way to query the executed project form the MavenEmbedder? Or
can I get it with the @executedProject tag?
2) If the plugin executed by the MavenEmbedder produced an artifact, can it
be resolved somehow from somewhere.

br,
Mikko
---
www.codeboi.com




Mikko wrote:
 
 Hi,
 
 Still a little bit in the dark here, is there a way to query the executed
 project form the MavenEmbedder? Or can I get it with the @executedProject
 tag?
 
 br,
 Mikko
 ---
 www.codeboi.com
 
 
 Mikko wrote:
 
 Hi,
 
 Thanks for this, how could I now tell what is the output artifact(s)
 produced by the project the embedder just executed? Am I able to query it
 some how from the embedder or do artifacts get attached to the original
 project?
 
 regards,
 Mikko
 
 
 Olivier Catteau wrote:
 
 Hi,
 
 I think there is no way to execute another plugin from your own plugin
 by
 using @execute. But you would have to use the execute method of the
 MavenEmbedder class in your own mojo. It must be something like this :
 
 
 /**
  * The reactor projects in a multi-module build.
  *
  * @parameter expression=${reactorProjects}
  * @required
  * @readonly
  */
 private List reactorProjects;
 ...
 
 MavenEmbedder embedder = new MavenEmbedder();
 embedder.setClassLoader(Thread.currentThread().getContextClassLoader());
 embedder.start();
 embedder.execute(reactorProjects,
   Collections.singletonList(assembly:assembly),
   new DefaultEventMonitor(new PlexusLoggerAdapter(
 embedder.getLogger())),
   new ConsoleDownloadMonitor(),
   null,
   ((MavenProject)projects.get(0)) .getBasedir());
 
 
 I hope, it helps you.
 Olivier
 
 
 
 2006/9/19, Mikko [EMAIL PROTECTED]:


 Hi,

 Is there a way to run another plugin goal from my own plugin by using
 the
 @execute goal= tag in my plugin. I would like to be able to run the
 assembly:assembly goal from my plugin. When I use @execute
 goal=assembly:assembly, the build process says that it can not be
 found.

 br,
 Mikko
 --
 View this message in context:
 http://www.nabble.com/Executin-a-plugin-goal-from-another-plugin-tf2297411.html#a6383118
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Executin-a-plugin-goal-from-another-plugin-tf2297411.html#a6775019
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: JPOX and Maven2

2006-10-12 Thread Stephen More

What do you need to put in your pom.xml to allow for Automated Enhancement ?

-Thanks
Steve More

On 10/12/06, Aleksei Valikov [EMAIL PROTECTED] wrote:

Hi.

 As I can see (1) , the last maven plugin is using jpox 1.1.1 .

 Stéphane.

 (1) *http://mojo.codehaus.org/jpox-maven-plugin/dependencies.html

Thanks, I've also found it.
I was a bit discouraged by JPOX supports Maven1, Maven2 is not supported
statement on the JPOX site.

I've now the hotel sample running on Maven2.
Pretty nice. ;)

Thanks again.

Bye.
/lexi

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




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



Re: JPOX and Maven2

2006-10-12 Thread Jason van Zyl

You can look at Continuum for an example:

http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-model/ 
pom.xml


Thanks,

Jason.


On 12 Oct 06, at 3:42 AM 12 Oct 06, Aleksei Valikov wrote:


Hi folks,

Does anyone use JPOX with Maven2?
Which enhancer plugin do you use?

Bye.
/lexi

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





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



Re: Executin a plugin goal from another plugin

2006-10-12 Thread Jason van Zyl


On 19 Sep 06, at 2:20 AM 19 Sep 06, Mikko wrote:



Hi,

Is there a way to run another plugin goal from my own plugin by  
using the

@execute goal= tag in my plugin. I would like to be able to run the
assembly:assembly goal from my plugin. When I use @execute
goal=assembly:assembly, the build process says that it can not be  
found.




What are you trying to do? Generally this is not recommended.

Jason.


br,
Mikko
--
View this message in context: http://www.nabble.com/Executin-a- 
plugin-goal-from-another-plugin-tf2297411.html#a6383118

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


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





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



Re: JPOX and Maven2

2006-10-12 Thread Aleksei Valikov

Hi.

What do you need to put in your pom.xml to allow for Automated 
Enhancement ?


I've attached my pom.xml.

The whole example could be found here:

https://hyperjaxb3.dev.java.net/source/browse/hyperjaxb3/jdo/sample-hotel/

Bye.
/lexi
project xmlns=http://maven.apache.org/POM/4.0.0; 
	xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
	xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
	modelVersion4.0.0/modelVersion
	groupIdorg.jvnet.hyperjaxb3/groupId
	artifactIdjdo-sample-hotel/artifactId
	version0.6.0/version
	packagingjar/packaging
	nameHyperjaxb3 JDO Sample Hotel/name
	dependencies
		dependency
			groupIdjunit/groupId
			artifactIdjunit/artifactId
			version3.8.1/version
		/dependency
		dependency
			groupIdjavax.jdo/groupId
			artifactIdjdo2-api/artifactId
			version2.0/version
		/dependency
		dependency
			groupIdhsqldb/groupId
			artifactIdhsqldb/artifactId
			version1.7.3.3/version
			scopetest/scope
		/dependency
		dependency
			groupIdcommons-logging/groupId
			artifactIdcommons-logging/artifactId
			version1.1/version
		/dependency
		dependency
			groupIdlog4j/groupId
			artifactIdlog4j/artifactId
			version1.2.13/version
		/dependency
		dependency
			groupIdjpox/groupId
			artifactIdjpox/artifactId
			version1.1.1/version
		/dependency
	/dependencies
	repositories
		repository
			idmaven2-repository.dev.java.net/id
			urlhttps://maven2-repository.dev.java.net/nonav/repository/url
		/repository
		repository
			idmaven-repository.dev.java.net/id
			urlhttps://maven-repository.dev.java.net/nonav/repository/url
			layoutlegacy/layout
		/repository
	/repositories
	pluginRepositories
		pluginRepository
			idmaven2-repository.dev.java.net/id
			urlhttps://maven2-repository.dev.java.net/nonav/repository/url
		/pluginRepository
		pluginRepository
			idmaven-repository.dev.java.net/id
			urlhttps://maven-repository.dev.java.net/nonav/repository/url
			layoutlegacy/layout
		/pluginRepository
	/pluginRepositories
	build
		defaultGoaltest/defaultGoal
		plugins
			plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjpox-maven-plugin/artifactId
executions
	execution
		goals
			goalenhance/goal
		/goals
	/execution
/executions
			/plugin
			plugin
inheritedtrue/inherited
artifactIdmaven-compiler-plugin/artifactId
configuration
	source1.5/source
	target1.5/target
/configuration
			/plugin
		/plugins
	/build
/project
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: JPOX and Maven2

2006-10-12 Thread Aleksei Valikov

Hi.


You can look at Continuum for an example:

http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-model/pom.xml 


Thanks, I've also found that plugin.
Works pretty neat.

Bye.
/lexi



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



Re: Executin a plugin goal from another plugin

2006-10-12 Thread Mikko

Hi,

What I'm getting at is that I have a multimodule build and that I would like
to use the assembly plugin to assemble it and once I have the whole binary
in one jar file I need to preverify it and sometimes obfuscate it (yes, MIDP
development). 

Maybe I'm going about this the wring way, so any help would be appreciated.

thanks,
Mikko


Jason van Zyl-2 wrote:
 
 
 On 19 Sep 06, at 2:20 AM 19 Sep 06, Mikko wrote:
 

 Hi,

 Is there a way to run another plugin goal from my own plugin by  
 using the
 @execute goal= tag in my plugin. I would like to be able to run the
 assembly:assembly goal from my plugin. When I use @execute
 goal=assembly:assembly, the build process says that it can not be  
 found.

 
 What are you trying to do? Generally this is not recommended.
 
 Jason.
 
 br,
 Mikko
 -- 
 View this message in context: http://www.nabble.com/Executin-a- 
 plugin-goal-from-another-plugin-tf2297411.html#a6383118
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Executin-a-plugin-goal-from-another-plugin-tf2297411.html#a6775300
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Setting property in profiles not evaluated for POM validation?

2006-10-12 Thread Rémy Sanlaville

Hi Christoph,

I also have the same trouble. I think it's a bug.
Any idea ??


Since yesterday, I tried to use the system scope like this
   dependency
   groupIdsun.j2ee/groupId
   artifactIdj2ee/artifactId
   version1.4/version
   scopesystem/scope
   systemPath${j2ee1.4.home}/lib/j2ee.jar/systemPath
   /dependency

[WARNING] POM for 'com.test:resource:pom:1.0-SNAPSHOT:compile' is invalid.
It will be ignored for artifact resolution. Reason: Failed to validate POM
[DEBUG] Reason: Failed to validate POM
[DEBUG]
Validation Errors:
[DEBUG] For dependency Dependency {groupId=sun.j2ee, artifactId=j2ee,
version=1.4, type=jar}: system-scoped dependency must specify an absolute
path systemPath.

Rémy


2006/10/12, Christoph [EMAIL PROTECTED]:



Hi,

I face a strange problem concerning POM validation and setting properties
in
profiles.xml...

My project C depends on module B, which itself is a child of module A.
Module A defines a system scope dependency like this:

dependency
groupIddb2/groupId
artifactIddb2/artifactId
version8.2/version
scopesystem/scope
systemPath${path.db2jar}/systemPath
/dependency

The path do db2.jar depends on the developer's machine and is specified in
the profiles.xml, toghether with other settings. Both A and B are building
and deploying fine.

Now, when I try to build C, it complains about missing definition for
'path.db2jar':

[WARNING] POM for '...B:pom:4.4.0-SNAPSHOT:compile' is invalid. It will be
ignored for artifact resolution. Reason: Failed to validate POM
[DEBUG] Reason: Failed to validate POM
[DEBUG]
Validation Errors:
[DEBUG] For dependency Dependency {groupId=db2, artifactId=db2, version=
8.2,
type=jar}: system-scoped dependency must specify an absolute path
systemPath.

I'm using a profiles.xml section like this one:

profile
idenv-nb/id
activation
property
nameenv/name
valuenb/value
/property
/activation
properties

path.db2jarc:/programme/IBM/SQLLIB/java/db2java.zip/path.db2jar
...
/properties
/profile

which is triggered by -Denv=nb, and this is working fine since
'help:effective-pom' is showing me something like

  properties
path.db2jarc:/programme/IBM/SQLLIB/java/db2java.zip/path.db2jar
...
  /properties

So the profiles.xml seems to be evaluated correctly, but the property is
not
used for validating the POM of dependent modules???

The strange thing is, when I run Maven without the profiles.xml, but with
specifying the property on command line (like '-Dpath.db2jar=...'), all is
working fine! But that's not exactly what we want, since profiles are
meant
to encapsulate those kind of settings...

Any idea? Please help!!!

Thanks,
Christoph.
--
View this message in context:
http://www.nabble.com/Setting-property-in-profiles-not-evaluated-for-POM-validation--tf2429572.html#a6774088
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: [M2]Creating a companywide POM

2006-10-12 Thread Jason van Zyl


On 12 Oct 06, at 2:21 AM 12 Oct 06, Sebastian Krebs wrote:


Hello,

I've got the following question.
I want to create a companywide Parent-pom.xml with all of those
parameters and settings I will need in each project.

e.g.:
distributionManagement
repository
...
/repository
/distributionManagement

How can I inherit from my CompanyPOM?



Generally I recommend putting the version of Maven you are using in  
your SCM and change the conf/settings.xml to contain the repositories  
you need for all your developers. Otherwise you get into a chicken  
and egg situation.


Jason.


Regards

Sebastian Krebs

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





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



Re: JPOX and Maven2

2006-10-12 Thread Stephen More

Thanks.
   It seems that when I make changes to package.jdo in the src
directory, it is not being copied over to the target directory. Is
there a way I can force it to copy over ?

-Steve More


On 10/12/06, Jason van Zyl [EMAIL PROTECTED] wrote:

You can look at Continuum for an example:

http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-model/
pom.xml


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



Re: JPOX and Maven2

2006-10-12 Thread Aleksei Valikov

Hi.


   It seems that when I make changes to package.jdo in the src
directory, it is not being copied over to the target directory. Is
there a way I can force it to copy over ?


Is package.jdo placed in src/main/java or src/main/resources? Should be placed 
in latter.


Bye.
/lexi

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



Re: JPOX and Maven2

2006-10-12 Thread Aleksei Valikov

Hi.


It is currently placed in src/main/resources.

It will get copied over only once. If I make a change, then I am
forcing it by running mvn clean, then a mvn test.

I would prefer to just edit package.jdo then mvn test.


Sorry, can't reproduce.
In my case mvn test copies the new package.jdo. I have maven 2.0.4 and all the 
plugin are up-to-date.


Bye.
/lexi

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



Re: [M2] How do I run J2EE compilers?

2006-10-12 Thread kurron

Thanks for the tip.  That has helped me a lot.  I noticed that the value of
the project.artifact property looks something like this:  artifact:
org.kurron.maven2:ear-one-WLS:ear:1.0-SNAPSHOT.  I don't suppose there is
convenient mechanism for obtaining the full path to the EAR, such as:
/home/me/.mvn/repository/.../my-app-1.0-SNAPSHOT.ear?  I think I have enough
data in the mojo to cobble together the pieces I need but I figured I would
see if there was something already built in.

Many Thanks,
Ron


Manuel Ledesma wrote:
 
 Manuel Ledesma wrote:
 kurron wrote:
 Our build system requires us to run vendor-specific J2EE compilers on 
 our EAR
 files.  I ran across the Weblogic plugin that can execute the appc 
 program
 on an archive but it requires that you specify archive information in 
 the
 POMs that create EARs.  What I would really like is to automagically 
 invoke
 appc on any EAR that gets built.  To that end, I've been 
 experimenting with
 writing a Java mojo that will invoke appc (or any other program we might
 need) right after an archive is created.  My mojo is getting handed the
 maven session, executed project,  current project and settings but, 
 to this
 point, I haven't been able to figure out how to obtain the artifact 
 that was
 just created.  I see printouts from my mojo so I know it is getting 
 called. When the mojo asks the executed project or the current 
 project what the
 artifact is, they return null.The artifact id comes back as
 empty-project from both objects.  Can anyone offer any advice on how to
 obtain the full path to the artifact that was just created?My 
 mojo is
 registered to go off during the package phase ( @phase package) and I 
 see it
 executing after the EAR/JAR/WARs are created so it appears to be getting
 called when I want it to.  Any help is appreciated.

 Thanks,
 Ron
   
 You can use the following expression

 //parameter 
 expression=${project.build.directory}/${project.build.finalName}

 base on packaging you can know if it's an ear, war or ejb.

 //




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


 This all you need to write the plugin
 
 **
* Compile classpath
*
* @parameter expression=${project.compileClasspathElements}
* @required
* @readonly
*/
   private ListString classpathElements;
 
   /**
* @parameter expression=${project.artifact}
*/
   private Artifact artifact;
 
   /**
* @parameter expression=${project.packaging}
*/
   private String packaging;
 
 I wrote a plugin for appc too.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-M2--How-do-I-run-J2EE-compilers--tf2424323.html#a6776218
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: JPOX and Maven2

2006-10-12 Thread Stephen More

It is currently placed in src/main/resources.

It will get copied over only once. If I make a change, then I am
forcing it by running mvn clean, then a mvn test.

I would prefer to just edit package.jdo then mvn test.

-Steve More

On 10/12/06, Aleksei Valikov [EMAIL PROTECTED] wrote:

Hi.

It seems that when I make changes to package.jdo in the src
 directory, it is not being copied over to the target directory. Is
 there a way I can force it to copy over ?

Is package.jdo placed in src/main/java or src/main/resources? Should be placed
in latter.

Bye.
/lexi

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




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



Re: Ant Mojo: How to use echoproperties (optional task)

2006-10-12 Thread Jason van Zyl

On 11 Oct 06, at 2:26 AM 11 Oct 06, Gisbert Amm wrote:

I'm trying to make a reusable plugin as described in section 5.4.2  
of Better builds with Maven and on http://maven.apache.org/guides/ 
plugin/guide-ant-plugin-development.html (both docs do slightly  
differ and it seems that the website is the more current version).


It works fine with core ant tasks but not with optional tasks like  
echoproperties.


I'm using Maven 2.0.4.



Yes, this is what I've fixed over the last week. It will not work  
without the changes that I've made to trunk. I've injected all the  
classpaths maven creates into the Ant-script used for the plugin and  
I have also added the ability to unpack resources inside the Ant- 
based plugin so that they can be reference in a known place in the  
file system. It will take some organizational to prepare an example  
but I will try to put something together. If you don't need the  
resource unpacking then this can probably work in 2.0.4 but I haven't  
tested it yet.


Jason.


-Gisbert

Jason van Zyl wrote:
Just to be clear an Ant-based Mojo is not the same thing as using  
the  Ant Run plugin. I have just merged the underlying utilities  
for the  Ant Run plugin and the Ant-based Mojos. Prior to  
yesterday Ant-based  mojos were not very useful as there was no  
way to get hold of the  various classpaths constructed by Maven as  
are available in the Ant  Run plugin.
Are you trying to use the Ant Run plugin or make a reusable  
plugin  using Ant script?

Jason.
On 10 Oct 06, at 10:29 AM 10 Oct 06, Gisbert Amm wrote:

I get this error message:

Could not create task or type of type: echoproperties.

I found this discussion:

http://mail-archives.apache.org/mod_mbox/maven-users/200603.mbox/ 
% [EMAIL PROTECTED]


and the mentioned documentation at:

http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

However, without further explanation I can't figure out how to  
use  the echoproperties task.


Could somebody please point me in the right direction?

Regards,
Gisbert Amm

 
-

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]


--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

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





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



Re: Ant Mojo: How to use echoproperties (optional task)

2006-10-12 Thread Gisbert Amm

Jason van Zyl wrote:

On 11 Oct 06, at 2:26 AM 11 Oct 06, Gisbert Amm wrote:

I'm trying to make a reusable plugin as described in section 5.4.2  of 
Better builds with Maven and on http://maven.apache.org/guides/ 
plugin/guide-ant-plugin-development.html (both docs do slightly  
differ and it seems that the website is the more current version).


It works fine with core ant tasks but not with optional tasks like  
echoproperties.


I'm using Maven 2.0.4.



Yes, this is what I've fixed over the last week. It will not work  
without the changes that I've made to trunk. I've injected all the  
classpaths maven creates into the Ant-script used for the plugin and  I 
have also added the ability to unpack resources inside the Ant- based 
plugin so that they can be reference in a known place in the  file 
system. It will take some organizational to prepare an example  but I 
will try to put something together. If you don't need the  resource 
unpacking then this can probably work in 2.0.4 but I haven't  tested it 
yet.


That would be great. I'll be patient. In fact, I got enough other things 
to sort out with Maven2 so there is no danger that I'll have to be idle 
because of waiting for this one ;)


-Gisbert


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



company pom problem

2006-10-12 Thread shevit

Hi,

We are facing a problem with multi module maven2 projetcs with a super-POM
defined at the company level.
It's ok to store modules in subdirectories of the project. But the
organisation POM is shared between multiple projects, it cannot be placed at
the parent directory level of each of them. Also, company POM does not
define it's projects as modules. It lives it's own life in the maven2
repository. 

So, when we are uploading the project POM to Continuum (using URL), it looks
for the company POM in ./..

Is there any way to exclude the organisation POM from continuum and let
maven2 download it from the remote repository? 

Do you see another solution for this problem?

Thanks a lot,
Vitaliy Shevchuk
-- 
View this message in context: 
http://www.nabble.com/%22company-pom%22-problem-tf2430528.html#a6776852
Sent from the Continuum - Users mailing list archive at Nabble.com.



RE: company pom problem

2006-10-12 Thread graham

The answer is... yes! Simply remove the relative path information. For example:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
parent
groupIdcom.biomedcentral.organization/groupId
artifactIdorganization/artifactId
version1.1-SNAPSHOT/version
/parent
modelVersion4.0.0/modelVersion
groupIdcom.biomedcentral/groupId



You just have to make sure that the pom you are referencing is published in a 
repository that the build environment has access to, and it will download the 
pom just like any other dependency.

G


 -Original Message-
 From: shevit [mailto:[EMAIL PROTECTED]
 Sent: 12 October 2006 15:04
 To: continuum-users@maven.apache.org
 Subject: company pom problem
 
 
 
 Hi,
 
 We are facing a problem with multi module maven2 projetcs 
 with a super-POM
 defined at the company level.
 It's ok to store modules in subdirectories of the project. But the
 organisation POM is shared between multiple projects, it 
 cannot be placed at
 the parent directory level of each of them. Also, company POM does not
 define it's projects as modules. It lives it's own life in the maven2
 repository. 
 
 So, when we are uploading the project POM to Continuum (using 
 URL), it looks
 for the company POM in ./..
 
 Is there any way to exclude the organisation POM from 
 continuum and let
 maven2 download it from the remote repository? 
 
 Do you see another solution for this problem?
 
 Thanks a lot,
 Vitaliy Shevchuk
 -- 
 View this message in context: 
 http://www.nabble.com/%22company-pom%22-problem-tf2430528.html
 #a6776852
 Sent from the Continuum - Users mailing list archive at Nabble.com.
 
 


[M2] FindBugs Plugin: How to generate XML file?

2006-10-12 Thread Gisbert Amm
Does anybody know how I can persuade the Maven2 FindBugs Plugin to let 
Findbugs generate an XML file containing its results into the target 
directory in addition to the HTML report in target/site?


The Maven1 Findbugs Plugin automagically generates a file named 
findbugs-raw-report.xml into the target directory during maven site.


I cannot find any information about how to achieve that with Maven2 
neither on http://maven-plugins.sourceforge.net/maven-findbugs-plugin/ 
nor on http://mojo.codehaus.org/findbugs-maven-plugin/howto.html


I tried  generateXmltrue/generateXml in the configuration section 
as it is for the Clover Plugin but of course that didn't work.


What I want is to use this option of Findbugs:

-xml

Produce the bug reports as XML. The XML data produced may be viewed 
in the GUI at a later time. You may also specify this option as 
-xml:withMessages; when this variant of the option is used, the XML 
output will contain human-readable messages describing the warnings 
contained in the file. 
(http://findbugs.sourceforge.net/manual/installing.html#commandLineOptions)


Any pointer or help would be highly appreciated.

-Gisbert

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



[M1.1 Oct Snapshot] cannot generate jar/site

2006-10-12 Thread arnaud . heritier
Hi Benoit,

  As I said in my previous mail [1] you have to add another repository 
where you'll find the snapshot :
maven.repo.remote=
http://repo1.maven.org/maven,http://people.apache.org/repo/m1-snapshot-repository/
 


  Cheers

Arnaud

  [1] 
http://www.nabble.com/Maven-1.1-RC1-SNAPSHOT-needs-testers-tf2413198.html
 
*
This message and any attachments (the message) are confidential and intended 
solely for the addressee(s).
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to 
alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or falsified.
  
Ce message et toutes les pieces jointes (ci-apres le message) sont 
confidentiels et etablis a l'intention exclusive de ses
destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout 
message electronique est susceptible d'alteration. 
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de 
ce message s'il a ete altere, deforme ou falsifie.
*


Re: [M2] Plugin for XMLBeans 2.2.x

2006-10-12 Thread Ralf Quebbemann

Yes it is: http://mojo.codehaus.org/xmlbeans-maven-plugin/

Take care

Ralf

[EMAIL PROTECTED] wrote:

Hi Y'All

Is there a XMLBean 2 plug-in available for Maven 2.0 that generates the
schema JAR
from the XSD files?


--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,

100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.


E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.



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



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



Maven XSLT Plugin Question

2006-10-12 Thread stoddarn
I have an application that using XML to define the features added to each
release version.  I wrote an XSLT to convert this XML into the changes
plugin XML format.  This allows me to have the same information in the
application and the generated site, but the XSLT execution is a manual
step.  I have a couple of ideas for a solution, but I’m not sure what is
available.

  1. Does the changes plugin allow a mapping XSL to be included to convert
a different XML into a changes plugin?
  2. If not, is there plugin to executes XSL transforms during the site
cycle?
  3. If not, can an ant script be setup to run before the changes plugin? 
Or is there a “pre-site” cycle that it can be executed.

If you have a different idea, I would be interested in hearing it. 
Especially if the ant script is the only solution, since it seems hackish
to call java with a Saxon jar to transform during the site generation.

Thanks for the help,
-Nate



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



[M2] Deploy into Remote Repository

2006-10-12 Thread Sebastian Krebs
Hello,

 

I want to achieve the following:

 

I have a remote repository on our local server and I want to say M2 that it has 
to deploy projects artefacts into

this remote repository.

 

But without configure this directly in each pom.xml, 

because we have multiple projects and for each the repository will be the same.

 

Is this possible?

 

Mit freundlichem Gruß / Best Regards

 

Sebastian Krebs

 

QUIPSY QUALITY GmbH

Stuttgarter Strasse 23

D-75179 Pforzheim

 

[EMAIL PROTECTED]

 



Using modules in profiles

2006-10-12 Thread Nir Feldman
I would like to define the following:

 

project

.

modules

modulea/module

moduleb/module

/modules

profiles

profile

idprofile1/id

modules

modulea/module

/modules

/profile

/profiles



/project

 

The expected behavior is:

When running the project with no profile a and b will be built.

When running the project with profile1 profile only a will be built.

 

How can this behavior be achieved?

 

Thanks,

Nir Feldman, CCM RD, [EMAIL PROTECTED]
direct +972-3-5399896  fax +972-3-5331617
19 Shabazi St., Yehud, Israel 56100

MERCURY
Business Technology Optimization
www.mercury.com http://www.mercury.com 

 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Multiple Repository Handling (and ibiblio fallback)

2006-10-12 Thread Yves Van Steen
Hello,

 

I’m looking for some help on repository handling.

In our company we have 2 internal repository servers (both running
maven-proxy). They are also used for Ibiblio mirroring.

And they both contain 2 directories (one for snapshots and one for
releases).

This setup is complete and works like a charm.  The problem lies with the
maven configuration.

 

1)   We can set the mirror tag in the settings.xml.

This cause 2 problems.  One It always searches on one of the configured
servers. So when we need a artifact that was deployed on a other server it
can’t find it and fails.  The second problem is when I or my colleages work
on their laptop at home none of these 2 servers are available and It doesn’t
switch back to the main ibiblio server ( HYPERLINK
http://www.ibiblio.org/maven2www.ibiblio.org/maven2 ).

 

  mirrors

 mirror

   idrepo1/id

   mirrorOfcentral/mirrorOf

   nameIbiblio Mirror 1/name

   urlhttp://192.168.1.2:/repository/url

  /mirror

 mirror

   idrepo1/id

   mirrorOfcentral/mirrorOf

   name Ibiblio Mirror 1/name

   urlhttp://192.168.1.3:/repository/url

  /mirror

  /mirrors

 

2)   The other possibility is to create a profile in the settings.xml
and declare the repositories there.

The same problem occurs here there is only one repository chosen to look for
the object. So if its deploys to the other server though break.

Also the pom gets downloaded from ibiblio and the jar from the local
mirroring ibiblio server.  This you can solve with declaring the id of the
repository to central.

And again when I work at home no artefact downloading is possible because of
no access to the repositories is possible.

 

   profiles

 profile

   idmyprofile/id

   repositories

 repository

   idRepo1/id

   namerepo1/name

   urlhttp://192.168.1.3:/repository/url

 /repository

 repository

   idRepo2/id

   namerepo2/name

   urlhttp://192.168.1.2:/repository/url

 /repository

   /repositories

 /profile

 

  /profiles

  

   activeProfiles

 activeProfilemyprofile/activeProfile

 /activeProfiles

 

How do I create this setups fully automated ? Is this normal behaviour or is
this a bug.

Maven always seems to just look at one of the declared repositories.

I have tried a lot but can’t seem to get this setup up and running.

 

What we do know is when we work at home we disable a profile with the
internal repositories declared in the settings.xml and for the the 2
internal repo servers (releases and snapshots) we rsync (as a cron job) the
directories on the 2 so both servers contain the same structure and content.

 

Thanks for any assistance you can provide.

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006
 


Assembly: includes/excludes and dependencySet

2006-10-12 Thread Michael Schneider

Hi!

I am trying to build a directory test/lib which only contains those
dependencies belonging to scope test. Currently the only dep with this
property is the junit.jar. So I am trying the following in my assembly
descriptor:

 dependencySet
   outputDirectorytest/lib/outputDirectory
   scopetest/scope
   includes
 include*junit*/include
   /includes
 /dependencySet

But this does not work: Not even the directory test/lib is being built
in this case.

BTW: Completely removing the includes section from the above
dependencySet results in a directory test/lib containing /every/
dependency including those with scope test, runtime and compile.
This is of course also not what I want.

Any help?

Cheers,
Michael



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

[m2] release-plugin - ignore snapshot versions

2006-10-12 Thread David J. M. Karlsen
Is there any way to let the releaseplugin to ignore the fact that I'm 
using snapshot versions of plugins. It's very nice that it checks, but I 
could still use the plugin to change poms, do svn tagging and so on.


David


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

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



Re: idea project jdk

2006-10-12 Thread Paul Barry

Fair enough, but the message does say:

jdkName is not set, using [java version1.5.0_08] as default.

Even when it uses 1.5, which is confusing.  How does maven know
which version of idea I am using?

On 10/12/06, Geoffrey De Smet [EMAIL PROTECTED] wrote:

I had this issue when I migrated from intellij idea 4 to 5.
Maven 2 is actually doing the best thing ... it can.

4 calls its jdk by default java version1.5.0_08 and 5 calls it by
default 1.5. So maven2 takes (if you don't override it with
configurationjdkName...) java version1.5.0_08 in 4 and 1.5 in 5.

The fun starts when you've migrated from idea 4 to 5: you could be in 5
with a name of java version1.5.0_08, because that name was imported
from 4.

Not sure what happens in the new idea 6 though, I would expect it to
behave like 5.

Paul Barry wrote, On 2006-10-11 10:20 PM:
 Maven says this:

 jdkName is not set, using [java version1.5.0_08] as default.

 But then if you look at the .ipr that it generates, you see this:

  component name=ProjectRootManager version=2
 assert-keyword=true jdk-15=true project-jdk-name=1.5 /

 So I renamed by jdk to 1.5 in IDEA and it works now.  But that
 message should porbably be changed to read:

 jdkName is not set, using [1.5] as default.



 On 10/11/06, Paul Barry [EMAIL PROTECTED] wrote:
 Hello,

 When I followed the tutorial at
 http://maven.apache.org/guides/getting-started/index.html, after I ran
 mvn idea:idea and opened the project in idea, the project jdk was not
 set.  Is there something I can do in maven to have the project jdk
 said.


--
With kind regards,
Geoffrey De Smet


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




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



RE: [M2] Deploy into Remote Repository

2006-10-12 Thread Yves Van Steen
Hey,

This is an example of a pom with the settings to download to a repo server
and from a repo server.  For the deploying process just do mvn deploy.
It then builds this project and places it in the local repo and then deploys
it to the remote repo.  It uses scp (ssh based).

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  
  groupIdguide.management.snapshots/groupId
  artifactIdguide-management-snapshots/artifactId
  packagingpom/packaging
  version1.0-SNAPSHOT/version
  nameProject Guide Management Snapshots/name
  
  repositories
repository
  idexample-repo/id
  nameExample Repo/name
  urlhttp://192.168.1.2:/repository/url
/repository
  /repositories
  
  distributionManagement
repository
idexamplerepo/id !-- must match with server profile in your
settings.xml --
nameExample Repo Releases/name
urlscp://192.168.1.2/repo/maven/internal/url
/repository
snapshotRepository
idexample-repo/id !-- must match with server profile in your
settings.xml --
nameExample Repo Snapshots/name
urlscp://192.168.1.2/repo/maven/snapshots/url
/snapshotRepository
site
   idexample-repo/id !-- must match with server profile in your
settings.xml --
   urlscp://192.168.1.2/var/www/localhost/htdocs/test/url
/site
  /distributionManagement
  
  modules
moduleguide-management-snapshots-core/module
moduleguide-management-snapshots-dep/module
  /modules
  
/project

For the authentication i have a section in my settings.xml.
You can use ssh with password authentication or with RSA authentication.
Your choice.

  servers
server
  idexample-repo/id
  usernamevansteeny/username
  passwordvansteeny/password
  filePermissions774/filePermissions
  directoryPermissions774/directoryPermissions
/server

!-- Another sample, using keys to authenticate.
server
  idsiteServer/id
  privateKey/path/to/private/key/privateKey
  passphraseoptional; leave empty if not used./passphrase
/server
--
  /servers

Haven fun with it.

-Oorspronkelijk bericht-
Van: Sebastian Krebs [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 11 oktober 2006 10:26
Aan: users@maven.apache.org
Onderwerp: [M2] Deploy into Remote Repository

Hello,

 

I want to achieve the following:

 

I have a remote repository on our local server and I want to say M2 that it
has to deploy projects artefacts into

this remote repository.

 

But without configure this directly in each pom.xml, 

because we have multiple projects and for each the repository will be the
same.

 

Is this possible?

 

Mit freundlichem Gruß / Best Regards

 

Sebastian Krebs

 

QUIPSY QUALITY GmbH

Stuttgarter Strasse 23

D-75179 Pforzheim

 

[EMAIL PROTECTED]

 


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date: 11/10/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date: 11/10/2006
 


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



Re: Running Maven 2.0.4 from behing a firewall

2006-10-12 Thread Wayne Fay

Try mvn -X for additional debugging information.

And if you really want to access that buffer, try piping the output to
a file and then email/ftp the file somewhere.

Wayne

On 10/12/06, Peter_S [EMAIL PROTECTED] wrote:


Hi!


I'm working on a project where one of the requirements is to update a
project to use Maven 2 instead of Maven 1. In the process of doing this I'm
trying to learn how to use Maven, as it is new to me. This has become a bit
of a problem because I have to deal with a corporate firewall. After reading
various forum posts and web articles I think I have configured the
settings.xml with the correct proxy settings, but I'm having some
difficulties with the archetype plugin.

When executing this command from the command line:

mvn archetype:create -DgroupId=com.test.app -DartifactId=testapp

the trace informes me of a java.lang.nullPointerException at
org.apache.maven.plugin.DefaultPluginManager.addPlugin ...

I'd post the entire stack tracke but can't access the paste buffer from the
production network.

I've searched all over the web for some info but can't seem to find a
solution to the problem. I've installed Maven 2 on my laptop at home, and
when turning off the firewall I experience no such problems.

What am I doing wrong?

--
View this message in context: 
http://www.nabble.com/Running-Maven-2.0.4-from-behing-a-firewall-tf2429049.html#a6772621
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



RE: [M2] Deploy into Remote Repository

2006-10-12 Thread Yves Van Steen
I forgot something. If you want to declare it globally you can use a top
project pom (like I did) or a company pom which your project pom inherits
from using the parent tag in the pom.xml.

I you have multiple people using one pc. Then you need to configure the
server section in the settings.xml file in the user directory not the conf
directory of the maven install files.


-Oorspronkelijk bericht-
Van: Sebastian Krebs [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 11 oktober 2006 10:26
Aan: users@maven.apache.org
Onderwerp: [M2] Deploy into Remote Repository

Hello,

 

I want to achieve the following:

 

I have a remote repository on our local server and I want to say M2 that it
has to deploy projects artefacts into

this remote repository.

 

But without configure this directly in each pom.xml, 

because we have multiple projects and for each the repository will be the
same.

 

Is this possible?

 

Mit freundlichem Gruß / Best Regards

 

Sebastian Krebs

 

QUIPSY QUALITY GmbH

Stuttgarter Strasse 23

D-75179 Pforzheim

 

[EMAIL PROTECTED]

 


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date: 11/10/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date: 11/10/2006
 


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



[m2] Surefire-Plugin: how to get aggregated XML?

2006-10-12 Thread Gisbert Amm

Hi,

in Maven1 the Junit Plugin wrote the test data aggregated into a file 
named TESTS-TestSuites.xml. How can I achieve this with the Maven2 
Surefire plugin?


-Gisbert

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



Re: Maven XSLT Plugin Question

2006-10-12 Thread Siegfried Goeschl

HI Nate,

https://svn.codehaus.org/mojo/trunk/mojo/xslt-maven-plugin worked for me

Cheers,

Siegfried Goeschl

Nate wrote:

I am not able to download this plugin source from specified SVN URL in the
source repository link.  Am I doing something wrong?

Thanks,
-Nate




http://mojo.codehaus.org/xslt-maven-plugin/

Cheers,

Siegfried Goeschl

Marco Mistroni wrote:


Hello,
my 2 cents ant has  an xslt task, you could use maven antrun plugin
to
run it

will that be a possible solution?

hth
marco



On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote:



I am not aware of an XSLT plug-in, but writing one should be a pretty
straight forward task.  I guess I then would try to associate the
plug-in with source code generation or something similar during the
site
creation life cycle.

Writing Maven 2 plug-ins is an easy to achieve task and there are
plenty
of examples available.


Andreas




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 11, 2006 7:24 AM
To: users@maven.apache.org
Subject: Maven XSLT Plugin Question

I have an application that using XML to define the features added to
each
release version.  I wrote an XSLT to convert this XML into the changes
plugin XML format.  This allows me to have the same information in the
application and the generated site, but the XSLT execution is a manual
step.  I have a couple of ideas for a solution, but I'm not sure what
is
available.

1. Does the changes plugin allow a mapping XSL to be included to
convert
a
different XML into a changes plugin?
2. If not, is there plugin to executes XSL transforms during the site
cycle?
3. If not, can an ant script be setup to run before the changes plugin?
Or is there a pre-site cycle that it can be executed.

If you have a different idea, I would be interested in hearing it.
Especially if the ant script is the only solution, since it seems
hackish
to call java with a Saxon jar to transform during the site generation.

Thanks for the help,
-Nate



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


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





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










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



Re: [M2] FindBugs Plugin: How to generate XML file?

2006-10-12 Thread Dan Tran

sounds like a bug, please file a JIRA

On 10/12/06, Gisbert Amm [EMAIL PROTECTED] wrote:


Does anybody know how I can persuade the Maven2 FindBugs Plugin to let
Findbugs generate an XML file containing its results into the target
directory in addition to the HTML report in target/site?

The Maven1 Findbugs Plugin automagically generates a file named
findbugs-raw-report.xml into the target directory during maven site.

I cannot find any information about how to achieve that with Maven2
neither on http://maven-plugins.sourceforge.net/maven-findbugs-plugin/
nor on http://mojo.codehaus.org/findbugs-maven-plugin/howto.html

I tried  generateXmltrue/generateXml in the configuration section
as it is for the Clover Plugin but of course that didn't work.

What I want is to use this option of Findbugs:

-xml

Produce the bug reports as XML. The XML data produced may be viewed
in the GUI at a later time. You may also specify this option as
-xml:withMessages; when this variant of the option is used, the XML
output will contain human-readable messages describing the warnings
contained in the file.
(http://findbugs.sourceforge.net/manual/installing.html#commandLineOptions
)

Any pointer or help would be highly appreciated.

-Gisbert

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




RE: Using modules in profiles

2006-10-12 Thread Zeltner Martin
Hello Nir

Modules which are not defined inside a profile are always active.
Modules defined inside a profile will be added to the ones defined
outside a profile. To achive your needs you define at best two profiles.
The first one contains modules a and b and is activated by default, the
second profile contains only the module a and is not active by default.

Cheers,
Martin
http://el4j.sf.net


 

 -Original Message-
 From: Nir Feldman [mailto:[EMAIL PROTECTED] 
 Sent: Mittwoch, 11. Oktober 2006 12:05
 To: users@maven.apache.org
 Subject: Using modules in profiles
 
 I would like to define the following:
 
  
 
 project
 
 .
 
 modules
 
 modulea/module
 
 moduleb/module
 
 /modules
 
 profiles
 
 profile
 
 idprofile1/id
 
 modules
 
 modulea/module
 
 /modules
 
 /profile
 
 /profiles
 
 
 
 /project
 
  
 
 The expected behavior is:
 
 When running the project with no profile a and b will be built.
 
 When running the project with profile1 profile only a will be built.
 
  
 
 How can this behavior be achieved?
 
  
 
 Thanks,
 
 Nir Feldman, CCM RD, [EMAIL PROTECTED]
 direct +972-3-5399896  fax +972-3-5331617
 19 Shabazi St., Yehud, Israel 56100
 
 MERCURY
 Business Technology Optimization
 www.mercury.com http://www.mercury.com 
 
  
 
 
 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email 
 __
 

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



SCM URL field not sticky/not updating on web interface

2006-10-12 Thread Michael Kearney
Hello All,

I'm having trouble with trying to update the SCM URL field on the Update
Continuum Project webpage.  I enter my new SCM information, trying to correct an
earlier error.  I then press the submit button and then force a build.  The
build works but when I go back to the Project Info webpage, the SCM information
is back to the old, bad value.  I running Continuum 1.0.3 on Solaris 10 and I
originally ran as root but switched to user 'continuum'.  Any idea what I might
have done to myself?

 Thanks,
   Michael



RE: [M2] Classifier removed during packaging

2006-10-12 Thread Andreas Guther
Dan,

What makes you think this is a bug?  The classifier behavior seems to be
hardly documented; at least I am not able to find any documentation.

I am switching back and forth if this behavior is intentionally or not.
I started to look into the maven-war-plugin sources but so far could not
spot the code that is actually causing the removing of the classifier.  

I added information about the classifier in the affected jar files we
are using just to make sure that I end up with the correct jar file.  So
far the jar files are the right one, but just without the classifier in
the name. 

As said, this makes me think this is intentionally.  Please explain why
you think this is a bug.

I have no problems filing a bug, but would like to collect other
opinions as well.  But maybe a bug entry would be the best place to
discuss this.

Thanks in advance,

Andreas


-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 11, 2006 8:36 PM
To: Maven Users List
Subject: Re: [M2] Classifier removed during packaging

It is a definitely a bug. Please file a Jira against war plugin

-D


On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote:

 So far it looks to me as if the behavior is intentionally.

 I made some tests with the classifier giving TestNG the scope compile
 which forces Maven to add it to the war file which I usually do not
 (scopetestscope instead) and used classifierjdk14/classifier.

 I ended up again with a jar file that did not contain the classifier
in
 its name.  This lets me conclude that this is an desired behavior.

 I personally would feel more comfortable if the classifier would
remain
 in the jar file name.  It makes it easier to control what is actually
in
 the WEB-INF/lib folder.  That removing of the classifier behind the
 scene is a little bit unexpected and confusing in my view.



 Is there a way to force Maven (i.e. the responsible plug-in) to keep
the
 jar file classifier while adding jars to the war file?

 Andreas



 -Original Message-
 From: Andreas Guther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 10, 2006 11:43 AM
 To: Maven Users List
 Subject: [M2] Classifier removed during packaging

 I have the following situation with Maven 2, classifier usage, and
 packaging to a war file:

 The classified jar file is correctly downloaded from repository but
ends
 in the war file without the classifier part in the jar file name.

 I.e. in my local repository I get the dependency
 something-1.0-classified.jar downloaded but in the war file I get
only
 something-1.0.jar.  I expected to see the
something-1.0-classified.jar
 file in the war.  The strange thing is that our repositories do not
 contain the classifier-less jar file at all.

 I went through the Maven debug output of the build process and during
 the compile phase the file with the classifier is downloaded from the
 repository and put on the compile path as expected.

 But during the Assembling the classifier in the name seems to get
 removed and the debug output reads Processing: something-1.0.jar

 I am not sure if this behavior is intentional or if I do something
 wrong.

 Can someone tell me if this is by design?  If not, I at least know
that
 I have to dig more into the issue.

 Thanks in advance,

 Andreas



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



[M2] XSLT Plugin

2006-10-12 Thread Nate
Hello,

http://mojo.codehaus.org/xslt-maven-plugin/index.html

What is the status of the maven2 XSLT Plugin?  The source repository links
are invalid.  Is there a different location of the source code?

Also, what is the difference between the following servers?
   http://people.apache.org/maven-snapshot-repository/
   http://snapshots.repository.codehaus.org/

Thanks for the help,
-Nate



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



Re: [M2] Classifier removed during packaging

2006-10-12 Thread Dan Tran

from user perspective, some thing in maven changes the artifact file name
which
is unexpected.  maven-dependency-plugin does a lots of artfacts
manipulations,
unless the user tells it so, the file name remains the same.

-D




On 10/12/06, Andreas Guther [EMAIL PROTECTED] wrote:


Dan,

What makes you think this is a bug?  The classifier behavior seems to be
hardly documented; at least I am not able to find any documentation.

I am switching back and forth if this behavior is intentionally or not.
I started to look into the maven-war-plugin sources but so far could not
spot the code that is actually causing the removing of the classifier.

I added information about the classifier in the affected jar files we
are using just to make sure that I end up with the correct jar file.  So
far the jar files are the right one, but just without the classifier in
the name.

As said, this makes me think this is intentionally.  Please explain why
you think this is a bug.

I have no problems filing a bug, but would like to collect other
opinions as well.  But maybe a bug entry would be the best place to
discuss this.

Thanks in advance,

Andreas


-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 11, 2006 8:36 PM
To: Maven Users List
Subject: Re: [M2] Classifier removed during packaging

It is a definitely a bug. Please file a Jira against war plugin

-D


On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote:

 So far it looks to me as if the behavior is intentionally.

 I made some tests with the classifier giving TestNG the scope compile
 which forces Maven to add it to the war file which I usually do not
 (scopetestscope instead) and used classifierjdk14/classifier.

 I ended up again with a jar file that did not contain the classifier
in
 its name.  This lets me conclude that this is an desired behavior.

 I personally would feel more comfortable if the classifier would
remain
 in the jar file name.  It makes it easier to control what is actually
in
 the WEB-INF/lib folder.  That removing of the classifier behind the
 scene is a little bit unexpected and confusing in my view.



 Is there a way to force Maven (i.e. the responsible plug-in) to keep
the
 jar file classifier while adding jars to the war file?

 Andreas



 -Original Message-
 From: Andreas Guther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 10, 2006 11:43 AM
 To: Maven Users List
 Subject: [M2] Classifier removed during packaging

 I have the following situation with Maven 2, classifier usage, and
 packaging to a war file:

 The classified jar file is correctly downloaded from repository but
ends
 in the war file without the classifier part in the jar file name.

 I.e. in my local repository I get the dependency
 something-1.0-classified.jar downloaded but in the war file I get
only
 something-1.0.jar.  I expected to see the
something-1.0-classified.jar
 file in the war.  The strange thing is that our repositories do not
 contain the classifier-less jar file at all.

 I went through the Maven debug output of the build process and during
 the compile phase the file with the classifier is downloaded from the
 repository and put on the compile path as expected.

 But during the Assembling the classifier in the name seems to get
 removed and the debug output reads Processing: something-1.0.jar

 I am not sure if this behavior is intentional or if I do something
 wrong.

 Can someone tell me if this is by design?  If not, I at least know
that
 I have to dig more into the issue.

 Thanks in advance,

 Andreas



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




mvn2 release:prepare not creating tag in svn

2006-10-12 Thread Attila Mezei-Horvati
I have a project as:

Project/pom.xml
Project/code/pom.xml -- type: jar
Project/code2/pom.xml -- type: jar (depends on code.jar)
Project/webapp/pom.xml -- type: war (depends on code.jar and code2.jar)

If I run the commands: 
mvn release:prepare -DdryRun=true
mvn release:prepare

they run correctly, saying everything is ok. dryRun version tells me, that when 
running live, it will commit files to svn under a new tag. When I run mvn 
release:prepare however it does not commit/create a release tag in svn. It does 
not give any error either.

What I observer is that if I do
mvn release:prepare -Dresume=false 
at this point, it will create the tag in svn as expected.

I did not met this behaviour before (I had both multi project poms and simple 
project poms). Any idea what is causing it? I cannot seem to find anything 
about it on the net.

I have this in the main pom.xml:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-release-plugin/artifactId
configuration
goalsdeploy/goals
tagBasesvn://[path to svn]/releases/tagBase
/configuration
/plugin

thanks,
Attila






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



[M2] Insert project version into Javadoc?

2006-10-12 Thread Roland Bali

Hi everyone,

Is it possible to insert contents of the version tag from the POM into the
Javadoc @version-tag?


Kind regards,
Roland


Re: Maven 1.1 RC1 SNAPSHOT needs testers

2006-10-12 Thread Arnaud HERITIER

Thanks Gisbert.

 Do not hesitate to ask us some help. If there's some backward
incompatibilities, we'll try to fix them.

Arnaud

On 10/12/06, Gisbert Amm [EMAIL PROTECTED] wrote:


Arnaud HERITIER wrote:
 Thanks James for your feedback.
 We'll add a note about plugin dependencies in projects.

 Nobody else is interested by maven 1.1 ?

 Should we continue to try to release a final version 1.1 ?
 Everybody moved to maven 2 or your existing maven 1.x satisfy you ?

We are indeed interested in Maven 1.1 since more than 200 of our
existing builds are currently using Maven 1.1 beta 2 and will definitely
not be migrated to Maven 2.

However, we simply haven't got the time to test Maven 1.1 at the moment
since we're fiddling with Maven 2 to probably make it the default for
all future builds.

I shortly switched the live build system to Maven 1.1 beta 3 when it
came out (beginning of last week, IIRC), but got some errors I haven't
had the time to further investigate yet (most of them probably
incompatibilities with our home grown plugins, I guess).
So I switched back to Maven 1.1 beta 2 until I got a bit more time (only
touch a running system when you got time to fix it afterwords).

I think I can give the RC1 a try next week.

-Gisbert Amm

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




Re: supported databases ?

2006-10-12 Thread Arnaud HERITIER
)
at
org.jpox.store.rdbms.table.AbstractTable.exists(AbstractTable.java:287)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate(R
DBMSManager.java:3006)
... 54 more

this was tested with daily build of today (20061012)

- Daniel




mvn release number in command line

2006-10-12 Thread Attila Mezei-Horvati
Hi all,

Sorry for all the spam generated by me. :)

I was wondering if I can specify the version number for batch-mode in command 
line or some properties. 

I think in batch mode it will be automatic and I can not control it, but would 
like to make sure. I couldn't find any info on it on the net.
I hope one of the gurus will help.
thanks,
Attila





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



RE: [M2] Classifier removed during packaging

2006-10-12 Thread Andreas Guther
Filed under http://jira.codehaus.org/browse/MPWAR-67



-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 9:50 AM
To: Maven Users List
Subject: Re: [M2] Classifier removed during packaging

from user perspective, some thing in maven changes the artifact file
name
which
is unexpected.  maven-dependency-plugin does a lots of artfacts
manipulations,
unless the user tells it so, the file name remains the same.

-D




On 10/12/06, Andreas Guther [EMAIL PROTECTED] wrote:

 Dan,

 What makes you think this is a bug?  The classifier behavior seems to
be
 hardly documented; at least I am not able to find any documentation.

 I am switching back and forth if this behavior is intentionally or
not.
 I started to look into the maven-war-plugin sources but so far could
not
 spot the code that is actually causing the removing of the classifier.

 I added information about the classifier in the affected jar files we
 are using just to make sure that I end up with the correct jar file.
So
 far the jar files are the right one, but just without the classifier
in
 the name.

 As said, this makes me think this is intentionally.  Please explain
why
 you think this is a bug.

 I have no problems filing a bug, but would like to collect other
 opinions as well.  But maybe a bug entry would be the best place to
 discuss this.

 Thanks in advance,

 Andreas


 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 11, 2006 8:36 PM
 To: Maven Users List
 Subject: Re: [M2] Classifier removed during packaging

 It is a definitely a bug. Please file a Jira against war plugin

 -D


 On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote:
 
  So far it looks to me as if the behavior is intentionally.
 
  I made some tests with the classifier giving TestNG the scope
compile
  which forces Maven to add it to the war file which I usually do not
  (scopetestscope instead) and used
classifierjdk14/classifier.
 
  I ended up again with a jar file that did not contain the classifier
 in
  its name.  This lets me conclude that this is an desired behavior.
 
  I personally would feel more comfortable if the classifier would
 remain
  in the jar file name.  It makes it easier to control what is
actually
 in
  the WEB-INF/lib folder.  That removing of the classifier behind the
  scene is a little bit unexpected and confusing in my view.
 
 
 
  Is there a way to force Maven (i.e. the responsible plug-in) to keep
 the
  jar file classifier while adding jars to the war file?
 
  Andreas
 
 
 
  -Original Message-
  From: Andreas Guther [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 10, 2006 11:43 AM
  To: Maven Users List
  Subject: [M2] Classifier removed during packaging
 
  I have the following situation with Maven 2, classifier usage, and
  packaging to a war file:
 
  The classified jar file is correctly downloaded from repository but
 ends
  in the war file without the classifier part in the jar file name.
 
  I.e. in my local repository I get the dependency
  something-1.0-classified.jar downloaded but in the war file I get
 only
  something-1.0.jar.  I expected to see the
 something-1.0-classified.jar
  file in the war.  The strange thing is that our repositories do not
  contain the classifier-less jar file at all.
 
  I went through the Maven debug output of the build process and
during
  the compile phase the file with the classifier is downloaded from
the
  repository and put on the compile path as expected.
 
  But during the Assembling the classifier in the name seems to get
  removed and the debug output reads Processing: something-1.0.jar
 
  I am not sure if this behavior is intentional or if I do something
  wrong.
 
  Can someone tell me if this is by design?  If not, I at least know
 that
  I have to dig more into the issue.
 
  Thanks in advance,
 
  Andreas
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



mvn2: specified profile ignored

2006-10-12 Thread Attila Mezei-Horvati
I have a multi-module project:

main/pom.xml
main/profile.xml
main/code1/pom.xml
main/code2/pom.xml
main/webapp/pom.xml

As you can see, I have a profile.xml in the main folder. I have about 5 
profiles defined in it such as:
profile
idskipunittest/id
properties
maven.test.skiptrue/maven.test.skip
/properties
/profile



Whenever I try to run maven, such as: mvn clean package -P profile1,profile2 
the profile selection is ignored and *all* profiles are used.

For example, skipunittest will be enabled even though I had not selected it and 
tests will be skipped. 
What is causing this? I just don't get it. -e is not giving me any help either.

Attila





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



Re: mvn2: specified profile ignored

2006-10-12 Thread John Casey

You can use:

mvn help:active-profiles to see what profiles are injected for which
projects. If you feel this is not working according to the profiles you've
specified explicitly (and you're not using activation/ anywhere), then
please file a MNG issue:

http://jira.codehaus.org/browse/MNG

and attach a sample project hierarchy to illustrate your problem. If you
reply with a MNG id, I'll take a look.

Thanks,

John

On 10/12/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:


I have a multi-module project:

main/pom.xml
main/profile.xml
main/code1/pom.xml
main/code2/pom.xml
main/webapp/pom.xml

As you can see, I have a profile.xml in the main folder. I have about 5
profiles defined in it such as:
profile
idskipunittest/id
properties
maven.test.skiptrue/maven.test.skip
/properties
/profile



Whenever I try to run maven, such as: mvn clean package -P
profile1,profile2 the profile selection is ignored and *all* profiles are
used.

For example, skipunittest will be enabled even though I had not selected
it and tests will be skipped.
What is causing this? I just don't get it. -e is not giving me any help
either.

Attila





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




[m2] finalName not working

2006-10-12 Thread Yann Albou

Hi,
I try to use the finalName in my parent pom as following:
   finalName${artifactId}/finalName (without the version number)

If I run maven from the parent pom everything works fine: all my 
artifacts are generated without the version number. and also the 
classpath entry of the manifest.mf file is correctly set.

For instance I get :
parent
   --- A module
   --- B module (with a dependency on A)

So it generates B.jar with a Manifest containning ClassPath: A.Jar


Now If I run maven from B module it generates a B.jar but with a 
manifest containing ClassPath: A-1.2.1.Jar for instance.


I get exactly the same behaviour with an EAR module that generate the 
application.xml = module are not generated with the correct name...
If I run maven from the parent pom then the application.xml is generated 
correctly



Did I miss something ?

Yann.






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



Re: mvn release number in command line

2006-10-12 Thread Dan Tran

that is correct.  you can not specify version on command line with batch
mode.

Why not trusting release:prepare to do that job for you?

-D


On 10/12/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:


Hi all,

Sorry for all the spam generated by me. :)

I was wondering if I can specify the version number for batch-mode in
command line or some properties.

I think in batch mode it will be automatic and I can not control it, but
would like to make sure. I couldn't find any info on it on the net.
I hope one of the gurus will help.
thanks,
Attila





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




Has anyone made a jwsdp-1.6 repository?

2006-10-12 Thread Christian Goetze
Before I start on ther path of rolling my own, I was wondering if anyone 
already did this

--
cg

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



Re: System scope and transitive dependencies

2006-10-12 Thread Manuel Ledesma

There cases where jars needs to be taken from there installation directory
otherwise, It won't work. That's the case for weblogic.jar, which will load
jars are need it base of its own path.


Simon Kitching-2 wrote:
 
 On Thu, 2006-03-23 at 04:28 -0800, Richard Sladek wrote:
 Thanks for your opinion, it seems to me that I am gonna to abondon the
 use of
 system scope then.
 
 However, I still think there should be a way how to define dependencies
 that
 are specific to a certain project only and you do not want to store them
 in
 a repository. This is maybe because of my bad underastanding of what a
 repository is intended to be for: I understand it as a store where I can
 place my SHARED /=common/ libraries so that I have a central management
 point over them.
 
 For project specific libs, I do not want to have them in a repo as they
 are
 pretty unlikely to be used in any other project and I don't see a point
 to
 have a lib in repo just because of one specific project.
 Another reason for this might be some kind of encapsulation when I want
 to
 have all my project-related stuff on one place only (so that I can back
 it
 up easily, for instance. If local repository was involved, I would have
 at
 least 2 things to backup: repo and project itself.)
 
 But as I said, this is probably just my bad understanding of things and
 ALL
 depenendies in Maven /both common and special/ shall be stored in repo.
 Any
 discussion on this is welcome :)
 
 There are two types of repository: 
 
 * remote ones, such as ibiblo, or a repo for your development team
 * the local repository on your development machine (really a cache).
   It typically exists in directory ~/.m2
 
 If your project has dependencies on something available from a remote
 repository, then declare that as normal; the dependencies will
 automatically be downloaded to your local repository.
 
 If your project has dependencies on other projects you've developed,
 however, you can simply check those out and run mvn install to get the
 jar that project generates installed into your *local* repository. That
 is much tidier than trying to use system scope.
 
 If the local projects you have dependencies on are not built with maven,
 then you can take each jar and run a command to install it into your
 local repo anyway (a pom is created for it). I can't remember the actual
 command for the moment, but it has been discussed on this list in the
 last day or two. 
 
 If the process of installing jars into a local repo is inconvenient
 because there are lots of them, or a development *team* that needs to do
 this, then you should look at setting up a real shared repository
 instead. A repository is just a webserver or ftpserver; nothing
 complicated.
 
 There's really no reason to use system scope at all, except for libs
 that may vary from machine to machine, eg the tools.jar of whatever
 the locally installed JDK is.
 
 And there is no need to back up the local repository; it is only a
 cache of stuff that is already available elsewhere.
 
 Regards,
 
 Simon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/System-scope-and-transitive-dependencies-tf1326219.html#a6786849
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: mvn release number in command line

2006-10-12 Thread Attila Mezei-Horvati
Dan,

We have two cases of releases. For QA, we number the build as 
App-MAJOR.TESTBUILDNUMBER,
such as App-4.3001, App-4.3002 . At release time we have a PRODBUILDNUMBER, 
such as App-4.5001,
App-4.5002 (these are release candidates). 

My coworkers want a one-click build, so I was hoping I can do a batch file 
with a param 
for the build number and run it. That not being possible, we decided we will 
run mvn from 
command line. In case of a release we specify 500x for the version during 
release:prepare 
while keeping the pom.xml version number as 300x-SNAPSHOT. Like this QA - which 
is more often -
can run in batch-mode.

thanks,
Attila

Dan wrote:

that is correct.  you can not specify version on command line with batch
mode.

Why not trusting release:prepare to do that job for you?

-D

On 10/12/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:

 Hi all,

 Sorry for all the spam generated by me. :)

 I was wondering if I can specify the version number for batch-mode in
 command line or some properties.

 I think in batch mode it will be automatic and I can not control it, but
 would like to make sure. I couldn't find any info on it on the net.
 I hope one of the gurus will help.
 thanks,
 Attila







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



Re: mvn release number in command line

2006-10-12 Thread Dan Tran

voice your requirement thru this unimplemented yet feature enhancement
http://jira.codehaus.org/browse/MRELEASE-100

-D


On 10/12/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:


Dan,

We have two cases of releases. For QA, we number the build as
App-MAJOR.TESTBUILDNUMBER,
such as App-4.3001, App-4.3002 . At release time we have a
PRODBUILDNUMBER, such as App-4.5001,
App-4.5002 (these are release candidates).

My coworkers want a one-click build, so I was hoping I can do a batch
file with a param
for the build number and run it. That not being possible, we decided we
will run mvn from
command line. In case of a release we specify 500x for the version during
release:prepare
while keeping the pom.xml version number as 300x-SNAPSHOT. Like this QA -
which is more often -
can run in batch-mode.

thanks,
Attila

Dan wrote:

that is correct.  you can not specify version on command line with batch
mode.

Why not trusting release:prepare to do that job for you?

-D

On 10/12/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:

 Hi all,

 Sorry for all the spam generated by me. :)

 I was wondering if I can specify the version number for batch-mode in
 command line or some properties.

 I think in batch mode it will be automatic and I can not control it,
but
 would like to make sure. I couldn't find any info on it on the net.
 I hope one of the gurus will help.
 thanks,
 Attila







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




Re: System scope and transitive dependencies

2006-10-12 Thread Max Cooper
I would expand that a bit to say that there are three types of repos 
that I think are common for teams using maven:


* the public repos like ibiblio

* a repo that your team maintains for your project or organization 
(often using the local repo part of a maven-proxy or proximity 
instance), to serve as a common place to store jars that are neither 
built as part of your project nor available on public repos (due to 
license restrictions, etc.). This is a good place to put proprietary db 
driver libs, weblogic.jar, project-that-does-not-publish-on-ibiblio.jar, 
etc.


* Your own personal local repo. Don't try to share it. It caches 
artifacts from the other repos, and it is where jars end up when you 
'mvn install' your project.


-Max

Manuel Ledesma wrote:

There cases where jars needs to be taken from there installation directory
otherwise, It won't work. That's the case for weblogic.jar, which will load
jars are need it base of its own path.


Simon Kitching-2 wrote:

On Thu, 2006-03-23 at 04:28 -0800, Richard Sladek wrote:

Thanks for your opinion, it seems to me that I am gonna to abondon the
use of
system scope then.

However, I still think there should be a way how to define dependencies
that
are specific to a certain project only and you do not want to store them
in
a repository. This is maybe because of my bad underastanding of what a
repository is intended to be for: I understand it as a store where I can
place my SHARED /=common/ libraries so that I have a central management
point over them.

For project specific libs, I do not want to have them in a repo as they
are
pretty unlikely to be used in any other project and I don't see a point
to
have a lib in repo just because of one specific project.
Another reason for this might be some kind of encapsulation when I want
to
have all my project-related stuff on one place only (so that I can back
it
up easily, for instance. If local repository was involved, I would have
at
least 2 things to backup: repo and project itself.)

But as I said, this is probably just my bad understanding of things and
ALL
depenendies in Maven /both common and special/ shall be stored in repo.
Any
discussion on this is welcome :)
There are two types of repository: 


* remote ones, such as ibiblo, or a repo for your development team
* the local repository on your development machine (really a cache).
  It typically exists in directory ~/.m2

If your project has dependencies on something available from a remote
repository, then declare that as normal; the dependencies will
automatically be downloaded to your local repository.

If your project has dependencies on other projects you've developed,
however, you can simply check those out and run mvn install to get the
jar that project generates installed into your *local* repository. That
is much tidier than trying to use system scope.

If the local projects you have dependencies on are not built with maven,
then you can take each jar and run a command to install it into your
local repo anyway (a pom is created for it). I can't remember the actual
command for the moment, but it has been discussed on this list in the
last day or two. 


If the process of installing jars into a local repo is inconvenient
because there are lots of them, or a development *team* that needs to do
this, then you should look at setting up a real shared repository
instead. A repository is just a webserver or ftpserver; nothing
complicated.

There's really no reason to use system scope at all, except for libs
that may vary from machine to machine, eg the tools.jar of whatever
the locally installed JDK is.

And there is no need to back up the local repository; it is only a
cache of stuff that is already available elsewhere.

Regards,

Simon


-
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 do people search for jars and poms?

2006-10-12 Thread Christian Goetze

If this is a stupid question, I apologise in advance...

Given a dependency to a specific set of classes, how do people locate 
the jar that provides it, together with the artifact and group ids? I 
haven't yet found a better way than to search through ibiblio, hoping to 
find something there - but to locate things like javax.xml.rpc.*, it's 
not easy.


As you can tell, I'm in the process of converting an ant based system 
with lots of checked in .jar files to a maven system. The trouble with 
the checked in .jar files is that they are completely void of any 
version info, and I need to reconstruct the dependency tree by hand.


How do the pros do it?
--
cg

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



Re: System scope and transitive dependencies

2006-10-12 Thread Manuel Ledesma

Thanks for the advide, I already create a similar layout (application repo,
vendor repo and public). Back to the case of weblogic, It needs to be taken
from its installation directoy and I'm having hard time writing puglins for
it. The workaround that I found it's using the Ant java task to fork and
setting the right classpath for it. But it would be great that system scope
artifacts could go beyond compile (runtime). 


Max Cooper wrote:
 
 I would expand that a bit to say that there are three types of repos 
 that I think are common for teams using maven:
 
 * the public repos like ibiblio
 
 * a repo that your team maintains for your project or organization 
 (often using the local repo part of a maven-proxy or proximity 
 instance), to serve as a common place to store jars that are neither 
 built as part of your project nor available on public repos (due to 
 license restrictions, etc.). This is a good place to put proprietary db 
 driver libs, weblogic.jar, project-that-does-not-publish-on-ibiblio.jar, 
 etc.
 
 * Your own personal local repo. Don't try to share it. It caches 
 artifacts from the other repos, and it is where jars end up when you 
 'mvn install' your project.
 
 -Max
 
 Manuel Ledesma wrote:
 There cases where jars needs to be taken from there installation
 directory
 otherwise, It won't work. That's the case for weblogic.jar, which will
 load
 jars are need it base of its own path.
 
 
 Simon Kitching-2 wrote:
 On Thu, 2006-03-23 at 04:28 -0800, Richard Sladek wrote:
 Thanks for your opinion, it seems to me that I am gonna to abondon the
 use of
 system scope then.

 However, I still think there should be a way how to define dependencies
 that
 are specific to a certain project only and you do not want to store
 them
 in
 a repository. This is maybe because of my bad underastanding of what a
 repository is intended to be for: I understand it as a store where I
 can
 place my SHARED /=common/ libraries so that I have a central management
 point over them.

 For project specific libs, I do not want to have them in a repo as they
 are
 pretty unlikely to be used in any other project and I don't see a point
 to
 have a lib in repo just because of one specific project.
 Another reason for this might be some kind of encapsulation when I want
 to
 have all my project-related stuff on one place only (so that I can back
 it
 up easily, for instance. If local repository was involved, I would have
 at
 least 2 things to backup: repo and project itself.)

 But as I said, this is probably just my bad understanding of things and
 ALL
 depenendies in Maven /both common and special/ shall be stored in repo.
 Any
 discussion on this is welcome :)
 There are two types of repository: 

 * remote ones, such as ibiblo, or a repo for your development team
 * the local repository on your development machine (really a cache).
   It typically exists in directory ~/.m2

 If your project has dependencies on something available from a remote
 repository, then declare that as normal; the dependencies will
 automatically be downloaded to your local repository.

 If your project has dependencies on other projects you've developed,
 however, you can simply check those out and run mvn install to get the
 jar that project generates installed into your *local* repository. That
 is much tidier than trying to use system scope.

 If the local projects you have dependencies on are not built with maven,
 then you can take each jar and run a command to install it into your
 local repo anyway (a pom is created for it). I can't remember the actual
 command for the moment, but it has been discussed on this list in the
 last day or two. 

 If the process of installing jars into a local repo is inconvenient
 because there are lots of them, or a development *team* that needs to do
 this, then you should look at setting up a real shared repository
 instead. A repository is just a webserver or ftpserver; nothing
 complicated.

 There's really no reason to use system scope at all, except for libs
 that may vary from machine to machine, eg the tools.jar of whatever
 the locally installed JDK is.

 And there is no need to back up the local repository; it is only a
 cache of stuff that is already available elsewhere.

 Regards,

 Simon


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



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

-- 
View this message in context: 
http://www.nabble.com/System-scope-and-transitive-dependencies-tf1326219.html#a6787577
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Has anyone made a jwsdp-1.6 repository?

2006-10-12 Thread Aleksei Valikov
 Before I start on ther path of rolling my own, I was wondering if anyone 
 already did this

Take a look at 

maven-repository.dev.java.net
maven2-repository.dev.java.net

We've got a number of jwsdp jars deployed ther. Not all but you're free to add 
more.

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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



Re: How do people search for jars and poms?

2006-10-12 Thread Jason Chan

I am using:

MVN Registry
http://www.mvnregistry.com/


On 10/13/06, Christian Goetze [EMAIL PROTECTED] wrote:


If this is a stupid question, I apologise in advance...

Given a dependency to a specific set of classes, how do people locate
the jar that provides it, together with the artifact and group ids? I
haven't yet found a better way than to search through ibiblio, hoping to
find something there - but to locate things like javax.xml.rpc.*, it's
not easy.

As you can tell, I'm in the process of converting an ant based system
with lots of checked in .jar files to a maven system. The trouble with
the checked in .jar files is that they are completely void of any
version info, and I need to reconstruct the dependency tree by hand.

How do the pros do it?
--
cg

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




Re: [m2] Compiling JSPs

2006-10-12 Thread zarar


What about the case where the web.xml and any .tld files are generated (via
XDoclet).  In that case the web.xml wouldn't be in the src/main/webapps
folder but somewhere in target/gen.  The jsp plugin expects a nice little
directory structure where the web.xml, JSP's and .tld are rooted under the
same tree which is not the case here.  Any ideas how to get around this?


Matt Raible-3 wrote:
 
 I was able to successfully get this plugin to work - thanks to Jeff
 Genender (the plugin's author).  I did find that I needed to add the
 following two dependencies to my project.
 
 !-- Needed for jspc plugin (pre-compiling of JSPs) --
 dependency
   groupIdjavax.servlet/groupId
   artifactIdjsp-api/artifactId
   version2.0/version
   scopeprovided/scope
 /dependency
 !-- Needed for jspc plugin (pre-compiling of JSPs) --
 dependency
   groupIdtomcat/groupId
   artifactIdjasper-runtime/artifactId
   version5.5.12/version
   scopeprovided/scope
 /dependency
 
 In addition, I had to change many dependencies from having
 scoperuntime/scope to nothing (meaning scopecompile/scope). 
 This was required for all libraries that had tag libraries included in
 them.
 
 Example code can be seen in:
 https://equinox.dev.java.net/source/browse/*checkout*/equinox/pom.xml
 
 Hope this helps,
 
 Matt
 
 On 2/19/06, Stephen Duncan [EMAIL PROTECTED] wrote:
 Oh, and respond back with what you learn on it; I was hoping to start
 playing with it soon...

 -Stephen

 On 2/19/06, Stephen Duncan [EMAIL PROTECTED] wrote:
  Matt,
 
  I haven't tried it, but there's a jspc plugin on the mojo.codehaus.org
  site: http://mojo.codehaus.org/jspc-maven-plugin/usage.html that seems
  to do what you're asking.
 
  -Stephen
 
  On 2/19/06, Matt Raible [EMAIL PROTECTED] wrote:
   Is there a plugin that does compilation of JSPs and adding entries
 into web.xml?
  
   Here's how to do it for Maven 1, but I'd like to do it with Maven 2:
  
   http://www.savoirtech.com/roller/page/jgenender/20041011
  
   Here's how I've done it in Ant.
  
   target name=compile-jsp depends=jsp-2 if=precompile.jsp
   property name=jsp.src value=${build.dir}/web/jsp/src/
   mkdir dir=${jsp.src}/
  
   taskdef classname=org.apache.jasper.JspC name=jasper
   classpathref=jspc.classpath/
  
   jasper verbose=0 package=org.appfuse.jsp
   uriroot=${webapp.target}
   webXmlFragment=${jsp.src}/jsp-servlets.xml
   outputDir=${jsp.src} /
  
   javac srcdir=${jsp.src} destdir=${build.dir}/web/classes
   debug=${compile.debug}
 deprecation=${compile.deprecation}
   optimize=${compile.optimize}
 classpathref=jspc.classpath/
  
   loadfile property=jsp.mappings
   srcfile=${jsp.src}/jsp-servlets.xml/
   replace file=${webapp.target}/WEB-INF/web.xml
 value=${jsp.mappings}
   token=lt;!-- precompiled jsp mappings --gt;/
   /target
  
   Also, is there a plugin that can generate an archetype from an
 existing project?
  
   Thanks,
  
   Matt
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Stephen Duncan Jr
  www.stephenduncanjr.com
 


 --
 Stephen Duncan Jr
 www.stephenduncanjr.com

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

-- 
View this message in context: 
http://www.nabble.com/-m2--Compiling-JSPs-tf1149163.html#a6788409
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: System scope and transitive dependencies

2006-10-12 Thread Wayne Fay

We are suggesting that you install the weblogic jar(s) into your
vendor repo. And stop using system scope...

Wayne

On 10/12/06, Manuel Ledesma [EMAIL PROTECTED] wrote:


Thanks for the advide, I already create a similar layout (application repo,
vendor repo and public). Back to the case of weblogic, It needs to be taken
from its installation directoy and I'm having hard time writing puglins for
it. The workaround that I found it's using the Ant java task to fork and
setting the right classpath for it. But it would be great that system scope
artifacts could go beyond compile (runtime).


Max Cooper wrote:

 I would expand that a bit to say that there are three types of repos
 that I think are common for teams using maven:

 * the public repos like ibiblio

 * a repo that your team maintains for your project or organization
 (often using the local repo part of a maven-proxy or proximity
 instance), to serve as a common place to store jars that are neither
 built as part of your project nor available on public repos (due to
 license restrictions, etc.). This is a good place to put proprietary db
 driver libs, weblogic.jar, project-that-does-not-publish-on-ibiblio.jar,
 etc.

 * Your own personal local repo. Don't try to share it. It caches
 artifacts from the other repos, and it is where jars end up when you
 'mvn install' your project.

 -Max

 Manuel Ledesma wrote:
 There cases where jars needs to be taken from there installation
 directory
 otherwise, It won't work. That's the case for weblogic.jar, which will
 load
 jars are need it base of its own path.


 Simon Kitching-2 wrote:
 On Thu, 2006-03-23 at 04:28 -0800, Richard Sladek wrote:
 Thanks for your opinion, it seems to me that I am gonna to abondon the
 use of
 system scope then.

 However, I still think there should be a way how to define dependencies
 that
 are specific to a certain project only and you do not want to store
 them
 in
 a repository. This is maybe because of my bad underastanding of what a
 repository is intended to be for: I understand it as a store where I
 can
 place my SHARED /=common/ libraries so that I have a central management
 point over them.

 For project specific libs, I do not want to have them in a repo as they
 are
 pretty unlikely to be used in any other project and I don't see a point
 to
 have a lib in repo just because of one specific project.
 Another reason for this might be some kind of encapsulation when I want
 to
 have all my project-related stuff on one place only (so that I can back
 it
 up easily, for instance. If local repository was involved, I would have
 at
 least 2 things to backup: repo and project itself.)

 But as I said, this is probably just my bad understanding of things and
 ALL
 depenendies in Maven /both common and special/ shall be stored in repo.
 Any
 discussion on this is welcome :)
 There are two types of repository:

 * remote ones, such as ibiblo, or a repo for your development team
 * the local repository on your development machine (really a cache).
   It typically exists in directory ~/.m2

 If your project has dependencies on something available from a remote
 repository, then declare that as normal; the dependencies will
 automatically be downloaded to your local repository.

 If your project has dependencies on other projects you've developed,
 however, you can simply check those out and run mvn install to get the
 jar that project generates installed into your *local* repository. That
 is much tidier than trying to use system scope.

 If the local projects you have dependencies on are not built with maven,
 then you can take each jar and run a command to install it into your
 local repo anyway (a pom is created for it). I can't remember the actual
 command for the moment, but it has been discussed on this list in the
 last day or two.

 If the process of installing jars into a local repo is inconvenient
 because there are lots of them, or a development *team* that needs to do
 this, then you should look at setting up a real shared repository
 instead. A repository is just a webserver or ftpserver; nothing
 complicated.

 There's really no reason to use system scope at all, except for libs
 that may vary from machine to machine, eg the tools.jar of whatever
 the locally installed JDK is.

 And there is no need to back up the local repository; it is only a
 cache of stuff that is already available elsewhere.

 Regards,

 Simon


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





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




--
View this message in context: 
http://www.nabble.com/System-scope-and-transitive-dependencies-tf1326219.html#a6787577
Sent from the Maven - Users mailing list archive at Nabble.com.



properties in plugins vs. pom

2006-10-12 Thread pjungwir

Hello,

I'm developing a plugin in maven 2.0.4. My plugin has a property annotated
like this:

/**
 * @parameter default-value=${artifactId}.exe
 */
private File outfile;

When I use the plugin, outfile is set to /home/pjungwir/src/encc/null.exe.

But suppose I use this javadoc instead:

/**
 * @parameter default-value=${project.artifactId}.exe
 */
private File outfile;

Now outfile is set correctly, to /home/pjungwir/src/encc/encc.exe.

I thought this was strange, because when I use the antrun plugin, both of
these produce the correct result:

execution
  idblah/id
  phasegenerate-sources/phase
  goalsgoalrun/goal/goals
  configuration
tasks
  echo message=${artifactId}/
  echo message=${project.artifactId}/
/tasks
  /configuration
/execution

When I run this, I see:

[INFO] Executing tasks
[echo] encc
[echo] encc

So why does ${artifactId} work in the pom, but not in the plugin javadoc? Do
maven variables have different names depending on context?

Thanks,
Paul
-- 
View this message in context: 
http://www.nabble.com/properties-in-plugins-vs.-pom-tf2434529.html#a6788751
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: properties in plugins vs. pom

2006-10-12 Thread Dan Tran

inconsistency i guess, I suggest to always start with ${project}

-D


On 10/12/06, pjungwir [EMAIL PROTECTED] wrote:



Hello,

I'm developing a plugin in maven 2.0.4. My plugin has a property annotated
like this:

/**
* @parameter default-value=${artifactId}.exe
*/
private File outfile;

When I use the plugin, outfile is set to
/home/pjungwir/src/encc/null.exe.

But suppose I use this javadoc instead:

/**
* @parameter default-value=${project.artifactId}.exe
*/
private File outfile;

Now outfile is set correctly, to /home/pjungwir/src/encc/encc.exe.

I thought this was strange, because when I use the antrun plugin, both of
these produce the correct result:

execution
idblah/id
phasegenerate-sources/phase
goalsgoalrun/goal/goals
configuration
   tasks
 echo message=${artifactId}/
 echo message=${project.artifactId}/
   /tasks
/configuration
/execution

When I run this, I see:

[INFO] Executing tasks
   [echo] encc
   [echo] encc

So why does ${artifactId} work in the pom, but not in the plugin javadoc?
Do
maven variables have different names depending on context?

Thanks,
Paul
--
View this message in context:
http://www.nabble.com/properties-in-plugins-vs.-pom-tf2434529.html#a6788751
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Confused about Maven 2 Eclipse plugin

2006-10-12 Thread Los Morales
I'm currently using Eclipse 3.2 and Maven 2 plugin version 0.0.9.  When I 
enable Maven 2 and right-click on my main project, there are only 2 options 
for me in the popup menu:  1) Update Source Folders and 2) Add Dependency... 
  Where are the lifecycle phases or custom goals?  Seems like the NetBeans 
plugin works fine but I'm totally frustrated for the one with Eclipse.  
Everytime I need to clean/compile/package my Eclipse project, I got to do it 
via the command line.  Am I missing something here?  Thanks in advance.


-los

_
Express yourself - download free Windows Live Messenger themes! 
http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-ussource=hmtagline



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



Re: properties in plugins vs. pom

2006-10-12 Thread pjungwir


dan tran wrote:
 
 inconsistency i guess, I suggest to always start with ${project}
 

I'm surprised at the implication: different code handles variable
replacement here vs. there.

Inconsistencies like this can be maddening. Could I file this as a jira?
Maybe I'll even supply a patch. :-)

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/properties-in-plugins-vs.-pom-tf2434529.html#a6789008
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: System scope and transitive dependencies

2006-10-12 Thread Manuel Ledesma
I did it, but Weblogic jar does not work that way, It looks for other 
jars in there WL_HOME/server/lib directory, reason why? it needs to be 
taken from there.


Wayne Fay wrote:

We are suggesting that you install the weblogic jar(s) into your
vendor repo. And stop using system scope...

Wayne

On 10/12/06, Manuel Ledesma [EMAIL PROTECTED] wrote:


Thanks for the advide, I already create a similar layout (application 
repo,
vendor repo and public). Back to the case of weblogic, It needs to be 
taken
from its installation directoy and I'm having hard time writing 
puglins for

it. The workaround that I found it's using the Ant java task to fork and
setting the right classpath for it. But it would be great that system 
scope

artifacts could go beyond compile (runtime).


Max Cooper wrote:

 I would expand that a bit to say that there are three types of repos
 that I think are common for teams using maven:

 * the public repos like ibiblio

 * a repo that your team maintains for your project or organization
 (often using the local repo part of a maven-proxy or proximity
 instance), to serve as a common place to store jars that are neither
 built as part of your project nor available on public repos (due to
 license restrictions, etc.). This is a good place to put 
proprietary db
 driver libs, weblogic.jar, 
project-that-does-not-publish-on-ibiblio.jar,

 etc.

 * Your own personal local repo. Don't try to share it. It caches
 artifacts from the other repos, and it is where jars end up when you
 'mvn install' your project.

 -Max

 Manuel Ledesma wrote:
 There cases where jars needs to be taken from there installation
 directory
 otherwise, It won't work. That's the case for weblogic.jar, which 
will

 load
 jars are need it base of its own path.


 Simon Kitching-2 wrote:
 On Thu, 2006-03-23 at 04:28 -0800, Richard Sladek wrote:
 Thanks for your opinion, it seems to me that I am gonna to 
abondon the

 use of
 system scope then.

 However, I still think there should be a way how to define 
dependencies

 that
 are specific to a certain project only and you do not want to store
 them
 in
 a repository. This is maybe because of my bad underastanding of 
what a
 repository is intended to be for: I understand it as a store 
where I

 can
 place my SHARED /=common/ libraries so that I have a central 
management

 point over them.

 For project specific libs, I do not want to have them in a repo 
as they

 are
 pretty unlikely to be used in any other project and I don't see 
a point

 to
 have a lib in repo just because of one specific project.
 Another reason for this might be some kind of encapsulation when 
I want

 to
 have all my project-related stuff on one place only (so that I 
can back

 it
 up easily, for instance. If local repository was involved, I 
would have

 at
 least 2 things to backup: repo and project itself.)

 But as I said, this is probably just my bad understanding of 
things and

 ALL
 depenendies in Maven /both common and special/ shall be stored 
in repo.

 Any
 discussion on this is welcome :)
 There are two types of repository:

 * remote ones, such as ibiblo, or a repo for your development team
 * the local repository on your development machine (really a 
cache).

   It typically exists in directory ~/.m2

 If your project has dependencies on something available from a 
remote

 repository, then declare that as normal; the dependencies will
 automatically be downloaded to your local repository.

 If your project has dependencies on other projects you've developed,
 however, you can simply check those out and run mvn install to 
get the
 jar that project generates installed into your *local* 
repository. That

 is much tidier than trying to use system scope.

 If the local projects you have dependencies on are not built with 
maven,

 then you can take each jar and run a command to install it into your
 local repo anyway (a pom is created for it). I can't remember the 
actual
 command for the moment, but it has been discussed on this list in 
the

 last day or two.

 If the process of installing jars into a local repo is inconvenient
 because there are lots of them, or a development *team* that 
needs to do

 this, then you should look at setting up a real shared repository
 instead. A repository is just a webserver or ftpserver; nothing
 complicated.

 There's really no reason to use system scope at all, except for 
libs
 that may vary from machine to machine, eg the tools.jar of 
whatever

 the locally installed JDK is.

 And there is no need to back up the local repository; it is only a
 cache of stuff that is already available elsewhere.

 Regards,

 Simon


 
-

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





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

Re: Confused about Maven 2 Eclipse plugin

2006-10-12 Thread Manuel Ledesma

Look at external tools. You can launch lifecycle and goals from there.

Los Morales wrote:
I'm currently using Eclipse 3.2 and Maven 2 plugin version 0.0.9.  
When I enable Maven 2 and right-click on my main project, there are 
only 2 options for me in the popup menu:  1) Update Source Folders and 
2) Add Dependency...   Where are the lifecycle phases or custom 
goals?  Seems like the NetBeans plugin works fine but I'm totally 
frustrated for the one with Eclipse.  Everytime I need to 
clean/compile/package my Eclipse project, I got to do it via the 
command line.  Am I missing something here?  Thanks in advance.


-los

_
Express yourself - download free Windows Live Messenger themes! 
http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-ussource=hmtagline 




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







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



Re: properties in plugins vs. pom

2006-10-12 Thread Dan Tran

I am wrong ;-)

when you are in pom.xml, ${someVar} means a reference of a variable under
root of the pom

However, maven also aware of other key vars such as   ${project},
${settetings} etc.

Therefore

  ${project.artifactId} and ${artifactId} are the same thing

  ${basedir}  ${project.basedir} are the same

I always start with ${project. ..



-D


On 10/12/06, pjungwir [EMAIL PROTECTED] wrote:




dan tran wrote:

 inconsistency i guess, I suggest to always start with ${project}


I'm surprised at the implication: different code handles variable
replacement here vs. there.

Inconsistencies like this can be maddening. Could I file this as a jira?
Maybe I'll even supply a patch. :-)

Thanks,
Paul

--
View this message in context:
http://www.nabble.com/properties-in-plugins-vs.-pom-tf2434529.html#a6789008
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: properties in plugins vs. pom

2006-10-12 Thread pjungwir


dan tran wrote:
 
 when you are in pom.xml, ${someVar} means a reference of a variable under
 root of the pom
 

Ah, so within the pom, the project. prefix is optional. It looks like it
is also optional when filtering resource files. But not when annotating
plugins. That's still a little annoying, but if it's a general rule, it's
not too hard to remember.

Thanks!
Paul

-- 
View this message in context: 
http://www.nabble.com/properties-in-plugins-vs.-pom-tf2434529.html#a6789254
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Confused about Maven 2 Eclipse plugin

2006-10-12 Thread Los Morales
Hi, Thanks for the tip.  Now I tried the lifecycle clean, compile and 
package on my base project, but it doesn't recurse down to my sub projects.  
For example, I have this setup:


--Main Project
   --- Project 1
 --- pom.xml
   --- Project 2
 --- pom.xml
   --- pom.xml

Now when I run the Maven 2 plugin phase clean from the base directory-- 
Main Project, I get this:



Deleting directory c:\workspaces\test\Main Project\target
Deleting directory c:\workspaces\test\Main Project\target\classes
Deleting directory c:\workspaces\test\Main Project\target\test-classes
...

However, it does not clean up Project 1 and 2's target directories.  I know 
my pom.xml's are good since the command line (mvn clean) works like a charm. 
 Am I'm missing a step or 2?  Thanks in advance.


-los



From: Manuel Ledesma [EMAIL PROTECTED]
Reply-To: Maven Users List users@maven.apache.org
To: Maven Users List users@maven.apache.org
Subject: Re: Confused about Maven 2 Eclipse plugin
Date: Thu, 12 Oct 2006 23:12:28 -0400

Look at external tools. You can launch lifecycle and goals from there.

Los Morales wrote:
I'm currently using Eclipse 3.2 and Maven 2 plugin version 0.0.9.  When I 
enable Maven 2 and right-click on my main project, there are only 2 
options for me in the popup menu:  1) Update Source Folders and 2) Add 
Dependency...   Where are the lifecycle phases or custom goals?  Seems 
like the NetBeans plugin works fine but I'm totally frustrated for the one 
with Eclipse.  Everytime I need to clean/compile/package my Eclipse 
project, I got to do it via the command line.  Am I missing something 
here?  Thanks in advance.


-los

_
Express yourself - download free Windows Live Messenger themes! 
http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-ussource=hmtagline




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



_
Add fun gadgets and colorful themes to express yourself on Windows Live 
Spaces   
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://www.get.live.com/spaces/features



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



Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-12 Thread Tim Moloney
Forgive me if this is a naive question but I've search the web and 
haven't found an obvious answer.


I'd like to find a tool that generates Java source files, SQL schema 
files, and O/R mapping files from the same XSD file.  The input XSD file 
(over which I have no control) defines the format of XML messages.  I 
know that JAXB, XMLbeans, etc. can create the Java source files from 
this type of XSD file.  However, I haven't been able to identify a tools 
that creates the SQL schema and O/R mapping files from the same type of 
XSD file.  The closest tool I've found is Hydrate that will generate all 
three types of output files but it does this from a Hydrate model XSD 
file, not from the type of XSD file that JAXB or XMLbeans would take as 
input.


Of course, it would be perfect if this tool could be integrated into a 
Maven 2 build process.


Thanks.

Tim Moloney


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



Re: System scope and transitive dependencies

2006-10-12 Thread Wayne Fay

Have you tried adding ALL of those jars to your vendor repo, and
adding each one as a dependency in your pom? If they're all available
on the CLASSPATH while executing the plugin, I don't know why it would
need to access WL_HOME at all.

I'm not currently a Weblogic user, so I'm not sure what it expects etc...

Wayne

On 10/12/06, Manuel Ledesma [EMAIL PROTECTED] wrote:

I did it, but Weblogic jar does not work that way, It looks for other
jars in there WL_HOME/server/lib directory, reason why? it needs to be
taken from there.

Wayne Fay wrote:
 We are suggesting that you install the weblogic jar(s) into your
 vendor repo. And stop using system scope...

 Wayne

 On 10/12/06, Manuel Ledesma [EMAIL PROTECTED] wrote:

 Thanks for the advide, I already create a similar layout (application
 repo,
 vendor repo and public). Back to the case of weblogic, It needs to be
 taken
 from its installation directoy and I'm having hard time writing
 puglins for
 it. The workaround that I found it's using the Ant java task to fork and
 setting the right classpath for it. But it would be great that system
 scope
 artifacts could go beyond compile (runtime).


 Max Cooper wrote:
 
  I would expand that a bit to say that there are three types of repos
  that I think are common for teams using maven:
 
  * the public repos like ibiblio
 
  * a repo that your team maintains for your project or organization
  (often using the local repo part of a maven-proxy or proximity
  instance), to serve as a common place to store jars that are neither
  built as part of your project nor available on public repos (due to
  license restrictions, etc.). This is a good place to put
 proprietary db
  driver libs, weblogic.jar,
 project-that-does-not-publish-on-ibiblio.jar,
  etc.
 
  * Your own personal local repo. Don't try to share it. It caches
  artifacts from the other repos, and it is where jars end up when you
  'mvn install' your project.
 
  -Max
 
  Manuel Ledesma wrote:
  There cases where jars needs to be taken from there installation
  directory
  otherwise, It won't work. That's the case for weblogic.jar, which
 will
  load
  jars are need it base of its own path.
 
 
  Simon Kitching-2 wrote:
  On Thu, 2006-03-23 at 04:28 -0800, Richard Sladek wrote:
  Thanks for your opinion, it seems to me that I am gonna to
 abondon the
  use of
  system scope then.
 
  However, I still think there should be a way how to define
 dependencies
  that
  are specific to a certain project only and you do not want to store
  them
  in
  a repository. This is maybe because of my bad underastanding of
 what a
  repository is intended to be for: I understand it as a store
 where I
  can
  place my SHARED /=common/ libraries so that I have a central
 management
  point over them.
 
  For project specific libs, I do not want to have them in a repo
 as they
  are
  pretty unlikely to be used in any other project and I don't see
 a point
  to
  have a lib in repo just because of one specific project.
  Another reason for this might be some kind of encapsulation when
 I want
  to
  have all my project-related stuff on one place only (so that I
 can back
  it
  up easily, for instance. If local repository was involved, I
 would have
  at
  least 2 things to backup: repo and project itself.)
 
  But as I said, this is probably just my bad understanding of
 things and
  ALL
  depenendies in Maven /both common and special/ shall be stored
 in repo.
  Any
  discussion on this is welcome :)
  There are two types of repository:
 
  * remote ones, such as ibiblo, or a repo for your development team
  * the local repository on your development machine (really a
 cache).
It typically exists in directory ~/.m2
 
  If your project has dependencies on something available from a
 remote
  repository, then declare that as normal; the dependencies will
  automatically be downloaded to your local repository.
 
  If your project has dependencies on other projects you've developed,
  however, you can simply check those out and run mvn install to
 get the
  jar that project generates installed into your *local*
 repository. That
  is much tidier than trying to use system scope.
 
  If the local projects you have dependencies on are not built with
 maven,
  then you can take each jar and run a command to install it into your
  local repo anyway (a pom is created for it). I can't remember the
 actual
  command for the moment, but it has been discussed on this list in
 the
  last day or two.
 
  If the process of installing jars into a local repo is inconvenient
  because there are lots of them, or a development *team* that
 needs to do
  this, then you should look at setting up a real shared repository
  instead. A repository is just a webserver or ftpserver; nothing
  complicated.
 
  There's really no reason to use system scope at all, except for
 libs
  that may vary from machine to machine, eg the tools.jar of
 whatever
  the locally installed JDK is.
 
  And there is 

Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-12 Thread Wayne Fay

I'm not aware of such a tool; perhaps take a look at XDoclet or
Hibernate, they have a variety of tools available in this domain,
maybe you'll find something that will work...

Also, you might be able to use some XSLT to convert your input XSD
into a Hydrate model XSD and then use the Hydrate solution you
suggested.

Wayne

On 10/12/06, Tim Moloney [EMAIL PROTECTED] wrote:

Forgive me if this is a naive question but I've search the web and
haven't found an obvious answer.

I'd like to find a tool that generates Java source files, SQL schema
files, and O/R mapping files from the same XSD file.  The input XSD file
(over which I have no control) defines the format of XML messages.  I
know that JAXB, XMLbeans, etc. can create the Java source files from
this type of XSD file.  However, I haven't been able to identify a tools
that creates the SQL schema and O/R mapping files from the same type of
XSD file.  The closest tool I've found is Hydrate that will generate all
three types of output files but it does this from a Hydrate model XSD
file, not from the type of XSD file that JAXB or XMLbeans would take as
input.

Of course, it would be perfect if this tool could be integrated into a
Maven 2 build process.

Thanks.

Tim Moloney


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



mvn -N install not working for daytrader

2006-10-12 Thread Satish Gupta

I am just starting to learn Maven. I am trying to follow the instrucations
in Better Builds with Maven but get the following message right off the
bat:

It requires a project with an existing pom.xml , but the build is not using
one.

I am using maven2.0.4 on Windows XP.

I'd appreciate any help.

Thanks


Re: mvn -N install not working for daytrader

2006-10-12 Thread pjungwir

Hi Satish,

Maven expects to find a pom.xml in the current directory. That message means
there isn't one there. I don't know what daytrader is. Are you trying to
build it from source?

Paul



Satish Gupta wrote:
 
 I am just starting to learn Maven. I am trying to follow the instrucations
 in Better Builds with Maven but get the following message right off the
 bat:
 
 It requires a project with an existing pom.xml , but the build is not
 using
 one.
 
 I am using maven2.0.4 on Windows XP.
 
 I'd appreciate any help.
 
 Thanks
 
 

-- 
View this message in context: 
http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6789679
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven 1.1 RC1 SNAPSHOT needs testers

2006-10-12 Thread Dion Gillard

Arnaud,

we are also on Maven 1.1 and would love a release.

I'm on holidays and unable to do a complete test, but I will do so
early next week.  Is that ok?

On 10/12/06, Arnaud HERITIER [EMAIL PROTECTED] wrote:

Thanks James for your feedback.
We'll add a note about plugin dependencies in projects.

Nobody else is interested by maven 1.1 ?

Should we continue to try to release a final version 1.1 ?
Everybody moved to maven 2 or your existing maven 1.x satisfy you ?

Arnaud

On 10/10/06, Shute, James [EMAIL PROTECTED] wrote:

 You're quite correct - I had put an explicit dependency on scm-1.5 in my
 project.xml a while back when we were on 1.0.2 and I wanted to force
 people up to the later version of the plugin.  Taking that out fixes
 things.

 thanks very much

 James

 -Original Message-
 From: Lukas Theussl [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 10, 2006 11:45 AM
 To: Maven Users List
 Subject: Re: Maven 1.1 RC1 SNAPSHOT needs testers

 This seems to be the cause indeed, the scm:status goal was only added in
 version 1.6 of the scm plugin. You don't have a dependency on 1.5 by any
 chance? Try to remove the .maven/cache/maven-scm-plugin-1.5/ directory
 and see what happens..

 -Lukas


 Shute, James wrote:
  Arnaud,
 
  I've succesfully been using 1.1b2 for a while so thought I'd give this

  a spin.  I'm having trouble with the scm:prepare-release goal.  I've
  included the output when running with -X below.
 
  I'm no expert but it looks a bit suspicious that the version of
  maven-scm-plugin mentioned in the 2nd line below is 1.6, but in the
  BUILD FAILED section is 1.5.
 
  Is this a known issue?  I'm running on WinXP SP2 with the 1.5.0_05 JDK

  if that helps in any way.  I also cleaned out the cache before
  starting so it's not that causing the problem.
 
  thanks
 
  James
 
  Output from maven -X scm:prepare-release:
 
  ...
  Reinstalling:
   source = C:\Temp\.maven\cache\maven-scm-plugin-1.6\plugin.jelly
   project = null
   script = null
  Caching Taglib Uri -- scm:transform
  Caching Taglib Uri -- changes:transform Caching Taglib Uri -- scm
  Caching Taglib Uri -- scm:transform Caching Taglib Uri --
  changes:transform Caching Taglib Uri -- scm popping off
  [EMAIL PROTECTED] for
  [EMAIL PROTECTED] in
  com.lehman.fid:Jdialtone
 
 
  BUILD FAILED
  File..
  file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly
  Element... scm:status
  Line.. 192
  Column 158
  org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/r
  ep
  ository/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/
  maven/scm/command/status/StatusScmResult;
  org.apache.maven.werkz.UnattainableGoalException: Unable to obtain
  goal [scm:prepare-release] --
  file:/C:/Temp/.maven/cache/maven-scm-plugin
  -1.5/plugin.jelly:192:158: scm:status
  org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/r
  ep
  ository/ScmRepository;Lorg/a
  pache/maven/scm/ScmFileSet;)Lorg/apache/maven/scm/command/status/Statu
  sS
  cmResult;
  at org.apache.maven.werkz.Goal.fire(Goal.java:654)
  at org.apache.maven.werkz.Goal.attain(Goal.java:582)
  at
  org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:7
  11
  )
  at
  org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
  at org.apache.maven.cli.App.doMain(App.java:556)
  at org.apache.maven.cli.App.main(App.java:1411)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
  av
  a:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
  or
  Impl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at com.werken.forehead.Forehead.run(Forehead.java:551)
  at com.werken.forehead.Forehead.main(Forehead.java:581)
  Caused by: org.apache.commons.jelly.JellyTagException:
  file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly:192:158:
  scm:status or
  g.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/rep
  os
  itory/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/ma
  ven/scm/command/status/StatusScmResult;
  at
  org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java
  :1
  93)
  at
  org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java
  :1
  02)
  at
  org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
  at
  org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag
  .j
  ava:82)
  at
  org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perform
  Ac
  tion(MavenGoalTag.java:115)
  at org.apache.maven.werkz.Goal.fire(Goal.java:647)
  ... 11 more
  Caused by: java.lang.NoSuchMethodError:
  org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/r
  ep
  ository/ScmRepository;Lorg/a
  

Re: mvn -N install not working for daytrader

2006-10-12 Thread Satish Gupta

Thanks for your reply!

Daytrader is the example being dealt with in the book Better Builds with
Maven. I am trying to learn how to be able to work with J2EE projects. The
book doesn't explicitly say to install a top-level pom.xml. I made a guess
and did copy a pom.xml from another part of the book and tha part seem to
have worked. Now I am working on the ejb module under daytrader
directoy. So I copied a pom.xml from tha section to ejb directory and ran
mvn install. Now I am getting the following error:

Cannot find parent: org.apache.geronimo.samples.daytrader:daytrader for
project: null:daytrader-ejb:ejb:null

How do people learn Maven? It seems to be popular but the documentation
seems very hard to understand! Do you have any suggestions?

Thanks


On 10/12/06, pjungwir [EMAIL PROTECTED] wrote:



Hi Satish,

Maven expects to find a pom.xml in the current directory. That message
means
there isn't one there. I don't know what daytrader is. Are you trying to
build it from source?

Paul



Satish Gupta wrote:

 I am just starting to learn Maven. I am trying to follow the
instrucations
 in Better Builds with Maven but get the following message right off
the
 bat:

 It requires a project with an existing pom.xml , but the build is not
 using
 one.

 I am using maven2.0.4 on Windows XP.

 I'd appreciate any help.

 Thanks



--
View this message in context:
http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6789679
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: mvn -N install not working for daytrader

2006-10-12 Thread pjungwir

Hmm, I think these directories should already have pom.xml files of their
own. If you copy pom.xmls from other projects, you're probably going to get
errors. I'm not sure about the Cannot find parent error, but perhaps these
foreign poms are the cause?

I agree, the documentation for maven is tough going.



-- 
View this message in context: 
http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6790244
Sent from the Maven - Users mailing list archive at Nabble.com.


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



  1   2   >