jspc

2006-03-08 Thread Tom Joad
Hello all,

I use jspc plugin and a get the following message
- Built File: \index.jsp
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
- Unknown element (description) in tag-file
org.apache.jasper.JasperException:
file:/myproject/WebContent/WEB-INF/tags/html/attributes.tag(13,7)
 <%@ tag directive can only be used in a tag file.
It seem that  the plugin try to compile tags file. does somebody
already get such error?
and how to work around?

thanks in advance

Tom.

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



Re: How to change group name?

2006-03-08 Thread Emmanuel Venisse

No. If you use maven as project, the group name is is the name of parent 
project.

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi All

When i added a project in cotinuum all projects having same group name.. 
why?


is there a way to change the group name ?






Thanks,
Raghu 





Re: Continuum sends a online report link with localhost

2006-03-08 Thread Emmanuel Venisse

You must configure it in configuration screen (from menu)

Emmanuel

Gautham Pamu a écrit :

Hi everyone,

In the build report email. It has a link with localhost, how can I configure
it to have actual hostname

Online report :
http://localhost:8080/continuum/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/8/buildId/12

--
-Gautham Pamu





Re: [M2] Mojo plugin - acessing jar'd batch file

2006-03-08 Thread Martin van der Plas

Hi,

You can register the jar'd batch file as  an attached artifact.
Use the assembly plugin to package the batch file as a jar.
Refere to this attached artifact as:
...

 aGroupId
 anArtifactId
 batchfile

...

The classifier element does the trick. Here you use the id as specified 
in the assembly desciptor.  See also 
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
The dependency loads the file in your localRepository.   You certainly 
need another plugin to use this dependency in the dependend project. 
Check the antrun plugin.


Succes

Martin

[EMAIL PROTECTED] wrote:


Hi

I am working on a plugin (Mojo) where one of the resources is a batchfile. When 
I run the plugin I want to be able to execute the batch file from the mojo 
antscript. Anybody have any idea of how to reference the (jar'd) batch file.

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 


This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

 




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



explore unspecified attached artifacts

2006-03-08 Thread Martin van der Plas

Hi,

In a plugin, how can I find all attached artifacts of an artifact 
without specifying the attached artifacts as a dependency?


Thanks,

   Martin





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



Re: Sun Blueprint Petstore Application converted to Maven project

2006-03-08 Thread Wayne Fay
Its a little hard to "debug" this over email.

I'd generally suspect you need to add:

  
org.apache.maven.plugins
maven-ejb-plugin

  

  true

  

  


to your pom.xml for the EJBs. Depending on your needs, you might want to add:
  true
inside the configuration block too, before archive. This is only for EJB jars.

And add the same thing to your WAR pom.xml files except the artifactId
needs to be:
maven-war-plugin

And probably the same thing to your JAR pom.xml files with this for artifactId:
maven-jar-plugin

I had a similar problem early in my J2EE project conversion to Maven2
due to the app server not finding the common lib jars and ejb jars.

This might not fix all your problems. Just a shot in the dark. Give it
a try and report back how it affects deployment of your EAR.

Wayne


On 3/8/06, Manisha Sur <[EMAIL PROTECTED]> wrote:
> Hi Vincent,
>
> I started with the java petstore application to convert in in Maven project.
> Was inspired from the article written by you on onJava.com.
> Refering to the mobilefish.com site , i deployed the actual petstore
> application in jboss. So far so good.
> The actual petstore.ear containes the customer jar containing the classes of
> ejbs : Address , ContactInfo and CreditCard. The ear doesn't contain the
> seperate jars for these three components. the structure of the ear is as
> follows:
>
> manifest.mf
> application.xml
> xmldocuments.jar
> 
> ...
> petstore.war
> customer.jar
> .
> .
>
> where customer.jar contains the following ( as generated by the build
> script) :
>
> Manifest.mf
> jbosscmp-jdbc.xml
> jboss.xml
> ejb-jar.xml
> classes of Address ejb
> classes of ContactInfo ejb
> classes of creditcard ejb
> classes of Customer ejb
>
> But as Maven requires that each of the artifact should be seperate
> component. the ear generated by maven contains:
>  manifest.mf
> application.xml
> xmldocuments.jar
> 
> ...
> petstore.war
> address.jar
> contactinfo.jar
> creaditcard.jar
> customer.jar
>
> where customer.jar contains the following:
> Manifest.mf
> jbosscmp-jdbc.xml
> jboss.xml
> ejb-jar.xml
> classes for customer
>
> SO WHILE SEGREGATING THE CLASSES INTO SEPERATE EJB JARS WITHIN THE EAR, I
> GET ERRORS LIKE
> CANNOT INSERT NULL ON NON NULLABLE
> CANNOT FIND ENTITY WITH THE KEY
>
> When i take a look at the jboss server.log, i find the while creating the
> entity the record is inserted in addresslocals table.
> but while loading the same entity : select ...from ADDRESSEJB .
> I face few more errors like
> javax.management.InstanceAlreadyExistsException due to which the CustomerEJB
> gets Undeployed.
> As i am not comfortable with the ejbs .. please help me identifying where
> the problem can be ?
>
>
> Thanks,
> Manisha.
>
>

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



Re: ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'javax.jdo.JDODataStoreException

2006-03-08 Thread Wayne Fay
This error has nothing to do with Maven or Continuum.

You will have better luck getting a fix for this issue from the
jpox.org users email list and/or derby.apache.org users list.

Wayne


On 3/8/06, Gautham Pamu <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
>
> I am seeing this problem with my build, when does it throw this exception.
> Is it  problem happenig due to  long paths or did anyone run
> into this problem.  Is this configure error or is this a known error/bug.
>
> Online report :
> http://localhost:8080/continuum/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/14/buildId/5
> Build statistics:
>  State: Error
>  Previous Build: No previous build.
>  Started at: Thu, 2 Mar 2006 01:03:37 -0600
>  Finished at: Thu, 2 Mar 2006 01:04:17 -0600
>  Total time: 39s
>  Build Trigger: Schedule
>  Exit code: 0
>  Building machine hostname: gpamu3
>  Operating system : Linux(unknown)
>  Java version : 1.4.2(IBM Corporation)
>
>
> 
> Build Error:
> 
> javax.jdo.JDODataStoreException: Update request failed: UPDATE BUILDRESULT
> SET ERROR = ? WHERE ID = ?
> at org.jpox.store.rdbms.request.UpdateRequest.execute(
> UpdateRequest.java:245)
> at org.jpox.store.rdbms.table.ClassTable.update(ClassTable.java
> :1834)
> at org.jpox.store.StoreManager.update(StoreManager.java:768)
> at org.jpox.state.StateManagerImpl.flush(StateManagerImpl.java
> :4054)
> at org.jpox.AbstractPersistenceManager.flush(
> AbstractPersistenceManager.java(Compiled Code))
> at org.jpox.NonmanagedTransaction.getConnection(
> NonmanagedTransaction.java(Compiled Code))
> at org.jpox.NonmanagedTransaction.getConnection(
> NonmanagedTransaction.java(Inlined Compiled Code))
> at org.jpox.store.rdbms.request.LocateRequest.execute(
> LocateRequest.java(Compiled Code))
> at 
> org.jpox.store.rdbms.table.ClassTable.locate(ClassTable.java(Compiled
> Code))
> at org.jpox.store.StoreManager.locate(StoreManager.java(Compiled
> Code))
> at 
> org.jpox.state.StateManagerImpl.locate(StateManagerImpl.java(Inlined
> Compiled Code))
> at 
> org.jpox.state.StateManagerImpl.attachCopy(StateManagerImpl.java(Compiled
> Code))
> at org.jpox.AbstractPersistenceManager.attachCopy(
> AbstractPersistenceManager.java(Compiled Code))
> at org.jpox.AbstractPersistenceManager.attachCopy(
> AbstractPersistenceManager.java:1660)
> at
> org.apache.maven.continuum.store.JdoContinuumStore.updateBuildResult(
> JdoContinuumStore.java:222)
> at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
> DefaultBuildController.java:218)
> at
> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask
> (BuildProjectTaskExecutor.java:53)
> at
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run
> (ThreadedTaskQueueExecutor.java(Compiled Code))
> at java.lang.Thread.run(Thread.java:567)
> NestedThrowablesStackTrace:
> ERROR 22001: A truncation error was encountered trying to shrink VARCHAR '
> javax.jdo.JDODataStoreException
> at org.jpox.store.rdbms.sco&' to length 8192.
> at org.apache.derby.iapi.error.StandardException.newException(Unknown
> Source)
> at org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(Unknown
> Source)
> at org.apache.derby.iapi.types.SQLVarchar.normalize(Unknown Source)
> at org.apache.derby.iapi.types.SQLVarchar.normalize(Unknown Source)
> at org.apache.derby.iapi.types.DataTypeDescriptor.normalize(Unknown
> Source)
> at
> org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeRow(Unknown
> Source)
> at
> org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown
> Source)
> at
> org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown
> Source)
> at
> org.apache.derby.impl.sql.execute.UpdateResultSet.collectAffectedRows(Unknown
> Source)
> at org.apache.derby.impl.sql.execute.UpdateResultSet.open(Unknown
> Source)
> at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown
> Source)
> at
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown
> Source)
> at 
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown
> Source)
> at 
> org.jpox.store.rdbms.request.Request.executeUpdate(Request.java(Compiled
> Code))
> at org.jpox.store.rdbms.request.UpdateRequest.execute(
> UpdateRequest.java:231)
> at org.jpox.store.rdbms.table.ClassTable.update(ClassTable.java
> :1834)
> at org.jpox.store.StoreManager.update(StoreManager.java:768)
> at org.jpox.state

[m2] Properties in the POM

2006-03-08 Thread Giles, Nick
Is there any mechanism for loading properties into the POM from a file,
in the style of an Ant  declaration? I
know M2 tries to keep everything in the one file, but the particular
issue I'm coming up against is wanting to define the project version
based on a properties file, which is needed / used by several other
processes, so I can't just move it into the POM.

I looked at profiles, which might be able to help, but I'm not 100%, and
I wondered if there was a more direct means, even if it's specifying the
file on the commandline.

In a related question, can you declare properties in the POM? I've got a
few directory references that are crying out for a common prefix
variable, but I don't see how to achieve it.

Cheers,

Nick
 
   This message may contain privileged and/or confidential information.  If 
you have received this e-mail in error or are not the intended recipient, you 
may not use, copy, disseminate or distribute it; do not open any attachments, 
delete it immediately from your system and notify the sender promptly by e-mail 
that you have done so.  Thank you.

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



Re: [m202] SAX 2.0.2 support missing from ibiblio

2006-03-08 Thread Adrian Herscu
Meanwhile, it is documented here.
The problem is deeper than that. Why there is no metadata about these
dependencies?

Wayne Fay wrote:
> Excellent. Now let's see about getting that documented somewhere. ;-)
> 
> Wayne
> 
> 
> On 3/7/06, Adrian Herscu <[EMAIL PROTECTED]> wrote:
>> SOLVED
>> ---
>> The dependencies list for the  task in ant-1.6.5 is:
>> ant-node-ps-1.6.5  --  supplies the optional task classes
>> xercesImpl-2.7.1   --  provides XML schema validation service
>> xml-apis-1.3.02--  supplies the SAX 2.0.2 Extensions required by
>> xercesImpl-2.7.1
>>
>> Adrian Herscu wrote:
>>> Yes, you guessed right, I am (still) using the JDK 1.4. I am afraid that
>>> upgrading to the new JDK will cause me other dependencies headaches.
>>>
>>> Found in the ANT forum that the xml-apis.jar, which belong to Xerces
>>> 2.7.1, was uploaded to ibiblio as xml-apis-1.3.02.jar. (spent four hours
>>> to find that -- who said that JAR hell is better than DLL hell?)
>>>
>>> However, the xmlvalidate task of ANT (1.6.5) still does not work -- any
>>> experience with that?
>>>
>>> Wayne Fay wrote:
 Probably no one has missed this because this is included in JDK5. You
 are running jdk1.3 or 1.4, I'm guessing?

 You could probably find this in Saxon 6.5.3 (haven't checked!) or a
 similar library. Find a library in ibiblio which implements it, add
 the library as a dependency and see if it works? ;-)

 This is why classifiers are sometimes used -- so we can have a JDK4
 "version" of the maven-script-ant that includes Saxon as a dependency,
 and a JDK5 "version" which has no such dep.

 Wayne


 On 3/7/06, Adrian Herscu <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Anyone tried to use ANT xmlvalidate task from Maven?
>
> It seems that maven-script-ant 2.0.2 depends on ant 1.6.5 which depends
> on xercesImpl 2.7.1 (tried the 2.6.2 and does not work) which depends on
> SAX 2.0.2 Extensions (which contains the org/xml/sax/ext/Attributes2 
> class).
>
> Adrian.
>
> P.S. Here is the stack trace:
> java.lang.NoClassDefFoundError: *org/xml/sax/ext/Attributes2*
>at java.lang.ClassLoader.defineClass0(Native Method)
>at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> 3)
>at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>at java.security.AccessController.doPrivileged(Native Method)
>at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>at
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
> oader.java:195)
>at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
> m.java:255)
>at
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
> java:214)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>at org.apache.xerces.parsers.AbstractSAXParser.(Unknown
> Source)
>at org.apache.xerces.parsers.SAXParser.(Unknown Source)
>at org.apache.xerces.parsers.SAXParser.(Unknown Source)
>at
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.(Unknown Sou
> rce)
>at org.apache.xerces.jaxp.SAXParserImpl.(Unknown Source)
>at
> org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Sour
> ce)
>at
> org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:205)
>at
> org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.j
> ava:163)
>at
> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> 193)
>at
> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> 140)
>at
> org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
> ScriptInvoker.java:194)
>at
> org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav
> a:33)
>at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:415)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:531)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:472)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:451)
>at
>>>

site building

2006-03-08 Thread Devraj Brahmachari
hello

[1]as per the documentation the following command generates the project 
sources as well as the site structure

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app 
-DarchetypeGroupId=org.apache.maven.archetypes 
-DarchetypeArtifactId=maven-archetype-site

but it creates only site structure & not the project structure


[2] i created a local repository & included the path in the settings.xml 
file - everything works smoothly
But next day when i start the machine and give any maven command it says 
it cant find the downloaded resources in the local repository (some 
validation FATAL errors)
Pls explain.

regards
DEVRAJ BRAHMACHARI
Center of Excellence - SOA
South Block
L&T Infotech Powai
Mumbai 

__

POM clean-up tool?

2006-03-08 Thread Henrik Mejlgaard
I was wondering if anyone knows of a Maven2 plugin that is able to check
whether the dependencies specified in the pom.xml is actually used during
compilation.
I would be nice if such a plugin could give the following kind of info:

[WARN] Dependency X:Y:Z is never used

It's our experience that POMs gets polluted with stale dependencies as time
goes by.

TIA,

Henrik


multiple test directories

2006-03-08 Thread Martin Ankerl
Hi, I am using Maven 2 and would like to have multiple test
directories. What is the best way to do this?

I would like the directories

src\test\java\acceptance\
src\test\java\smoke\
src\test\java\unit\

and under each directory the normal package hierarchy. It seems to
work if I just create the tests there, but is it possible to run just
the unit tests or just the acceptance tests?

--
Martin Ankerl | http://martinus.geekisp.com/

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



Re: multiple test directories

2006-03-08 Thread Alexandre Poitras
There is no natural support for it yet but discussions about best
strategies to use are still going on confluence. If you like to share
your opinion :)
http://docs.codehaus.org/display/MAVEN/Testing+Strategies

On 3/8/06, Martin Ankerl <[EMAIL PROTECTED]> wrote:
> Hi, I am using Maven 2 and would like to have multiple test
> directories. What is the best way to do this?
>
> I would like the directories
>
> src\test\java\acceptance\
> src\test\java\smoke\
> src\test\java\unit\
>
> and under each directory the normal package hierarchy. It seems to
> work if I just create the tests there, but is it possible to run just
> the unit tests or just the acceptance tests?
>
> --
> Martin Ankerl | http://martinus.geekisp.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Getting a Failure Stacktrace from Surefire

2006-03-08 Thread Joern Eyrich
If I do "mvn test" in a shell, and one of my tests fails, I only get the
output

"
[surefire] Running my.package.MyClass
[surefire] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0,01 sec
 FAILURE !!
"

Is there any way to make Surefire also print the cause of the failure(s)
(the failed assertion(s)) and optionally (a) stack trace(s)?

I don't see an appropriate option at

  http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

and my googling turned up nothing, either.

Of course I can go look in the generated reports files, but I'd like
something more immediate.

Thanks,
Joern

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



Maven& J2EE : package javax.persistence does not exist

2006-03-08 Thread adela
Dear Maven Users,
 
I am trying to compile a J2EE project using Maven2 and  I have dependency on 
javax.persistence package, but when I add this artifact, it is complaining 
about that the local rep is not exist and it can not get it from the remote rep 
as you can see from the massage below, any idea to sort this problem please ?
 
Regards,
 
Adel
 
  
 
08/03/06 09:50:18 GMT: Reading /Stephenie/pom.xml
08/03/06 09:50:18 GMT: Local repository folder "" does not exist
08/03/06 09:50:19 GMT: [WARN] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
08/03/06 09:50:20 GMT: [WARN] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
 
08/03/06 09:50:20 GMT: required artifacts missing:
  javax.persistence:ejb3-persistence: jar: 3
 
for the artifact: Sample-Maven-Project:Stepheni-sample-project-0.0.1.jar
08/03/06 09:50:20 GMT: Project build error Duplicate project ID found in 
C:\Stephani\workspace\Stephenie\pom.xml
 
Please consider AJ Business Solutions Ltd's disclaimer at the end of this email 
before reading this message or opening any attachments.










Adel Aneiba
Software Development
For and on Behalf of AJ Business Solutions Ltd.
Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15


This message is confidential and may be legally privileged. No confidentiality 
or privilege is waived or lost by any mistransmission. If you are not the 
intended recipient please delete it and all copies of it from your system, 
destroy any hard copies of it and notify the sender immediately.
 
You must not, directly or indirectly, use, disclose, distribute, print, or copy 
any part of this message or any attachment if you are not the intended 
recipient.
 
We will not accept any liability for damage caused by computer viruses and it 
is your responsibility to scan attachments (if any).
 
We may for the better performance of our business monitor incoming e-mails sent 
through our e-mail system. 


Re: Maven& J2EE : package javax.persistence does not exist

2006-03-08 Thread Kees de Kooter
Read this:

http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html


On 08 Mar 2006 10:48:51 UT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear Maven Users,
>
> I am trying to compile a J2EE project using Maven2 and  I have dependency on 
> javax.persistence package, but when I add this artifact, it is complaining 
> about that the local rep is not exist and it can not get it from the remote 
> rep as you can see from the massage below, any idea to sort this problem 
> please ?
>
> Regards,
>
> Adel
>
>
>
> 08/03/06 09:50:18 GMT: Reading /Stephenie/pom.xml
> 08/03/06 09:50:18 GMT: Local repository folder "" does not exist
> 08/03/06 09:50:19 GMT: [WARN] Unable to get resource from repository central 
> (http://repo1.maven.org/maven2)
> 08/03/06 09:50:20 GMT: [WARN] Unable to get resource from repository central 
> (http://repo1.maven.org/maven2)
>
> 08/03/06 09:50:20 GMT: required artifacts missing:
>   javax.persistence:ejb3-persistence: jar: 3
>
> for the artifact: Sample-Maven-Project:Stepheni-sample-project-0.0.1.jar
> 08/03/06 09:50:20 GMT: Project build error Duplicate project ID found in 
> C:\Stephani\workspace\Stephenie\pom.xml
>
> Please consider AJ Business Solutions Ltd's disclaimer at the end of this 
> email before reading this message or opening any attachments.
>
>
>
>
>
>
>
>
>
>
> Adel Aneiba
> Software Development
> For and on Behalf of AJ Business Solutions Ltd.
> Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15
>
>
> This message is confidential and may be legally privileged. No 
> confidentiality or privilege is waived or lost by any mistransmission. If you 
> are not the intended recipient please delete it and all copies of it from 
> your system, destroy any hard copies of it and notify the sender immediately.
>
> You must not, directly or indirectly, use, disclose, distribute, print, or 
> copy any part of this message or any attachment if you are not the intended 
> recipient.
>
> We will not accept any liability for damage caused by computer viruses and it 
> is your responsibility to scan attachments (if any).
>
> We may for the better performance of our business monitor incoming e-mails 
> sent through our e-mail system.
>
>


--
Cheers,
Kees de Kooter
http://www.boplicity.nl

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



Question About Deploying Project Sites

2006-03-08 Thread Allison, Bob
I want to create a web site that looks like this:
index.html
  +--parent-1.0/index.html
  +--proj1-1.0/index.html
  +--proj1-1.1/index.html
  +--proj2-1.0/index.html

and so on...  Basically, I wanted each version of each project to deploy
its site to a different directory.  This also means that SNAPSHOT
versions deploy in a different directory than releases.
My parent project and all of its modules are peer directories in the
build directories, so the parent project has
"../proj1".

In the parent project, I defined the site deployment URL to be
"file://${user.home}/public_html/projects/${project.artifactId}-${projec
t.version}".  Each of the other projects inherit this definition.  When
I do a site:deploy, I get the following structure:
/home/allisord/public_html/projects/index.html
  +--parent-1.0/index.html
  +--proj1-1.0
   +--proj1/index.html
  +--proj2-1.0
   +--proj2/index.html

I get the module name tacked on to the end of the inherited string,
which I guess is expected since the URL is inherited.  I guess I have
two questions:

1) I noticed some discussion (I think on the dev@ list) that the desired
path for a subproject site in this case should be
.../projects/parent/child/... rather than .../projects/child/... that
was generated.  Is this correct?

2) I am guessing that if I put the URL string in each subproject, then
the URL won't be mangled since it won't be inherited.  Is there some
other way to accomplish the web site I am looking for?

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



How can I able to use maven-compiler-plugin with ${maven.compiler.debug}

2006-03-08 Thread Venkatagopalaraju
Dear Maven Users,
 
Could you please anyone help out from this problem. I am suffering from 
these problems.

1. I am working on maven 2.0.2, I have seen, In this version we are not 
able to use properties file. I am using maven-compiler-plugin, But I need to 
set false for ${maven.compiler.debug}.For this I used to set command line 
properties.But it is ignoring these properties. How I am able to work with 
these properties.

  2. In other case, I am working with maven 2.0.2. I am able to generate jar 
files, after completing successful build with maven.But problem is, I need to 
put compress="false" option through pom.xml or properties(command line 
properties). I have seen in maven1, it is possible through 
properties${maven.jar.compress} file. could you please let me know, how can I 
use with maven2.




Thanks & Regards
  Gopal


RE: [m2] Properties in the POM

2006-03-08 Thread Ruel Loehr
You can add it to the pom in the following fashion:

  
JBoss
  

Where specification.title is the property you wish to set.

Updated wiki as well with this info.

Ruel Loehr
JBoss QA
 
-Original Message-
From: Giles, Nick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 4:59 AM
To: users@maven.apache.org
Subject: [m2] Properties in the POM

Is there any mechanism for loading properties into the POM from a file,
in the style of an Ant  declaration? I
know M2 tries to keep everything in the one file, but the particular
issue I'm coming up against is wanting to define the project version
based on a properties file, which is needed / used by several other
processes, so I can't just move it into the POM.

I looked at profiles, which might be able to help, but I'm not 100%, and
I wondered if there was a more direct means, even if it's specifying the
file on the commandline.

In a related question, can you declare properties in the POM? I've got a
few directory references that are crying out for a common prefix
variable, but I don't see how to achieve it.

Cheers,

Nick
 
   This message may contain privileged and/or confidential
information.  If you have received this e-mail in error or are not the
intended recipient, you may not use, copy, disseminate or distribute it;
do not open any attachments, delete it immediately from your system and
notify the sender promptly by e-mail that you have done so.  Thank you.

-
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: Question About Deploying Project Sites

2006-03-08 Thread Allison, Bob
I just realized that my first question is slightly wrong.  It turns out
that I did get the child sites deployed to
".../projects/parent/child/..." except that the definition of "parent"
changes from project to project because of the substitutions.  It also
means that the module links in the site generated for the parent are
wrong (in parent, the link to proj1 points to
"projects/parent-1.0/proj1/index.html" while the site is in
"projects/proj1-1.0/proj1/index.html").

-Original Message-
From: Allison, Bob [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 09:14
To: Maven Users List
Subject: Question About Deploying Project Sites


I want to create a web site that looks like this:
index.html
  +--parent-1.0/index.html
  +--proj1-1.0/index.html
  +--proj1-1.1/index.html
  +--proj2-1.0/index.html

and so on...  Basically, I wanted each version of each project to deploy
its site to a different directory.  This also means that SNAPSHOT
versions deploy in a different directory than releases.
My parent project and all of its modules are peer directories in the
build directories, so the parent project has
"../proj1".

In the parent project, I defined the site deployment URL to be
"file://${user.home}/public_html/projects/${project.artifactId}-${projec
t.version}".  Each of the other projects inherit this definition.  When
I do a site:deploy, I get the following structure:
/home/allisord/public_html/projects/index.html
  +--parent-1.0/index.html
  +--proj1-1.0
   +--proj1/index.html
  +--proj2-1.0
   +--proj2/index.html

I get the module name tacked on to the end of the inherited string,
which I guess is expected since the URL is inherited.  I guess I have
two questions:

1) I noticed some discussion (I think on the dev@ list) that the desired
path for a subproject site in this case should be
.../projects/parent/child/... rather than .../projects/child/... that
was generated.  Is this correct?

2) I am guessing that if I put the URL string in each subproject, then
the URL won't be mangled since it won't be inherited.  Is there some
other way to accomplish the web site I am looking for?

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



Is really MASSEMBLY-1 fixed?

2006-03-08 Thread Jozef Kotlár
Hello, 

I would like to have confirmed from someone that according my
observation is http://jira.codehaus.org/browse/MASSEMBLY-1 still open,
at least with published maven a and plugins.

With maven version 2.0.2 and empty local repository 
I've used the attached test case and procedure and the result is the
same:

$ java -jar target/mng-1380-1.0-SNAPSHOT-jar-with-dependencies.jar 
Failed to load Main-Class manifest attribute from
target/mng-1380-1.0-SNAPSHOT-jar-with-dependencies.jar

Maybe I am doing something wrong?

Thanks,
Dodo.


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



Re: Getting a Failure Stacktrace from Surefire

2006-03-08 Thread ian . d . stewart
+1

This is one of the major annoyances when running unit tests in Maven as
opposed to using the Eclipse TestRunner.


Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078



   
  Joern Eyrich  
   
  <[EMAIL PROTECTED]To:   
users@maven.apache.org
  genio.de>cc:  
   
   Subject:  Getting a Failure 
Stacktrace from Surefire
  03/08/2006 05:59  
   
  AM
   
  Please respond to 
   
  "Maven Users  
   
  List" 
   

   




If I do "mvn test" in a shell, and one of my tests fails, I only get the
output

"
[surefire] Running my.package.MyClass
[surefire] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0,01 sec
 FAILURE !!
"

Is there any way to make Surefire also print the cause of the failure(s)
(the failed assertion(s)) and optionally (a) stack trace(s)?

I don't see an appropriate option at

  http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

and my googling turned up nothing, either.

Of course I can go look in the generated reports files, but I'd like
something more immediate.

Thanks,
Joern

-
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: How to change group name?

2006-03-08 Thread raghurajan . x . gurunathan
Thanks for your reply,

But i have different project which has different parent  for those also 
its showing the gropname as same as my first maven project i setup with 
continuum

isn't confusing??






Thanks,
Raghu 





Emmanuel Venisse <[EMAIL PROTECTED]>
03/08/2006 02:31 AM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: How to change group name?


No. If you use maven as project, the group name is is the name of parent 
project.

Emmanuel

[EMAIL PROTECTED] a écrit :
> Hi All
> 
> When i added a project in cotinuum all projects having same group name.. 

> why?
> 
> is there a way to change the group name ?
> 
> 
> 
> 
> 
> 
> Thanks,
> Raghu 
> 





Downloading from the local rep

2006-03-08 Thread adela
Dear all,
 
I am trying to get Maven downloading the required artifact from my local rep, 
but still using the remote one despite it's updating the local rep, every time 
downloading from the remote. I tried to set-up my local rep via Setting.xml as 
follow:  
C:\Documents and 
Settings\adel\.m2\repository , but still giving me the below 
message every time reading my POM, any idea how I can sort this problem please?
 
08/03/06 15:11:23 GMT: Reading /Stephenie/pom.xml
08/03/06 15:11:23 GMT: Local repository folder "" does not exist
08/03/06 15:11:24 GMT: Downloading [central] -> 
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.pom
08/03/06 15:11:24 GMT: Downloaded [central] -> 
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.pom
08/03/06 15:11:25 GMT: Downloading [central] -> 
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar
08/03/06 15:11:29 GMT: Downloaded [central] -> 
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar
 
Regards,
 
Adel
 


Please consider AJ Business Solutions Ltd's disclaimer at the end of this email 
before reading this message or opening any attachments.










Adel Aneiba
Software Development
For and on Behalf of AJ Business Solutions Ltd.
Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15


This message is confidential and may be legally privileged. No confidentiality 
or privilege is waived or lost by any mistransmission. If you are not the 
intended recipient please delete it and all copies of it from your system, 
destroy any hard copies of it and notify the sender immediately.
 
You must not, directly or indirectly, use, disclose, distribute, print, or copy 
any part of this message or any attachment if you are not the intended 
recipient.
 
We will not accept any liability for damage caused by computer viruses and it 
is your responsibility to scan attachments (if any).
 
We may for the better performance of our business monitor incoming e-mails sent 
through our e-mail system. 


RE: Question About Deploying Project Sites

2006-03-08 Thread Allison, Bob
Question two also has a problem.  If I put the URL in each subproject,
then the links in the web site are wrong because parent points to
"projects/parent-1.0/proj1/index.html" while proj1 is built to
"projects/proj1-1.0/index.html".

-Original Message-
From: Allison, Bob [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 10:25
To: Maven Users List
Subject: RE: Question About Deploying Project Sites


I just realized that my first question is slightly wrong.  It turns out
that I did get the child sites deployed to
".../projects/parent/child/..." except that the definition of "parent"
changes from project to project because of the substitutions.  It also
means that the module links in the site generated for the parent are
wrong (in parent, the link to proj1 points to
"projects/parent-1.0/proj1/index.html" while the site is in
"projects/proj1-1.0/proj1/index.html").

-Original Message-
From: Allison, Bob [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 09:14
To: Maven Users List
Subject: Question About Deploying Project Sites


I want to create a web site that looks like this:
index.html
  +--parent-1.0/index.html
  +--proj1-1.0/index.html
  +--proj1-1.1/index.html
  +--proj2-1.0/index.html

and so on...  Basically, I wanted each version of each project to deploy
its site to a different directory.  This also means that SNAPSHOT
versions deploy in a different directory than releases.
My parent project and all of its modules are peer directories in the
build directories, so the parent project has
"../proj1".

In the parent project, I defined the site deployment URL to be
"file://${user.home}/public_html/projects/${project.artifactId}-${projec
t.version}".  Each of the other projects inherit this definition.  When
I do a site:deploy, I get the following structure:
/home/allisord/public_html/projects/index.html
  +--parent-1.0/index.html
  +--proj1-1.0
   +--proj1/index.html
  +--proj2-1.0
   +--proj2/index.html

I get the module name tacked on to the end of the inherited string,
which I guess is expected since the URL is inherited.  I guess I have
two questions:

1) I noticed some discussion (I think on the dev@ list) that the desired
path for a subproject site in this case should be
.../projects/parent/child/... rather than .../projects/child/... that
was generated.  Is this correct?

2) I am guessing that if I put the URL string in each subproject, then
the URL won't be mangled since it won't be inherited.  Is there some
other way to accomplish the web site I am looking for?

-
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: Downloading from the local rep

2006-03-08 Thread Mang Jun Lau
Hi Adel,

A temporary fix would be to run Maven with a -o parameter for offline 
mode.  This ensures that Maven will not look online.  In my settings.xml, 
I don't specify the  tag.  I have never had to change the 
settings.xml file except to add mirrors.  Since it says your folder does 
not exist, maybe you can remove that  tag.  See if that 
works.


_Mang Lau





<[EMAIL PROTECTED]> 
03/08/2006 10:20 AM
Please respond to
"Maven Users List" 


To
users@maven.apache.org
cc

Subject
Downloading from the local rep






Dear all,
 
I am trying to get Maven downloading the required artifact from my local 
rep, but still using the remote one despite it's updating the local rep, 
every time downloading from the remote. I tried to set-up my local rep via 
Setting.xml as follow: 
C:\Documents and 
Settings\adel\.m2\repository , but still giving me the 
below message every time reading my POM, any idea how I can sort this 
problem please?
 
08/03/06 15:11:23 GMT: Reading /Stephenie/pom.xml
08/03/06 15:11:23 GMT: Local repository folder "" does not exist
08/03/06 15:11:24 GMT: Downloading [central] -> 
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.pom
08/03/06 15:11:24 GMT: Downloaded [central] -> 
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.pom
08/03/06 15:11:25 GMT: Downloading [central] -> 
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar
08/03/06 15:11:29 GMT: Downloaded [central] -> 
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar
 
Regards,
 
Adel
 


Please consider AJ Business Solutions Ltd's disclaimer at the end of this 
email before reading this message or opening any attachments.










Adel Aneiba
Software Development
For and on Behalf of AJ Business Solutions Ltd.
Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15


This message is confidential and may be legally privileged. No 
confidentiality or privilege is waived or lost by any mistransmission. If 
you are not the intended recipient please delete it and all copies of it 
from your system, destroy any hard copies of it and notify the sender 
immediately.
 
You must not, directly or indirectly, use, disclose, distribute, print, or 
copy any part of this message or any attachment if you are not the 
intended recipient.
 
We will not accept any liability for damage caused by computer viruses and 
it is your responsibility to scan attachments (if any).
 
We may for the better performance of our business monitor incoming e-mails 
sent through our e-mail system. 



[m2] Is Eclipse WTP 1.0.1 support working in the eclipse:eclipse plugin yet?

2006-03-08 Thread KC Baltz
I'm trying to use the 1.0.1 release of the Eclipse Web Tools with my Maven web 
project and not having much luck.  I've called maven with the following:
 
mvn eclipse:clean eclipse:eclipse -Dwtpversion=1.0
 
It seems to be happy with that and even says: 
 
[INFO] [eclipse:eclipse]
[INFO] Adding support for WTP version 1.0.
[INFO] Wrote settings to C:\cvs\myProject\.settings\org.eclipse.jdt.core.prefs
 
However, in Eclipse, I can't get it to let me add the project to the Tomcat 
server I have defined.  This worked with the 0.7 support, but does not appear 
to be working with 1.0
 
K.C.


Error in generating Maven report

2006-03-08 Thread adela
Dear Maveners,
 
I am trying to generate a web site for my J2EE project using mvn site, but I am 
having the below error complaining about the dependency any idea, this error 
happened when I add the javax.persense dependency as below:

jboss
ejb3-persistence
3
system
${basedir}\lib\ejb3-persistence.jar

Regards,
Adel


[INFO] Generate "Dependencies" report.
[INFO] 

[ERROR] FATAL ERROR
[INFO] 

[INFO] null
[INFO] 

[INFO] Trace
java.lang.NullPointerException
at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:82)
at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:386)
at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:351)
at 
org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.getMavenProjectFromRepository(Dependenci
esReport.java:362)
at 
org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.renderBody(DependenciesReport.java:242)
at 
org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
at 
org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:157)
at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at 
org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 

[INFO] Total time: 1 minute 28 seconds
[INFO] Finished at: Wed Mar 08 16:24:07 GMT 2006
[INFO] Final Memory: 12M/22M
[INFO] 

Please consider AJ Business Solutions Ltd's disclaimer at the end of this email 
before reading this message or opening any attachments.










Adel Aneiba
Software Development
For and on Behalf of AJ Business Solutions Ltd.
Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15


This message is confidential and may be legally privileged. No confidentiality 
or privilege is waived or lost by any mistransmission. If you are not the 
intended recipient please delete it and all copies of it from your system, 
destroy any hard copies of it and notify the sender immediately.
 
You must not, directly or indirectly, use, disclose, distribute, print, or copy 
any part of this message or any attachment if you are not the intended 
recipient.
 
We will not accept any liability for damage caused by computer viruses and it 
is your responsibility to scan attachments (if any).
 
We may for the better performance of our business monitor incoming e-mails sent 
through our e-mail system. 


[m2] ant plugin mojo refering to maven ProjectHelper

2006-03-08 Thread Martin van der Plas

Hi,

According to 
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html 
it is possible to define plexus components.

The hint does not describe how the component needs to be refered to.

I would like to use the maven ProjectHelper  in an anttask. How can I 
pass the ProjectHelper object to my task?


Thanks.

Martin


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



Re: [m2] ant plugin mojo refering to maven ProjectHelper

2006-03-08 Thread Wayne Fay
You are treading into Maven developer territory here...

I doubt you will find the answers you are looking for on this list.
Perhaps dev@ list instead?

Wayne


On 3/8/06, Martin van der Plas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> According to
> http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
> it is possible to define plexus components.
> The hint does not describe how the component needs to be refered to.
>
> I would like to use the maven ProjectHelper  in an anttask. How can I
> pass the ProjectHelper object to my task?
>
> Thanks.
>
> Martin
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to change group name?

2006-03-08 Thread Emmanuel Venisse

What is your maven version?

Do you have differerent name in all your super parent pom?

Emmanuel

[EMAIL PROTECTED] a écrit :

Thanks for your reply,

But i have different project which has different parent  for those also 
its showing the gropname as same as my first maven project i setup with 
continuum


isn't confusing??






Thanks,
Raghu 






Emmanuel Venisse <[EMAIL PROTECTED]>
03/08/2006 02:31 AM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: How to change group name?



No. If you use maven as project, the group name is is the name of parent 
project.


Emmanuel

[EMAIL PROTECTED] a écrit :


Hi All

When i added a project in cotinuum all projects having same group name.. 




why?

is there a way to change the group name ?






Thanks,
Raghu 











Company Logo doesn't appear

2006-03-08 Thread raghurajan . x . gurunathan
Hi,


I configured my continuum with my my company name, logo, website address, 
but continuum doesn't show my company logo, it just displays company name 
in mozilla browser only not an IE and also when i click on that its not 
taking me to company website




Thanks,
Raghu 


getDependencyArtifacts returning null

2006-03-08 Thread Sachin Patel
Could someone explain why in my mojo project.getDependencies()  
returns back the correct list of dependencies defined in my pom, but  
project.getDependencyArtifacts() returns null?  How can I fix this?




- sachin




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



RE: How can I able to use maven-compiler-plugin with ${maven.compiler.debug}

2006-03-08 Thread KC Baltz
In Maven2, the replacement for the properties file is the "profiles.xml" file.  
If you put it in the same directory as your pom.xml, you can override system 
properties.  

Try putting the following into profiles.xml in the root directory of your 
project:



 
true

build

true




This has the same effect as specifying -Dmaven.compiler.debug=true on the 
command line.   

You can also take the  section from this file and put it in your 
settings.xml file to enable compiler.debug for all your Maven2 projects.  

K.C.


-Original Message-
From: Venkatagopalaraju [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 7:02 AM
To: users@maven.apache.org
Subject: How can I able to use maven-compiler-plugin with
${maven.compiler.debug} 


Dear Maven Users,
 
Could you please anyone help out from this problem. I am suffering from 
these problems.

1. I am working on maven 2.0.2, I have seen, In this version we are not 
able to use properties file. I am using maven-compiler-plugin, But I need to 
set false for ${maven.compiler.debug}.For this I used to set command line 
properties.But it is ignoring these properties. How I am able to work with 
these properties.

  2. In other case, I am working with maven 2.0.2. I am able to generate jar 
files, after completing successful build with maven.But problem is, I need to 
put compress="false" option through pom.xml or properties(command line 
properties). I have seen in maven1, it is possible through 
properties${maven.jar.compress} file. could you please let me know, how can I 
use with maven2.




Thanks & Regards
  Gopal

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



Re: Sun Blueprint Petstore Application converted to Maven project

2006-03-08 Thread Marco Mistroni
Hello,
 any reasons of why your EJBs cannot go int he same jar?
why would you need separate jars for different EJBS?

rgds
 marco






On 3/8/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Its a little hard to "debug" this over email.
>
> I'd generally suspect you need to add:
> 
>   
> org.apache.maven.plugins
> maven-ejb-plugin
> 
>   
> 
>   true
> 
>   
> 
>   
> 
>
> to your pom.xml for the EJBs. Depending on your needs, you might want to
> add:
>   true
> inside the configuration block too, before archive. This is only for EJB
> jars.
>
> And add the same thing to your WAR pom.xml files except the artifactId
> needs to be:
> maven-war-plugin
>
> And probably the same thing to your JAR pom.xml files with this for
> artifactId:
> maven-jar-plugin
>
> I had a similar problem early in my J2EE project conversion to Maven2
> due to the app server not finding the common lib jars and ejb jars.
>
> This might not fix all your problems. Just a shot in the dark. Give it
> a try and report back how it affects deployment of your EAR.
>
> Wayne
>
>
> On 3/8/06, Manisha Sur <[EMAIL PROTECTED]> wrote:
> > Hi Vincent,
> >
> > I started with the java petstore application to convert in in Maven
> project.
> > Was inspired from the article written by you on onJava.com.
> > Refering to the mobilefish.com site , i deployed the actual petstore
> > application in jboss. So far so good.
> > The actual petstore.ear containes the customer jar containing the
> classes of
> > ejbs : Address , ContactInfo and CreditCard. The ear doesn't contain the
> > seperate jars for these three components. the structure of the ear is as
> > follows:
> >
> > manifest.mf
> > application.xml
> > xmldocuments.jar
> > 
> > ...
> > petstore.war
> > customer.jar
> > .
> > .
> >
> > where customer.jar contains the following ( as generated by the build
> > script) :
> >
> > Manifest.mf
> > jbosscmp-jdbc.xml
> > jboss.xml
> > ejb-jar.xml
> > classes of Address ejb
> > classes of ContactInfo ejb
> > classes of creditcard ejb
> > classes of Customer ejb
> >
> > But as Maven requires that each of the artifact should be seperate
> > component. the ear generated by maven contains:
> >  manifest.mf
> > application.xml
> > xmldocuments.jar
> > 
> > ...
> > petstore.war
> > address.jar
> > contactinfo.jar
> > creaditcard.jar
> > customer.jar
> >
> > where customer.jar contains the following:
> > Manifest.mf
> > jbosscmp-jdbc.xml
> > jboss.xml
> > ejb-jar.xml
> > classes for customer
> >
> > SO WHILE SEGREGATING THE CLASSES INTO SEPERATE EJB JARS WITHIN THE EAR,
> I
> > GET ERRORS LIKE
> > CANNOT INSERT NULL ON NON NULLABLE
> > CANNOT FIND ENTITY WITH THE KEY
> >
> > When i take a look at the jboss server.log, i find the while creating
> the
> > entity the record is inserted in addresslocals table.
> > but while loading the same entity : select ...from ADDRESSEJB .
> > I face few more errors like
> > javax.management.InstanceAlreadyExistsException due to which the
> CustomerEJB
> > gets Undeployed.
> > As i am not comfortable with the ejbs .. please help me identifying
> where
> > the problem can be ?
> >
> >
> > Thanks,
> > Manisha.
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Is really MASSEMBLY-1 fixed?

2006-03-08 Thread Milos Kleint
I've been looking for a default way to run maven projects within
netbeans. I had the same issue with jar-with-dependencies.  We
discussed it at [EMAIL PROTECTED] and we have a different
solution that works fine and is actually exactly the same as the
netbeans ant projects get run.
Check http://docs.codehaus.org/display/MEVENIDE/RunDebugJarProjects
for details on the assembly descriptor to use and how to setup the jar
plugin.. then all you should be required to do is run "java -jar
.jar" in the target/dist directory (that's where the
assembly plugin prepares the environment)

Regards

Milos Kleint


On 3/8/06, Jozef Kotlár <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I would like to have confirmed from someone that according my
> observation is http://jira.codehaus.org/browse/MASSEMBLY-1 still open,
> at least with published maven a and plugins.
>
> With maven version 2.0.2 and empty local repository
> I've used the attached test case and procedure and the result is the
> same:
>
> $ java -jar target/mng-1380-1.0-SNAPSHOT-jar-with-dependencies.jar
> Failed to load Main-Class manifest attribute from
> target/mng-1380-1.0-SNAPSHOT-jar-with-dependencies.jar
>
> Maybe I am doing something wrong?
>
> Thanks,
> Dodo.
>
>
> -
> 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]



Creating an assembly for an SWT app

2006-03-08 Thread Craig McDaniel
I have been reading up on the assembly plugin and the standard
directory layout...
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

I am still unsure of how to go about creating and configuring an SWT
application. Clearly, the SWT jar file would be a typical dependency
(although a recent 3.1.x version does not exist in the maven repo).
But what about the native libraries, like the DLLs for Windows? Does
it make sense to include them in my project under src/ somewhere?
Since it is not really part of the jar file (the main artifact), I
would not put it in src/main. My inclination would be to put them in
src/swt.

Does this seem reasonable? Is there a better way to do this? I am
going to need a script (.bat file) to start the app as well. Perhaps I
should just put this environmental stuff, including the DLLs, into
src/env or something like that. If I need to support multiple OS's, I
can use src/env/win32, etc... Although, then I would have to deal with
multilpe SWT jar dependencies.

Has anyone built an SWT application like this and created an assembly
for binary installation? I just want to know if I am on the right
track, as I am a Maven 1 user trying to learn the ropes of Maven 2.

Is anyone actively working on updating the SWT artifacts? If not, I
will take a shot at it. On a side note, it would be nice if these
pom's had the pom author and email address specified.

--
Craig McDaniel

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



Re: Company Logo doesn't appear

2006-03-08 Thread Emmanuel Venisse

you must add http:// before www.mycove.com

Emmanuel

[EMAIL PROTECTED] a écrit :
This is the error i'm getting 

HTTP ERROR: 503 
java%2Elang%2EClassNotFoundException%3A+www%2Ejpmchase%2Ecom

RequestURI=/continuum/servlet/www.mycove.com
Powered by Jetty://






Thanks,
Raghu 






Emmanuel Venisse <[EMAIL PROTECTED]>
03/08/2006 11:37 AM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: Company Logo doesn't appear



Can you paste html of company part?

[EMAIL PROTECTED] a écrit :


Hi,


I configured my continuum with my my company name, logo, website 


address, 

but continuum doesn't show my company logo, it just displays company 


name 

in mozilla browser only not an IE and also when i click on that its not 
taking me to company website





Thanks,
Raghu 











Re: ejb3 plugin

2006-03-08 Thread Pete
Hi there,

I'm trying to build the example EJB3 maven project mentioned above by Tim,
but am getting

[INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
[INFO]task-segment: [clean, install]
[INFO]

[INFO] [clean:clean]
[INFO] [ear:generate-application-xml]
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
[INFO]


I managed to install the par and ejb3 plugins from the sandbox, the above
message seems confusing as EAR pom.xml does have the ejb as a dependency :-


  test
  test-ejb
  1.0-SNAPSHOT
  ejb3


This dependency appears to be correct because it is valid i.e. if I change
the artifactid it fails earlier.
So it seems its the  part below that it doesn't like.  My local
repo has version 2.1 of the ear plugin, I tried building the EAR project in
the trunk, but same error.

 
  test
  test-ejb
  name-without-version.ejb3




On 07/03/06, Nidhi Tuli <[EMAIL PROTECTED]> wrote:
>
> Changing the version on maven archiver in pom.xml made install to work.
> I changed the version to point to 2.01. version in my local copy.
>
> /Nidhi
>
> -Original Message-
> From: Tim Kettler [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 07, 2006 11:53 AM
> To: Maven Users List
> Subject: Re: ejb3 plugin
>
> Tim Kettler schrieb:
> > Hi Nidhi,
> >
> > you can checkout the maven-ejb3-plugin vie svn from the maven sandbox
> at:
> >
> >
> http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-ejb3-plugin
> >
> > you then probably also want the maven-par-plugin from:
> >
> > http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-par-plugin
> >
> > Once you have the plugins on your harddrive you can install them to
> your
> > local repository by executing 'mvn install' in the project root
> > directories.
> >
> > There is an attached zip file (test-prj.zip) at
> > http://jira.codehaus.org/browse/MNG-1723 which contains a very
> > minimalistic test project with an EJB3 project and an EAR project that
>
> > packages the EJB file. You can use that as an starting point for your
> > project.
> >
> > However, according to the latest draft of the spec (see section 6.2 of
>
> > ejb-3_0-pfd-spec-persistence.pdf and chapter 19 of
> > ejb-3_0-pfd-spec-ejbcore.pdf)
> > Enterprise Beans are packaged in plain Jar files (not .ejb3 and .par).
>
> > So if you use an EJB3 implementation that implements the latest spec
> > (like the one from JBoss) you can use the 'standard' maven-ejb-plugin.
>
> > The only problem with this is that the plugin enforces the presence of
>
> > an 'ejb-jar.xml' file which is not needed with EJB3 if you use
> > annotations. I submitted a patch for the plugin
> > (http://jira.codehaus.org/browse/MEJB-6) to make the 'ejb-jar.xml'
> > optional but i don't know if this will be applyed in the near furure.
>
> ...applied in the near future.
>
> Grmmph.
>
> >
> > -Tim
> >
> > Nidhi Tuli schrieb:
> >> Hi,
> >>
> >> I just started working on Maven 2 and trying to build my EJB3 project
> >> using maven2. Any ideas what plug-in should I use? In one of the
> >> articles I am advised to do ejb3 on the jar file which I created. The
> >> package for that is suggested to be "maven-ejb3-plugin" with groupId
> of
> >> goal bindings "org.apache.maven.plugins". But I am not able to find
> this
> >> plugin?
> >>
> >> Any suggestions?
> >>
> >> Thanks
> >> Nidhi
> >>
> >> -
> >> 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]
>
>


[m2] Plugin documentation generator?

2006-03-08 Thread Adrian Herscu
Hi all,

Is there some documentation generator for Maven2 plugins?

TIA
Adrian.


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



[ANN] Maven EJB Plugin 1.7.2 released

2006-03-08 Thread Stephane Nicoll
The maven team is pleased to announce the Maven EJB Plugin 1.7.2 release!

http://maven.apache.org/maven-1.x/plugins/ejb/


To automatically install the plugin, type the following on a single line:

maven plugin:download
  -DgroupId=maven
  -DartifactId=maven-ejb-plugin
  -Dversion=1.7.2

For a manual installation, you can download the plugin here:
http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-ejb-plugin-1.7.2.jar


Have fun!
-The maven team

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



Re: Company Logo doesn't appear

2006-03-08 Thread raghurajan . x . gurunathan
Thanks much 

that worked!! 

but still it doesn't display my company logo??






Thanks,
Raghu 





Emmanuel Venisse <[EMAIL PROTECTED]>
03/08/2006 12:39 PM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: Company Logo doesn't appear


you must add http:// before www.mycove.com

Emmanuel

[EMAIL PROTECTED] a écrit :
> This is the error i'm getting 
> 
> HTTP ERROR: 503 
> java%2Elang%2EClassNotFoundException%3A+www%2Ejpmchase%2Ecom
> RequestURI=/continuum/servlet/www.mycove.com
> Powered by Jetty://
> 
> 
> 
> 
> 
> 
> Thanks,
> Raghu 
> 
> 
> 
> 
> 
> Emmanuel Venisse <[EMAIL PROTECTED]>
> 03/08/2006 11:37 AM
> Please respond to continuum-users
> 
> 
> To: continuum-users@maven.apache.org
> cc: 
> Subject:Re: Company Logo doesn't appear
> 
> 
> Can you paste html of company part?
> 
> [EMAIL PROTECTED] a écrit :
> 
>>Hi,
>>
>>
>>I configured my continuum with my my company name, logo, website 
> 
> address, 
> 
>>but continuum doesn't show my company logo, it just displays company 
> 
> name 
> 
>>in mozilla browser only not an IE and also when i click on that its not 
>>taking me to company website
>>
>>
>>
>>
>>Thanks,
>>Raghu 
>>
> 
> 
> 
> 
> 





Re: Company Logo doesn't appear

2006-03-08 Thread Mang Jun Lau
I talked to Emmanuel about this on IRC and he told me to file a PR.  You 
can see it here: http://jira.codehaus.org/browse/CONTINUUM-621

---
Mang Lau
Software Developer
MIS Member Services
Ontario Teachers' Pension Plan Board
T: 416-228-3148
E: [EMAIL PROTECTED]





[EMAIL PROTECTED] 
03/08/2006 02:06 PM
Please respond to
continuum-users@maven.apache.org


To
continuum-users@maven.apache.org
cc

Subject
Re: Company Logo doesn't appear






Thanks much 

that worked!! 

but still it doesn't display my company logo??






Thanks,
Raghu 





Emmanuel Venisse <[EMAIL PROTECTED]>
03/08/2006 12:39 PM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: Company Logo doesn't appear


you must add http:// before www.mycove.com

Emmanuel

[EMAIL PROTECTED] a écrit :
> This is the error i'm getting 
> 
> HTTP ERROR: 503 
> java%2Elang%2EClassNotFoundException%3A+www%2Ejpmchase%2Ecom
> RequestURI=/continuum/servlet/www.mycove.com
> Powered by Jetty://
> 
> 
> 
> 
> 
> 
> Thanks,
> Raghu 
> 
> 
> 
> 
> 
> Emmanuel Venisse <[EMAIL PROTECTED]>
> 03/08/2006 11:37 AM
> Please respond to continuum-users
> 
> 
> To: continuum-users@maven.apache.org
> cc: 
> Subject:Re: Company Logo doesn't appear
> 
> 
> Can you paste html of company part?
> 
> [EMAIL PROTECTED] a écrit :
> 
>>Hi,
>>
>>
>>I configured my continuum with my my company name, logo, website 
> 
> address, 
> 
>>but continuum doesn't show my company logo, it just displays company 
> 
> name 
> 
>>in mozilla browser only not an IE and also when i click on that its not 
>>taking me to company website
>>
>>
>>
>>
>>Thanks,
>>Raghu 
>>
> 
> 
> 
> 
> 






How to specify multiple excludes in war-plugin?

2006-03-08 Thread Dixit, Sandeep (ProSource Solutions)
I am trying to exclude few libraries (.jar) from getting packaged into
war. How do I specify it using  tag? I tried using comma,
space as well as multiple  tags. Nothing worked. It is only
able to exclude a single jar. Please advise.

  
org.apache.maven.plugins
maven-war-plugin
  2.0-beta-2

JavaSource
WebContent
WEB-INF/lib/commons-collections-2.1.jar,
WEB-INF/lib/anttasks-6.0.jar 
  

true 

  

  

Thanks,
Sandeep

---
***National City made the following annotations
---
This communication is a confidential and proprietary business communication.  
It is intended solely for the use of the designated recipient(s).  If this
communication is received in error, please contact the sender and delete 
this communication.
===

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



Re: How to specify multiple excludes in war-plugin?

2006-03-08 Thread Mang Jun Lau
Please refer to this thread:
http://www.nabble.com/WAR-plugin-in-M2%3A-excludes-not-all-files-t1140057.html

It could be a bug though.


_Mang Lau





"Dixit, Sandeep (ProSource Solutions)" 
<[EMAIL PROTECTED]> 
03/08/2006 02:41 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
How to specify multiple excludes in war-plugin?






I am trying to exclude few libraries (.jar) from getting packaged into
war. How do I specify it using  tag? I tried using comma,
space as well as multiple  tags. Nothing worked. It is only
able to exclude a single jar. Please advise.

  
org.apache.maven.plugins
maven-war-plugin
   2.0-beta-2

 JavaSource
 WebContent
 WEB-INF/lib/commons-collections-2.1.jar,
WEB-INF/lib/anttasks-6.0.jar 
  
 
 true 
 
  

  

Thanks,
Sandeep

---
***National City made the following annotations
---
This communication is a confidential and proprietary business 
communication. 
It is intended solely for the use of the designated recipient(s).  If this
communication is received in error, please contact the sender and delete 
this communication.
===

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




Re: How to specify multiple excludes in war-plugin?

2006-03-08 Thread ian . d . stewart
If you set the scope of the dependency for the library to "provided", the
JAR for that dependency will not be included within the packaged WAR.  You
do need to specify this scope on a per-dependency basis.

Wayne or Stephen,

Is there a better place to document this than the (exceedingly sparse)
Guide to Webapps[1] ?


Ian

[1] http://maven.apache.org/guides/mini/guide-webapp.html

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078


|-+>
| |   "Dixit, Sandeep (ProSource   |
| |   Solutions)"  |
| |   <[EMAIL PROTECTED]|
| |   alcity.com>  |
| ||
| |   03/08/2006 02:41 PM  |
| |   Please respond to "Maven Users   |
| |   List"|
|-+>
  
>--|
  | 
 |
  |   To:   "Maven Users List"  
 |
  |   cc:   
 |
  |   Subject:  How to specify multiple excludes in war-plugin? 
 |
  
>--|




I am trying to exclude few libraries (.jar) from getting packaged into
war. How do I specify it using  tag? I tried using comma,
space as well as multiple  tags. Nothing worked. It is only
able to exclude a single jar. Please advise.

  
org.apache.maven.plugins
maven-war-plugin
   2.0-beta-2


JavaSource
 WebContent
 WEB-INF/lib/commons-collections-2.1.jar,
WEB-INF/lib/anttasks-6.0.jar 
  
 
 true
 
  

  

Thanks,
Sandeep

---

***National City made the following annotations
---

This communication is a confidential and proprietary business
communication.
It is intended solely for the use of the designated recipient(s).  If this
communication is received in error, please contact the sender and delete
this communication.
===


-
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: How to specify multiple excludes in war-plugin?

2006-03-08 Thread Dixit, Sandeep (ProSource Solutions)
I tried your resolution as below:
  
org.apache.maven.plugins
maven-war-plugin
  2.0-beta-2

JavaSource
WebContent


WEB-INF/lib/commons-collections-2.1.jar
WEB-INF/lib/anttasks-6.0.jar

  

true 

  

  


However this doesn't exclude anything? What am I doing wrong?

Thanks,
Sandeep

-Original Message-
From: Mang Jun Lau [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 2:48 PM
To: Maven Users List
Subject: Re: How to specify multiple excludes in war-plugin?

Please refer to this thread:
http://www.nabble.com/WAR-plugin-in-M2%3A-excludes-not-all-files-t114005
7.html

It could be a bug though.


_Mang Lau





"Dixit, Sandeep (ProSource Solutions)" 
<[EMAIL PROTECTED]> 
03/08/2006 02:41 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
How to specify multiple excludes in war-plugin?






I am trying to exclude few libraries (.jar) from getting packaged into
war. How do I specify it using  tag? I tried using comma,
space as well as multiple  tags. Nothing worked. It is only
able to exclude a single jar. Please advise.

  
org.apache.maven.plugins
maven-war-plugin
   2.0-beta-2

 JavaSource
 WebContent
 WEB-INF/lib/commons-collections-2.1.jar,
WEB-INF/lib/anttasks-6.0.jar 
  
 
 true 
 
  

  

Thanks,
Sandeep


---
***National City made the following annotations

---
This communication is a confidential and proprietary business 
communication. 
It is intended solely for the use of the designated recipient(s).  If
this
communication is received in error, please contact the sender and delete

this communication.

===

-
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: getDependencyArtifacts returning null

2006-03-08 Thread Ruel Loehr
You have dependencies defined in your pom, but artifacts are not created
until each dependency is resolved.Your mojo needs to require this.

In your mojo, specify  @requiresDependencyResolution compile


Ruel Loehr
JBoss QA
 

-Original Message-
From: Sachin Patel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 11:42 AM
To: Maven Users List
Subject: getDependencyArtifacts returning null

Could someone explain why in my mojo project.getDependencies()  
returns back the correct list of dependencies defined in my pom, but  
project.getDependencyArtifacts() returns null?  How can I fix this?



- sachin




-
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: How to specify multiple excludes in war-plugin?

2006-03-08 Thread Mang Jun Lau
If you want to use my solution, you would have to put the tags like so:


  

  ${basedir}/WebContent
  
WEB-INF/lib/commons-collections-2.1.jar
  WEB-INF/lib/anttasks-6.0.jar
  

  


I don't know if this will work for you.


_Mang Lau






"Dixit, Sandeep (ProSource Solutions)" 
<[EMAIL PROTECTED]> 
03/08/2006 03:01 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
RE: How to specify multiple excludes in war-plugin?






I tried your resolution as below:
  
org.apache.maven.plugins
maven-war-plugin
   2.0-beta-2

 JavaSource
 WebContent
 
 
WEB-INF/lib/commons-collections-2.1.jar
 WEB-INF/lib/anttasks-6.0.jar
 
  
 
 true 
 
  

  


However this doesn't exclude anything? What am I doing wrong?

Thanks,
Sandeep

-Original Message-
From: Mang Jun Lau [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 2:48 PM
To: Maven Users List
Subject: Re: How to specify multiple excludes in war-plugin?

Please refer to this thread:
http://www.nabble.com/WAR-plugin-in-M2%3A-excludes-not-all-files-t114005
7.html

It could be a bug though.


_Mang Lau





"Dixit, Sandeep (ProSource Solutions)" 
<[EMAIL PROTECTED]> 
03/08/2006 02:41 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
How to specify multiple excludes in war-plugin?






I am trying to exclude few libraries (.jar) from getting packaged into
war. How do I specify it using  tag? I tried using comma,
space as well as multiple  tags. Nothing worked. It is only
able to exclude a single jar. Please advise.

  
org.apache.maven.plugins
maven-war-plugin
   2.0-beta-2

 JavaSource
 WebContent
 WEB-INF/lib/commons-collections-2.1.jar,
WEB-INF/lib/anttasks-6.0.jar 
  
 
 true 
 
  

  

Thanks,
Sandeep


---
***National City made the following annotations

---
This communication is a confidential and proprietary business 
communication. 
It is intended solely for the use of the designated recipient(s).  If
this
communication is received in error, please contact the sender and delete

this communication.

===

-
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] Plugin documentation generator?

2006-03-08 Thread Yann Le Du
Hi Adrian,

Adding the maven-plugin-plugin in reports will generate plugin documentation
in the site :

~   
~ 
~   ...
~   
~ org.apache.maven.plugins
~ maven-plugin-plugin
~   
~ 
~   


- Yann

On 3/8/06, Adrian Herscu <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> Is there some documentation generator for Maven2 plugins?
>
> TIA
> Adrian.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Site deploy in ASF help one project to another

2006-03-08 Thread rick rineholt
Hello Maven developers,
We're in the beginning stages with our Tuscany site
and we are using Maven 2.x. 
  Currently our site is generated (mvn site) and then
both the src and 
target/site is checked in to subversion.  It seems we
then need to logon to the 
apache site machine and do svn update. This seems a
little less than optimal 
considering especially that maven site has a deploy (
I think it scp which I'm 
not too familiar with) Is ASF set up to handle this ? 
Is there a better way to 
manage this?  This may be a little of topic for this
group but googling and 
searching the mailing achieves has left me with no
hints.  So I figured you are 
the experts :-)
Any advise how to handle this would be appreciated .. thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Site deploy in ASF help one project to another

2006-03-08 Thread Carlos Sanchez
Check site inside distributionManagement here
http://svn.apache.org/viewcvs.cgi/maven/components/trunk/pom.xml?rev=382904&view=markup
That's how we publish it

There's an option to deploy to Subversion in development, it's working for me.
Docs are at 
http://maven.apache.org/wagon/ref/1.0-alpha-7-SNAPSHOT/wagon-providers/wagon-scm/

On 3/8/06, rick rineholt <[EMAIL PROTECTED]> wrote:
> Hello Maven developers,
> We're in the beginning stages with our Tuscany site
> and we are using Maven 2.x.
>   Currently our site is generated (mvn site) and then
> both the src and
> target/site is checked in to subversion.  It seems we
> then need to logon to the
> apache site machine and do svn update. This seems a
> little less than optimal
> considering especially that maven site has a deploy (
> I think it scp which I'm
> not too familiar with) Is ASF set up to handle this ?
> Is there a better way to
> manage this?  This may be a little of topic for this
> group but googling and
> searching the mailing achieves has left me with no
> hints.  So I figured you are
> the experts :-)
> Any advise how to handle this would be appreciated .. thanks.
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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



Re: [m2] Is Eclipse WTP 1.0.1 support working in the eclipse:eclipse plugin yet?

2006-03-08 Thread Stephen Duncan
It is working for me.  I can publish my projects to Tomcat in WTP
1.0.1 after running eclipse:eclipse -Dwtpversion=1.0

-Stephen

On 3/8/06, KC Baltz <[EMAIL PROTECTED]> wrote:
> I'm trying to use the 1.0.1 release of the Eclipse Web Tools with my Maven 
> web project and not having much luck.  I've called maven with the following:
>
> mvn eclipse:clean eclipse:eclipse -Dwtpversion=1.0
>
> It seems to be happy with that and even says:
>
> [INFO] [eclipse:eclipse]
> [INFO] Adding support for WTP version 1.0.
> [INFO] Wrote settings to C:\cvs\myProject\.settings\org.eclipse.jdt.core.prefs
>
> However, in Eclipse, I can't get it to let me add the project to the Tomcat 
> server I have defined.  This worked with the 0.7 support, but does not appear 
> to be working with 1.0
>
> K.C.
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



using profile to modify plugin config?

2006-03-08 Thread Simon Kitching
Hi,

I'm trying to define a profile that will allow a specific javac version
to be used. In particular, one projects I'm working on (MyFaces) needs
to be compiled using java 1.3 for official releases, though maven
requires java 1.4. Note that using the  tag of the compiler
plugin is NOT quite the same!

I'm trying to use a profile to do this, so that people can run:
  # use default compiler 
  mvn install
or
  # use specified compiler
  mvn -Dcompiler.path=/home/simon/java1.3/bin install

I've got a parent pom with multiple child modules, and have defined the
following profile in the parent pom:

  

  release
  

  compiler.path

  
  

  

  org.apache.maven.plugins
  maven-compiler-plugin
  
${compiler.path}
  

  

  

  


However I'm not getting the results I expect; passing a bad jdk path for
example should cause compilation problems but everything just works
fine. Using "mvn -Dcompiler.path=/foo/bar help:active-profiles" shows
that the profile is active for the parent pom but not for child poms.

Any idea why this is not working, or suggestions for a better approach?

Thanks in advance,

Simon


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



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

2006-03-08 Thread Veerman, Christiaan

Hello:

I just grabbed the
maven-scm-provider-svn-1.0-beta-3-20060225.145027-14.jar from your
snapshot repository.

I removed the existing maven-scm-provider-svn-*.jar and replaced it with
the snapshot.
Now when I startup continuum; it throws expections for every existing
subversion project.

Is there another dependency I'm missing? Do I have to build continuum
itself?

org.codehaus.plexus.action.ActionNotFoundException: Cannot find action:
update-working-directory-from-scm
at
org.codehaus.plexus.action.DefaultActionManager.lookup(DefaultActionMana
ger.java:61)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:127)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:534)
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupExcept
ion: Unable to lookup component
'org.codehaus.plexus.action.Actionupdate-working-directory-from-scm', it
could not be started
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:335)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:436)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.PlexusContainerLo
cator.lookup(PlexusContainerLocator.java:38)
at
org.codehaus.plexus.action.DefaultActionManager.lookup(DefaultActionMana
ger.java:57)
... 4 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleExc
eption: Error starting component
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:109)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:327)
... 7 more
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionExc
eption: Error composing component
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.
execute(CompositionPhase.java:33)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif
ecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:105)
... 10 more
Caused by:
org.codehaus.plexus.component.composition.CompositionException:
Composition failed of field scm in object of type
org.apache.maven.continuum.core.action.UpdateWorkingDirectoryFromScmCont
inuumAction because the requirement
ComponentRequirement{role='org.apache.maven.continuum.scm.ContinuumScm',
roleHint='null', fieldName='null'} was missing
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignR
equirementToField(FieldComponentComposer.java:154)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assembl
eComponent(FieldComponentComposer.java:73)
at
org.codehaus.plexus.component.composition.DefaultComponentComposerManage
r.assembleComponent(DefaultComponentComposerManager.java:68)
at
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexu
sContainer.java:1476)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.
execute(CompositionPhase.java:29)
... 12 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupExcept
ion: Unable to lookup component
'org.apache.maven.continuum.scm.ContinuumScm', it could not be started
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:335)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignR
equirementToField(FieldComponentComposer.java:129)
... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleExc
eption: Error starting component
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:109)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:327)
... 17 more
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionExc
eption: Error composing component
at
org.code

Re: Is really MASSEMBLY-1 fixed?

2006-03-08 Thread Stephen Duncan
Just to provide another way to run a project, that doesn't involve an
assembly descriptor, which may be of use until the incorporate that
plan into a new version of the Netbeans plugin/module/thingy.

Use the following:


  org.apache.maven.plugins
  maven-antrun-plugin
  

  

  

  


And then run mvn antrun:run

-Stephen

On 3/8/06, Milos Kleint <[EMAIL PROTECTED]> wrote:
> I've been looking for a default way to run maven projects within
> netbeans. I had the same issue with jar-with-dependencies.  We
> discussed it at [EMAIL PROTECTED] and we have a different
> solution that works fine and is actually exactly the same as the
> netbeans ant projects get run.
> Check http://docs.codehaus.org/display/MEVENIDE/RunDebugJarProjects
> for details on the assembly descriptor to use and how to setup the jar
> plugin.. then all you should be required to do is run "java -jar
> .jar" in the target/dist directory (that's where the
> assembly plugin prepares the environment)
>
> Regards
>
> Milos Kleint
>
>
> On 3/8/06, Jozef Kotlár <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I would like to have confirmed from someone that according my
> > observation is http://jira.codehaus.org/browse/MASSEMBLY-1 still open,
> > at least with published maven a and plugins.
> >
> > With maven version 2.0.2 and empty local repository
> > I've used the attached test case and procedure and the result is the
> > same:
> >
> > $ java -jar target/mng-1380-1.0-SNAPSHOT-jar-with-dependencies.jar
> > Failed to load Main-Class manifest attribute from
> > target/mng-1380-1.0-SNAPSHOT-jar-with-dependencies.jar
> >
> > Maybe I am doing something wrong?
> >
> > Thanks,
> > Dodo.
> >
> >
> > -
> > 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]
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: [m2][Javadoc plugin] Javadoc report with Maven2

2006-03-08 Thread Stephen Duncan
I apologize for the vagueness, but to make sure the request didn't get
lost, I created: http://jira.codehaus.org/browse/MPLUGIN-13

-Stephen

On 3/7/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> On 3/7/06, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote:
> > On Tue, 2006-03-07 at 17:25 -0500, Stephen Duncan wrote:
> > > To include javadocs, jxr, and surefire (testing) reports to your site,
> > > as examples, add the following to your POM:
> > >
> > >   
> > >   
> > >   
> > >   org.apache.maven.plugins
> > >   
> > > maven-javadoc-plugin
> > >   
> > >
> > >   
> > >   org.codehaus.mojo
> > >   jxr-maven-plugin
> > >   
> > >
> > >   
> > >   org.codehaus.mojo
> > >   
> > > surefire-report-maven-plugin
> > >   
> > >   
> > >   
> > >
> > > -Stephen
> >
> > Thanks, Stephen
> >
> > You might actually want to mention that in the maven-javadoc-plugin
> > documentation.
> >
> > Oleg
> >
>
> No problem.  I think I might need to set up a custom signature for my
> Maven mailing list e-mails that includes the line "I am not a Maven
> developer", though!
>
> Maven gurus: since this is on the whole documentation topic, and
> potentially a good case for improved documentation through
> automation...  Is there some way we can get plugins that can provide
> reports to automatically have some documentation that 1) states that
> they can be used as a report and 2) indicates the basics of how to add
> a report, as the documentation for this in the main guides isn't
> exactly easy to find...
>
> --
> 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]



Re: [m2] ant plugin mojo refering to maven ProjectHelper

2006-03-08 Thread John Casey

Inside your task, you'll need to use

getProject().getReference("org.apache.maven.project.MavenProjectHelper")

IIRC.

If that doesn't work, let me know, and I'll dig around in the code.

-john
Martin van der Plas wrote:

Hi,

According to 
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html 
it is possible to define plexus components.

The hint does not describe how the component needs to be refered to.

I would like to use the maven ProjectHelper  in an anttask. How can I 
pass the ProjectHelper object to my task?


Thanks.

Martin


-
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] Surefire with additional JARs

2006-03-08 Thread Adrian Herscu
Hi all,

I would like to build my own ANT tasks using Maven.
The problem is that ANT testing requires a special JAR
(ant-testutil.jar) which is not distributed through Maven's central repo.

Now, I have two choices:

1) manually install that JAR in my local repo -- this will require
everybody to manually install that JAR into his local repo

2) put that JAR into my projects src/bin directory and then somehow add
it to the Surefire classpath -- how?

I saw the classpathElements, but don't know how to use it (or even if
that's what I need in this case).

Please help,
Adrian.


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



Re: [m2] Surefire with additional JARs

2006-03-08 Thread Carlos Sanchez
You can get it uploaded to ibiblio
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

On 3/8/06, Adrian Herscu <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I would like to build my own ANT tasks using Maven.
> The problem is that ANT testing requires a special JAR
> (ant-testutil.jar) which is not distributed through Maven's central repo.
>
> Now, I have two choices:
>
> 1) manually install that JAR in my local repo -- this will require
> everybody to manually install that JAR into his local repo
>
> 2) put that JAR into my projects src/bin directory and then somehow add
> it to the Surefire classpath -- how?
>
> I saw the classpathElements, but don't know how to use it (or even if
> that's what I need in this case).
>
> Please help,
> Adrian.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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



Re: [m2] Surefire with additional JARs

2006-03-08 Thread Adrian Herscu
If someone has built the ant-testutil.jar from sources then it will be
more suitable -- I grabbed myself a binary and I am not sure which ANT
version it belongs.

Meanwhile I have installed it into my local repository, added it as a
dependency with a "test" scope and the compiler complains that it cannot
resolve the BuildFileTest.class (which exists in ant-testutil.jar) --
where could I be wrong?

Carlos Sanchez wrote:
> You can get it uploaded to ibiblio
> http://maven.apache.org/guides/mini/guide-ibiblio-upload.html
> 
> On 3/8/06, Adrian Herscu <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I would like to build my own ANT tasks using Maven.
>> The problem is that ANT testing requires a special JAR
>> (ant-testutil.jar) which is not distributed through Maven's central repo.
>>
>> Now, I have two choices:
>>
>> 1) manually install that JAR in my local repo -- this will require
>> everybody to manually install that JAR into his local repo
>>
>> 2) put that JAR into my projects src/bin directory and then somehow add
>> it to the Surefire classpath -- how?
>>
>> I saw the classpathElements, but don't know how to use it (or even if
>> that's what I need in this case).
>>
>> Please help,
>> Adrian.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> --
> I could give you my word as a Spaniard.
> No good. I've known too many Spaniards.
>  -- The Princess Bride


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



Re: [m2] Surefire with additional JARs

2006-03-08 Thread Adrian Herscu
> Meanwhile I have installed it into my local repository, added it as a
> dependency with a "test" scope and the compiler complains that it
> cannot resolve the BuildFileTest.class (which exists in
> ant-testutil.jar) -- where could I be wrong?
>

Here is the relevant mvn -X fragment:

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0:testCompile' -->
[DEBUG]   (f) basedir = E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1
[DEBUG]   (f) buildDirectory =
E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target
[DEBUG]   (f) classpathElements =
[E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~
1\target\classes,
E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\test-classes,
D:\Documents and Settings\bmf1972\.m2\repository\junit\junit\3.8.1\junit-3
.8.1.jar, D:\Documents and
Settings\bmf1972\.m2\repository\ant\ant-testutil\1.6.
5-SNAPSHOT\ant-testutil-1.6.5-SNAPSHOT.jar, D:\Documents and
Settings\bmf1972\.m
2\repository\ant\ant\1.6.5\ant-1.6.5.jar]
[DEBUG]   (f) compileSourceRoots =
[E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE
~1\src\test\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\t
arget\test-classes
[DEBUG]   (f) outputFileName = ant-acme-1.0-SNAPSHOT
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:testCompile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories:
[E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\src\
test\java]
[DEBUG] Classpath:
[E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\classe
s
 E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\test-classes
 D:\Documents and
Settings\bmf1972\.m2\repository\junit\junit\3.8.1\junit-3.8.1.
jar
 D:\Documents and
Settings\bmf1972\.m2\repository\ant\ant-testutil\1.6.5-SNAPSHO
T\ant-testutil-1.6.5-SNAPSHOT.jar
 D:\Documents and
Settings\bmf1972\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar]
[DEBUG] Output directory:
E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\
test-classes
[DEBUG] Classpath:
[DEBUG]  E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\classes
[DEBUG]  E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target\test-classes
[DEBUG]  D:\Documents and
Settings\bmf1972\.m2\repository\junit\junit\3.8.1\juni
t-3.8.1.jar
[DEBUG]  D:\Documents and
Settings\bmf1972\.m2\repository\ant\ant-testutil\1.6.5
-SNAPSHOT\ant-testutil-1.6.5-SNAPSHOT.jar
[DEBUG]  D:\Documents and
Settings\bmf1972\.m2\repository\ant\ant\1.6.5\ant-1.6.
5.jar
[DEBUG] Source roots:
[DEBUG]  E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\src\test\java
Compiling 1 source file to
E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\target
\test-classes
[INFO]
-
---
[ERROR] BUILD FAILURE
[INFO]
-
---
[INFO] Compilation failure

E:\DOCUME~1\bmf1972\MYPROJ~1\buildsys\ANT-WE~1\src\test\java\com\acme\b
uildsys\ant\HelloWorldTest.java:[3,28] cannot resolve symbol
symbol  : class BuildFileTest
location: package ant

Adrian Herscu wrote:
> If someone has built the ant-testutil.jar from sources then it will be
> more suitable -- I grabbed myself a binary and I am not sure which ANT
> version it belongs.
> 
> Meanwhile I have installed it into my local repository, added it as a
> dependency with a "test" scope and the compiler complains that it cannot
> resolve the BuildFileTest.class (which exists in ant-testutil.jar) --
> where could I be wrong?
> 
> Carlos Sanchez wrote:
>> You can get it uploaded to ibiblio
>> http://maven.apache.org/guides/mini/guide-ibiblio-upload.html
>>
>> On 3/8/06, Adrian Herscu <[EMAIL PROTECTED]> wrote:
>>> Hi all,
>>>
>>> I would like to build my own ANT tasks using Maven.
>>> The problem is that ANT testing requires a special JAR
>>> (ant-testutil.jar) which is not distributed through Maven's central repo.
>>>
>>> Now, I have two choices:
>>>
>>> 1) manually install that JAR in my local repo -- this will require
>>> everybody to manually install that JAR into his local repo
>>>
>>> 2) put that JAR into my projects src/bin directory and then somehow add
>>> it to the Surefire classpath -- how?
>>>
>>> I saw the classpathElements, but don't know how to use it (or even if
>>> that's what I need in this case).
>>>
>>> Please help,
>>> Adrian.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> --
>> I could give you my word as a Spaniard.
>> No good. I've known too many Spaniards.
>>  -- The Princess Bride


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



Re: using profile to modify plugin config?

2006-03-08 Thread Simon Kitching
On Thu, 2006-03-09 at 11:15 +1300, Simon Kitching wrote:
> 
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   
> ${compiler.path}
>   
> 

First of all, it looks from the plexus sourcecode like fork must be set
to true before the executable option is used; ok that makes sense.
However even with this, things don't work. I'm not able to get the
"executable" option set on the compiler.

With:
   ${compiler.path}
   javad
   true

Running
   mvn --debug install
gives:

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0:compile' -->
[DEBUG]   (f) basedir
= /mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple
[DEBUG]   (f) buildDirectory
= 
/mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple/target
[DEBUG]   (f) classpathElements =
[/mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple/target/classes,
 
/home/simon/.m2/repository/org/apache/commons/logging/commons-logging-core/0.1-SNAPSHOT/commons-logging-core-0.1-SNAPSHOT.jar]
[DEBUG]   (f) compileSourceRoots =
[/mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple/java]
[DEBUG]   (f) compilerId = javad
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = true
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory
= 
/mnt/hda12/simon/apache/commons-svn/proper/logging/contrib/simon/jcl2/simple/target/classes
[DEBUG]   (f) outputFileName = commons-logging-simple-0.1-SNAPSHOT
[DEBUG]   (f) projectArtifact =
org.apache.commons.logging:commons-logging-simple:jar:0.1-SNAPSHOT
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --

This shows clearly that config options "compilerId" and "fork" are being
set from my pom. However option "executable" is just not being
configured. 

The source for AbstractCompilerMojo seems to correctly declare
executable as a configurable property:

/**
 * The executable of the compiler to use.
 *
 * @parameter expression="${maven.compiler.executable}"
 */
private String executable;


Any ideas??

Cheers,

Simon


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



Re: Getting a Failure Stacktrace from Surefire

2006-03-08 Thread Brett Porter
useFile = false.

On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> +1
>
> This is one of the major annoyances when running unit tests in Maven as
> opposed to using the Eclipse TestRunner.
>
>
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
>
>   Joern Eyrich
>   <[EMAIL PROTECTED]To:   
> users@maven.apache.org
>   genio.de>cc:
>Subject:  Getting a Failure 
> Stacktrace from Surefire
>   03/08/2006 05:59
>   AM
>   Please respond to
>   "Maven Users
>   List"
>
>
>
>
>
> If I do "mvn test" in a shell, and one of my tests fails, I only get the
> output
>
> "
> [surefire] Running my.package.MyClass
> [surefire] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0,01 sec
>  FAILURE !!
> "
>
> Is there any way to make Surefire also print the cause of the failure(s)
> (the failed assertion(s)) and optionally (a) stack trace(s)?
>
> I don't see an appropriate option at
>
>   http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
>
> and my googling turned up nothing, either.
>
> Of course I can go look in the generated reports files, but I'd like
> something more immediate.
>
> Thanks,
> Joern
>
> -
> 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: Getting a Failure Stacktrace from Surefire

2006-03-08 Thread ian . d . stewart
Thanks for the reply, Brett.  Is there a way to get both output to the
screen AND to target/surefire-reports ?


Thanks,
Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078



   
  "Brett Porter"
   
  <[EMAIL PROTECTED]To:   "Maven Users List" 
   
  il.com>  cc:  
   
   Subject:  Re: Getting a Failure 
Stacktrace from Surefire
  03/08/2006 06:57  
   
  PM
   
  Please respond to 
   
  "Maven Users  
   
  List" 
   

   




useFile = false.

On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> +1
>
> This is one of the major annoyances when running unit tests in Maven as
> opposed to using the Eclipse TestRunner.
>
>
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
>
>   Joern Eyrich
>   <[EMAIL PROTECTED]To:
users@maven.apache.org
>   genio.de>cc:
>Subject:  Getting a
Failure Stacktrace from Surefire
>   03/08/2006 05:59
>   AM
>   Please respond to
>   "Maven Users
>   List"
>
>
>
>
>
> If I do "mvn test" in a shell, and one of my tests fails, I only get the
> output
>
> "
> [surefire] Running my.package.MyClass
> [surefire] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0,01 sec
>  FAILURE !!
> "
>
> Is there any way to make Surefire also print the cause of the failure(s)
> (the failed assertion(s)) and optionally (a) stack trace(s)?
>
> I don't see an appropriate option at
>
>   http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
>
> and my googling turned up nothing, either.
>
> Of course I can go look in the generated reports files, but I'd like
> something more immediate.
>
> Thanks,
> Joern
>
> -
> 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]



Problems with maven-buildnumber-plugin

2006-03-08 Thread Max
I am encountering problems with the maven-buildnumber-plugin which was updated
to 0.9.2-SNAPSHOT. I ran mvn with stacktrace and it seems that the build fails
because it is unable to find the class
org.apache.maven.scm.login.AbstractLoginCommand. I looked up in the
maven-scm-api jar and the class is under the package
org.apache.maven.scm.command.login. Any ideas regarding this descrepency?


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



Re: How can I able to use maven-compiler-plugin with ${maven.compiler.debug}

2006-03-08 Thread Henry S. Isidro

Venkatagopalaraju wrote:


Dear Maven Users,

   Could you please anyone help out from this problem. I am suffering from these problems.
   
   1. I am working on maven 2.0.2, I have seen, In this version we are not able to use properties file. I am using maven-compiler-plugin, But I need to set false for ${maven.compiler.debug}.For this I used to set command line properties.But it is ignoring these properties. How I am able to work with these properties.


 2. In other case, I am working with maven 2.0.2. I am able to generate jar files, after 
completing successful build with maven.But problem is, I need to put 
compress="false" option through pom.xml or properties(command line properties). 
I have seen in maven1, it is possible through properties${maven.jar.compress} file. could 
you please let me know, how can I use with maven2.




Thanks & Regards
 Gopal

 


Hi Gopal,

You can configure the compiler plugin like so:



   org.apache.maven.plugins
   maven-compiler-plugin
   
   false
   



Place this fragment in the build section of your pom.

HTH,

Henry

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



Re: Getting a Failure Stacktrace from Surefire

2006-03-08 Thread Brett Porter
I don't think so - perhaps you could make a feature request.

On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks for the reply, Brett.  Is there a way to get both output to the
> screen AND to target/surefire-reports ?
>
>
> Thanks,
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
>
>   "Brett Porter"
>   <[EMAIL PROTECTED]To:   "Maven Users List" 
> 
>   il.com>  cc:
>Subject:  Re: Getting a 
> Failure Stacktrace from Surefire
>   03/08/2006 06:57
>   PM
>   Please respond to
>   "Maven Users
>   List"
>
>
>
>
>
> useFile = false.
>
> On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > +1
> >
> > This is one of the major annoyances when running unit tests in Maven as
> > opposed to using the Eclipse TestRunner.
> >
> >
> > Ian
> >
> > It's better to be hated for who you are
> > than loved for who you are not
> >
> > Ian D. Stewart
> > Appl Dev Analyst-Advisory, DCS Automation
> > JPMorganChase Global Technology Infrastructure
> > Phone: (614) 244-2564
> > Pager: (888) 260-0078
> >
> >
> >
> >   Joern Eyrich
> >   <[EMAIL PROTECTED]To:
> users@maven.apache.org
> >   genio.de>cc:
> >Subject:  Getting a
> Failure Stacktrace from Surefire
> >   03/08/2006 05:59
> >   AM
> >   Please respond to
> >   "Maven Users
> >   List"
> >
> >
> >
> >
> >
> > If I do "mvn test" in a shell, and one of my tests fails, I only get the
> > output
> >
> > "
> > [surefire] Running my.package.MyClass
> > [surefire] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0,01 sec
> >  FAILURE !!
> > "
> >
> > Is there any way to make Surefire also print the cause of the failure(s)
> > (the failed assertion(s)) and optionally (a) stack trace(s)?
> >
> > I don't see an appropriate option at
> >
> >   http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
> >
> > and my googling turned up nothing, either.
> >
> > Of course I can go look in the generated reports files, but I'd like
> > something more immediate.
> >
> > Thanks,
> > Joern
> >
> > -
> > 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]
>
>

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



Spring 1.2.7 Upload

2006-03-08 Thread Stephen Duncan
Not sure where the right place in JIRA for this is, so I'll just send
it here. :)  There's a fix for a bug I reported that I'd like in
Spring 1.2.7, so I'd like to see it in Ibibilio, but I'm not going to
do an upload bundle, since I know Carlos has been managing the Spring
POM's, including tracking the fact that with a new upload there can be
some changes to what's optional...

So, here's a reminder/check to see if it's planned/being worked on.

Thanks,
Stephen

--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: Mail Notifiers not working

2006-03-08 Thread Nigel Canonizado

It's working now. Thanks for the quick response.


- Original Message - 
From: "dan tran" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, March 08, 2006 2:09 PM
Subject: Re: Mail Notifiers not working


If you dont receive email when buidl fails then mostly likely  you
have not configured the mail server in your
apps/continuum/conf/application.xml
correctly.


-D


On 3/7/06, Nigel Canonizado <[EMAIL PROTECTED]> wrote:


Hi ,

I am using Continuum-1.0.2 and the project is a Maven 2 project. I tried
adding mail notifiers. I am able to add those successfully, however, I am
not receiving any email after the build. All the event notifications are
checked. Am I missing something? Do I need additional configuration to
make
this work?

Regards,

Nigel






Profiles Extending Profiles (or similar)

2006-03-08 Thread David H. DeWolf

I have some integration test plugins which I'm binding to my pom as follows:

. . .

  
local

  

 . . .with all dependencies, executions, configuration, etc. . .

  
dev

  

 . . .with all dependencies, executions, configuration, etc. . .

  
test

  

 . . .with all dependencies, executions, configuration, etc. . .

This works well and the benefit is that by default none of the profiles 
are activated - thus making the build portable and the integration tests 
easy to switch on - when needed.


The downfall is that even though 90% of the  contents for each 
profile is identical (really only the configuration is different), I 
have to specify the plugin dependencies, goals, etc. . .for each 
environment.  This obviously doesn't scale very well -especially when 
you have significant dependencies.


Have others found work-arounds? Can one phase extend another?  Is there 
another way to achieve the same results that I've overlooked?


Thanks,

David


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



Re: How can I able to use maven-compiler-plugin with ${maven.compiler.debug}

2006-03-08 Thread Subhash Chandran
Can anyone put this information here:

http://maven.apache.org/plugins/maven-compiler-plugin/howto.html
--
Regards,
Subhash Chandran S

Cross platform OpenSource Java based file encryption software:
http://www.WizTools.org/project/WizCrypt/


On 3/9/06, Henry S. Isidro <[EMAIL PROTECTED]> wrote:
>
> Venkatagopalaraju wrote:
>
> >Dear Maven Users,
> >
> >Could you please anyone help out from this problem. I am suffering
> from these problems.
> >
> >1. I am working on maven 2.0.2, I have seen, In this version we are
> not able to use properties file. I am using maven-compiler-plugin, But I
> need to set false for ${maven.compiler.debug}.For this I used to set
> command line properties.But it is ignoring these properties. How I am able
> to work with these properties.
> >
>
> >
> Hi Gopal,
>
> You can configure the compiler plugin like so:
>
>  
>  
> org.apache.maven.plugins
> maven-compiler-plugin
> 
> false
> 
>  
>  
>
> Place this fragment in the build section of your pom.
>
> HTH,
>
> Henry
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


How to create two jars for same project having one pom.xml

2006-03-08 Thread Seema Neb
Hi 

I have project folder sturcture as 

CORE // Project 

src

  -- main

 -- java

-- com

-- companyname

   -- productname

-- core // module name

  -- AssetService  // Service package

 -- domain// has domain
objects

 -- dao // has dao's

 -- service // this has all
the service interfaces (classes)

 -- impl // has
implementation of services (implementation classes)

 -- exceptions   // has service
application exceptions (exception classes)

 

We are using maven 2 and have a pom.xml at CORE level which is a project
for us.we are pakaging the entire core into one jar file 

But we now want to create two jar files for the same project CORE by
excluding some of the packages like 

To include the intefaces defined in the services package, domain objects
package in one jar and the rest of the packages in another jar

 

How this can be achieved with maven that is directing a single pom to
build two jars with inclusion and exclusion list

 

Kindly help as this is urgent for us.

 

Regards,

Seema



CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone 172.229.9450 or return
e-mail message [EMAIL PROTECTED]   and delete
the original transmission, its attachments, and any copies without
reading or saving in any manner. Thank you.

 



Exploded EAR structure

2006-03-08 Thread chetan mehrotra
We are in the process of converting our project from Ant based built to
Maven one. Till now we were using weblogic split directory structure for the
devlopment. As in that we do not need to make the ear/war for every little
changes. How to do this with Maven.

If split is not directly possible then can we have a exploded directory
structure.Or any other way to avoid making ear/war everytime. We also want
this option for working on JSP's . As we generally deploy from the
exploded/split directory so any changes done in the jsp are immediatly
reflected.

Any suggestion on achieving this would be helpful.

--
Chetan Mehrotra


Re: Exploded EAR structure

2006-03-08 Thread Wayne Fay
First off, Maven may not be the right tool for every person/project.
If you already have a good build process in Ant that you're happy
with, its not always true that you should move to Maven.

In this case, I would "only" use Maven to build up a complete webapp
when you are ready to deploy, or when your non-JSP code changes. There
are ways to explode the WAR after packaging, I'm not using it so I
can't tell you details. I believe the goal is war:explode... maybe
someone else who is using exploded WARs will respond with more info??

I would write an Ant script to copy the JSPs into the exploded
directory so when your JSPs change, you can just copy them with a
quick "ant jsp" command. There are probably ways to do this with Maven
as well (using Antrun or perhaps Assembly) but there's no particular
reason why you must do it in Maven, so I'd just do it in plain old Ant
as it is simpler.

Point your app server at the exploded directory and run the webapp
from there, jsps will be automatically picked up, etc.

Wayne


On 3/8/06, chetan mehrotra <[EMAIL PROTECTED]> wrote:
> We are in the process of converting our project from Ant based built to
> Maven one. Till now we were using weblogic split directory structure for the
> devlopment. As in that we do not need to make the ear/war for every little
> changes. How to do this with Maven.
>
> If split is not directly possible then can we have a exploded directory
> structure.Or any other way to avoid making ear/war everytime. We also want
> this option for working on JSP's . As we generally deploy from the
> exploded/split directory so any changes done in the jsp are immediatly
> reflected.
>
> Any suggestion on achieving this would be helpful.
>
> --
> Chetan Mehrotra
>
>


Re: How to create two jars for same project having one pom.xml

2006-03-08 Thread John Tolentino

Hi Seema,

You might want to consider using profiles: 
http://maven.apache.org/guides/introduction/introduction-to-profiles.html


One profile for your CORE, and another for the core with 
inclusions/exclusions.


Regards,
John

Seema Neb wrote:

Hi 

I have project folder sturcture as 

CORE // Project 


src

 -- main

-- java

   -- com

   -- companyname

  -- productname

   -- core // module name

 -- AssetService  // Service package

-- domain// has domain
objects

-- dao // has dao's

-- service // this has all
the service interfaces (classes)

-- impl // has
implementation of services (implementation classes)

-- exceptions   // has service
application exceptions (exception classes)



We are using maven 2 and have a pom.xml at CORE level which is a project
for us.we are pakaging the entire core into one jar file 


But we now want to create two jar files for the same project CORE by
excluding some of the packages like 


To include the intefaces defined in the services package, domain objects
package in one jar and the rest of the packages in another jar



How this can be achieved with maven that is directing a single pom to
build two jars with inclusion and exclusion list



Kindly help as this is urgent for us.



Regards,

Seema



CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone 172.229.9450 or return
e-mail message [EMAIL PROTECTED]   and delete
the original transmission, its attachments, and any copies without
reading or saving in any manner. Thank you.




 




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



Re: Exploded EAR structure

2006-03-08 Thread chetan mehrotra
Hi Wayne,
   Thanx for the instant reply. We were looking for Maven for its
integrated report generation structure. As the support for various reporting
tools is quite impressive.

As you mentioned that we can use maven for complete web-app generation. Is
it still possible with the exploded or split directory structure.
Intermediate steps I would get done by using Ant scripts. But report
generations we wanted with Maven.

Would it be still possible with it. Say by writing any plugin.Or maintaining
such strutures with Maven is out of its scope

On 3/9/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> First off, Maven may not be the right tool for every person/project.
> If you already have a good build process in Ant that you're happy
> with, its not always true that you should move to Maven.
>
> In this case, I would "only" use Maven to build up a complete webapp
> when you are ready to deploy, or when your non-JSP code changes. There
> are ways to explode the WAR after packaging, I'm not using it so I
> can't tell you details. I believe the goal is war:explode... maybe
> someone else who is using exploded WARs will respond with more info??
>
> I would write an Ant script to copy the JSPs into the exploded
> directory so when your JSPs change, you can just copy them with a
> quick "ant jsp" command. There are probably ways to do this with Maven
> as well (using Antrun or perhaps Assembly) but there's no particular
> reason why you must do it in Maven, so I'd just do it in plain old Ant
> as it is simpler.
>
> Point your app server at the exploded directory and run the webapp
> from there, jsps will be automatically picked up, etc.
>
> Wayne
>
>


--
Chetan Mehrotra


Re: ejb3 plugin

2006-03-08 Thread Tim Kettler

Hi,

sorry, my fault. I added the project to demonstrate exactly the error you are 
getting :-|

This was solved by adding a  tag to the plugin configuration (See Stephane's 
comment on the issue). But you normally don't need the module configuration at all. It is 
only necassery if you want to customize the module configuration. So you can just delete 
the entire build section from the pom.


-Tim


Pete schrieb:

Hi there,

I'm trying to build the example EJB3 maven project mentioned above by Tim,
but am getting

[INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
[INFO]task-segment: [clean, install]
[INFO]

[INFO] [clean:clean]
[INFO] [ear:generate-application-xml]
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
[INFO]


I managed to install the par and ejb3 plugins from the sandbox, the above
message seems confusing as EAR pom.xml does have the ejb as a dependency :-


  test
  test-ejb
  1.0-SNAPSHOT
  ejb3


This dependency appears to be correct because it is valid i.e. if I change
the artifactid it fails earlier.
So it seems its the  part below that it doesn't like.  My local
repo has version 2.1 of the ear plugin, I tried building the EAR project in
the trunk, but same error.

 
  test
  test-ejb
  name-without-version.ejb3




On 07/03/06, Nidhi Tuli <[EMAIL PROTECTED]> wrote:

Changing the version on maven archiver in pom.xml made install to work.
I changed the version to point to 2.01. version in my local copy.

/Nidhi

-Original Message-
From: Tim Kettler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 11:53 AM
To: Maven Users List
Subject: Re: ejb3 plugin

Tim Kettler schrieb:

Hi Nidhi,

you can checkout the maven-ejb3-plugin vie svn from the maven sandbox

at:



http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-ejb3-plugin

you then probably also want the maven-par-plugin from:

http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-par-plugin

Once you have the plugins on your harddrive you can install them to

your

local repository by executing 'mvn install' in the project root
directories.

There is an attached zip file (test-prj.zip) at
http://jira.codehaus.org/browse/MNG-1723 which contains a very
minimalistic test project with an EJB3 project and an EAR project that
packages the EJB file. You can use that as an starting point for your
project.

However, according to the latest draft of the spec (see section 6.2 of
ejb-3_0-pfd-spec-persistence.pdf and chapter 19 of
ejb-3_0-pfd-spec-ejbcore.pdf)
Enterprise Beans are packaged in plain Jar files (not .ejb3 and .par).
So if you use an EJB3 implementation that implements the latest spec
(like the one from JBoss) you can use the 'standard' maven-ejb-plugin.
The only problem with this is that the plugin enforces the presence of
an 'ejb-jar.xml' file which is not needed with EJB3 if you use
annotations. I submitted a patch for the plugin
(http://jira.codehaus.org/browse/MEJB-6) to make the 'ejb-jar.xml'
optional but i don't know if this will be applyed in the near furure.

...applied in the near future.

Grmmph.


-Tim

Nidhi Tuli schrieb:

Hi,

I just started working on Maven 2 and trying to build my EJB3 project
using maven2. Any ideas what plug-in should I use? In one of the
articles I am advised to do ejb3 on the jar file which I created. The
package for that is suggested to be "maven-ejb3-plugin" with groupId

of

goal bindings "org.apache.maven.plugins". But I am not able to find

this

plugin?

Any suggestions?

Thanks
Nidhi

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







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



Telnet task and maven 1.0.2 timing out

2006-03-08 Thread Paul M. Roberts
I am trying to get a telnet task working from within a maven plugiin I 
am writing. While testing I find that the telnet task will run 
successfully once, but then time out on subsequent tries. If I come back 
to it after doing other work, it will run successfully again - but just 
one. Then it starts timing out again.


Here is how the task is defined:

   classname="org.apache.tools.ant.taskdefs.optional.net.TelnetTask">

   
  
location="${plugin.getDependencyPath('netcomponents:netcomponents')}"/>

   
   
   

   
   
   
   
   
   
   

   
   
   

Are there someother switches to throw in the telnet task to make it 
behave? Anything else I might be missing?


tia - paul

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



How to use dependency in the antrun plugin

2006-03-08 Thread Markus Sell
Hi,
 
I'm calling my old ant tasks via the antrun plugin from maven 2. By calling the 
Ant Task javac I want to use the depencenies from my pom file as a 
classpath/classpathrefid. How can I do that?
 
...
  
   
  maven-antrun-plugin
   

 compile
  
${maven.dependency.classpath}
   


  
  
 
   

  
  
   
   
  
   run
  
   
 

  
...

 
One way is to use the Antlib, but I don't want to run ant, instead I want to 
use maven2.
 
any ideas or help?
markus