Re: Weired classpath pb: class not found in parent dir

2009-02-09 Thread Jörg Schaible
Hi Markus,

Markus Jostock wrote at Montag, 9. Februar 2009 15:48:

> Dear all
> 
> In a sub-module of a multi-module project I parse an XML file via Xalan
> (using antrun and a  task).
> 
> While it works fine when I run mvn in the sub-module, it fails when I
> run mvn in the superior parent module, although I put a dependency to
> Xalan in the antrun plugin definition.
> 
> Would anyone have an idea what could cause this classpath problem (if it
> is any)?

If you run a different instacne of the ant-run-plugin first that does not
declare this dep. Each plugin is loaded once and only. Use a common parent
with a pluginMgmt section that declares this plugin with all necessary deps
for the overall build.

- Jörg


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



ApacheCon Europe 2009: Early Bird Deadline Extended

2009-02-09 Thread Brian E. Fox
Subject: ApacheCon Europe 2009: Early Bird Deadline Extended 
 until 13th of February 

Here's some great news for everyone who's thinking of
traveling to Amsterdam for this year's ApacheCon Europe. The Early Bird
deadline has been extended to Friday, February 13th - and remember,
there is a discount of 150 Euro on registration for anyone staying at
the Mövenpick Hotel. Register at http://www.eu.apachecon.com.

ApacheCon is a week of open source goodness straight from the source of
The Apache Software Foundation:

 - More than 60 1-Hour Sessions on System Administration, Development,
   Data Mining and Search Technologies, Enterprise Web Services, SOA,
   and Cloud Technologies, Open Source Business and Community, and more
 - Over a dozen Training Workshops from industry experts (see below)
 - World-class Keynotes and vendor Expo
 - Lightning Talks and Birds-of-a-Feather sessions
 - New this year: Geeks for Geeks Track, BarCampApache, and Hackathon!

ApacheCon Europe 2009 features 2-day, 1-day, and half-day Training
Workshops on the following topics:

 Data Mining and Search Technologies
 ---
 - Lucene Boot Camp  (Grant Ingersoll)
 - Solr Boot Camp  (Erik Hatcher)


 The Next Generation of Web Data Storage
 ---
 - Building Standalone CouchDB Applications (J. Chris Anderson)
 - High Performance CouchDB (J. Chris Anderson)


 Cloud and Distributed Computing Technologies
 
 - Hadoop Tools and Tricks for Data Processing Pipelines
   (Christophe Bisciglia and Aaron Kimball)


 System Administration
 -
 - Apache HTTP Server - Nuts to Bolts  (Jim Jagielski)
 - Everything Tomcat - Administering, Tuning,
   Troubleshooting and Developing  (Mark Thomas)


 Developing State-of-the-Art Web Applications
 
 - A Day of REST  (J Aaron Farr)
 - Apache CXF - Developing and Deploying Open Source
   SOA Endpoints  (Adrian Trenaman)
 - Ajax on Struts 2: How a Second Generation Web Application
   Framework Meets the Demands of RIA  (Chad Michael Davis)
 - Behavior-Driving Your Apache Wicket Application:
   Making the Most of Webdriver and JDave-Wicket (Timo Rantalaiho)


 Building and Managing Java-based Projects
 -
 - Maven Workshop  (Zeger Hendrikse)


 Professional Media Trainings
 
 - Media & Analyst Training (Sally Khudairi)
 - Intermediate Media & Analyst Training (Sally Khudairi)


We hope to see you on the 23-27 March at the Mövenpick Hotel in
Amsterdam! Visit http://www.eu.apachecon.com for further information
and registration details.

Interested in sponsoring the ApacheCon conferences?  Please contact
Delia Frees at de...@apachecon.com for further information.

-- 
ApacheCon Europe 2009 Team
planners-2009-eu at apachecon.com
http://www.eu.apachecon.com


Re: Aggregator pom fails, but modules work

2009-02-09 Thread Merv Green
You may be abusing 'src' and 'test.' Do you get the same problem if you 
rename the sub-projects 'dir1' and 'dir2?' Have you considered something 
like the shitty-maven-plugin? Google for 'maven integration testing.'


klimane wrote:

I have the following project structure:

ProjectA
pom.xml [aggregator of the other two]
src
pom.xml
test
pom.xml

When I run the test build by itself either from the test directory or by
modifying the aggregator pom to exclude the src module and only include the
test module, it works.  However, when I run a build on the aggregator pom
(with the aggregator pom including both src and test modules), the test
module fails at compilation, stating that it can't find a class that is part
of the src build.  The test/pom.xml has the src artifact as a dependency. 
Also, I have this pattern working in other projects.  I'm just wondering if

anyone has any suggestions or if anyone has seen this type of behaviour
before.
  



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



Re: Oracle TopLink

2009-02-09 Thread Wayne Fay
> Does anyone know where in the myriad of Maven Repositories does Oracle
> TopLink reside?

http://www.mvnrepository.com/search.html?query=toplink

Wayne

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



Re: install file

2009-02-09 Thread Wayne Fay
> I have a similar requirement. I am trying to migrate my project from Maven 1
> to Maven 2 and I have several jars that I need to install and/or deploy.

Do you know about the "legacy" layout configuration for repositories
in M2? This is configured in settings.xml.

Wayne

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



Re: install file

2009-02-09 Thread Pavitra

I have a similar requirement. I am trying to migrate my project from Maven 1
to Maven 2 and I have several jars that I need to install and/or deploy.

Did you find a solution?


Trollchik wrote:
> 
> Hi
> i have the following script:
> 
>   
>   org.apache.maven.plugins
>   maven-install-plugin
>   2.2
>   true
>   false
>   
>   
>   start
>   install
>   
>   install-file
>   
>   
>   
> commapp
>   
> commappblock
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/comappblock.jar
>   
> commons-io
>   
> commons
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/commons-io-1.2.jar
>   
> commons-log
>   
> commons
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/commons-logging-1.1.jar
>   
> jax-qname
>   
> jax
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/jax-qname.jar
>   
> jaxb-api
>   
> jaxb
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/jaxb-api.jar
>   
> jaxb-impl
>   
> jaxb
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/jaxb-impl.jar
>   
> jaxp-api
>   
> jaxp
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/jaxp-api.jar
>   
> jaxp-api
>   
> jaxp
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/jaxp-api.jar
>   
> namespace
>   
> name
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/namespace.jar
>   
> relaxngDatatype
>   
> relaxng
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/relaxngDatatype.jar
>   
> xsdlib
>   
> xsdl
>   1.0
>   
> jar
>   
> src/main/webapp/WEB-INF/lib/xsdlib.jar
>   dwr
>   
> dwrId
>   1.0
>   
> jar
> 

Oracle TopLink

2009-02-09 Thread Patel, Ronak Avinash (US SSA)
Hi all,

 

Does anyone know where in the myriad of Maven Repositories does Oracle
TopLink reside?

 

Or, should I be installing those jars manually?

 

Thanks,

 

Ronak Patel

Senior Software Engineer

BAE Systems NS

San Diego, CA

 



Re: Does maven not use VERSION while detecting circular dependencies?

2009-02-09 Thread Geoffrey Wiseman
On Sun, Feb 8, 2009 at 12:16 PM, Sahoo  wrote:
>
> This is too limiting IMO.


Perhaps; I think it's one of the fundamentals of how Maven works, so if you
don't find that suitable for your use, that might imply that Maven's not the
right tool for your use.

There's more information on the subject here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
http://www.sonatype.com/book/reference/pom-relationships.html#d0e10046


-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/


Re: The import org.mypac.myclass cannot be resolved

2009-02-09 Thread Wayne Fay
> Am using spring with maven. I had two dependencies for web-app
> (mydatamodel.jar and myutil.jar)
> With simple jsp it is finding classes of other dependent jar.
> But when i use sp[ring-app.xml and configure an spring controller and inject
> classes of other jars its raises exception  like imports cannot be resolved.

What makes you think this is a Maven issue vs a Spring one?

Wayne

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



release:prepare not updating dependency version?

2009-02-09 Thread David C. Hicks

Hi all,

I've just converted a project into a multi-module, and I'm now trying to 
get the release process working again.  In one case, I have a module 
that depends on another module.  They both start out as version 
"0.0.1-SNAPSHOT".  So, module B (0.0.1-SNAPSHOT) depends on module A 
(0.0.1-SNAPSHOT).  After doing a release:prepare with dryRun=true, the 
pom.xml.next of module B now shows me that it depends on module A 
(0.0.1-SNAPSHOT), instead of the 0.0.2-SNAPSHOT that I would have expected.


I looked into the updateDependencies property, but, according to the 
documentation, the default value for this is "true," anyway.


In cases like this, is it more appropriate to use version = LATEST for 
the modules of a multi-module project when setting up a dependency on 
another module?


Thanks,
Dave


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



Maven and parallel builds

2009-02-09 Thread Avihaimar

I need to run parallel builds on my continues machine. 
Build for different teams. Each team has its own stream and work on the same
project version(delivery is done to the integration stream). 

This is a problem with maven beacsue the artifacts of the parallel builds
will be store in the same local repository. 

The simple solution is to have different repository for each build, but it
required a lot of disk space. 

Is there another solution like repository only for given group (so it will
store the artifact that it build in different respository for each build ) 


Thank you
-- 
View this message in context: 
http://www.nabble.com/Maven-and-parallel-builds-tp21916538p21916538.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to get files from JAR dependencies in a plugin ?

2009-02-09 Thread Olivier THIERRY
Hi,

For a Maven project using Sun JAX-WS, I try to write a Maven plugin
(my first one) that should create Sun JAX-WS config file by merging
XML files from JAR dependencies.

It would be configured this way :

   
   fr.xxx.t4
   maven-sun-jaxws-plugin
   
   
   
   merge
   
   
   
   

src/main/webapp/WEB-INF/sun-jaxws.xml
   

META-INF/sun-jaxws-commons.xml

META-INF/sun-jaxws-gt.xml
   
   
   

This plugin should create a file referred by "targetFile" property by
reading and merging files referred by "sourceFiles" property. Source
files are in Maven project dependencies.
So I need to get an input stream on these source files, but I can't
find a way to find these files. I tried with getResourceAsStream but
it doesn't work.
Anyone has an idea how I could do this ?

Regards,

Olivier

PS : I already posted this question on dev list but I am not sure this
was the right place to get an answer for this ...

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



Re: maven-surefire-plugin version 2.3.4 not reporting the @Ignore annotated testcases

2009-02-09 Thread Rakesh Arora

Sorry, I made a mistake in the original post.

We are using maven-surefire-plugin version 2.4.3.

Thanks,
-Rakesh


Wayne Fay wrote:
> 
> On Fri, Feb 6, 2009 at 12:48 PM, Rakesh Arora 
> wrote:
>> We are using junit 4.4 and maven-surefire-plugin version 2.3.4
>>
>> http://jira.codehaus.org/browse/SUREFIRE-303
> 
> That JIRA indicates it is fixed in Surefire version 2.4, but by your
> own admission you are using 2.3.4. I would assume that is the problem.
> 
> Wayne
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-version-2.3.4-not-reporting-the-%40Ignore-annotated-testcases-tp21880371p21914928.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Weired classpath pb: class not found in parent dir

2009-02-09 Thread Markus Jostock

Dear all

In a sub-module of a multi-module project I parse an XML file via Xalan 
(using antrun and a  task).


While it works fine when I run mvn in the sub-module, it fails when I 
run mvn in the superior parent module, although I put a dependency to 
Xalan in the antrun plugin definition.


Would anyone have an idea what could cause this classpath problem (if it 
is any)?


Many thanks!

Cheers
Markus






[INFO] [antrun:run {execution: generate-sources}]
[INFO] Executing tasks
[java] Could not find org.apache.xalan.xslt.Process. Make sure you 
have it in your classpath
[java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:138)

[java] ...


pom.xml:
...
 
   
 
   maven-antrun-plugin
   1.3
   
 
   generate-sources
   generate-sources
   
 
   

   fork="false">

 
 
 
   

 
   
   
 run
   
 
   
   
 
   xalan
   xalan
   compile
 
   
 
   
 



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



The import org.mypac.myclass cannot be resolved

2009-02-09 Thread sandyg

Hi ALL,

Am using spring with maven. I had two dependencies for web-app
(mydatamodel.jar and myutil.jar)
With simple jsp it is finding classes of other dependent jar.
But when i use sp[ring-app.xml and configure an spring controller and inject
classes of other jars its raises exception  like imports cannot be resolved.

please help me.
-- 
View this message in context: 
http://www.nabble.com/The-import-org.mypac.myclass-cannot-be-resolved-tp21913905p21913905.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Usage example native-maven-plugin

2009-02-09 Thread Erik Drolshammer

Hi!
I have C++ project which is currently built by make using g++. I want to 
 build for Intel 32- and 64-bit architectures.


Can anyone point me to an example on how to use native-maven-plugin for 
this?




--
Best regards,

Erik Drolshammer

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



Usage example native-maven-plugin

2009-02-09 Thread Erik Drolshammer

Hi!
I have C++ project which is currently built by make using g++. I want to
 build for Intel 32- and 64-bit architectures.

Can anyone point me to an example on how to use native-maven-plugin for
this?



--
Best regards,

Erik Drolshammer

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



Re: Local repository and problem with downloading parent

2009-02-09 Thread Martin Höller
On 07 Feb 2009, Johannes Schneider wrote:

> Now I try to switch to "isolated local repositories". Therefore I call
> "mvn compile -Dmaven.repo.local=".
> Unfortunately that still downloads the parent pom to "~/.m2/repository"
> and not to my isolated local repo...

Works for me with maven 2.0.9 as expected. What version are you using?

hth,
- martin


signature.asc
Description: PGP signature


Re: [ANN] - SCM Changelog Maven Plugin 1.1 Released

2009-02-09 Thread Stevo Slavić
Congrats, keep up the good work!

One new feature suggestion - support for filtering subtasks (at least when
jira is issue tracker), e.g. through optional "excludeSubtasks" attribute of
"filter" configuration element.

Regards,
Stevo.

On Mon, Feb 9, 2009 at 11:09 AM, Rémy Sanlaville
wrote:

> The SCM Changelog Maven Plugin team is pleased to announce the
> scmchangelog-maven-plugin-1.1
> release
>
> This release contains fixes and documentation improvements.
> See *http://mojo.codehaus.org/scmchangelog-maven-plugin/changelog.html<
> http://mojo.codehaus.org/rpm-maven-plugin>
> * for details.
>
> Have fun!
> -SCM Changelog Maven Plugin team
>


[ANN] - SCM Changelog Maven Plugin 1.1 Released

2009-02-09 Thread Rémy Sanlaville
The SCM Changelog Maven Plugin team is pleased to announce the
scmchangelog-maven-plugin-1.1
release

This release contains fixes and documentation improvements.
See 
*http://mojo.codehaus.org/scmchangelog-maven-plugin/changelog.html
* for details.

Have fun!
-SCM Changelog Maven Plugin team


Using the release-plugin on a mercurial release branch.

2009-02-09 Thread Sebastien Martel

Hello List--

I am trying to use the release plugin to make a release build off a  
named branch using Mercurial. The problem I am running into is that  
release:perform is not switching to the release branch, it is,  
however, pulling the right tag, but that's not enough with mercurial,  
the branch needs to be specified as well:


hg clone -r release-tag -r release-branch ...

Is there a way to get the plugin to clone the repository that way?


Thanks,

Sebastien Martel




smime.p7s
Description: S/MIME cryptographic signature


Re: Error: 'null' for project unknown

2009-02-09 Thread Wayne Fay
The Maven source code does not provide much information around the
exception in this line of source. Can you provide the entire
stacktrace using an online service like www.pastebin.com, and then
send the URL to the paste to this list? (Do NOT send the stacktrace
directly to this list.)

http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/DefaultMaven.java?annotate=64

If you have a corrupt or not well-formed pom.xml file in a module
(child, grandchild, etc) it might cause this exception. Are you sure
all the pom.xml files are identical across all modules in this
project, on both machines? Are they both running Windows and the same
JDK etc? They must be some difference that explains the exception.
(I've never seen this myself, that I can recall...)

Wayne

On Sun, Feb 8, 2009 at 5:57 AM, Michael Hüttermann
 wrote:
> Hello Maven gurus,
>
> I'm wondering if the issue I described below never occured before?!
> Does anyone have a hint for me how to solve that issue?
> Thanks 
>
> Michael Hüttermann schrieb:
>>
>> Hello,
>>
>> I'm doing a "mvn clean" inside a project and get the message:
>> Fatal Error
>> Error building POM (may not be this project's POM)
>> Project ID: unknown
>> Reason: Failed to build model from file: C:\...\pom.xml.
>> Error: 'null' for project unknown
>>
>> The Trace delivers an error at
>> org.apache.DefaultMaven.getProjects(DefaultMaven.java:378)
>>
>> Strange is that on one machine the project can be cleaned as expected and
>> on the other the problem above arises. The system environments are the
>> same, i.e. other projects can be build without any problems.
>>
>> What can be the problem? When does the described error pop up normally?
>> Any experiences?
>>
>> Thank you!
>>
>> Best regards
>> Michael
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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