Re: Dynamic dependencies

2007-01-31 Thread Niels Gylling
If the plugin dependency changes frequently, you might consider naming 
the version xx-SNAPSHOT and have a suitable snapshot update policy in 
your settings.xml


/Niels

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



Re: Dynamic dependencies

2007-01-31 Thread Jochen Wiedmann

On 2/1/07, Tom Huybrechts <[EMAIL PROTECTED]> wrote:


you can just add a  element to the plugin's configuration
to override the original dependency


Is it really that simple? That means, I won't need to change the plugin at all?

Thanks,

Jochen


--
How fast can a year go? As fast as your childs first year.

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



maven-changes-plugin fails to download : java.net.ProtocolException: Server redirected too many times (20)

2007-01-31 Thread Jeff Mutonho

I have the following in my pom.xml


   org.apache.maven.plugins
   maven-changes-plugin
   2.0-beta-2
   
 ${basedir}/changes.xml
   
   
 
   
 changes-report
   
 
   





However , when I run 'mvn site' , I'm getting the following error


INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-changes-plugin

Reason: Error getting POM for
'org.apache.maven.plugins:maven-changes-plugin' from the repository:
Error transferring file
 org.apache.maven.plugins:maven-changes-plugin:pom:2.0-beta-2

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)



[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
build project for plugin
'org.apache.maven.plugins:maven-changes-plugin': Error getting POM for
'org.apache.maven.plugins:maven-changes-plugin' from the repository:
Error transferring file
 org.apache.maven.plugins:maven-changes-plugin:pom:2.0-beta-2

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1309)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:657)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:645)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:512)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
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:256)
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:324)
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)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to
build project for plugin
'org.apache.maven.plugins:maven-changes-plugin': Error getting POM for
'org.apache.maven.plugins:maven-changes-plugin' from the repository:
Error transferring file
 org.apache.maven.plugins:maven-changes-plugin:pom:2.0-beta-2

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)

at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:265)
at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:183)
at 
org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:487)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1292)
... 19 more
Caused by: org.apache.maven.project.ProjectBuildingException: Error
getting POM for 'org.apache.maven.plugins:maven-changes-plugin' from
the repository: Error transferring file
 org.apache.maven.plugins:maven-changes-plugin:pom:2.0-beta-2

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)

at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:501)
at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:225)

Re: How to use maven2 to share the various project document for each member of the project on the site?

2007-01-31 Thread 秋秋

HI,
  Thanks for Wendy's help,I have put the word doc on the site
successfully,but there new issue,I add configuration in the src\site\.xml
like this:



  
  

   

as a result,the site show the new menu "worddoc", "claim" and "userguid" is
under the "worddoc" menu; but,I have many  word doc which is a userguid,I
want to make the "userguid" become a childmenu of "worddoc" and put the word
docs which is a userguid under it,in other words,make it be a multilevel
menu.how can i do?

2007/2/1, Wendy Smoak <[EMAIL PROTECTED]>:


On 1/31/07, 秋秋 <[EMAIL PROTECTED]> wrote:

>  I want to know how to use maven2 to share the various project
document
> for each member of the project  on the site?There are lots of various
> document,where the doc shoud be place in the project's directory?

What kind of documentation?

Anything you put under src/site/resources will get copied over into
the website, so if you have images, Word docs, etc., you can put them
there.

If you're writing docs in apt or xdoc format, put them in src/site/apt
or src/site/xdoc, and Maven will transform them into HTML for the
website.

http://maven.apache.org/guides/mini/guide-site.html

--
Wendy

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




Re: [m2] using 3rdParty PlugIn

2007-01-31 Thread Christian Cabanero

Here's the contents of my custom pom, it's modeled after the custom poms
i've seen for previous version of Hibernate:

By the way, when is the latest version of hibernate (3.2.2.ga) going to get
into the main repository?  If that's soon I wouldn't have to deal with
this.  ;-)




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.hibernate
   hibernate
   jar
   3.2.1.ga

   Hibernate
   Relational Persistence for Java
   http://www.hibernate.org

   
   JBoss Inc.
   http://www.jboss.com
   

   
   Jira
   http://opensource.atlassian.com/projects/hibernate/browse/HHH

   

   
   http://cvs.sourceforge.net/viewcvs.py/hibernate/Hibernate3/
   scm:svn:
http://anonhibernate.labs.jboss.com/trunk/Hibernate3
   scm:svn:
https://hibernate.labs.jboss.com/repos/hibernate
   

   
   
   GNU LESSER GENERAL PUBLIC LICENSE
   http://www.gnu.org/licenses/lgpl.txt
   
   

   
   
   ehcache
   ehcache
   1.2.3
   
   
   swarmcache
   swarmcache
   1.0RC2
   true
   
   
   jboss
   jboss-cache
   1.2.2
   true
   
   
   jgroups
   jgroups-all
   2.2.8
   true
   
   
   javax.transaction
   jta
   1.0.1B
   
   
   commons-logging
   commons-logging
   1.0.4
   
   
   c3p0
   c3p0
   0.9.1
   true
   
   
   asm
   asm-attrs
   1.5.3
   
   
   javax.security
   jacc
   1.0
   true
   
   
   dom4j
   dom4j
   1.6.1
   
   
   xml-apis
   xml-apis
   
   
   
   
   antlr
   antlr
   2.7.6
   
   
   cglib
   cglib
   2.1_3
   
   
   opensymphony
   oscache
   2.1
   true
   
   
   asm
   asm
   1.5.3
   
   
   commons-collections
   commons-collections
   2.1.1
   
   
   ant
   ant
   1.6.5
   provided
   
   
   proxool
   proxool
   0.8.3
   true
   
   





On 1/31/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:


Hi Christian,

I tried doing what you did (I also used the same hibernate jar), and
when I checked my local repo,
the custom pom was installed along with the jar file.

Btw, what was in your custom pom?
Mine was:


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.hibernate
  hibernate
  jar
  Hibernate
  3.2.2.ga



Thanks,
Deng


Christian Cabanero wrote:

> Hi Guys
>
> I've used mvn install:install-file in the past and usually it works
great
> but
>
> I'm trying to now use it while using a custom pom for the 3rd party jar
> (hibernate 3.2.2.ga since it's not in the repository yet).  I'm
following
> the instructions in:
>
>
http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html
>
>
> and I'm running this:
>
> $> mvn install:install-file -Dfile=hibernate-3.2.2.ga.jar -DgroupId=
> org.hibernate -DartifactId=hibernate -Dversion=3.2.2.ga -Dpackaging=jar
> -DpomFile=hibernate-3.2.2.ga.pom
>
> It's installing the jar file in my local repository but it's not
> installing
> the custom pom file, hibernate-3.2.2.ga.pom.  The pom file is there in
> the
> directory and is formatted correctly.
>
> Any ideas why this isn't working?
>
> Thanks,
> Christian
>
> On 1/31/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi Fredy,
>>
>> You can use the install:install-file goal of the maven-install-plugin
to
>> do this.
>> For more details, please refer to
>> http://maven.apache.org/plugins/maven-install-plugin/index.html (see
>> Generic Pom Example) <
>> http://maven.apache.org/plugins/maven-install-plugin/>
>>
>> Hope this helps! :-)
>>
>> Thanks,
>> Deng
>>
>> SoftwareEngineering Hauschel wrote:
>>
>> > Hi all,
>> > how can I deploy a 3rdPartyPlugIn in my Repo?
>> > I have a "maven-xyz-plugin-1.0.jar" .
>> >
>> > Fredy
>> >
>>
>>
>> -
>> 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: newbie failed to create a Maven 2 project

2007-01-31 Thread Guofeng Zhang
There is no POM when I run 'mvn archetype:create. As describes in the
Get Started, mvn will create one for me. So I can not understand your
recommendation in your mail.

But I found that if I use the following command:
mvn -X -s D:\core-work\maven-2.0.4\conf\settings.xml archetype:create
-DgroupId=com.mycompany.app -DartifactId=my-app
that is, use the default settings.xml, the project is created
successfully, and I could compile and run the generated application.

Is the '-s' option a must for my case?

I think I should read some document. I just download Better Builds with
Maven

Thanks for your kind reply.

Guofeng


-Original Message-
From: Siegmann Daniel, NY [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 10:53 PM
To: 'Maven Users List'
Subject: RE: newbie failed to create a Maven 2 project

I don't think there is any such tag as "active". Though there is
"activation" under profile. There isn't really any need for you to have
a
profile tag to begin with, so I'd remove that whole section

The full Maven2 POM reference is here:
http://maven.apache.org/ref/2.0.4/maven-model/maven.html

I recommend you start with your POM as simple as possible. You can add
more
later once you have the project compiling and testing successfully.

--
Daniel Siegmann
FJA-US, Inc.
512 Seventh Ave., New York, NY  10018
(212) 840-2618 ext. 139

-Original Message-
From: Guofeng Zhang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 9:36 AM
To: users@maven.apache.org
Subject: newbie failed to create a Maven 2 project

Hi,

 

I am new to maven 2.

 

I download maven and following Maven in 5 Minutes to create a project

 mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

but I got the following error message:

Error reading settings.xml: Unrecognised tag: 'active' (position:
START_TAG seen

 ...\r\n  ... @5:15)

  Line:   5

  Column: 15

 

How to solve it?  I use JDK 1.5_03, Maven 2.0.4

 

Thanks

 


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



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



Re: How to use maven2 to share the various project document for each member of the project on the site?

2007-01-31 Thread Wendy Smoak

On 1/31/07, 秋秋 <[EMAIL PROTECTED]> wrote:


 I want to know how to use maven2 to share the various project document
for each member of the project  on the site?There are lots of various
document,where the doc shoud be place in the project's directory?


What kind of documentation?

Anything you put under src/site/resources will get copied over into
the website, so if you have images, Word docs, etc., you can put them
there.

If you're writing docs in apt or xdoc format, put them in src/site/apt
or src/site/xdoc, and Maven will transform them into HTML for the
website.

http://maven.apache.org/guides/mini/guide-site.html

--
Wendy

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



How to use maven2 to share the various project document for each member of the project on the site?

2007-01-31 Thread 秋秋

Hi,
I want to know how to use maven2 to share the various project document
for each member of the project  on the site?There are lots of various
document,where the doc shoud be place in the project's directory?


thanks

sam


Re: Execution order in pre-integration-test phase for Cargo/Antrun

2007-01-31 Thread Wendy Smoak

On 1/31/07, Crossley, Jim <[EMAIL PROTECTED]> wrote:


Yes.  As you can see from the snippet below, I have the executions
defined.  My problem is that I need the 'serverconfig' execution to
occur *after* 'install-container' but *before* 'start-container'.  Since
all three are bound to the same phase, the order is determined (it
seems) by their declaration order in the POM.  How do I achieve the
order I need?


AFAIK, plugin execution order within a phase is not guaranteed with Maven 2.0.4.

Try shifting the execution that must run first to an earlier phase.

--
Wendy

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



Re: [m2] using 3rdParty PlugIn

2007-01-31 Thread Maria Odea Ching

Hi Christian,

I tried doing what you did (I also used the same hibernate jar), and 
when I checked my local repo,

the custom pom was installed along with the jar file.

Btw, what was in your custom pom?
Mine was:


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.hibernate
 hibernate
 jar
 Hibernate
 3.2.2.ga



Thanks,
Deng


Christian Cabanero wrote:


Hi Guys

I've used mvn install:install-file in the past and usually it works great
but

I'm trying to now use it while using a custom pom for the 3rd party jar
(hibernate 3.2.2.ga since it's not in the repository yet).  I'm following
the instructions in:

http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html 



and I'm running this:

$> mvn install:install-file -Dfile=hibernate-3.2.2.ga.jar -DgroupId=
org.hibernate -DartifactId=hibernate -Dversion=3.2.2.ga -Dpackaging=jar
-DpomFile=hibernate-3.2.2.ga.pom

It's installing the jar file in my local repository but it's not 
installing
the custom pom file, hibernate-3.2.2.ga.pom.  The pom file is there in 
the

directory and is formatted correctly.

Any ideas why this isn't working?

Thanks,
Christian

On 1/31/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:



Hi Fredy,

You can use the install:install-file goal of the maven-install-plugin to
do this.
For more details, please refer to
http://maven.apache.org/plugins/maven-install-plugin/index.html (see
Generic Pom Example) <
http://maven.apache.org/plugins/maven-install-plugin/>

Hope this helps! :-)

Thanks,
Deng

SoftwareEngineering Hauschel wrote:

> Hi all,
> how can I deploy a 3rdPartyPlugIn in my Repo?
> I have a "maven-xyz-plugin-1.0.jar" .
>
> Fredy
>


-
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] using 3rdParty PlugIn

2007-01-31 Thread Christian Cabanero

Hi Guys

I've used mvn install:install-file in the past and usually it works great
but

I'm trying to now use it while using a custom pom for the 3rd party jar
(hibernate 3.2.2.ga since it's not in the repository yet).  I'm following
the instructions in:

http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html

and I'm running this:

$> mvn install:install-file -Dfile=hibernate-3.2.2.ga.jar -DgroupId=
org.hibernate -DartifactId=hibernate -Dversion=3.2.2.ga -Dpackaging=jar
-DpomFile=hibernate-3.2.2.ga.pom

It's installing the jar file in my local repository but it's not installing
the custom pom file, hibernate-3.2.2.ga.pom.  The pom file is there in the
directory and is formatted correctly.

Any ideas why this isn't working?

Thanks,
Christian

On 1/31/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:


Hi Fredy,

You can use the install:install-file goal of the maven-install-plugin to
do this.
For more details, please refer to
http://maven.apache.org/plugins/maven-install-plugin/index.html (see
Generic Pom Example) <
http://maven.apache.org/plugins/maven-install-plugin/>

Hope this helps! :-)

Thanks,
Deng

SoftwareEngineering Hauschel wrote:

> Hi all,
> how can I deploy a 3rdPartyPlugIn in my Repo?
> I have a "maven-xyz-plugin-1.0.jar" .
>
> Fredy
>


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




Re: JAXB 2.0-SNAPSHOT with exec Maven plugin

2007-01-31 Thread Aleksei Valikov

Hi.


I am facing a strange error when using JAXB 2.0-SNAPSHOT with exec Maven
plugin, please see


Why don't you simply use maven-jaxb2-plugin?

https://maven-jaxb2-plugin.dev.java.net/

Bye.
/lexi

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



[pmd:pmd] How to include src/test/java in pmd checking?

2007-01-31 Thread Barrie Treloar

It looks like pmd:pmd is not checking src/test/java and that there is
no way to configure the plugin to do so.

Am I missing something?

(We noticed this when we added the pmd eclipse plugin and our unit
tests started failing the junit ruleset)

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



rar project dependency

2007-01-31 Thread Michal Hlavac
Hello,

I created connector (rar) project. Building works ok (rar is created).

4.0.0

projectId
search
1.0-SNAPSHOT

lucenar
rar
search-lucene-connector
http://maven.apache.org
...


Problem is when I need dependency in another project to this rar project. It 
looks like classes are not on classpath.
...

projectId
lucenar
rar

...

thanks, miso


smime.p7s
Description: S/MIME cryptographic signature


compile tries to bundle up the ear - should it?

2007-01-31 Thread EJ Ciramella
I'm running just compile but one module that has an ear artifact is
trying to bundle up the ear file (which subsequently fails because the
war and ejbs don't exist).  
 
Is this supposed to happen or is this something I've misconfigured:

[INFO]



[INFO] Building ltyApp_ear

[INFO]task-segment: [compile]

[INFO]



Downloading:
file:\\build.corp.upromise.com/maven2/lty/upErrorEJB/1.0-SNAPSHOT/upErro
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/salesscriptEJB/1.0-SNAPSHOT/sa
lesscriptEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transferEJB/1.0-SNAPSHOT/trans
ferEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/transactionEJB/1.0-SNAPSHOT/tr
ansactionEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/CSREJB/1.0-SNAPSHOT/CSREJB-1.0
-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/upAdminEJB/1.0-SNAPSHOT/upAdmi
nEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/inboundenrollmentEJB/1.0-SNAPS
HOT/inboundenrollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/authserverEJB/1.0-SNAPSHOT/aut
hserverEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/communityEJB/1.0-SNAPSHOT/comm
unityEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/accountGuestEJB/1.0-SNAPSHOT/a
ccountGuestEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/testcellEJB/1.0-SNAPSHOT/testc
ellEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/enrollmentEJB/1.0-SNAPSHOT/enr
ollmentEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/partnerEJB/1.0-SNAPSHOT/partne
rEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/groceryEJB/1.0-SNAPSHOT/grocer
yEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/messageEJB/1.0-SNAPSHOT/messag
eEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/memberProfileEJB/1.0-SNAPSHOT/
memberProfileEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/ltyWebApp/1.0-SNAPSHOT/ltyWebA
pp-1.0-SNAPSHOT.war

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

Downloading:
file:\\build.corp.upromise.com/maven2/lty/withdrawalEJB/1.0-SNAPSHOT/wit
hdrawalEJB-1.0-SNAPSHOT.jar

[WARNING] Unable to get resource from repository central
(file:\\build.corp.upromise.com/maven2)

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Failed to resolve artifact.

 

 

 

 

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



lty

ltyApp

1.0-SNAPSHOT



EAR

ear

ltyApp_ear

http://www.upromise.com

1.0-SNAPSHOT

   

Re: Dynamic dependencies

2007-01-31 Thread Tom Huybrechts

you can just add a  element to the plugin's configuration
to override the original dependency

On 1/31/07, Jochen Wiedmann <[EMAIL PROTECTED]> wrote:

Hi,

I have a plugin (maven-jaxme-plugin), which currently has a static
dependency on jaxme-0.5.2.jar. From time to time I add a bugfix to the
dependency, which I would like to use in the plugin. However, it isn't
very manageable to update the plugin anytime I update the dependency.
So I am thinking whether it is possible to make jaxme a dynamic
dependency. For example, I might check a special configuration
parameter "version". If that parameter is present, then I'd use the
given version, otherwise I'd use the preconfigured 0.5.2. Does someone
have an example how this can be done?

Thanks,

Jochen

--
How fast can a year go? As fast as your childs first year.

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




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



How to get maven2 java2wsdl plugin to work

2007-01-31 Thread James

Regarding this plugin: 
http://ws.apache.org/axis2/tools/1_1/maven-plugins/maven-java2wsdl-plugin.html

I've tried everything to make this work.  I've tried manually installing 
version 1.1.1.  Nothing I do will resolve the following error message when I 
run the plugin:

java.lang.Exception: java.lang.ClassNotFoundException:
my.imaginary.Class

Here is the relevant config from my pom.xml


org.apache.axis2.maven2

axis2-java2wsdl-maven-plugin
1.1.1



java2wsdl





my.imaginary.Class



I've seen a few3 others have this issue but nobody ever replied.

Does this plugin actually work?

-James



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



Re: newbie failed to create a Maven 2 project

2007-01-31 Thread Ariel Isaac Romero Cartaya

I think I have a similar problem with maven, I'm newbie too, I  configured
my proxy settings in the settings.xml file, but maven does'nt retrieve the
plugins it needs I got this when I run this comand(I'm following the
tutorial to use maven with andromda in the andromda web site):

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retri
eved 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-archetype-plugin' does not
exi
st or no valid version could be found
[INFO]

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

[INFO] Total time: 1 second
[INFO] Finished at: Wed Jan 31 16:58:01 GMT-05:00 2007
[INFO] Final Memory: 1M/2M
[INFO]


I tried this put the settings.xml in other location for expenting an error
of kind "settings.xml file not located" but there is not any change, after
run the comand "C:\temp>mvn archetype:create -DgroupId=testapp
-DartifactId=testapp" I get the same error before displayed.
Could you help me please ???

Any help I'll thanks.

On 1/31/07, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>
wrote:


Also, save your settings.xml somewhere and delete it from your active
configuration directory.  Define everything in your POM.  This way, you
will see what is being done in the settings.xml, but you will be doing
this more actively than having the settings.xml do it for you.  Thanks.


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


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




Re: Plugin to create source distribution?

2007-01-31 Thread Arnaud Bailly
Dennis Lundberg <[EMAIL PROTECTED]> writes:

> If you just need the source files you can use the maven-source-plugin:
>
>   http://maven.apache.org/plugins/maven-source-plugin/
>
> -- 
> Dennis Lundberg
>

Assembly plugin:

http://maven.apache.org/plugins/maven-assembly-plugin/

-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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



Re: Plugin to create source distribution?

2007-01-31 Thread Dennis Lundberg

Phillip Rhodes wrote:


I would like to create a distribution of my project.  I would like the 
distribution to include sources, maven files, etc...  Extra credit for 
zip and gz support!


Can someone point me to a plugin that would come close to this 
functionality?


Thanks!
Phillip


If you just need the source files you can use the maven-source-plugin:

  http://maven.apache.org/plugins/maven-source-plugin/

--
Dennis Lundberg

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



RE: Maven-antrun-plugin regexp

2007-01-31 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)


Thanks Chris for your quick responses.

It worked when I moved the dependencies inside the  section
like,

  
   
 
   maven-antrun-plugin 
   
 
   install 
   
 

  
   
 
   
   
 run 
   
 
   
  
  
com.sun
tools
1.4.2
system
${java.home}/../lib/tools.jar
 
 
  ant
  ant-apache-regexp
  1.6.5
   
 
jakarta-regexp
jakarta-regexp
1.4

 
 
   
  

Thanks
-Jagan

-Original Message-
From: Chris Hilton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 12:17 PM
To: Maven Users List
Subject: RE: Maven-antrun-plugin regexp

The only other thing I can think of is that the following issue may be
affecting you:

http://jira.codehaus.org/browse/MANTRUN-49 

> -Original Message-
> From: Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. 
> at Cisco) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 31 January, 2007 14:08
> To: Maven Users List
> Subject: RE: Maven-antrun-plugin regexp
> 
> 
> That didn't work. I think somehow the classpath is not getting passed 
> to the ant script.
> 
> Even  is failing
> 
> 
> 
> 
> 
> Embedded error: The following error occurred while executing this 
> line:
> C:\MavenProject\ant-test\build.xml:19: Unable to find a javac 
> compiler; com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
> 
> Any idea?
> 
> 
> 
> -Original Message-
> From: Chris Hilton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 31, 2007 12:01 PM
> To: Maven Users List
> Subject: RE: Maven-antrun-plugin regexp
> 
> You probably want the classpathref to be maven.plugin.classpath. 
> 
> > -Original Message-
> > From: Jagan Padmanabha Pillai -X (jpadmana - Insight
> Solutions, Inc. 
> > at Cisco) [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 31 January, 2007 13:53
> > To: Maven Users List
> > Subject: RE: Maven-antrun-plugin regexp
> > 
> > 
> > Hi Chris,
> > 
> > That didn't work .. Here is my pom and build.xml. Could you please 
> > check it out and see if any issues.
> > Thanks for your help
> > 
> > Pom.xml
> >  
> >   4.0.0
> >   com.cisco.nm.glue
> >   ant-test
> >   1.0
> >   pom
> >   Project POM for Ant Testing
> >   
> >
> >  
> >maven-antrun-plugin 
> >
> >  
> >install 
> >
> >  
> > > value="org.apache.tools.ant.util.regexp.JakartaRegexpRegexp"/>
> >
> > > inheritRefs="true"> 
> >   
> >
> >  
> >
> >
> >  run 
> >
> >  
> >
> >  
> >
> >   
> >   
> > 
> >   ant
> >   ant-apache-regexp
> >   1.6.5
> > 
> > 
> >   jakarta-regexp
> >   jakarta-regexp
> >   1.4
> > 
> >   
> > 
> > 
> > 
> > Build.xml
> > 
> > 
> > 
> > 
> >   
> > ECHO MESSAGE - ${version}  
> > 
> > 
> > 
> >
> >  > classpathref="maven.compile.classpath"/>
> > 
> >
> > 
> > 
> > Thanks
> > -Jagan
> > 
> > 
> > -Original Message-
> > From: Chris Hilton [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 31, 2007 11:39 AM
> > To: Maven Users List
> > Subject: RE: Maven-antrun-plugin regexp
> > 
> > Here's the dependencies we use for regexp in antrun:
> > 
> >   
> > ant
> > ant-apache-regexp
> > 1.6.5
> >   
> >   
> > jakarta-regexp
> > jakarta-regexp
> > 1.4
> >   
> > 
> > We also have this is in the plugin configuration:
> > 
> >  > value="org.apache.tools.ant.util.regexp.JakartaRegexpRegexp"/>
> > 
> > Though I'm not sure it's actually necessary.
> > 
> > Chris
> > 
> > > -Original Message-
> > > From: Jagan Padmanabha Pillai -X (jpadmana - Insight
> > Solutions, Inc. 
> > > at Cisco) [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, 31 January, 2007 13:34
> > > To: users@maven.apache.org
> > > Subject: Maven-antrun-plugin regexp
> > > 
> > >  
> > > I am having some issues with maven-antrun-plugin when
> using  > > type="regexp"> The error message says, No supported regular
> > expression
> > 
> > > matcher found
> > >  
> > > I am using JDK1.5, Maven2 and also tried adding lot of
> dependencies
> > > like ant-apache-regexp, ant-jakarta-regexp, ant-jakarta-oro, 
> > > ant-nodeps.
> > >  
> > > But nothing worked. Any idea how to solve this.
> > >  
> > > Thanks
> > >  
> > >  
> > > 
> > 
> > 
> -
> > To unsubscrib

Dynamic dependencies

2007-01-31 Thread Jochen Wiedmann

Hi,

I have a plugin (maven-jaxme-plugin), which currently has a static
dependency on jaxme-0.5.2.jar. From time to time I add a bugfix to the
dependency, which I would like to use in the plugin. However, it isn't
very manageable to update the plugin anytime I update the dependency.
So I am thinking whether it is possible to make jaxme a dynamic
dependency. For example, I might check a special configuration
parameter "version". If that parameter is present, then I'd use the
given version, otherwise I'd use the preconfigured 0.5.2. Does someone
have an example how this can be done?

Thanks,

Jochen

--
How fast can a year go? As fast as your childs first year.

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



RE: Maven-antrun-plugin regexp

2007-01-31 Thread Chris Hilton
The only other thing I can think of is that the following issue may be
affecting you:

http://jira.codehaus.org/browse/MANTRUN-49 

> -Original Message-
> From: Jagan Padmanabha Pillai -X (jpadmana - Insight 
> Solutions, Inc. at Cisco) [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 31 January, 2007 14:08
> To: Maven Users List
> Subject: RE: Maven-antrun-plugin regexp
> 
> 
> That didn't work. I think somehow the classpath is not 
> getting passed to the ant script.
> 
> Even  is failing
> 
> 
> 
>  
> 
> Embedded error: The following error occurred while executing 
> this line:
> C:\MavenProject\ant-test\build.xml:19: Unable to find a javac 
> compiler; com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
> 
> Any idea?
> 
> 
> 
> -Original Message-
> From: Chris Hilton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 31, 2007 12:01 PM
> To: Maven Users List
> Subject: RE: Maven-antrun-plugin regexp
> 
> You probably want the classpathref to be maven.plugin.classpath. 
> 
> > -Original Message-
> > From: Jagan Padmanabha Pillai -X (jpadmana - Insight 
> Solutions, Inc. 
> > at Cisco) [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 31 January, 2007 13:53
> > To: Maven Users List
> > Subject: RE: Maven-antrun-plugin regexp
> > 
> > 
> > Hi Chris,
> > 
> > That didn't work .. Here is my pom and build.xml. Could you please 
> > check it out and see if any issues.
> > Thanks for your help
> > 
> > Pom.xml
> >  
> >   4.0.0
> >   com.cisco.nm.glue
> >   ant-test
> >   1.0
> >   pom
> >   Project POM for Ant Testing
> >   
> >
> >  
> >maven-antrun-plugin 
> >
> >  
> >install 
> >
> >  
> > > value="org.apache.tools.ant.util.regexp.JakartaRegexpRegexp"/>
> >
> > > inheritRefs="true"> 
> >   
> >
> >  
> >
> >
> >  run 
> >
> >  
> >
> >  
> >
> >   
> >   
> > 
> >   ant
> >   ant-apache-regexp
> >   1.6.5
> > 
> > 
> >   jakarta-regexp
> >   jakarta-regexp
> >   1.4
> > 
> >   
> > 
> > 
> > 
> > Build.xml
> > 
> > 
> > 
> > 
> >   
> > ECHO MESSAGE - ${version}  
> > 
> > 
> > 
> >
> >  > classpathref="maven.compile.classpath"/>
> > 
> >
> > 
> > 
> > Thanks
> > -Jagan
> > 
> > 
> > -Original Message-
> > From: Chris Hilton [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 31, 2007 11:39 AM
> > To: Maven Users List
> > Subject: RE: Maven-antrun-plugin regexp
> > 
> > Here's the dependencies we use for regexp in antrun:
> > 
> >   
> > ant
> > ant-apache-regexp
> > 1.6.5
> >   
> >   
> > jakarta-regexp
> > jakarta-regexp
> > 1.4
> >   
> > 
> > We also have this is in the plugin configuration:
> > 
> >  > value="org.apache.tools.ant.util.regexp.JakartaRegexpRegexp"/>
> > 
> > Though I'm not sure it's actually necessary.
> > 
> > Chris
> > 
> > > -Original Message-
> > > From: Jagan Padmanabha Pillai -X (jpadmana - Insight
> > Solutions, Inc. 
> > > at Cisco) [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, 31 January, 2007 13:34
> > > To: users@maven.apache.org
> > > Subject: Maven-antrun-plugin regexp
> > > 
> > >  
> > > I am having some issues with maven-antrun-plugin when 
> using  > > type="regexp"> The error message says, No supported regular
> > expression
> > 
> > > matcher found
> > >  
> > > I am using JDK1.5, Maven2 and also tried adding lot of 
> dependencies 
> > > like ant-apache-regexp, ant-jakarta-regexp, ant-jakarta-oro, 
> > > ant-nodeps.
> > >  
> > > But nothing worked. Any idea how to solve this.
> > >  
> > > Thanks
> > >  
> > >  
> > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> 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: Maven-antrun-plugin regexp

2007-01-31 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)

That didn't work. I think somehow the classpath is not getting passed to
the ant script.

Even  is failing



 

Embedded error: The following error occurred while executing this line:
C:\MavenProject\ant-test\build.xml:19: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

Any idea?



-Original Message-
From: Chris Hilton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 12:01 PM
To: Maven Users List
Subject: RE: Maven-antrun-plugin regexp

You probably want the classpathref to be maven.plugin.classpath. 

> -Original Message-
> From: Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. 
> at Cisco) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 31 January, 2007 13:53
> To: Maven Users List
> Subject: RE: Maven-antrun-plugin regexp
> 
> 
> Hi Chris,
> 
> That didn't work .. Here is my pom and build.xml. Could you please 
> check it out and see if any issues.
> Thanks for your help
> 
> Pom.xml
>  
>   4.0.0
>   com.cisco.nm.glue
>   ant-test
>   1.0
>   pom
>   Project POM for Ant Testing
>   
>
>  
>maven-antrun-plugin 
>
>
>  install 
>  
>
>   value="org.apache.tools.ant.util.regexp.JakartaRegexpRegexp"/>
>  
>   inheritRefs="true"> 
> 
>  
>
>  
>  
>run 
>  
>
>
>  
>
>   
>   
> 
>   ant
>   ant-apache-regexp
>   1.6.5
> 
> 
>   jakarta-regexp
>   jakarta-regexp
>   1.4
> 
>   
> 
> 
> 
> Build.xml
> 
> 
> 
> 
>   
> ECHO MESSAGE - ${version}  
> 
> 
> 
>
>  classpathref="maven.compile.classpath"/>
> 
>  
> 
> 
> Thanks
> -Jagan
> 
> 
> -Original Message-
> From: Chris Hilton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 31, 2007 11:39 AM
> To: Maven Users List
> Subject: RE: Maven-antrun-plugin regexp
> 
> Here's the dependencies we use for regexp in antrun:
> 
>   
> ant
> ant-apache-regexp
> 1.6.5
>   
>   
> jakarta-regexp
> jakarta-regexp
> 1.4
>   
> 
> We also have this is in the plugin configuration:
> 
>  value="org.apache.tools.ant.util.regexp.JakartaRegexpRegexp"/>
> 
> Though I'm not sure it's actually necessary.
> 
> Chris
> 
> > -Original Message-
> > From: Jagan Padmanabha Pillai -X (jpadmana - Insight 
> Solutions, Inc. 
> > at Cisco) [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 31 January, 2007 13:34
> > To: users@maven.apache.org
> > Subject: Maven-antrun-plugin regexp
> > 
> >  
> > I am having some issues with maven-antrun-plugin when using  > type="regexp"> The error message says, No supported regular 
> expression
> 
> > matcher found
> >  
> > I am using JDK1.5, Maven2 and also tried adding lot of dependencies 
> > like ant-apache-regexp, ant-jakarta-regexp, ant-jakarta-oro, 
> > ant-nodeps.
> >  
> > But nothing worked. Any idea how to solve this.
> >  
> > Thanks
> >  
> >  
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
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: Maven-antrun-plugin regexp

2007-01-31 Thread Chris Hilton
You probably want the classpathref to be maven.plugin.classpath. 

> -Original Message-
> From: Jagan Padmanabha Pillai -X (jpadmana - Insight 
> Solutions, Inc. at Cisco) [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 31 January, 2007 13:53
> To: Maven Users List
> Subject: RE: Maven-antrun-plugin regexp
> 
> 
> Hi Chris,
> 
> That didn't work .. Here is my pom and build.xml. Could you 
> please check it out and see if any issues.
> Thanks for your help
> 
> Pom.xml
> 
> 
>   4.0.0
>   com.cisco.nm.glue
>   ant-test
>   1.0
>   pom
>   Project POM for Ant Testing
>   
>
>  
>maven-antrun-plugin 
>
>
>  install 
>  
>
>   value="org.apache.tools.ant.util.regexp.JakartaRegexpRegexp"/>
>  
>   inheritRefs="true"> 
> 
>  
>
>  
>  
>run 
>  
>
>
>  
>
>   
>   
> 
>   ant
>   ant-apache-regexp
>   1.6.5
> 
> 
>   jakarta-regexp
>   jakarta-regexp
>   1.4
> 
>   
>  
> 
> 
> Build.xml
> 
> 
> 
> 
>   
> ECHO MESSAGE - ${version}  
> 
> 
> 
>
>  classpathref="maven.compile.classpath"/>
> 
>  
> 
> 
> Thanks
> -Jagan
> 
> 
> -Original Message-
> From: Chris Hilton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 31, 2007 11:39 AM
> To: Maven Users List
> Subject: RE: Maven-antrun-plugin regexp
> 
> Here's the dependencies we use for regexp in antrun:
> 
>   
> ant
> ant-apache-regexp
> 1.6.5
>   
>   
> jakarta-regexp
> jakarta-regexp
> 1.4
>   
> 
> We also have this is in the plugin configuration:
> 
>  value="org.apache.tools.ant.util.regexp.JakartaRegexpRegexp"/>
> 
> Though I'm not sure it's actually necessary.
> 
> Chris
> 
> > -Original Message-
> > From: Jagan Padmanabha Pillai -X (jpadmana - Insight 
> Solutions, Inc. 
> > at Cisco) [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 31 January, 2007 13:34
> > To: users@maven.apache.org
> > Subject: Maven-antrun-plugin regexp
> > 
> >  
> > I am having some issues with maven-antrun-plugin when using  > type="regexp"> The error message says, No supported regular 
> expression
> 
> > matcher found
> >  
> > I am using JDK1.5, Maven2 and also tried adding lot of dependencies 
> > like ant-apache-regexp, ant-jakarta-regexp, ant-jakarta-oro, 
> > ant-nodeps.
> >  
> > But nothing worked. Any idea how to solve this.
> >  
> > Thanks
> >  
> >  
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: Skipping Tests but Still Compiling

2007-01-31 Thread Jonathan Anstey

http://www.mail-archive.com/users@maven.apache.org/

Kevan Dunsmore wrote:

Can you point me to the mechanism you use to search the archives?

Thanks,
Kevan.


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 10:42 PM

To: Maven Users List
Subject: Re: Skipping Tests but Still Compiling

This "compile tests but don't run" issue was covered just 2 weeks
ago... Please search the archive before posting next time.

from  jp4 <[EMAIL PROTECTED]>
to  users@maven.apache.org
date  Jan 15, 2007 11:34 AM
subject  Can you compile test cases without running them

Wayne

On 1/30/07, Bashar Abdul Jawad <[EMAIL PROTECTED]> wrote:
  

Try to add the compile plugin if it isn't there already:

   



org.apache.maven.plugins
  

maven-compiler-plugin
   

Bashar


-Original Message-
From: Mark Hewett [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 4:13 PM
To: Maven Users List
Subject: Re: Skipping Tests but Still Compiling

On 1/30/07, Bashar Abdul Jawad <[EMAIL PROTECTED]> wrote:


That is not true. Maven will still compile the test classes, but
  

only if
  

they have changed since the last compilation. To force maven to
  

compile
  

even


if there were no changes run a clean first.

Bashar

  

Doesn't seem to for me...



mvn -Dmaven.test.skip=true clean install
  


[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.


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


This e-mail message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential and privileged information 
that is protected from disclosure. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message and any attachments.


-
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: Maven-antrun-plugin regexp

2007-01-31 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)

Hi Chris,

That didn't work .. Here is my pom and build.xml. Could you please check
it out and see if any issues.
Thanks for your help

Pom.xml


  4.0.0
  com.cisco.nm.glue
  ant-test
  1.0
  pom
  Project POM for Ant Testing
  
   
 
   maven-antrun-plugin 
   
 
   install 
   
 
   
   

  
   
 
   
   
 run 
   
 
   
 
   
  
  

  ant
  ant-apache-regexp
  1.6.5


  jakarta-regexp
  jakarta-regexp
  1.4

  
 


Build.xml




  
ECHO MESSAGE - ${version}  



   


   


Thanks
-Jagan


-Original Message-
From: Chris Hilton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 11:39 AM
To: Maven Users List
Subject: RE: Maven-antrun-plugin regexp

Here's the dependencies we use for regexp in antrun:

  
ant
ant-apache-regexp
1.6.5
  
  
jakarta-regexp
jakarta-regexp
1.4
  

We also have this is in the plugin configuration:



Though I'm not sure it's actually necessary.

Chris

> -Original Message-
> From: Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. 
> at Cisco) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 31 January, 2007 13:34
> To: users@maven.apache.org
> Subject: Maven-antrun-plugin regexp
> 
>  
> I am having some issues with maven-antrun-plugin when using  type="regexp"> The error message says, No supported regular expression

> matcher found
>  
> I am using JDK1.5, Maven2 and also tried adding lot of dependencies 
> like ant-apache-regexp, ant-jakarta-regexp, ant-jakarta-oro, 
> ant-nodeps.
>  
> But nothing worked. Any idea how to solve this.
>  
> Thanks
>  
>  
> 

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

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



RE: Skipping Tests but Still Compiling

2007-01-31 Thread Kevan Dunsmore
Can you point me to the mechanism you use to search the archives?

Thanks,
Kevan.


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 10:42 PM
To: Maven Users List
Subject: Re: Skipping Tests but Still Compiling

This "compile tests but don't run" issue was covered just 2 weeks
ago... Please search the archive before posting next time.

from  jp4 <[EMAIL PROTECTED]>
to  users@maven.apache.org
date  Jan 15, 2007 11:34 AM
subject  Can you compile test cases without running them

Wayne

On 1/30/07, Bashar Abdul Jawad <[EMAIL PROTECTED]> wrote:
> Try to add the compile plugin if it isn't there already:
>
>
>
org.apache.maven.plugins
>
> maven-compiler-plugin
>
>
> Bashar
>
>
> -Original Message-
> From: Mark Hewett [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 30, 2007 4:13 PM
> To: Maven Users List
> Subject: Re: Skipping Tests but Still Compiling
>
> On 1/30/07, Bashar Abdul Jawad <[EMAIL PROTECTED]> wrote:
> > That is not true. Maven will still compile the test classes, but
only if
> > they have changed since the last compilation. To force maven to
compile
> even
> > if there were no changes run a clean first.
> >
> > Bashar
> >
> Doesn't seem to for me...
>
> >mvn -Dmaven.test.skip=true clean install
> 
> [INFO] [compiler:testCompile]
> [INFO] Not compiling test sources
> [INFO] [surefire:test]
> [INFO] Tests are skipped.
> 
>
> -
> 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]


This e-mail message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential and privileged information 
that is protected from disclosure. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message and any attachments.


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



RE: Maven-antrun-plugin regexp

2007-01-31 Thread Chris Hilton
Here's the dependencies we use for regexp in antrun:

  
ant
ant-apache-regexp
1.6.5
  
  
jakarta-regexp
jakarta-regexp
1.4
  

We also have this is in the plugin configuration:



Though I'm not sure it's actually necessary.

Chris

> -Original Message-
> From: Jagan Padmanabha Pillai -X (jpadmana - Insight 
> Solutions, Inc. at Cisco) [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 31 January, 2007 13:34
> To: users@maven.apache.org
> Subject: Maven-antrun-plugin regexp
> 
>  
> I am having some issues with maven-antrun-plugin when using 
>  The error message says, No supported 
> regular expression matcher found
>  
> I am using JDK1.5, Maven2 and also tried adding lot of 
> dependencies like ant-apache-regexp, ant-jakarta-regexp, 
> ant-jakarta-oro, ant-nodeps.
>  
> But nothing worked. Any idea how to solve this.
>  
> Thanks
>  
>  
> 

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



Maven-antrun-plugin regexp

2007-01-31 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
 
I am having some issues with maven-antrun-plugin when using 
The error message says,
No supported regular expression matcher found
 
I am using JDK1.5, Maven2 and also tried adding lot of dependencies like
ant-apache-regexp, ant-jakarta-regexp, ant-jakarta-oro, ant-nodeps.
 
But nothing worked. Any idea how to solve this.
 
Thanks
 
 


Re: [M2] scope to include an internal dependency into a war artifact

2007-01-31 Thread Christian Goetze

Roberto UserList wrote:


Hi all! How can I configure scope tag, in order to, package one of the my
project's dependency artifact into the war artifact of my project?
Check it out! I'd like to include artifact "comp.jar" into the war 
artifact.

I've tried "compile" and "provided", but both of them did not work.
   
variglog
modellib
${versao.sis}
provided^
   
 

Thanks in advance for the help.


Try leaving out the scope altogether. "provided" means explicitly that 
you do not want it included, since it is provided by the environment, 
and compile means it is only relevant for that phase.

--
cg

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



[M2] scope to include an internal dependency into a war artifact

2007-01-31 Thread Roberto UserList

Hi all! How can I configure scope tag, in order to, package one of the my
project's dependency artifact into the war artifact of my project?
Check it out! I'd like to include artifact "comp.jar" into the war artifact.
I've tried "compile" and "provided", but both of them did not work.
   
variglog
modellib
${versao.sis}
provided^
   
 

Thanks in advance for the help.
Regards,
Roberto.


Re: JAXB 2.0-SNAPSHOT with exec Maven plugin

2007-01-31 Thread Jerome Lacoste

On 1/24/07, Michael Roepke <[EMAIL PROTECTED]> wrote:

Hi there,

I am facing a strange error when using JAXB 2.0-SNAPSHOT with exec Maven
plugin, please see

Caused by: java.lang.LinkageError: loader constraint violation: when
resolving field "DATETIME" the class loader (instance of
org/codehaus/mojo/exec/ExecJavaMoj
o$IsolatedClassLoader) of the referring class,
javax/xml/datatype/DatatypeConstants, and the class loader (instance of
) for the field's resolved ty
pe, javax/xml/namespace/QName, have different Class objects for that type
at
com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.(RuntimeBu
iltinLeafInfoImpl.java:186)

Why is does the class is loaded by two different classloaders?


Probably the same as http://jira.codehaus.org/browse/MEXEC-9


And is there a solution for that?


You should try using the exec plugin version 1.1-SNAPSHOT as it
doesn't use the IsolatedClassLoader anymore.

Cheers,

Jerome



Thanks for any help
Michael from Brasil

Here you see my dependency site

Project Dependencies
compile

The following is a list of compile dependencies for this project. These
dependencies are required to compile and run the application:
GroupId ArtifactId  Version Classifier  TypeOptional
commons-email   commons-email   20030310.165926 -   jar
javax.xml   saaj-api1.3 -   jar
javax.xml.bind  jaxb-api2.0 -   jar
jaxbjaxb-api2.0-SNAPSHOT-   jar
jaxbjaxb-impl   2.0-SNAPSHOT-   jar
junit   junit   4.0 -   jar
vtours  VtoursAxisWebserviceClientSabre 3.3.14FK-   jar
wsdl4j  wsdl4j  1.5.3   -   jar
Project Transitive Dependencies

The following is a list of transitive dependencies for this project.
Transitive dependencies are the dependencies of the project dependencies.
compile

The following is a list of compile dependencies for this project. These
dependencies are required to compile and run the application:
GroupId ArtifactId  Version Classifier  TypeOptional
ant ant 1.6.5   -   jar
ant ant-optional1.5.1   -   jar
antlr   antlr   2.7.5H3 -   jar
aopalliance aopalliance 1.0 -   jar
asm asm 1.5.3   -   jar
asm asm-attrs   1.5.3   -   jar
c3p0c3p00.9.1   -   jar
cglib   cglib   2.1_3   -   jar
commons-beanutils   commons-beanutils   1.7.0   -   jar
commons-beanutils   commons-beanutils-core  1.7.0   -   jar
commons-codec   commons-codec   1.3 -   jar
commons-collections commons-collections 2.1.1   -   jar
commons-configuration   commons-configuration   1.3 -   jar
commons-digestercommons-digester1.6 -   jar
commons-discovery   commons-discovery   20040218.194635 -   jar

commons-io  commons-io  1.2 -   jar
commons-jxpath  commons-jxpath  1.2 -   jar
commons-langcommons-lang2.0 -   jar
commons-logging commons-logging 1.0.3   -   jar
commons-logging commons-logging-api 1.0.4   -   jar
commons-validator   commons-validator   1.3.0   -   jar
directory-namingnaming-core 0.8 -   jar
dom4j   dom4j   1.6.1   -   jar
freemarker  freemarker  2.3.6   -   jar
httpunithttpunit1.6.1   -   jar
javax.activationactivation  1.1 -   jar
javax.mail  mail1.4 -   jar
javax.persistence   persistence-api 1.0 -   jar
javax.servlet   servlet-api 2.3 -   jar
javax.transaction   jta 1.0.1B  -   jar
javax.xml.bind  jsr173_api  1.0 -   jar
jaxbactivation  1.0.2   -   jar
jaxbjsr173_api  1.0 -   jar
jboss   javassist   3.0 -   jar
jboss   jboss-archive-browsing  5.0.0alpha-200607201-119-   jar

jboss   jboss-client4.0.2   -   jar
jboss   jboss-common4.0.2   -   jar
jboss   jboss-ejb3  3   -   jar
jboss   jboss-ejb3x 3x  -   jar
jdomjdomb9  -   jar
jta jta 0.0.1   -   jar
jtidy   jtidy   r8-21122004 -   jar
log4j   log4j   1.2.13  -   jar
nekohtmlnekohtml0.9.1   -   jar
net.sf.ehcache  ehcache 1.2 -   jar
ojdbc   ojdbc   14  -   jar
org.apache.axis axis1.3 -   jar
org.apache.axis axis-jaxrpc 1.2 -   jar
org.apache.axis axis-saaj   1.4 -   jar
org.hibernate   ejb3-persistence1.0 -   jar
org.hibernate   hibernate   3.2.0.ga-   jar
org.hibernate   hibernate-annotations   3.2.0.ga-   jar
org.hibernate   hibernate-entitymanager 3.2.0.ga-   jar
org.springframework spring-aop  2.0.1   -   jar
org.springframework spring-beans2.0.1   -   jar
org.springframework spring-context  2.0.1   -   jar
org.springframework spring-core 2.0.1   -   jar

RE: newbie failed to create a Maven 2 project

2007-01-31 Thread Morgovsky, Alexander \(US - Glen Mills\)
Also, save your settings.xml somewhere and delete it from your active
configuration directory.  Define everything in your POM.  This way, you
will see what is being done in the settings.xml, but you will be doing
this more actively than having the settings.xml do it for you.  Thanks. 


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


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


problem with maven

2007-01-31 Thread Ariel Isaac Romero Cartaya

Hi every body:

I'm following step by step the getting sarted with java(3.2) tutorial to use
andromeda in the sample aplication timetracker.
I install maven as the tutorial indicates but when I run the comand:

C:\temp>mvn archetype:create -DgroupId=testapp -DartifactId=testapp

I get the following message:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retri
eved 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-archetype-plugin' does not
exi
st or no valid version could be found
[INFO]

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

[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Jan 31 11:19:25 GMT-05:00 2007
[INFO] Final Memory: 1M/2M
[INFO]


Then I searched the "C:\Archivos de programa\Apache Software
Foundation\maven-2.0.4\conf\settings.xml" and configured the proxy settings
this was what I wrote:

optional
true
http
myUser
myPassword
proxy.myserver.com
3128
localhost


Those are my proxy settings, then I try again "C:\temp>mvn archetype:create
-DgroupId=testapp -DartifactId=testapp" like in the tutorial BUT I get the
same error. I don't know why because my internet connectivity is fine.

Could you help please ???
I'll thank your help to find this error.
Greetings.


Re: [M2] Siblilng dependencies not found when building a multi-module project

2007-01-31 Thread Jörg Schaible
Hi Rodrigo,

Rodrigo Ruiz wrote:

> Hi Wayne, thanks for your prompt response :-)
> 
> I have tried to create a simple testcase for my problem, and I have
> discovered that the problem is not where I thought it was :-P
> 
> The problem is not in the compilation step. The problem appears with
> 'mvn assembly:assembly', and I have found it in my project because the
> assemblies are created as part of the package phase:
> 
>  
>maven-assembly-plugin
>
>  
>make-assembly
>package
>
>  attached
>
>  
>
>
>  
>${basedir}/src/main/assembly/bin.xml
>${basedir}/src/main/assembly/src.xml
>  
>
>  
> 
> My intention with this configuration was to ensure that the assemblies
> are installed whenever I invoke "mvn install" or "mvn deploy".
> 
> Should I use a different phase for this?

Use goal "single", "attached" confuses multi-module builds.

- Jörg


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



Re: authorization denied

2007-01-31 Thread John J. Franey

Robert,
Thanks for the contribution.

Are you sure your answer matches my question?  The getting started page you
refer me to has a description of adding username and password in the use
case of deploying to an archiva repository.  My question involves the use
case of downloading artifacts from the archiva repository.

Thanks,
John


Robert Dale-2 wrote:
> 
> flyboy <[EMAIL PROTECTED]> wrote on 01/31/2007 09:08:15 AM:
> 
>> But backing up a moment, in the case where I use my own account, not the
>> guest accout, from where would maven get the username/password to send 
> to
>> archiva?  From the settings file?  If so, sorry, I am not finding it in 
> the
>> settings.xml guide.   I don't think proxy is for this purpose.  Does 
> maven
>> use the process id to get the user name?  If so, how does it get the
>> password?
> 
> http://maven.apache.org/archiva/guides/getting-started/maven-configuration.html
> 
> -- 
> Robert Dale
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/authorization-denied-tf3145308.html#a8733490
Sent from the archiva-users mailing list archive at Nabble.com.



Re: APT + site.xml + parent directory

2007-01-31 Thread Mykel Alvis

Can someone tell me how the link to the parent pom gets acquired?
All of my site paths are generated from properties that are over-ridden in
the child poms, and it appears that the url for my parent pom is also
over-ridden somehow.
I'm not sure exactly what I expect it to do, I just want to know where to
look for how the ref="parent" url is generated.
Thanks,
Mykel

On 1/15/07, Yann Le Du <[EMAIL PROTECTED]> wrote:


Hi Jan,

Just add to your site.xml :

  



Check the section "Including Generated Content" in
http://maven.apache.org/plugins/maven-site-plugin/howto.html

- Yann

2007/1/15, Jan-Oliver Wuelfing <[EMAIL PROTECTED]>:
>
> Hi all,
>
> is it possible to include a parent-link the to next upper index.html in
> the 'menu'- or 'module'-section in the site.xml?
> Or is there any other possibility to include automaticly?
>
> Cheers
>   Jan
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, "modern" ways.


Re: Setting up new project fails

2007-01-31 Thread Hilco Wijbenga

On 1/31/07, Minto van der Sluis <[EMAIL PROTECTED]> wrote:

adam20064


*I* promise not to tell anyone ... but you might want to change your
password anyway. ;-)


Seems like I am running out of options. Does anyone know how I can get my
projects into Continuum?


IIRC, you can upload POMs directly (from the local file system). That
would obviously mean manual labour whenever you make changes to the
POM...

I think the URL to your POM has to be an actual URL
(http://your.server.com/svn/pom.xml, e.g.) so something like scm:cvs
will not work. Setting up ViewCVS might help but you'd need anonymous
access, presumably.

I guess Maven and Continuum are not entirely in sync when it comes to SCM.

Cheers,
Hilco


Re: [M2] Siblilng dependencies not found when building a multi-module project

2007-01-31 Thread Rodrigo Ruiz
Hi Wayne, thanks for your prompt response :-)

I have tried to create a simple testcase for my problem, and I have
discovered that the problem is not where I thought it was :-P

The problem is not in the compilation step. The problem appears with
'mvn assembly:assembly', and I have found it in my project because the
assemblies are created as part of the package phase:

 
   maven-assembly-plugin
   
 
   make-assembly
   package
   
 attached
   
 
   
   
 
   ${basedir}/src/main/assembly/bin.xml
   ${basedir}/src/main/assembly/src.xml
 
   
 

My intention with this configuration was to ensure that the assemblies
are installed whenever I invoke "mvn install" or "mvn deploy".

Should I use a different phase for this?

Regards,
Rodrigo

Wayne Fay wrote:
> Assuming all your , , and  tags are
> properly defined, the reactor should be able to figure out the proper
> order to build your modules to avoid problems.
> 
> I'd suspect something is wrong in one (or more) of your pom files, as
> I have never seen this myself and I know there are numerous tests etc
> in the Maven2 code which were created to avoid these problems.
> 
> If you decide that you certainly have a bug and can demonstrate it
> with a few small files, please open a JIRA bug report and attach a zip
> with the pom.xml files etc.
> 
> Wayne
> 
> On 1/31/07, Rodrigo Ruiz <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I am working in a rather large multi-module project in which several
> modules depend on sibling and parent artifacts (within the same project).
> 
> Using Maven 2.0.4, if I try to compile / package / install / deploy the
> whole project with a clean local repository (e.g. the first time I do a
> checkout), the process fails at compile time because it does not find
> any installed artifact in the local repository.
> 
> Is this a reported bug? I haven't found any related JIRA report.
> 
> My guess is that the Maven dependency resolution system is not including
> the generated artifacts once they have been built. Is there any way to
> achieve this?
> 
> Even with "mvn install", it tries to compile all modules before
> packaging or installing them, thus failing when it finds the first
> module with "internal" dependencies.
> 
> Thanks in advance,
> Rodrigo Ruiz
> 
>>
-
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]


-- 
---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca[EMAIL PROTECTED]
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
---

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



Re: dependency of jar included in war?

2007-01-31 Thread Attila Ravai
Hi Siegfried,

What do you mean by "add the JAR as additional dependency" ?
I am new to maven, I am not sure what that means. I looked in the documentation 
and tried to google after it, but couldn't find any info.

thanks,
Atti

From: Siegfried Goeschl <[EMAIL PROTECTED]>
To: Maven Users List 
Subject: Re: dependency of jar included in war?

 Hi Atti,

currently a WAR does not participate in the dependency inheritance 
mechanism. What you could do since your WAR depends on a single JAR is 
to add the JAR as additional dependency.

This is of course a hack but not too ugly.

Cheers,

Siegfried Goeschl

Attila Ravai wrote:
> Hi,
> 
> I have a war file which has a dependency on my project, which is a jar. The 
> jar file itself has a lot of dependencies (like oracle classes.jar). When 
> building the war file, all I get in the web-inf/lib is what I specified in 
> the war dependency, which is myproject.jar. However the classes.jar it never 
> is added to the war, so when trying to load the app, I get an classnotfound 
> exception.
> 
> Is there a way to have the war include the jar files dependencies? I would 
> hate to duplicate the dependencies in the war pom. I cannot create a parent 
> module, as they are two different projects.
> 
> thanks
> Atti
> 
> 


 
-
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

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

2007-01-31 Thread Lukas Theussl
Read the readme.txt at 
http://people.apache.org/repo/m1-snapshot-repository/maven/distributions/


HTH,
-Lukas

Jon Strayer wrote:

On 10/12/06, Benoit Xhenseval <[EMAIL PROTECTED]> wrote:



Hi *,

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

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


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

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




I'm seeing the same error.  Is there a fix?



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



Re: dependency and os.arch os.name

2007-01-31 Thread Laurent GRANIE

Thanks! I'va already deal with profiles and I think this is the solution !
I just don't think about it...

Many thanks.

2007/1/31, Wayne Fay <[EMAIL PROTECTED]>:

Declare the dependencies inside a  which is activated when
 matches XYZ. As for the architecture, that does not yet exist in
Maven profiles/activation, so if you have a real requirement to deal
with multiple architectures, you'll need to hardcode it and specify
profiles like -Pwin32-intel on the command line when you run "mvn
compile" etc.

http://maven.apache.org/guides/introduction/introduction-to-profiles.html
http://maven.apache.org/ref/2.0.4/maven-profile/apidocs/org/apache/maven/profiles/Activation.html

Wayne

On 1/31/07, Laurent GRANIE <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I would like to devel an application that depends on JOGL (from
> http://jogl.dev.java.net). There is no repository for JOGL but I can
> create mine using mvn deploy:deploy-file.
>
> The problem is that JOGL provides several jar files depending on
> os.arch and os.name variables values. How can I create dependency
> declaration in my pom.xml?
> I try the following with no success :
>
>  jogl
>  jogl-native-${os.name}-${os.arch}
>  1.0
>
>
> org.apache.maven.reactor.MavenExecutionException: Failed to validate POM
> [...]
> Caused by: org.apache.maven.project.InvalidProjectModelException:
> Failed to validate POM
>
> I think this error is due to a space in the value of the os.name
> variable (ie. "Windows XP").
>
> If you take a look to the following jnlp files, you will notice that
> dependencies depend on arch and os :
> 
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp
> http://download.java.net/media/gluegen/webstart/gluegen-rt.jnlp
>
> Any suggestion to make the same with maven2?
>
> Thanks, Laurent.
>
> -
> 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: [M1.1 Oct Snapshot] cannot generate jar/site

2007-01-31 Thread Jon Strayer

On 10/12/06, Benoit Xhenseval <[EMAIL PROTECTED]> wrote:


Hi *,

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

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

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

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



I'm seeing the same error.  Is there a fix?


Re: jboss-maven-plugin

2007-01-31 Thread Arik Kfir

the  specifies the corresponding "" block in your
settings.xml file which should contain the username/password to login to the
machine where the jbosshome is located.

On 1/31/07, Wayne Fay <[EMAIL PROTECTED]> wrote:


I don't use jboss-m-p. However reading the error message, I would try
removing the default line from the config and try again.

Wayne

On 1/31/07, Vidya Mahavadi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use jboss-maven-plugin(maven2) from codehaus for
deployment
> in jboss 4.0. Here is my plugin configuration, can anyone please tell me
> what I am missing in here..
>
>
>org.codehaus.mojo
>jboss-maven-plugin
>
>c:/software/jboss-4.0.5.GA
>default
>localhost
>8080
>
>
> ${project.build.directory}\${project.build.finalName}.${
project.packaging}
>
>
>
>
>
> And here is the error trace.
>
> [INFO] [jboss:deploy]
> [INFO] Deploying
> C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar
> to JBoss.
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Mojo error occurred: Server not defined in settings.xml: default
>
>
> Thanks,
> Vidya
>
> This e-mail is subject to a disclaimer, available at
>
http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html
>
>
>

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




Re: plugin/dependencies question

2007-01-31 Thread Rebecca Searls

Here is the issue I am trying to resolve.


I am developing a plugin. (It runs only in phase
generate-sources.)   The underlaying code requires
knowledge of any user specified JAR files in order
to process java files.  The user specified dependencies
should be plugin specific.

To date I have been unable to accesss the plugin's dependency
artifacts within the mojo.  I have tried a variety of APIs
without success (see below).  I am using 2.0.4.  How do I do it.
(The corresponding POM is below code segment.)


** fails to list ALL project level dependencies (see POM below)
Set p = project.getArtifacts();
DefaultArtifact df = (DefaultArtifact)itl.next();
df.toString();
   output:
javax.xml.bind:jsr173_api:jar:1.0:compile

** lists plugins only
Set p = project.getPluginArtifacts();
DefaultArtifact df = (DefaultArtifact)itl.next();
df.toString();
   output:
 
com.sun.tools.jxc.maven2:maven-jaxb-schemagen-plugin:maven-plugin:RELEASE:runt
ime

** Lists project level dependencies only
Set p = project.getDependencyArtifacts();
DefaultArtifact df = (DefaultArtifact)itl.next();
df.toString();
   output:
javax.xml.bind:jsr173_api:jar:1.0:compile
jdk-rt:jar:0.0:system

** Lists incomplete set of project level artifacts
List p = project.getRuntimeClasspathElements();
((String)itl.next().toString()
   output:
/d3/bschemagen/target/classes

/d5/maven-2.0.4/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar

** No access to plugin level artifact.
List p = project.getBuildPlugins();
d = (org.apache.maven.model.Dependency)itl.next();
d.getDependencies();
d.toString();
   output:
{groupId=javax.activation, artifactId=activation, version=1.1, type=jar}


d.getSystemPath();
   output:
null





:

   

javax.xml.bind
jsr173_api
1.0


local.rt
jdk-rt
0.0
system
/d5/jdk1.5.0_06/jre/lib/rt.jar






com.sun.tools.jxc.maven2
maven-jaxb-schemagen-plugin


javax.activation
activation
1.1






 :






Rebecca Searls wrote:

What is the intended use of project/build/plugins/plugin/dependencies
as compared to project/dependencies?

One would assume project/build/plugins/plugin/dependencies
are plugin specific in scope; that project/dependencies are
active project wide in scope.

And one would expect that if project/dependencies are
accessable as artifacts then project/build/plugins/plugin/dependencies
would be accessable as artifacts by some means as well but
where or how?




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



Re: jboss-maven-plugin

2007-01-31 Thread Wayne Fay

I don't use jboss-m-p. However reading the error message, I would try
removing the default line from the config and try again.

Wayne

On 1/31/07, Vidya Mahavadi <[EMAIL PROTECTED]> wrote:

Hi,

I am trying to use jboss-maven-plugin(maven2) from codehaus for deployment
in jboss 4.0. Here is my plugin configuration, can anyone please tell me
what I am missing in here..

   
   org.codehaus.mojo
   jboss-maven-plugin
   
   c:/software/jboss-4.0.5.GA
   default
   localhost
   8080
   

${project.build.directory}\${project.build.finalName}.${project.packaging}
   

   
   

And here is the error trace.

[INFO] [jboss:deploy]
[INFO] Deploying
C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar
to JBoss.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Mojo error occurred: Server not defined in settings.xml: default


Thanks,
Vidya

This e-mail is subject to a disclaimer, available at
http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html





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



Re: dependency and os.arch os.name

2007-01-31 Thread Wayne Fay

Declare the dependencies inside a  which is activated when
 matches XYZ. As for the architecture, that does not yet exist in
Maven profiles/activation, so if you have a real requirement to deal
with multiple architectures, you'll need to hardcode it and specify
profiles like -Pwin32-intel on the command line when you run "mvn
compile" etc.

http://maven.apache.org/guides/introduction/introduction-to-profiles.html
http://maven.apache.org/ref/2.0.4/maven-profile/apidocs/org/apache/maven/profiles/Activation.html

Wayne

On 1/31/07, Laurent GRANIE <[EMAIL PROTECTED]> wrote:

Hi all,

I would like to devel an application that depends on JOGL (from
http://jogl.dev.java.net). There is no repository for JOGL but I can
create mine using mvn deploy:deploy-file.

The problem is that JOGL provides several jar files depending on
os.arch and os.name variables values. How can I create dependency
declaration in my pom.xml?
I try the following with no success :
   
 jogl
 jogl-native-${os.name}-${os.arch}
 1.0
   

org.apache.maven.reactor.MavenExecutionException: Failed to validate POM
[...]
Caused by: org.apache.maven.project.InvalidProjectModelException:
Failed to validate POM

I think this error is due to a space in the value of the os.name
variable (ie. "Windows XP").

If you take a look to the following jnlp files, you will notice that
dependencies depend on arch and os :
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp
http://download.java.net/media/gluegen/webstart/gluegen-rt.jnlp

Any suggestion to make the same with maven2?

Thanks, Laurent.

-
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] Siblilng dependencies not found when building a multi-module project

2007-01-31 Thread Wayne Fay

Assuming all your , , and  tags are
properly defined, the reactor should be able to figure out the proper
order to build your modules to avoid problems.

I'd suspect something is wrong in one (or more) of your pom files, as
I have never seen this myself and I know there are numerous tests etc
in the Maven2 code which were created to avoid these problems.

If you decide that you certainly have a bug and can demonstrate it
with a few small files, please open a JIRA bug report and attach a zip
with the pom.xml files etc.

Wayne

On 1/31/07, Rodrigo Ruiz <[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

I am working in a rather large multi-module project in which several
modules depend on sibling and parent artifacts (within the same project).

Using Maven 2.0.4, if I try to compile / package / install / deploy the
whole project with a clean local repository (e.g. the first time I do a
checkout), the process fails at compile time because it does not find
any installed artifact in the local repository.

Is this a reported bug? I haven't found any related JIRA report.

My guess is that the Maven dependency resolution system is not including
the generated artifacts once they have been built. Is there any way to
achieve this?

Even with "mvn install", it tries to compile all modules before
packaging or installing them, thus failing when it finds the first
module with "internal" dependencies.

Thanks in advance,
Rodrigo Ruiz

- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain
http://www.gridsystems.com/
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFwJoPp9m/F5UenDoRAqeiAJ4nRwI8/2QB2qipXobWAdxPWJt8iwCeMXOr
mnoHAh6oZIuEu1X0pTt+ICs=
=1Neo
-END PGP SIGNATURE-

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



Writing report plugin with multiple output pages

2007-01-31 Thread Bernd Stolle

Hi,

I'm trying to write a plugin that creates a report. This report will
consist of several pages that i want to integrate into the standard
Maven site layout.
Unfortunately all my attempts to create more than one file (using
AbstractMavenMultiPageReport in maven-reporting-impl; extending
maven-site-plugin) have failed and I can't find any documentation on
this.
Does anyone have some experience with this or can point me into the
right direction?

Thanks,

Bernd

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



RE: How to run maven with java class

2007-01-31 Thread Apu

Hi Jan,

Have you used the Embedder anytime? 
Seems like there are lots of issues related to it.
Basically, I am trying to make a web-interface executing basic maven tasks
like i have mentioned.

Would the MavenEmbedder be appropriate for this purpose.

Apu




Janecek Jan wrote:
> 
> Hi,
> 
> See http://maven.apache.org/guides/mini/guide-embedding-m2.html. It
> should help.
> 
> Jan 
> 
> -Original Message-
> From: Apu [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 31, 2007 2:17 PM
> To: users@maven.apache.org
> Subject: How to run maven with java class
> 
> 
> Hi,
> 
> I was curious if you could run maven tasks by executing a java class
> along with the arguments like install, compile from the command line?
> 
> Please Help!
> --
> View this message in context:
> http://www.nabble.com/How-to-run-maven-with-java-class-tf3148677s177.htm
> l#a8728776
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>  
>  
> Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat
> duverne informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
> Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho
> odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte.
> Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a
> sireni teto zpravy je v takovem pripade zakazana.
> Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym
> prenosem, moznou modifikaci ci zpozdenim teto zpravy behem prenosu od
> odesilatele k adresatovi.
> 
> 
> This e-mail transmission is intended solely for the ordinary user of the
> e-mail address to which it was addressed. It may contain legally
> privileged and/or confidential information. 
> If you have received this e-mail in error or are not an intended recipient
> please inform the sender with-out delay and delete this e-mail,
> attachments and possible copies immediately. The unauthorised use,
> disclosure, distribution and/or copying of this e-mail or any information
> it contains is prohibited. 
> Komercni banka, a. s., does not accept liability for any damage caused by
> incomplete transmission, possible modification or delay of this e-mail
> during the transmission from the sender to the recipient.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-run-maven-with-java-class-tf3148677s177.html#a873
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: provided dependency packaged into war

2007-01-31 Thread Ivan Strohner
Thanks for help.. it was my mistake. provided works also fine. I have quite a
complicated structure of projects and I was referencing wrong versions already
stored in local repository.

But the debug output confused me a bit..

On Wed, Jan 31, 2007 at 08:22:32AM +0100, [EMAIL PROTECTED] wrote:
> Hi
> 
> Don't use provided - Use :
> 
> true
> 
> 
> This will add an entry in the claspath section of the meta-inf.xml file, but 
> not add it to the web-inf/libdirectory
> 
> Hermod
> 
> -Original Message-
> From: Ivan Strohner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 30, 2007 6:15 PM
> To: users@maven.apache.org
> Subject: provided dependency packaged into war
> 
> 
> Hello,
> 
> I am packaging a war archive and list dependency in pom file:
>   
>   javax.servlet
>   jsp-api
>   2.0
>   provided
>   
> 
> the problem is that jsp-api-2.0.jar (and also servlet-api-2.4.jar) get
> packaged into WEB-INF/lib even though that they are always mentioned as
> provided dependencies.
> 
> Our project depends on multiple other our projects. One of them is another
> war, which gets merged into our war. Other are simple jars. jsp-api is
> mentioned as dependency in some of them, but always as "provided".
> 
> My intention is to package only our jars into WEB-INF/lib. I want to keep the
> third party ones in server lib. The primary project is called non_combustion.
> It depends on our cms_classes and cms_web projects and some others, such as
> dsutil_web. These depend on many other libraries, especially spring and
> related.
> 
> Rough structure:
> 
> non_combustion (war)
>   jsp-api (provided)
>   dsutil_web (jar) (compile)
> jsp-api (provided)
> ..
>   cms_web (war) (compile)
> depends on jsp-api (provided)
> cms_classes (jar) (compile)
>   ..
>   ..
> 
> I did proper clean and install of all these project into local repository.
> When I do mvn package -X on non_combustion I get a war file with jsp-api
> in WEB-INF/lib. However other libraries (such as spring) are not packaged
> (just as I wanted).
> 
> If I search the debug output for the package command for jsp-api I get the
> parts below. From them it is clear that jsp-api is everywhere mentioned as
> provided, but in the final step it is included in the WEB-INF/lib.
> 
> Could anyone help? Is this a bug? If some additional info is required I can
> send it (the log below is 180KB long). I am just starting with maven so I ask
> here first before submitting a bug report or other.
> 
> I am using maven 2.0.4 installed recently.
> 
> Thanks for any answers,
> Ivan
> 
> 
> ...
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [DEBUG] sk.digitalsystems:non_combustion:war:1.1.2.0-SNAPSHOT (selected for 
> null)
> [DEBUG] Skipping disabled repository central
> [DEBUG] perobs_spring: using locally installed snapshot
> [DEBUG]   sk.digitalsystems:perobs_spring:jar:1.1.4.0-SNAPSHOT:compile 
> (selected for compile)
> [DEBUG] Skipping disabled repository central
> [DEBUG] perobs: using locally installed snapshot
> [DEBUG] sk.digitalsystems:perobs:jar:1.1.9.0-SNAPSHOT:compile (selected 
> for compile)
> [DEBUG] Skipping disabled repository central
> [DEBUG] dsutil: using locally installed snapshot
> [DEBUG]   sk.digitalsystems:dsutil:jar:1.1.7.0-SNAPSHOT:compile (selected 
> for compile)
> [DEBUG] Skipping disabled repository central
> [DEBUG] cms_classes: using locally installed snapshot
> [DEBUG]   sk.digitalsystems:cms_classes:jar:1.1.0.0-SNAPSHOT:compile 
> (selected for compile)
> [DEBUG] Skipping disabled repository central
> [DEBUG] dsutil_web: using locally installed snapshot
> [DEBUG] sk.digitalsystems:dsutil_web:jar:1.1.2.0-SNAPSHOT:compile 
> (selected for compile)
> [DEBUG]   junit:junit:jar:3.8.1:test (selected for test)
> [DEBUG]   javax.servlet:jsp-api:jar:2.0:provided (selected for provided)
> [DEBUG] javax.servlet:servlet-api:jar:2.4:provided (selected for provided)
> [DEBUG] Skipping disabled repository central
> [DEBUG] cms: using locally installed snapshot
> [DEBUG]   sk.digitalsystems:cms:war:1.1.2.0-SNAPSHOT:compile (selected for 
> compile)
> [DEBUG] Retrieving parent-POM: org.acegisecurity:acegi-security-parent::1.0.3 
> for project: null:acegi-security:jar:1.0.3 from the repository.
> [DEBUG]   org.acegisecurity:acegi-security:jar:1.0.3:provided (selected for 
> provided)
> [DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for 
> project: null:spring-support:jar:1.2.8 from the repository.
> [DEBUG] org.springframework:spring-support:jar:1.2.8:provided (selected 
> for provided)
> [DEBUG] commons-codec:commons-codec:jar:1.3:provided (selected for 
> provided)
> [DEBUG] commons-logging:commons-logging:jar:1.0.4:provided (selected for 
> provided)
> [DEBUG] log4j:log4j:jar:1.2.9:provided (selected for provided)
> [DEBUG] comm

RE: newbie failed to create a Maven 2 project

2007-01-31 Thread Siegmann Daniel, NY
I don't think there is any such tag as "active". Though there is
"activation" under profile. There isn't really any need for you to have a
profile tag to begin with, so I'd remove that whole section

The full Maven2 POM reference is here:
http://maven.apache.org/ref/2.0.4/maven-model/maven.html

I recommend you start with your POM as simple as possible. You can add more
later once you have the project compiling and testing successfully.

--
Daniel Siegmann
FJA-US, Inc.
512 Seventh Ave., New York, NY  10018
(212) 840-2618 ext. 139

-Original Message-
From: Guofeng Zhang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 9:36 AM
To: users@maven.apache.org
Subject: newbie failed to create a Maven 2 project

Hi,

 

I am new to maven 2.

 

I download maven and following Maven in 5 Minutes to create a project

 mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

but I got the following error message:

Error reading settings.xml: Unrecognised tag: 'active' (position:
START_TAG seen

 ...\r\n  ... @5:15)

  Line:   5

  Column: 15

 

How to solve it?  I use JDK 1.5_03, Maven 2.0.4

 

Thanks

 


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



Parent pom file usage

2007-01-31 Thread jp4

I am looking for some advice on how to properly structure my build.  I have a
multi-project build with several layers of pom abstraction, the ultimate
parent being "maven-build" project.  The maven-build pom.xml resides in root
directory where all of my subprojects reside.  Currently,  the maven-build
project builds 5 modules, each of those modules building 1 or more modules. 
In addition, I have defined a dependencyManagement section, common plugins
like clover, javadoc, surefire, etc.  

The problem that I am having is when I add something new to the
dependencyManagement section of maven-build (i.e commons-logging-1.0.jar)
and to a project that uses that dependency my build fails because the
version is specificed in the project that uses it.  If I comment out the
modules in the maven-build pom.xml and do a clean install, the uncomment
them it works.  Basically what is happening is that the maven-build pom.xml
is not in the local repo until it has been build (and all modules are
built).

I am thinking that the best way to deal with this is to put a profile tag
around the modules section in the maven-build pom.xml file but I am not sure
if this is the best way to approach things.  It is kinda of a chicken and
egg scenario.  I want the power of inheriting dependencies from
dependencyManagement as well as plugin configurations, but I have to have a
better way to deal with updates to the maven-build pom.xml file.  Any
suggestions would be greatly appreciated.

Thanks,

jp4
-- 
View this message in context: 
http://www.nabble.com/Parent-pom-file-usage-tf3149151s177.html#a8730361
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: authorization denied

2007-01-31 Thread Robert Dale
flyboy <[EMAIL PROTECTED]> wrote on 01/31/2007 09:08:15 AM:

> But backing up a moment, in the case where I use my own account, not the
> guest accout, from where would maven get the username/password to send 
to
> archiva?  From the settings file?  If so, sorry, I am not finding it in 
the
> settings.xml guide.   I don't think proxy is for this purpose.  Does 
maven
> use the process id to get the user name?  If so, how does it get the
> password?

http://maven.apache.org/archiva/guides/getting-started/maven-configuration.html

-- 
Robert Dale



newbie failed to create a Maven 2 project

2007-01-31 Thread Guofeng Zhang
Hi,

 

I am new to maven 2.

 

I download maven and following Maven in 5 Minutes to create a project

 mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

but I got the following error message:

Error reading settings.xml: Unrecognised tag: 'active' (position:
START_TAG seen

 ...\r\n  ... @5:15)

  Line:   5

  Column: 15

 

How to solve it?  I use JDK 1.5_03, Maven 2.0.4

 

Thanks

 



Adding artifact links or files to web site

2007-01-31 Thread Jim Strawn \(jistrawn\)
Hello,
 
I am generating a web site for the artifacts that my maven build
creates. I have several .zip files (created by the assembly plugin) that
I would like to have accessible from the web site as downloads. I have
done a bit of searching and it looks like this was possible with M1
using the "downloads" report. Is there something similar using M2?
 
The other solution that I have toyed with is having a downloads
directory in main/site/resources (seems a bit hackish, as the artifacts
are not resources...)
 
Any thoughts (or docs) on how expose the artifacts on a web site?
 
Thanks,
Jim S.


RE: How to run maven with java class

2007-01-31 Thread Janecek Jan
Hi,

See http://maven.apache.org/guides/mini/guide-embedding-m2.html. It
should help.

Jan 

-Original Message-
From: Apu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 2:17 PM
To: users@maven.apache.org
Subject: How to run maven with java class


Hi,

I was curious if you could run maven tasks by executing a java class
along with the arguments like install, compile from the command line?

Please Help!
--
View this message in context:
http://www.nabble.com/How-to-run-maven-with-java-class-tf3148677s177.htm
l#a8728776
Sent from the Maven - Users mailing list archive at Nabble.com.


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



 
 
Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat duverne 
informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte. 
Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a sireni 
teto zpravy je v takovem pripade zakazana.
Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym prenosem, 
moznou modifikaci ci zpozdenim teto zpravy behem prenosu od odesilatele k 
adresatovi.


This e-mail transmission is intended solely for the ordinary user of the e-mail 
address to which it was addressed. It may contain legally privileged and/or 
confidential information. 
If you have received this e-mail in error or are not an intended recipient 
please inform the sender with-out delay and delete this e-mail, attachments and 
possible copies immediately. The unauthorised use, disclosure, distribution 
and/or copying of this e-mail or any information it contains is prohibited. 
Komercni banka, a. s., does not accept liability for any damage caused by 
incomplete transmission, possible modification or delay of this e-mail during 
the transmission from the sender to the recipient.



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



dependency and os.arch os.name

2007-01-31 Thread Laurent GRANIE

Hi all,

I would like to devel an application that depends on JOGL (from
http://jogl.dev.java.net). There is no repository for JOGL but I can
create mine using mvn deploy:deploy-file.

The problem is that JOGL provides several jar files depending on
os.arch and os.name variables values. How can I create dependency
declaration in my pom.xml?
I try the following with no success :
   
 jogl
 jogl-native-${os.name}-${os.arch}
 1.0
   

org.apache.maven.reactor.MavenExecutionException: Failed to validate POM
[...]
Caused by: org.apache.maven.project.InvalidProjectModelException:
Failed to validate POM

I think this error is due to a space in the value of the os.name
variable (ie. "Windows XP").

If you take a look to the following jnlp files, you will notice that
dependencies depend on arch and os :
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp
http://download.java.net/media/gluegen/webstart/gluegen-rt.jnlp

Any suggestion to make the same with maven2?

Thanks, Laurent.

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



Re: authorization denied

2007-01-31 Thread flyboy

Brett, and Stephen,

Thanks for your quick response.

This all makes sense. 

Setting guest's role to observer worked.

But backing up a moment, in the case where I use my own account, not the
guest accout, from where would maven get the username/password to send to
archiva?  From the settings file?  If so, sorry, I am not finding it in the
settings.xml guide.   I don't think proxy is for this purpose.  Does maven
use the process id to get the user name?  If so, how does it get the
password?

Thanks,

John




-- 
View this message in context: 
http://www.nabble.com/authorization-denied-tf3145308.html#a8729556
Sent from the archiva-users mailing list archive at Nabble.com.



RE: Execution order in pre-integration-test phase for Cargo/Antrun

2007-01-31 Thread Crossley, Jim
> Did you try multiple executions with a different Id for each
execution?
> Place one goal in each execution and bind it to the appropriate phase.

Yes.  As you can see from the snippet below, I have the executions
defined.  My problem is that I need the 'serverconfig' execution to
occur *after* 'install-container' but *before* 'start-container'.  Since
all three are bound to the same phase, the order is determined (it
seems) by their declaration order in the POM.  How do I achieve the
order I need?

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

  
serverconfig
pre-integration-test

  ... 


  run

  

  
   
  
org.codehaus.cargo
cargo-maven2-plugin

  
install-container
pre-integration-test

  install

  
  
start-container
pre-integration-test

  start

  
  
stop-container
post-integration-test

  stop

  


  ...

  

Thanks,
Jim

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 6:10 PM
To: 'Maven Users List'
Subject: RE: Execution order in pre-integration-test phase for
Cargo/Antrun

Hi,

Did you try multiple executions with a different Id for each execution?
Place one goal in each execution and bind it to the appropriate phase.

Bashar

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 3:59 PM
To: users@maven.apache.org
Subject: Execution order in pre-integration-test phase for Cargo/Antrun

I'm using 2.0.4 with the most recent plugin versions.  I'm trying to
configure JBoss 4.0.5 prior to running an integration test from my
build.  I'm trying to run the following goals in these phases:

pre-integration-test:
  cargo:install
  antrun:run
  cargo:start
post-integration-test:
  cargo:stop

The cargo:install is configured with a ZipUrlInstaller that downloads an
archive of JBoss with an 'ejb3' configuration from an internal web
server.  The subsequent antrun:run task tailors that config with
settings specific to the build.

My problem is that I can't figure out how to mandate the order of the
goals in the pre-integration-test phase.  Depending on which plugin
comes first in the POM, I get either

  antrun:run
  cargo:install
  cargo:start

or:

  cargo:install
  cargo:start
  antrun:run

Neither of which works for me, of course.  What am I doing wrong?  Do I
have to list the cargo plugin twice, once before and after the antrun
plugin?  I'd rather not duplicate that much configuration, if I can help
it.

Thanks,
Jim

-
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] Siblilng dependencies not found when building a multi-module project

2007-01-31 Thread Rodrigo Ruiz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

I am working in a rather large multi-module project in which several
modules depend on sibling and parent artifacts (within the same project).

Using Maven 2.0.4, if I try to compile / package / install / deploy the
whole project with a clean local repository (e.g. the first time I do a
checkout), the process fails at compile time because it does not find
any installed artifact in the local repository.

Is this a reported bug? I haven't found any related JIRA report.

My guess is that the Maven dependency resolution system is not including
the generated artifacts once they have been built. Is there any way to
achieve this?

Even with "mvn install", it tries to compile all modules before
packaging or installing them, thus failing when it finds the first
module with "internal" dependencies.

Thanks in advance,
Rodrigo Ruiz

- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain
http://www.gridsystems.com/
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFwJoPp9m/F5UenDoRAqeiAJ4nRwI8/2QB2qipXobWAdxPWJt8iwCeMXOr
mnoHAh6oZIuEu1X0pTt+ICs=
=1Neo
-END PGP SIGNATURE-

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



How to run maven with java class

2007-01-31 Thread Apu

Hi,

I was curious if you could run maven tasks by executing a java class along
with the arguments like install, compile from the command line?

Please Help!
-- 
View this message in context: 
http://www.nabble.com/How-to-run-maven-with-java-class-tf3148677s177.html#a8728776
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Continuum : help

2007-01-31 Thread Christophe LECHENNE
Hi all,

When I try to build my project (a maven2), I 've got this error:

Here is the error : ERROR 22001: A truncation error was encountered trying to 
shrink VARCHAR 'cvs server: Autres/ReleaseNotes.txt is no longer in the repo&' 
to length 1024.

Is there a solution for building it although I found this issue (continuum-709) 
?

regards,

Christophe 



[m2] checkstyle: suppressionsLocation and SuppressionFilter

2007-01-31 Thread Barrie Treloar

suppressionsLocation  appears not to set any properties like
${checkstyle.suppressionsLocation}.

Just by specifying this configuration it appears to work.

However I am trying to share this configuration file with Eclipse and
so I would like to define
 
   
 
so that Eclipse can share the same suppression file information.

Has anyone successfully done this and know what to do?

Thanks

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



Re: authorization denied

2007-01-31 Thread Stephen Coy

Giving the guest user the "Repository Observer" role worked for me.

Steve Coy

On 31/01/2007, at 9:24 AM, Brett Porter wrote:


Yes - currently the repository access is secured by default.

You can either create a user/pass and grant them read access to the  
repository in question, or you can do that for the guest user (I  
think this will allow it to be used without credentials - if not I  
think it should be added).


- Brett

On 31/01/2007, at 9:16 AM, flyboy wrote:



How do I give myself authorization to download from my archiva  
manager?  Do I

have to enter my local username into the archiva user list?

I built archiva from trunk today (Jan 30).  And ran it using 'mvn
jetty:run'.

I setup a repository under archiva and changed my .m2/settings.xml  
file to
use it.  I cleared .m2/repository.  In return to a 'mvn compile',  
I get:



...
Caused by: java.io.IOException: Server returned HTTP response  
code: 401 for

URL:
http://esm-build:9091/repository/mvn-repo/com/xxx/esm-pom/1.0.1/ 
esm-pom-1.0.1.pom

...


esm-pom is the parent pom of all my projects.  Its the first  
artifact that

would be downloaded.


The window from which I started archiva, the following log  
messages appear:



-->>> request  
--

--> http://esm-build:9091/repository
GET /repository/mvn-repo/com/xxx/esm-pom/1.0.1/esm-pom-1.0.1.pom  
HTTP/1.1

Pragma: no-cache
User-Agent: Java/1.5.0_04
Host: esm-build:9091
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded

- 
---
2007-01-30 17:07:28.763:/:INFO:  RepositoryServlet: Authorization  
Denied
[ip=172.24.0.156,isWriteRequest=false,permission=archiva-read- 
repository] :

no matching permissions
2007-01-30 17:09:17,562 [btpool0-15] WARN   
DefaultActionInvocation-

No result defined for action
org.codehaus.plexus.security.ui.web.action.admin.ReportAction and  
result

null


Thanks,

John

--
View this message in context: http://www.nabble.com/authorization- 
denied-tf3145308.html#a8719120

Sent from the archiva-users mailing list archive at Nabble.com.




RE: dependency classpath order

2007-01-31 Thread Greg Jones
Hi Jelle,

You may need to update to the 2.0.5 build to get dependencies in the correct
order. This was the case with plugins and it may be that they fixed this
problem at the same time.

Cheers,

Greg J. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 31 January 2007 10:23 PM
To: users@maven.apache.org
Subject: dependency classpath order

Hi,

 

My project depends on a lot of dependencies that can be found in the online
Maven repo, 

but also on a lot of own jars that were made to connect to web services etc.

I installed them manually in the repo with mvn install:install-file.

 

Now I'm having this problem, when my classpath entries aren't in a certain
order, I can't run my project.

I always have to put them in the right order before packaging my project.

So is there a way to define in which order the classpath entries have to be?

 

I searched in the mailing list history, and I found a same issue with Maven
1.1.

Jason Van Zyl, a member of the Mergere team, said back then, that the order
in the classpath corresponds to the order of the dependencies in the pom.xml
files.

 

It looks like this isn't exactly correct.

And what if I'm using modules in my project?

 

For example, in my top parent pom.xml, I declared the dependency log4j.

Every module uses log4j, so that's why I put that dependency in my parent
pom.

But after the build of my whole project, log4j is situated in the middle of
the classpath.

For so far Jason's explanation ...

 

Anybody an idea ?

 

Kind regards

 

Jelle



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.

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



dependency classpath order

2007-01-31 Thread jelle.volckaert
Hi,

 

My project depends on a lot of dependencies that can be found in the
online Maven repo, 

but also on a lot of own jars that were made to connect to web services
etc.

I installed them manually in the repo with mvn install:install-file.

 

Now I'm having this problem, when my classpath entries aren't in a
certain order, I can't run my project.

I always have to put them in the right order before packaging my
project.

So is there a way to define in which order the classpath entries have to
be?

 

I searched in the mailing list history, and I found a same issue with
Maven 1.1.

Jason Van Zyl, a member of the Mergere team, said back then, that the
order in the classpath corresponds to the order of the dependencies in
the pom.xml files.

 

It looks like this isn't exactly correct.

And what if I'm using modules in my project?

 

For example, in my top parent pom.xml, I declared the dependency log4j.

Every module uses log4j, so that's why I put that dependency in my
parent pom.

But after the build of my whole project, log4j is situated in the middle
of the classpath.

For so far Jason's explanation ...

 

Anybody an idea ?

 

Kind regards

 

Jelle



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


jboss-maven-plugin

2007-01-31 Thread Vidya Mahavadi
Hi,

I am trying to use jboss-maven-plugin(maven2) from codehaus for deployment 
in jboss 4.0. Here is my plugin configuration, can anyone please tell me 
what I am missing in here..


org.codehaus.mojo
jboss-maven-plugin

c:/software/jboss-4.0.5.GA
default
localhost
8080

 
${project.build.directory}\${project.build.finalName}.${project.packaging}

 



And here is the error trace.

[INFO] [jboss:deploy]
[INFO] Deploying 
C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar 
to JBoss.
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Mojo error occurred: Server not defined in settings.xml: default


Thanks,
Vidya

This e-mail is subject to a disclaimer, available at
http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html



Re: maven embedder pb

2007-01-31 Thread Arnaud Bailly
franz see <[EMAIL PROTECTED]> writes:

> Good day to you, Arnaud, 
>

Thanks fro your answer Franz,
That's actually the way I did it. Here is the mojo code:

/*__
 * 
 * Copyright (C) 2006 Arnaud Bailly / OQube 
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
 *  
 * email: [EMAIL PROTECTED]
 * creation: Thu Sep 21 2006
 */
package oqube.muse.maven;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;

import oqube.muse.literate.LiterateMuse;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
import org.apache.maven.project.MavenProject;

/**
 * This plugin generates source files and documentation from literate sources in
 * muse format. This plugin executes normally at the beginning of a lifecycle
 * (phase generate-sources) and does the following:
 * 
 * Parse literate muse files found in the source 
parameter,
 * Generate corresponding source files and store them in the
 * sourceOutput parameter,
 * Generate muse files from literate source and store them in the
 * docOutput parameter.
 * 
 * This plugin is a simple wrapper around
 * [EMAIL PROTECTED] oqube.muse.literate.LiterateMuse} class.
 * 
 * @author [EMAIL PROTECTED]
 * @version $Id: LiterateMuseMojo.java 80 2007-01-29 08:52:36Z /CN=nono $
 * @goal publish
 * @phase generate-sources
 */
public class LiterateMuseMojo extends AbstractMojo {

  /**
   * The directory containing literate muse source to parse.
   * 
   * @parameter expression="${basedir}/src/site/muse"
   * @required
   */
  private File source;

  /**
   * Exclusion patterns. All files (and directories) from source directory that
   * matches one of these patterns are excluded.
   * 
   * @parameter
   */
  private List excludes;

  /**
   * Output directory for generated sources.
   * 
   * @parameter 
expression="${project.build.directory}/generated-sources/literate"
   */
  private File sourceOutput;

  /**
   * Output directory for generated documentation. This parameter defaults to
   * null as the input file themselves may be used for documentation generation.
   * If documentation format is different then this paramater shoudl be set
   * accordingly.
   * 
   * @parameter
   */
  private File docOutput = null;

  /**
   * The generated documentation format to use. If this is null (the default),
   * then no documentation is generated.
   * 
   * @parameter
   */
  private String format;

  /**
   * Name of header file to prepend to each generated source file.
   * 
   * @parameter
   */
  private String header;

  /**
   * Name of footer file to append to each generated source file.
   * 
   * @parameter
   */
  private String footer;

  /**
   * If true, then source files are aggregated over the whole set of input
   * files. This allows splitting a source file over several documents and
   * producing a single source.
   * 
   * @parameter expression="false"
   */
  private boolean multifile;

  /**
   * The current project object.
   * 
   * @parameter expression="${project}"
   * @required
   */
  private MavenProject project;

  /**
   * The encoding used for generating source and document files.
   * 
   * @parameter
   */
  private String outputEncoding;

  /**
   * The encoding used for reading literate sources.
   * 
   * @parameter
   */
  private String inputEncoding;

  /**
   * The inclusion filter for fragments to generate. This pattern can be used to
   * control which fragments get their source files generated by the mojo: A
   * fragment is generated if it is included and it is not
   * excluded.
   * 
   * @parameter expression=".*"
   */
  private String filterIn;

  /**
   * The exclusion filter for fragments to generate. This pattern can be used to
   * control which fragments get their source files generated by the mojo. This
   * is very useful for distinguishing test and source files.
   * 
   * @parameter expression="^$"
   */
  private String filterOut;

  /**
   * Tells whether processed sources are test sources or standard sources.
   * 
   * @paramete

Re: [m2] using 3rdParty PlugIn

2007-01-31 Thread Maria Odea Ching

Hi Fredy,

You can use the install:install-file goal of the maven-install-plugin to 
do this.
For more details, please refer to 
http://maven.apache.org/plugins/maven-install-plugin/index.html (see 
Generic Pom Example) 


Hope this helps! :-)

Thanks,
Deng

SoftwareEngineering Hauschel wrote:


Hi all,
how can I deploy a 3rdPartyPlugIn in my Repo?
I have a "maven-xyz-plugin-1.0.jar" .

Fredy




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



Re: Test source dependencies

2007-01-31 Thread Craig McClanahan

On 1/30/07, Andrew Williams <[EMAIL PROTECTED]> wrote:


Make a new project ("T") and put all of the test code there in compile
scope (src/main/java)

then project A and B can both depend on T in scope "test".



The Shale framework[1] has a real-life example of this technique.  We wanted
to use a common set of unit test base classes across tests for a bunch of
other modules, and the best solution was to create a separate Maven module
for the test framework, then depend on it (with "test" scope) everywhere i
was needed in our tests.

Andy


Craig

[1] http://shale.apache.org/

Leo Freitas wrote:

>
> How to fix dependencies among testing code?
> That is, if I have a project B test code that
> depends on project A test code.
> That is, there is abstract/base testing source
> code setup for A that B also uses.
>
> The usual  tag (even for test scope)
> would link to B/main/java with A/main/java but
> would not link B/test/java with A/test/java.
>
> That implies in a compilation error if I try to
> run the test cases for B. I thought to use assemblies
> to fix this, but it does not sound right.
>
> Any suggestion?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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




Setting up new project fails

2007-01-31 Thread Minto van der Sluis

Hi folks,

Setting up Continuum was pretty easy and all seems to work well until I
tried to add our first project to it. This project is just a parent pom so
nothing fancy, well almost nothing.

For SCM we are running CVS without anonymous access. To get this working in
the pom I included properties (is a profile activated by default) for
username and password in my settings.xml and use these in the pom. This
configuration looks something like this:

settings.xml:
... snip ...

  scm-credentials

  
${env.USERNAME}
adam20064
  

... snap ...

pom.xml
... snip ...


 
scm:cvs:pserver:${scm-username}:@myserver:/cvs/myrepo:adam/base
 
scm:cvs:pserver:${scm-username}:@myserver:/cvs/myrepo:adam/base


... 


  org.apache.maven.plugins
  maven-scm-plugin
  1.0-beta-3
  
install
${scm-username}
${scm-password}
  


... snap ...

To check if this actually works I tried 'mvn scm.bootstrap' in a fresh
directory with just a pom and it works as expected. To make sure it will
work on Continuum I added the proper settings.xml to the buildserver.
Unfortunately this did not work. I checked JIRA and beleef issue 
http://jira.codehaus.org/browse/CONTINUUM-1049 CONTINUUM-1049  is what I am
experiencing. :-(

So I tried a different approach. Instead of uploading a pom I entered a url
to it. I used the scm:cvs notation for this, but whatever I try Continuum
has never been able to retrieve my pom. 

Seems like I am running out of options. Does anyone know how I can get my
projects into Continuum?

Kind regards,

Minto van der Sluis
-- 
View this message in context: 
http://www.nabble.com/Setting-up-new-project-fails-tf3147474.html#a8725270
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Custom packaging type

2007-01-31 Thread Eric Redmond

If that does not work, check out the assembly plugin[1].

Eric

[1] http://maven.apache.org/plugins/maven-assembly-plugin/

On 1/31/07, 秋秋 <[EMAIL PROTECTED]> wrote:


Hi,
   I think you have met with the same issue with me,I hope the following
configuration can help you:
<--builder jar and war-->

  src/main/java
  src/test
  target/classes
  target/test-classes
  
   
src/main/java


<--this comfiguration can package the xml file which are distribute the
different directory with .java files together-->


 **/*.xml

   
   

<-<-directory > appoint the file's address-->

src/main/config/ejb

<--appoint the address where you want to package-->

META-INF/

<--appoint whick files you want to  package-->


 *.xml

   
   
src/main/config/biz

 *

   
   
src/main/process
./
   
  


2007/1/31, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]>:

> Hi,
> I have a new project type,
> In this type I need to create a zip file that contain both directory
> structure from version control and dependency files (e.g. jars/wars...)
> (each file should be copied to a specific path - and this should be
> configured in the pom.xml file)
> It seems that I need to overwrite the prepare-sources and package and in
> addition use the default install and deploy phases.
>
> Can you give me a hint how to start with it?
> Thanks!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Eric Redmond
http://codehaus.org/~eredmond


Re: Managing Dependent Jars

2007-01-31 Thread Eric Redmond

True, I should have mentioned that as well. Definitely file bugs with the
artifact owners... my suggestion should just be considered an interim fix.
Think of it as a project deploying with a faulty rpm or msi installer... the
onus is on the owner to fix, not the mirror that hosts it.

Thanks;
Eric

On 1/30/07, Wayne Fay <[EMAIL PROTECTED]> wrote:


As for the comment regarding Hibernate, this is again not the Maven
team's fault, but rather entirely Hibernate's fault.

It is entirely the responsibility of the artifact owner to produce
proper poms. If they fail to do so, the users of those artifacts will
suffer (as you've experienced). The proper response to these troubles
is not to complain loudly about how much Maven sucks etc but rather to
file bugs with the various parties and do your part to help update the
incorrect pom files for the benefit of everyone.

Don't place the blame for these issues on the wrong party... When
Maven works as intended with proper artifacts and poms etc, it is
truly a great thing.

Wayne

On 1/30/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> The problem with Spring being in multiple places etc is really not the
> Maven team's fault, but rather the Spring group's responsibility.
> Without looking too hard into the details, I'd guess they initially
> picked groupId spring, then springframework, then org.spring, and
> finally org.springframework for their groupIds. However, Maven has a
> strict "once published, never changed" policy for artifacts etc so
> they couldn't just consolidate all those old artifacts (under the old
> groupIds) into the latest Spring groupId. Hopefully, going forward,
> the Spring group (and other similar groups) will decide on one single
> groupId (per group/product) to reduce confusion in the community.
>
> Look for the most recent version of Spring in the various places you
> mentioned -- in all likelihood, only one of those groupIds will have
> the latest builds, and they have probably finally decided to use that
> groupId rather than the others.
>
> This is really not much of a problem once you start using Maven2 and
> standardize on particular versions of various artifacts. I doubt
> anyone will need to use Spring 1.2.1 for example when 2.0 is
> available, so you won't need to ever access those older /spring etc
> artifacts.
>
> Wayne
>
> On 1/30/07, Jarret R <[EMAIL PROTECTED]> wrote:
> > Thanks for the reply. I am currently just testing this process out
> > locally to build a case to use Maven, so I haven't set everything up
> > yet, but I will take a look at the proxies.
> >
> > I took a look at the main repository and it seems to have some of the
> > same issues I had mentioned earlier. I understand the requirement to
> > hand build some POMs, but I'm still seeing Spring in three or four
> > different places. Is there a standard version to use?
> >
> > I do somewhat disagree with the statement that this would be harder
> > with ANT. In ANT, I can just drop the dependencies into my lib/ folder
> > and they are picked up. Tracking them down is usually not an issue
> > since most major projects come with their own dependencies. Converting
> > the 20+ libs references in Hibernate requires me to look up each one
> > in the Maven repository to get the correct references and I might have
> > to add those if they don't exist yet. All in all, it seems much more
> > painful than a standard ANT set up, at least in this respect.
> >
> > I do still think that a Mavenized build has a lot to recommend even if
> > some of the dependencies need to be massaged :).
> >
> > Thanks,
> > Jarret
> >
> > On 1/30/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
> > > The official repository location is http://repo1.maven.org/maven2/... 
check
> > > out the hibernate data there (upgrade to at least maven 2.0.4).
> > >
> > > Also: you must set up an in-house repository[1]. This is not really
optional
> > > for an enterprise setup... where else can you put your own generated
> > > artifacts for all to use? If you find discrepencies in public
repository
> > > setups, having your own repository is the best way to control that
(in which
> > > case, yes, you may have to put a hand-written pom w/ real
dependencies in
> > > there). It's also necessary when you require the ability to share a
> > > closed-source or licensed artifact through-out the org. Luckly the
cases of
> > > this in practice are kind of rare. Once your repo is up, you won't
have to
> > > touch it too often. Plus, think of Ant... you have to manually grab
the
> > > dependencies for those - so it's not like you're doing MORE work.
> > >
> > > A good proxy (about 8 months old) is Proximity[2]. If you want
something
> > > sanctified by the Maven team, check out Archiva[3][4] (still in
development,
> > > but usable).
> > >
> > > [1] http://www.devx.com/Java/Article/32386
> > > [2] http://proximity.abstracthorizon.org/
> > > [3] http://maven.apache.org/archiva/
> > > [4]
http://coderoshi.blogspot.com/2006/12/apache-archiva-