Re: How-to implement Code Quality Analysis on multiple Maven Projects?

2009-10-05 Thread Barrie Treloar
On Tue, Oct 6, 2009 at 4:05 PM, Christian Breuer  wrote:
> 
>              org.codehaus.mojo
>              build-helper-maven-plugin
>              1.1
>              
>                
>                  add-source
>                  generate-sources
>                  
>                      add-source
>                  
>                  
>                      
>                          [YOUR SOURCE DIRECTORY 2]
>                          [YOUR SOURCE DIRECTORY 3]
>                      
>                  
>                
>              
>           
>
> http://docs.codehaus.org/display/SONAR/Collect+data#Collectdata-NonMavenprojects%28sonarlightmode%29
>
> best regards


Wunderful

Thanks.

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



Problem compiling FlexLibrary using include directive

2009-10-05 Thread boyetp

Hi All,

I hope someone can help me with my issue using Maven to compile Flex Library
Project.

I got this following files.
 the class  App.as
package com.test {
public class App {
include "TestIncl.as";
public function App(){
   super();
}

public static function greeting(name:String):String {
return "Hello, " + name;
}
}
}

 the TestIncl.as as file "not a class"

private var _test:String;

public function set test(p:String):void{
_test = p;
}

public function get test():String{
return _test;
}


When package using mvn package.

I got this following errors.
It tries to compile the TestIncl.as script file.
How do I solve this?


[ERROR] C:\Users\boyetp\Documents\Flex Builder
3\MavenTestLib\src\main\flex\com\test\TestIncl.as:[2,1] The private
attribute may be used only on class property definitions.private var
_test:String;
[ERROR] C:\Users\boyetp\Documents\Flex Builder
3\MavenTestLib\src\main\flex\com\
test\TestIncl.as:[4,1] The public attribute can only be used inside a packag
e.public function set test(p:String):void{
[ERROR] C:\Users\boyetp\Documents\Flex Builder
3\MavenTestLib\src\main\flex\com\
test\TestIncl.as:[8,1] The public attribute can only be used inside a packag
e.public function get test():String{
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error compiling!
[INFO]

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

[INFO] Total time: 13 seconds
[INFO] Finished at: Mon Oct 05 22:53:53 PDT 2009
[INFO] Final Memory: 17M/127M
[INFO]



Best,

Boyetp
-- 
View this message in context: 
http://www.nabble.com/Problem-compiling-FlexLibrary-using-include-directive-tp25763364p25763364.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How-to implement Code Quality Analysis on multiple Maven Projects?

2009-10-05 Thread Christian Breuer

  org.codehaus.mojo
  build-helper-maven-plugin
  1.1
  

  add-source
  generate-sources
  
  add-source
  
  
  
  [YOUR SOURCE DIRECTORY 2]
  [YOUR SOURCE DIRECTORY 3]
  
  

  
   

http://docs.codehaus.org/display/SONAR/Collect+data#Collectdata-NonMavenprojects%28sonarlightmode%29

best regards
Christian

2009/10/5 Barrie Treloar :
> On Sun, Oct 4, 2009 at 4:15 PM, ifsNabble  
> wrote:
>>
>> Of course! Here´s the solution we found for our problem:
>>
>> As described we have the structure
>>
>> /trunk/projectA/pom.xml
>> /trunk/projectAB/pom.xml
>> /trunk/project.../pom.xml
>> /trunk/projectZ/pom.xml
>>
>> That makes us able to put a pom.xml in the highest hierarchy folder
>> (/trunk/pom.xml).
>> This pom.xml uses the maven-build-helper-plugin where you can specify
>> additional source folders.
>> And due to the fact that we´re on top of folder hierarchy we can use the
>> subfolders ("/project.../src/main/java") and create in that way a virtual
>> project with many many source folders.
>
> Could you paste the snippet of pom.xml that includes 
> maven-build-helper-plugin.
>
> Concrete examples help people with problems trouble shoot there own :)
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



The plugin 'org.apache.maven.plugins:maven-site-plugin' does not exist or no valid version could be found

2009-10-05 Thread anshree123

Hi,
I am working with ServiceMix ESB and for that i need to use Maven.
I created a simple pom.xml file:

http://maven.apache.org/POM/4.0.0";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  org.apache.servicemix.tutorial
  parent
  1.0-SNAPSHOT
  pom
  Tutorial
  http://servicemix.org


and then ran the command mvn install.
I am getting the following error
[anush...@3d27 project1]$ mvn install
/home/anushree/java-jdk/jdk1.5.0_18
[INFO] Scanning for projects...
[INFO]

[INFO] Building Tutorial
[INFO]task-segment: [install]
[INFO]

[INFO] artifact org.apache.maven.plugins:maven-site-plugin: checking for
updates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-site-plugin' could not be retrieved from
repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not
exist or no valid version could be found
[INFO]

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

[INFO] Total time: 42 seconds
[INFO] Finished at: Tue Oct 06 10:04:47 IST 2009
[INFO] Final Memory: 1M/3M
[INFO]


I am new at Maven so not able to figure out the problem. I have done the
proxy settings in ../.m2/settings.xml file still the problem persists.
Please help me out..
Thanks..
-- 
View this message in context: 
http://www.nabble.com/The-plugin-%27org.apache.maven.plugins%3Amaven-site-plugin%27-does-not-exist-or-no-valid-version-could-be-found-tp25762828p25762828.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Buildable standalone source bundles with the assembly plugin

2009-10-05 Thread Brett Porter


On 02/10/2009, at 12:59 AM, Mark Hobson wrote:


2009/10/1 Brett Porter :

On 30/09/2009, at 10:48 PM, Mark Hobson wrote:

These are released dependencies.  They need to be SCM checkouts and
not source artifacts since they need to be buildable, i.e. contain  
the

POM and any other necessary build resources.


You can build and release source bundles with all of that too :)


Interesting idea, have you got an example of this?


Every Maven project released in the last couple of months does this,  
or the source bundle of Maven itself.





I'll investigate these points in more depth once I need to do the
work.  I was mainly trying to gather whether it was appropriate to  
add

this functionality to the assembly plugin.  How did you see the POM
and SCM plugins coming into play here?


They were for doing the checkouts into a space the assembly plugin  
could
pick it up and for modifying the  element to include them  
in a

build. You could put them in by hand in a profile though that is just
enabled by your scripts.


I hope to use mvn -r to avoid having to produce an aggregate pom that
contains the necessary  elements.  Not sure how easy it'll be
to coax the SCM plugin into checking out all direct and transitive
dependencies of a project though.


Note that -r is deprecated in favour of -pl now...



Though if they are releases, I'd find going with source bundles  
from the

repository easier than using the SCM.


I do like this idea, although it'd mean releasing new versions of
pre-existing projects to bring in the new attached artifact.


couldn't you build the equivalent source bundle for the existing  
version, since it is a whole new artifact?


- Brett


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



Re: weird source not found problem in eclipse

2009-10-05 Thread Barrie Treloar
On Sat, May 23, 2009 at 7:54 PM, Rice Yeh  wrote:
> Hi,
>  I created my Eclipse Java project through "mvn
> -DdownloadSources=true eclipse:clean eclipse:eclipse".
>  After project creation, I checked that in the Referenced Libraries in
> the in my Java Eclipse project have
>  the source attachments correctly defined for the referenced libraries.
>  However, I get the "Source not found" problem when accessing classes in
>  these libraries. All these libraries and their source jar files are from
>  other projects and are created by Maven. I even change the locations of
>  the source attachments to their source directories in their project. But
>  it still does not work. For other jar files from
>  http://repo1.maven.apache/maven2, I do not have such problem. Any clue?

This sounds like an Eclipse problem, not an eclipse:eclipse problem.

Can you create a second project and *manually* setup the build path,
including source jars, and use the files in your ~/.m2 directory.
If you can manually create a replica of your broken project, and it is
still broken, then it is an Eclipse problem.
If your replicate project works, then it is an eclipse:eclipse problem.

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



mvn command not taking up pom.xml entry

2009-10-05 Thread gauravmishra0383

Hi,
While building a maven project using "mvn -e test" command, I am getting
following exception:

java.lang.NoSuchMethodError:
org.hibernate.util.ReflectHelper.getFastClass(Ljava/lang/Class;)Lnet/sf/cglib/reflect/FastClass;
at
org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:83)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:249)
at
org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:411)
at
org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108)
at
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:217)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145)
at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)

However, I'm having following dependency mentioned in my pom.xml file


org.hibernate
hibernate
3.1rc2
test


Could anyone please help me why I am getting the same exception even after
including dependency for the required jar file.

Thanks,
- Gaurav

-- 
View this message in context: 
http://www.nabble.com/mvn-command-not-taking-up-pom.xml-entry-tp25757192p25757192.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: mvn test-compile doesn't create -tests jar

2009-10-05 Thread Wayne Fay
> however the test jar isn't build and installed if I run
> mvn test-compile

The test-compile phase occurs before package and before install, thus
it is only compiling, which is all you asked it to do.

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference

Wayne

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



mvn test-compile doesn't create -tests jar

2009-10-05 Thread Roger Pack
I have a project that compiles test jars, a la

...
  

  

org.apache.maven.plugins
maven-jar-plugin

  

  test-jar

  

  

  
...
however the test jar isn't build and installed if I run
mvn test-compile

which is what I expected to have happen.

Is this expected (or a bug)?
Thanks!
-r

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



AW: Ant Mojo Resources

2009-10-05 Thread Entner Harald
In order to unpack a file from a dependent artifact you can also use 
dependency:unpack.
e.g. 


org.apache.maven.plugins
maven-dependency-plugin


unpack
initialize

unpack





com.company

artifact

1.0-SNAPSHOT

${temp.directory}

the file you want







Unfortunately you cannot extract the files in a flat hierarchy. 

I used the jetspeed plugin for that.

org.apache.portals.jetspeed-2
jetspeed-unpack-maven-plugin





-Ursprüngliche Nachricht-
Von: Edelson, Justin [mailto:justin.edel...@mtvstaff.com] 
Gesendet: Montag, 5. Oktober 2009 18:33
An: Maven Users List
Betreff: RE: Ant Mojo Resources

As far as I know, Windows has no facility for executing batch scripts
(or anything else for that matter) which are inside a JAR file. So, what
you'll need to do is copy the script to a temp directory and execute it
from there. I'm not sure how you'd do this with Ant. In a Java-based
Mojo, you could call getResourceAsStream() to get an InputStream and the
copy the bytes to the temp file.

Justin 

-Original Message-
From: yoyomohan [mailto:chandramohan@gmail.com] 
Sent: Sunday, October 04, 2009 2:02 PM
To: users@maven.apache.org
Subject: Re: Ant Mojo Resources


Hi jslinnha,

   I'm stuck in the same problem .pls. can you share the solution for
the problem 'calling scripts from custom ant plugin jar file' only.
 Thanks in advance.
 

jslinnha wrote:
> 
> Hi All,
>  
> I have created an Ant based plugin that need to call a windows batch 
> file.  The batch file is in the plugin projects resources folder and 
> thus in the plugin jar.  How can I access this resource path/ batch 
> file using the  ant task ?
>  
> Thanks
> 
> Jon
> 
> 

--
View this message in context:
http://www.nabble.com/Ant-Mojo-Resources-tp7011696p25740443.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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


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



Re: weird source not found problem in eclipse

2009-10-05 Thread Rice Yeh
Hi,
  Post this message here again. I switch my OS from winxp to linux. But
still get the same problem. Any clue?

Regards,
Rice

On Sat, May 23, 2009 at 5:24 PM, Rice Yeh  wrote:

> Hi,
>   I created my Eclipse Java project through "mvn -DdownloadSources=true 
> eclipse:clean eclipse:eclipse".
>  After project creation, I checked that in the Referenced Libraries in the in 
> my Java Eclipse project have
>
>  the source attachments correctly defined for the referenced libraries.
>  However, I get the "Source not found" problem when accessing classes in
>  these libraries. All these libraries and their source jar files are from
>
>  other projects and are created by Maven. I even change the locations of
>  the source attachments to their source directories in their project. But
>  it still does not work. For other jar files from
>  http://repo1.maven.apache/maven2, I do not have such problem. Any clue?
>
> Regards,
> Rice
>
>


Re: Why is this jar downloading?

2009-10-05 Thread Wayne Fay
> So, what is generating this dependency on btm-1.3.3-RC.jar?
>
> Is there a better way to figure this out?

"mvn dependency:tree" was built for this purpose exactly.

Wayne

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



RE: Why is this jar downloading?

2009-10-05 Thread Damon Silver
Try `mvn dependency:tree`.

- Damon

-Original Message-
From: David Weintraub [mailto:qazw...@gmail.com] 
Sent: Monday, October 05, 2009 9:54 AM
To: Maven Users List
Subject: Why is this jar downloading?

I am trying to trace the dependency upon a particular jarfile:
btm-1.3.3-RC2.jar, and trying to find out why it is downloading. I've ran
mvn with the --debug flag and got this:

com.solbright.aim:core:jar:2.1.2-SNAPSHOT (selected for null)
[DEBUG]   org.apache.ibatis:ibatis-sqlmap:jar:2.3.4.726:compile (selected
for compile)
[DEBUG]   opensymphony:quartz-all:jar:1.5.2:compile (selected for compile)
[DEBUG]   junit:junit:jar:4.5:test (selected for test)
[DEBUG]   log4j:log4j:jar:1.2.15:compile (selected for compile)
[DEBUG] javax.mail:mail:jar:1.4:compile (selected for compile)
[DEBUG]   javax.activation:activation:jar:1.1:compile (selected for
compile)
[DEBUG] javax.jms:jms:jar:1.1:compile (selected for compile)
[DEBUG] com.sun.jdmk:jmxtools:jar:1.2.1:compile (selected for compile)
[DEBUG] com.sun.jmx:jmxri:jar:1.2.1:compile (selected for compile)
[DEBUG]   commons-logging:commons-logging:jar:1.1.1:compile (selected for
compile)
[DEBUG]   commons-dbcp:commons-dbcp:jar:1.2.2:compile (selected for compile)
[DEBUG] commons-pool:commons-pool:jar:1.3:compile (selected for compile)
[DEBUG] Retrieving parent-POM: org.apache.commons:commons-parent:pom:9 for
project: commons-collections:commons-collections:jar:3.2.1 from the
repository.
[DEBUG]   commons-collections:commons-collections:jar:3.2.1:compile
(selected for compile)
[DEBUG]   commons-lang:commons-lang:jar:2.4:compile (selected for compile)
[DEBUG]   commons-beanutils:commons-beanutils:jar:1.7.0:compile (selected
for compile)
[DEBUG] commons-logging:commons-logging:jar:1.0.3:compile (removed -
nearer found: 1.1.1)
[DEBUG]   org.aspectj:aspectjrt:jar:1.6.2:compile (selected for compile)
[DEBUG]   org.aspectj:aspectjweaver:jar:1.6.2:compile (selected for compile)
[DEBUG]   org.springframework:spring:jar:2.5.5:compile (selected for
compile)
[DEBUG]   org.springframework:spring-aspects:jar:2.5.5:compile (selected for
compile)
[DEBUG] org.aspectj:aspectjrt:jar:1.6.0:compile (removed - nearer found:
1.6.2)
[DEBUG] org.aspectj:aspectjweaver:jar:1.6.0:compile (removed - nearer
found: 1.6.2)
[DEBUG] org.springframework:spring-beans:jar:2.5.5:compile (selected for
compile)
[DEBUG]   org.springframework:spring-core:jar:2.5.5:compile (selected
for compile)
[DEBUG]   com.oracle:classes12:jar:10.2.0.2.0:compile (selected for compile)
[DEBUG]   org.codehaus.btm:btm:jar:1.3.3-RC2:compile (selected for compile)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs:pom:1.1 for
project: null:geronimo-jms_1.1_spec:jar:1.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache:pom:1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG] Adding managed dependencies for unknown:geronimo-jms_1.1_spec
[DEBUG]   org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1
[DEBUG]   org.apache.geronimo.specs:geronimo-commonj_1.1_spec:jar:1.0
[DEBUG]   org.apache.geronimo.specs:geronimo-corba_3.0_spec:jar:1.1
[DEBUG]   org.apache.geronimo.specs:geronimo-corba_2.3_spec:jar:1.1
[DEBUG]   org.apache.geronimo.specs:geronimo-ejb_2.1_spec:jar:1.0.1
[DEBUG]   org.apache.geronimo.specs:geronimo-j2ee_1.4_spec:jar:1.1
[DEBUG]
org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:1.0.1
[DEBUG]
org.apache.geronimo.specs:geronimo-j2ee-deployment_1.1_spec:jar:1.0.1
[DEBUG]   org.apache.geronimo.specs:geronimo-j2ee-jacc_1.0_spec:jar:1.0.1
[DEBUG]
org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0.1
[DEBUG]   org.apache.geronimo.specs:geronimo-javamail_1.3.1_spec:jar:1.1
[DEBUG]   org.apache.geronimo.specs:geronimo-jaxr_1.0_spec:jar:1.0.1
[DEBUG]   org.apache.geronimo.specs:geronimo-jaxrpc_1.1_spec:jar:1.0.1

So, what is generating this dependency on btm-1.3.3-RC.jar?

Is there a better way to figure this out?

-- 
David Weintraub
qazw...@gmail.com


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



RE: Ant Mojo Resources

2009-10-05 Thread Martin Gainty

i seems that what you're asking for is not a maven plugin 
as a workaround you can 'wrap' your plugin code into an installer jar (using 
either Antigen or Ant-installer)
http://java-source.net/open-source/installer-generators

we could provide a more effective solution if you could share batch file code
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Subject: RE: Ant Mojo Resources
> Date: Mon, 5 Oct 2009 12:33:28 -0400
> From: justin.edel...@mtvstaff.com
> To: users@maven.apache.org
> 
> As far as I know, Windows has no facility for executing batch scripts
> (or anything else for that matter) which are inside a JAR file. So, what
> you'll need to do is copy the script to a temp directory and execute it
> from there. I'm not sure how you'd do this with Ant. In a Java-based
> Mojo, you could call getResourceAsStream() to get an InputStream and the
> copy the bytes to the temp file.
> 
> Justin 
> 
> -Original Message-
> From: yoyomohan [mailto:chandramohan@gmail.com] 
> Sent: Sunday, October 04, 2009 2:02 PM
> To: users@maven.apache.org
> Subject: Re: Ant Mojo Resources
> 
> 
> Hi jslinnha,
> 
>I'm stuck in the same problem .pls. can you share the solution for
> the problem 'calling scripts from custom ant plugin jar file' only.
>  Thanks in advance.
>  
> 
> jslinnha wrote:
> > 
> > Hi All,
> >  
> > I have created an Ant based plugin that need to call a windows batch 
> > file.  The batch file is in the plugin projects resources folder and 
> > thus in the plugin jar.  How can I access this resource path/ batch 
> > file using the  ant task ?
> >  
> > Thanks
> > 
> > Jon
> > 
> > 
> 
> --
> View this message in context:
> http://www.nabble.com/Ant-Mojo-Resources-tp7011696p25740443.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/

Why is this jar downloading?

2009-10-05 Thread David Weintraub
I am trying to trace the dependency upon a particular jarfile:
btm-1.3.3-RC2.jar, and trying to find out why it is downloading. I've ran
mvn with the --debug flag and got this:

com.solbright.aim:core:jar:2.1.2-SNAPSHOT (selected for null)
[DEBUG]   org.apache.ibatis:ibatis-sqlmap:jar:2.3.4.726:compile (selected
for compile)
[DEBUG]   opensymphony:quartz-all:jar:1.5.2:compile (selected for compile)
[DEBUG]   junit:junit:jar:4.5:test (selected for test)
[DEBUG]   log4j:log4j:jar:1.2.15:compile (selected for compile)
[DEBUG] javax.mail:mail:jar:1.4:compile (selected for compile)
[DEBUG]   javax.activation:activation:jar:1.1:compile (selected for
compile)
[DEBUG] javax.jms:jms:jar:1.1:compile (selected for compile)
[DEBUG] com.sun.jdmk:jmxtools:jar:1.2.1:compile (selected for compile)
[DEBUG] com.sun.jmx:jmxri:jar:1.2.1:compile (selected for compile)
[DEBUG]   commons-logging:commons-logging:jar:1.1.1:compile (selected for
compile)
[DEBUG]   commons-dbcp:commons-dbcp:jar:1.2.2:compile (selected for compile)
[DEBUG] commons-pool:commons-pool:jar:1.3:compile (selected for compile)
[DEBUG] Retrieving parent-POM: org.apache.commons:commons-parent:pom:9 for
project: commons-collections:commons-collections:jar:3.2.1 from the
repository.
[DEBUG]   commons-collections:commons-collections:jar:3.2.1:compile
(selected for compile)
[DEBUG]   commons-lang:commons-lang:jar:2.4:compile (selected for compile)
[DEBUG]   commons-beanutils:commons-beanutils:jar:1.7.0:compile (selected
for compile)
[DEBUG] commons-logging:commons-logging:jar:1.0.3:compile (removed -
nearer found: 1.1.1)
[DEBUG]   org.aspectj:aspectjrt:jar:1.6.2:compile (selected for compile)
[DEBUG]   org.aspectj:aspectjweaver:jar:1.6.2:compile (selected for compile)
[DEBUG]   org.springframework:spring:jar:2.5.5:compile (selected for
compile)
[DEBUG]   org.springframework:spring-aspects:jar:2.5.5:compile (selected for
compile)
[DEBUG] org.aspectj:aspectjrt:jar:1.6.0:compile (removed - nearer found:
1.6.2)
[DEBUG] org.aspectj:aspectjweaver:jar:1.6.0:compile (removed - nearer
found: 1.6.2)
[DEBUG] org.springframework:spring-beans:jar:2.5.5:compile (selected for
compile)
[DEBUG]   org.springframework:spring-core:jar:2.5.5:compile (selected
for compile)
[DEBUG]   com.oracle:classes12:jar:10.2.0.2.0:compile (selected for compile)
[DEBUG]   org.codehaus.btm:btm:jar:1.3.3-RC2:compile (selected for compile)
[DEBUG] Retrieving parent-POM: org.apache.geronimo.specs:specs:pom:1.1 for
project: null:geronimo-jms_1.1_spec:jar:1.0.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache:pom:1 for project:
org.apache.geronimo.specs:specs:pom:1.1 from the repository.
[DEBUG] Adding managed dependencies for unknown:geronimo-jms_1.1_spec
[DEBUG]   org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1
[DEBUG]   org.apache.geronimo.specs:geronimo-commonj_1.1_spec:jar:1.0
[DEBUG]   org.apache.geronimo.specs:geronimo-corba_3.0_spec:jar:1.1
[DEBUG]   org.apache.geronimo.specs:geronimo-corba_2.3_spec:jar:1.1
[DEBUG]   org.apache.geronimo.specs:geronimo-ejb_2.1_spec:jar:1.0.1
[DEBUG]   org.apache.geronimo.specs:geronimo-j2ee_1.4_spec:jar:1.1
[DEBUG]
org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:1.0.1
[DEBUG]
org.apache.geronimo.specs:geronimo-j2ee-deployment_1.1_spec:jar:1.0.1
[DEBUG]   org.apache.geronimo.specs:geronimo-j2ee-jacc_1.0_spec:jar:1.0.1
[DEBUG]
org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0.1
[DEBUG]   org.apache.geronimo.specs:geronimo-javamail_1.3.1_spec:jar:1.1
[DEBUG]   org.apache.geronimo.specs:geronimo-jaxr_1.0_spec:jar:1.0.1
[DEBUG]   org.apache.geronimo.specs:geronimo-jaxrpc_1.1_spec:jar:1.0.1

So, what is generating this dependency on btm-1.3.3-RC.jar?

Is there a better way to figure this out?

-- 
David Weintraub
qazw...@gmail.com


Re: Showing pom files in dependency tree.

2009-10-05 Thread Michael Delaney
For running 'help:effective-pom" tests, no. I was running as myself (but 
using the same settings.xml file). Running as the same user the files 
are 100% equivalent; if you exclude the time stamp. I've also tested it 
using the same user as our CI server, manually, and same results. The 
manual build executes just fine the CI build fails trying to find an 
artifact it shouldn't be looking for.


This is a problem with our C.I server, I just can't figure out where 
things are going wrong.


Tang, Ray wrote:

Are all the machine running the same user ID?

Ray 


-Original Message-
From: Michael Delaney [mailto:mdela...@upromise.com] 
Sent: Monday, October 05, 2009 10:57 AM

To: Maven Users List
Subject: Re: Showing pom files in dependency tree.

I just did that and no major differences. There were some differences but they 
were expected; location of the local repository and user name (those were the 
only two).

Jörg Schaible wrote:
  

Michael Delaney wrote at Montag, 5. Oktober 2009 16:55:

  


All,

I'm trying to diagnose an odd problem. The problem is on *some*, but 
not all, machines, one of our projects is trying to download an old 
retired snapshot build. I can't reproduce this locally but I can on 
our CI server. I checked the pom (top-level and parents) and check 
for this reference and it isn't there. I'm trying to figure out how 
this jar is being included when it shouldn't and I thought being able 
to see exactly what pom files are being loaded in would help.


I already tried using the dependency plug-in to list the pom files 
but that doesn't work. I even searched through our Archiva repository 
for references and couldn't find anything that could cause this.


Anyone have any ideas?

  
run "mvn help:effective-pom" on both machines and diff the poutput. It 
may give you at least a hint, where the difference begins.


- Jörg


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

  



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


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

  


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



RE: Ant Mojo Resources

2009-10-05 Thread Edelson, Justin
As far as I know, Windows has no facility for executing batch scripts
(or anything else for that matter) which are inside a JAR file. So, what
you'll need to do is copy the script to a temp directory and execute it
from there. I'm not sure how you'd do this with Ant. In a Java-based
Mojo, you could call getResourceAsStream() to get an InputStream and the
copy the bytes to the temp file.

Justin 

-Original Message-
From: yoyomohan [mailto:chandramohan@gmail.com] 
Sent: Sunday, October 04, 2009 2:02 PM
To: users@maven.apache.org
Subject: Re: Ant Mojo Resources


Hi jslinnha,

   I'm stuck in the same problem .pls. can you share the solution for
the problem 'calling scripts from custom ant plugin jar file' only.
 Thanks in advance.
 

jslinnha wrote:
> 
> Hi All,
>  
> I have created an Ant based plugin that need to call a windows batch 
> file.  The batch file is in the plugin projects resources folder and 
> thus in the plugin jar.  How can I access this resource path/ batch 
> file using the  ant task ?
>  
> Thanks
> 
> Jon
> 
> 

--
View this message in context:
http://www.nabble.com/Ant-Mojo-Resources-tp7011696p25740443.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



RE: Showing pom files in dependency tree.

2009-10-05 Thread Tang, Ray
Are all the machine running the same user ID?

Ray 

-Original Message-
From: Michael Delaney [mailto:mdela...@upromise.com] 
Sent: Monday, October 05, 2009 10:57 AM
To: Maven Users List
Subject: Re: Showing pom files in dependency tree.

I just did that and no major differences. There were some differences but they 
were expected; location of the local repository and user name (those were the 
only two).

Jörg Schaible wrote:
> Michael Delaney wrote at Montag, 5. Oktober 2009 16:55:
>
>   
>> All,
>>
>> I'm trying to diagnose an odd problem. The problem is on *some*, but 
>> not all, machines, one of our projects is trying to download an old 
>> retired snapshot build. I can't reproduce this locally but I can on 
>> our CI server. I checked the pom (top-level and parents) and check 
>> for this reference and it isn't there. I'm trying to figure out how 
>> this jar is being included when it shouldn't and I thought being able 
>> to see exactly what pom files are being loaded in would help.
>>
>> I already tried using the dependency plug-in to list the pom files 
>> but that doesn't work. I even searched through our Archiva repository 
>> for references and couldn't find anything that could cause this.
>>
>> Anyone have any ideas?
>> 
>
> run "mvn help:effective-pom" on both machines and diff the poutput. It 
> may give you at least a hint, where the difference begins.
>
> - Jörg
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>   

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


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



Re: Showing pom files in dependency tree.

2009-10-05 Thread Michael Delaney
I just did that and no major differences. There were some differences 
but they were expected; location of the local repository and user name 
(those were the only two).


Jörg Schaible wrote:

Michael Delaney wrote at Montag, 5. Oktober 2009 16:55:

  

All,

I'm trying to diagnose an odd problem. The problem is on *some*, but not
all, machines, one of our projects is trying to download an old retired
snapshot build. I can't reproduce this locally but I can on our CI
server. I checked the pom (top-level and parents) and check for this
reference and it isn't there. I'm trying to figure out how this jar is
being included when it shouldn't and I thought being able to see exactly
what pom files are being loaded in would help.

I already tried using the dependency plug-in to list the pom files but
that doesn't work. I even searched through our Archiva repository for
references and couldn't find anything that could cause this.

Anyone have any ideas?



run "mvn help:effective-pom" on both machines and diff the poutput. It may
give you at least a hint, where the difference begins.

- Jörg


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

  


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



Re: AW: Showing pom files in dependency tree.

2009-10-05 Thread Michael Delaney
Yes, I tried that. First, a wipe of just our artifacts (from the local 
repository) then a complete wipe(from the local repository). After both 
wipes, the artifact was still trying to get pulled down.


Entner Harald wrote:
Have you tried to delete the complete repository (.../.m2/repository), in which the false artifact is found? Maybe there are some legacy artifacts in it, which in return have dependencies on others and so on. 


-Ursprüngliche Nachricht-
Von: Michael Delaney [mailto:mdela...@upromise.com] 
Gesendet: Montag, 5. Oktober 2009 16:56

An: users@maven.apache.org
Betreff: Showing pom files in dependency tree.

All,

I'm trying to diagnose an odd problem. The problem is on *some*, but not 
all, machines, one of our projects is trying to download an old retired 
snapshot build. I can't reproduce this locally but I can on our CI 
server. I checked the pom (top-level and parents) and check for this 
reference and it isn't there. I'm trying to figure out how this jar is 
being included when it shouldn't and I thought being able to see exactly 
what pom files are being loaded in would help.


I already tried using the dependency plug-in to list the pom files but 
that doesn't work. I even searched through our Archiva repository for 
references and couldn't find anything that could cause this.


Anyone have any ideas?

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

  


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



AW: Showing pom files in dependency tree.

2009-10-05 Thread Entner Harald
Have you tried to delete the complete repository (.../.m2/repository), in which 
the false artifact is found? Maybe there are some legacy artifacts in it, which 
in return have dependencies on others and so on. 

-Ursprüngliche Nachricht-
Von: Michael Delaney [mailto:mdela...@upromise.com] 
Gesendet: Montag, 5. Oktober 2009 16:56
An: users@maven.apache.org
Betreff: Showing pom files in dependency tree.

All,

I'm trying to diagnose an odd problem. The problem is on *some*, but not 
all, machines, one of our projects is trying to download an old retired 
snapshot build. I can't reproduce this locally but I can on our CI 
server. I checked the pom (top-level and parents) and check for this 
reference and it isn't there. I'm trying to figure out how this jar is 
being included when it shouldn't and I thought being able to see exactly 
what pom files are being loaded in would help.

I already tried using the dependency plug-in to list the pom files but 
that doesn't work. I even searched through our Archiva repository for 
references and couldn't find anything that could cause this.

Anyone have any ideas?

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



Re: Showing pom files in dependency tree.

2009-10-05 Thread Jörg Schaible
Michael Delaney wrote at Montag, 5. Oktober 2009 16:55:

> All,
> 
> I'm trying to diagnose an odd problem. The problem is on *some*, but not
> all, machines, one of our projects is trying to download an old retired
> snapshot build. I can't reproduce this locally but I can on our CI
> server. I checked the pom (top-level and parents) and check for this
> reference and it isn't there. I'm trying to figure out how this jar is
> being included when it shouldn't and I thought being able to see exactly
> what pom files are being loaded in would help.
> 
> I already tried using the dependency plug-in to list the pom files but
> that doesn't work. I even searched through our Archiva repository for
> references and couldn't find anything that could cause this.
> 
> Anyone have any ideas?

run "mvn help:effective-pom" on both machines and diff the poutput. It may
give you at least a hint, where the difference begins.

- Jörg


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



Showing pom files in dependency tree.

2009-10-05 Thread Michael Delaney

All,

I'm trying to diagnose an odd problem. The problem is on *some*, but not 
all, machines, one of our projects is trying to download an old retired 
snapshot build. I can't reproduce this locally but I can on our CI 
server. I checked the pom (top-level and parents) and check for this 
reference and it isn't there. I'm trying to figure out how this jar is 
being included when it shouldn't and I thought being able to see exactly 
what pom files are being loaded in would help.


I already tried using the dependency plug-in to list the pom files but 
that doesn't work. I even searched through our Archiva repository for 
references and couldn't find anything that could cause this.


Anyone have any ideas?

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



Re: Trouble running Maven test case

2009-10-05 Thread Lukas Theussl


Cool, I'll remind you of that when you're rich and famous! :)

The test output goes to target/test-reports/.

-Lukas


laredotornado wrote:

You are great and I will remember you when I'm rich and famous.  When I
switched the dependency to "jwebunit-core" from "jwebunit-htmlunit-plugin"
the compilation errors went away and my unit test ran.

As a bonus, do you know where the output of the tests gets saved to?  All
I'm told is that my unit test failed.

Thanks, - Dave


cho:webapp dalvarado$ maven -Dtestcase=test.AddToMailingListTest test:single 
 __  __

|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1

Trying to get missing dependencies (and updated snapshots) required by
colorado-oit-governor-citizen-assistanceUtility-webapp:
- Attempting to download net.sourceforge.jwebunit:jwebunit-core:1.4:jar from
http://software.ais.pl/repository
- Attempting to download net.sourceforge.jwebunit:jwebunit-core:1.4:jar from
http://download.java.net/maven/1/
- Attempting to download net.sourceforge.jwebunit:jwebunit-core:1.4:jar from
http://repo1.maven.org/maven
41K downloaded
build:start:

test:single:
java:prepare-filesystem:

java:init:

java:compile:
[echo] Compiling to
/Users/dalvarado/source/assistanceUtility/webapp/target/classes
[echo] 
==


  WARNING:  maven.compile.target is not set:
using the default value which depends on your JVM

==
  


java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
[javac] Compiling 1 source file to
/Users/dalvarado/source/assistanceUtility/webapp/target/test-classes

[junit] dir attribute ignored if running in the same VM
[junit] Running test.AddToMailingListTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.039 sec
---

Unable to obtain goal [test:single]
Test test.AddToMailingListTest failed

---
BUILD FAILED
---
Total time   : 8 seconds 
Finished at  : Monday, October 5, 2009 7:26:43 AM MDT

Final Memory : 5M/16M
---






Lukas Theussl-4 wrote:


Even your second mail is not specific enough to help us help you in any
meaningful
way. You might profit from reading this:

http://catb.org/~esr/faqs/smart-questions.html

As a first guess I'd like to know if jwebunit-htmlunit-plugin is the only
jwebunit
dependency you added in your pom? If yes it would explain (some of) the
compilation errors, eg junit.WebTestCase is in jwebunit-core, not
jwebunit-htmlunit-plugin. But that's just a guess...

HTH,
-Lukas


laredotornado wrote:

Yes, I should have been more specific.  Here's how I'm making the call
...

maven -Dtestcase=test.AddToMailingListTest test:single 


and what happens is that I'm getting a bunch of compilation errors, even
though the libraries in question are listed as a dependency in my
project.xml file (I have confirmed the jars are getting downloaded) ...

maven -Dtestcase=test.AddToMailingListTest test:single
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.1

build:start:

test:single:
java:prepare-filesystem:

java:init:

java:compile:
[echo] Compiling to
/Users/dalvarado/source/assistanceUtility/webapp/target/classes
[echo]
==

WARNING: maven.compile.target is not set:
using the default value which depends on your JVM

==


java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
[javac] Compiling 1 source file to
/Users/dalvarado/source/assistanceUtility/webapp/target/test-classes
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:9:
package net.sourceforge.jwebunit.junit does not exist
[javac] import net.sourceforge.jwebunit.junit.WebTestCase;
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:11:
cannot find symbol
[javac] symbol: class WebTestCase
[javac] public class AddToMailingListTest extends WebTestCase {
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:28:
cannot find symbol
[javac] symbol : variable super
[javac] location: class test.AddToMailingListTest
[javac] super.setUp();
[javac] ^
[javac]
/Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:30:
cannot find symbol
[javac] symbol : method getTestContext()
[javac] location: class test.AddToMailingListTest
[javac]
getTestContext().setBaseUrl("http://localho

Re: Trouble running Maven test case

2009-10-05 Thread laredotornado

You are great and I will remember you when I'm rich and famous.  When I
switched the dependency to "jwebunit-core" from "jwebunit-htmlunit-plugin"
the compilation errors went away and my unit test ran.

As a bonus, do you know where the output of the tests gets saved to?  All
I'm told is that my unit test failed.

Thanks, - Dave


cho:webapp dalvarado$ maven -Dtestcase=test.AddToMailingListTest test:single 
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1

Trying to get missing dependencies (and updated snapshots) required by
colorado-oit-governor-citizen-assistanceUtility-webapp:
- Attempting to download net.sourceforge.jwebunit:jwebunit-core:1.4:jar from
http://software.ais.pl/repository
- Attempting to download net.sourceforge.jwebunit:jwebunit-core:1.4:jar from
http://download.java.net/maven/1/
- Attempting to download net.sourceforge.jwebunit:jwebunit-core:1.4:jar from
http://repo1.maven.org/maven
41K downloaded
build:start:

test:single:
java:prepare-filesystem:

java:init:

java:compile:
[echo] Compiling to
/Users/dalvarado/source/assistanceUtility/webapp/target/classes
[echo] 
==

  WARNING:  maven.compile.target is not set:
using the default value which depends on your JVM

==
  

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
[javac] Compiling 1 source file to
/Users/dalvarado/source/assistanceUtility/webapp/target/test-classes

[junit] dir attribute ignored if running in the same VM
[junit] Running test.AddToMailingListTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.039 sec
---
>> Unable to obtain goal [test:single]
>> Test test.AddToMailingListTest failed
---
BUILD FAILED
---
Total time   : 8 seconds 
Finished at  : Monday, October 5, 2009 7:26:43 AM MDT
Final Memory : 5M/16M
---






Lukas Theussl-4 wrote:
> 
> 
> Even your second mail is not specific enough to help us help you in any
> meaningful
> way. You might profit from reading this:
> 
> http://catb.org/~esr/faqs/smart-questions.html
> 
> As a first guess I'd like to know if jwebunit-htmlunit-plugin is the only
> jwebunit
> dependency you added in your pom? If yes it would explain (some of) the
> compilation errors, eg junit.WebTestCase is in jwebunit-core, not
> jwebunit-htmlunit-plugin. But that's just a guess...
> 
> HTH,
> -Lukas
> 
> 
> laredotornado wrote:
>> Yes, I should have been more specific.  Here's how I'm making the call
>> ...
>> 
>> maven -Dtestcase=test.AddToMailingListTest test:single 
>> 
>> and what happens is that I'm getting a bunch of compilation errors, even
>> though the libraries in question are listed as a dependency in my
>> project.xml file (I have confirmed the jars are getting downloaded) ...
>> 
>> maven -Dtestcase=test.AddToMailingListTest test:single
>> __ __
>> | \/ |__ _Apache__ ___
>> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
>> |_| |_\__,_|\_/\___|_||_| v. 1.1
>> 
>> build:start:
>> 
>> test:single:
>> java:prepare-filesystem:
>> 
>> java:init:
>> 
>> java:compile:
>> [echo] Compiling to
>> /Users/dalvarado/source/assistanceUtility/webapp/target/classes
>> [echo]
>> ==
>> 
>> WARNING: maven.compile.target is not set:
>> using the default value which depends on your JVM
>> 
>> ==
>> 
>> 
>> java:jar-resources:
>> 
>> test:prepare-filesystem:
>> 
>> test:test-resources:
>> 
>> test:compile:
>> [javac] Compiling 1 source file to
>> /Users/dalvarado/source/assistanceUtility/webapp/target/test-classes
>> [javac]
>> /Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:9:
>> package net.sourceforge.jwebunit.junit does not exist
>> [javac] import net.sourceforge.jwebunit.junit.WebTestCase;
>> [javac] ^
>> [javac]
>> /Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:11:
>> cannot find symbol
>> [javac] symbol: class WebTestCase
>> [javac] public class AddToMailingListTest extends WebTestCase {
>> [javac] ^
>> [javac]
>> /Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:28:
>> cannot find symbol
>> [javac] symbol : variable super
>> [javac] location: class test.AddToMailingListTest
>> [javac] super.setUp();
>> [javac] ^
>> [javac]
>> /Users/dalvarado/source/assistanceUtility/webapp/src/test/java/AddToMailingListTest.java:30:
>> cannot find symbol
>> [javac] symbol : method getTestContext()
>> [javac] l

Getting error while using Doxia plugin during site generation

2009-10-05 Thread Mr Debasis

Hi All,
 I am trying to use doxia plugin during my site generation process for
writing a documentation book.
 My directory structure is given below
 src/site/book/reference.xml(which contains book layout having chapter and
section id)
 and my apt files are under
src/site/apt/reference/mychapterName(ex-chafter1)/file1.apt

 my pom file i have reference to doxia plugin i,e
  
   
org.apache.maven.doxia
doxia-maven-plugin
1.1


 pre-site

render-books




 

src/books

src/books/reference.xml


pdf



 

 




While Generating the sites i am encountering with the following errors

[INFO] [doxia:render-books]
[ERROR] 

The following mojo encountered an error while executing:
Group-Id: org.apache.maven.doxia
Artifact-Id: doxia-maven-plugin
Version: 1.1
Mojo: render-books
brought in via: POM

While building project:
Group-Id: com.arisglobal.aglite
Artifact-Id: aglite-parent
Version: 3.0.0.0.RC1
>From file: D:\workspaces\osgi-cd-workspace\aglite\pom.xml
Reason: Error while generating book in format 'pdf'.

org.apache.maven.doxia.book.BookDoxiaException: No document that matches
section with id=overview1.
at
org.apache.maven.doxia.book.services.indexer.DefaultBookIndexer.indexSection(DefaultBookIndexer.java:118)
at
org.apache.maven.doxia.book.services.indexer.DefaultBookIndexer.indexChapter(DefaultBookIndexer.java:99)
at
org.apache.maven.doxia.book.services.indexer.DefaultBookIndexer.indexBook(DefaultBookIndexer.java:70)
at
org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.java:129)
at
org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksMojo.java:265)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at 
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
at
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)



Error stacktrace:
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal
'org.apache.maven.doxia:doxia-maven-plugin:1.1:render-books': Mojo execution
failed.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:505)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at 
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
at
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody

RE: Wagon protocol 'scm' doesn't support directory copying

2009-10-05 Thread Edelson, Justin
Not with wagon-scm, but you can with https://wagon-svn.dev.java.net/.



From: Open Source Dept [mailto:o...@openmaximo.net]
Sent: Mon 10/5/2009 7:14 AM
To: users@maven.apache.org
Subject: Wagon protocol 'scm' doesn't support directory copying



Hi everyone,

I'm trying to deploy my maven site using wagon-scm but I'm getting this
error:

Wagon protocol 'scm' doesn't support directory copying.


Is it possible to deploy a site using mvn site-deploy and an SVN repository?

I'm using this 3 extensions:


org.apache.maven.wagon
wagon-scm
1.0-alpha-4


org.apache.maven.scm
maven-scm-manager-plexus
1.3-SNAPSHOT


org.apache.maven.scm
maven-scm-provider-svnexe
1.3-SNAPSHOT



Best regards,
--
The openmaximo.net Team
http://www.openmaximo.net/




Wagon protocol 'scm' doesn't support directory copying

2009-10-05 Thread Open Source Dept
Hi everyone,

I'm trying to deploy my maven site using wagon-scm but I'm getting this
error:

Wagon protocol 'scm' doesn't support directory copying.


Is it possible to deploy a site using mvn site-deploy and an SVN repository?

I'm using this 3 extensions:


org.apache.maven.wagon
wagon-scm
1.0-alpha-4


org.apache.maven.scm
maven-scm-manager-plexus
1.3-SNAPSHOT


org.apache.maven.scm
maven-scm-provider-svnexe
1.3-SNAPSHOT



Best regards,
--
The openmaximo.net Team
http://www.openmaximo.net/


Re: Including the project's pom.xml in generated site ?

2009-10-05 Thread Lewis, Eric

Hi

I may be a bit late  ;-)  but since I had the same problem, I sending the
solution. Hope it helps you.

In your , add the following:

  
org.apache.maven.plugins
maven-resources-plugin

  
add-pom-to-site
site

  copy-resources


 
${project.reporting.outputDirectory}


  ./
  
pom.xml
  
  false



  

  


Best regards,
Eric

Tobias Gierke-2 wrote:
> 
> Hi,
> 
> Is there currently a (simple) way to deploy a project's pom.xml together 
> with the generated site upon release ?
> 
> The reason I'm asking is this:
> 
> All my sites get deployed into different subdirectories of the same base 
> directory on a webserver. I want to be able to dynamically discover the 
> project's documentation and render a top-level 'entry' HTML page that 
> provides links to each project's individual index.html along with some 
> details from the release POM (version,groupId,description etc.). These 
> details obviously can't be easily parsed from the generated site HTML. 
> I've already written a small patch for the site plugin (that adds a 
>  configuration option) but I'd really like to have this feature 
> without having to patch the plugin every time a new release comes up.
> 
> Thanks in advance,
> 
> Tobias
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Including-the-project%27s-pom.xml-in-generated-site---tp22325784p25748592.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: M2 : cvsignore and archetypes

2009-10-05 Thread PAROLINI Antonio
Interresting. Thanks for sharing this.

-antonio

-Message d'origine-
De : Roland Asmann [mailto:roland.asm...@cfc.at] 
Envoyé : vendredi, 2. octobre 2009 13:54
À : PAROLINI Antonio; Maven Users List
Objet : Re: M2 : cvsignore and archetypes

OK, so I checked. We are indeed using our own archetype-plugin. It can resolve 
files that have variables in the name.

This way we can include several 'system'-files (like for CVS) and other files 
that are always needed, but have different names/packages depending on our 
project. Think along the lines of using the groupId as the package-name for 
java-classes.

So, I suggest you look into writing your own archetype-plugin or find one that 
can do similar things as our plugin.


On Friday 02 October 2009 11:21, you wrote:
> We are doing something similar in our company, although I curently can't
> tell you the exact solution (not at work yet).
> I believe we are using some renaming-scheme like calling those files
> '${DOT}cvsignore'  and then have the archetype replace the variable 'DOT'
> with '.'.
>
> As I said, I'm not 100% sure if this is our exact solution and if it works
> out of the box or if we implemented our own archetype-plugin. You could
> try this and I will get back at you when I'm at work to check this.
>
> Roland
>
> > Hi,
> >
> > We are stuck on using archetype on a complex multiproject template we
> > would like to give to our developpers. We need to automatize the artefact
> > publication for obvious reasons, but , it's not possible to add
> > .cvsignore files on archetypes using the archetype:create-from-project
> > goal.
> >
> > It is important for those files to be present prior to the developper
> > first projet commit, otherwise it's a pain to correct afteward.
> >
> > Our workaround for the moment is to use the assembly plugin to generete a
> > ZIP file of the template projet, then the developper will do a global
> > "search and replace" of the groupID,artifactID and version in the poms.
> >
> > As another option I would think of another plugin to take over the job on
> > creating those files, like the maven-eclipse-plugin...
> >
> > Is there anyone here with a similar issue ?
> >
> > Thanks.
> >
> > antonio
> >
> > -Message d'origine-
> > De : Nick Stolwijk [mailto:nick.stolw...@gmail.com]
> > Envoyé : jeudi, 1. octobre 2009 19:32
> > À : PAROLINI Antonio; Maven Users List
> > Objet : Re: Ant to Maven
> >
> > See also this link:
> > http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
> >
> > Nick Stolwijk
> > ~Java Developer~
> >
> > IPROFS BV.
> > Claus Sluterweg 125
> > 2012 WS Haarlem
> > http://www.iprofs.nl
> >
> >
> >
> > On Thu, Oct 1, 2009 at 7:28 PM, Nick Stolwijk 
> >
> > wrote:
> >> From each module there will be one main artifact, ie a jar. Sometimes
> >> there can be multiple artifacts, like javadoc or sources. If you say
> >> that your ant script generates multiple jars, you will need to have
> >> multiple modules. That can be child-parent relation, or just a
> >> aggregator pom.
> >>
> >> Child parent relation:
> >> Each module has a section  which point to a pom with shared
> >> configuration and/or dependency(management).
> >>
> >> Aggregator pom:
> >> You have multiple modules in subdirectories. You create a pom file
> >> with the modules tag to kick of all the builds with one command.
> >>
> >> These strategies can be combined. Your parent pom can also be your
> >> aggregator pom.
> >>
> >> Hth,
> >>
> >> Nick Stolwijk
> >> ~Java Developer~
> >>
> >> IPROFS BV.
> >> Claus Sluterweg 125
> >> 2012 WS Haarlem
> >> http://www.iprofs.nl
> >>
> >>
> >>
> >> On Thu, Oct 1, 2009 at 7:14 PM, chicagopooldude
> >>
> >>  wrote:
> >>> Thanks for your reply I have already started to use the antrun plugin.
> >>> I
> >>> wanted to know if you can please share some documentation on using
> >>> seperate
> >>> modules. Should I use parent-child modules ?
> >>> --
> >>> View this message in context:
> >>> http://www.nabble.com/Ant-to-Maven-tp25696939p25703038.html
> >>> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: roland.asm...@cfc.at
Web: www.cfc.at

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