Filtering issues with maven and assemblies...

2014-03-13 Thread Julien Martin
Hello,

I am having issues with maven filtering. My resources are not filtered...

I want to generate a jar with dependencies with custom filtering.

Can anyone please help? Here is my configuration (*pom.xml* and
*assembly.xml*):




*Resources:*

   

src/main/resources
true



*Plugins:*


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


copy-resources
validate

copy-resources


target



misc/external-resources





dev
process-resources

resources


target/dev


src/main/resources/filters/dev.properties




prod
process-resources

resources


target/prod


src/main/resources/filters/prod.properties






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


generate-sources

add-source




${project.generated-sources.directory}






maven-assembly-plugin
2.4


dev
package

single




true

com.otcexids.main.Main




src/main/resources/assemble/assembly.xml



src/main/resources/filters/dev.properties

IDS-dev
false



prod
package

single




true

com.otcexids.main.Main




src/main/resources/assemble/assembly.xml



src/main/resources/filters/prod.properties

IDS-prod
false






*Assembly.xml*



http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="
http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
jar-with-dependencies

jar

false


/
true
true
runtime




true
wsdl/brokerhub

src/main/resources/wsdl/brokerhub/soapinterface_1.2.wsdl


true
wsdl/finderpro

src/main/resources/wsdl/finderpro/B2T_DataModel.asmx.wsdl


false
wsdl/website

src/main/resources/wsdl/website/WSWebsiteIDS.wsdl





Can anyone please help?

Regards,

J.


Using filtered resources with the maven assembly plugin and the jar-with-dependencies descriptorRef

2014-03-04 Thread Julien Martin
Hello,

I am trying to filter resources before they are "fed" to  the maven
assembly plugin (with a jar-with-dependencies) to no avail.

Here are the relevant portions of my POM.xml:

...

 

src/main/resources
true



...

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


copy-resources
validate

copy-resources


target



misc/external-resources





dev
process-resources

resources


target/dev


src/main/filters/dev.properties




prod
process-resources

resources


target/prod


src/main/filters/prod.properties





...


maven-assembly-plugin


dev-assembly
package

single




true
com.ids.main.Main




jar-with-dependencies



src/main/filters/dev.properties


IDS-dev-${project.version}
false






Can anyone please help?

Regards,

Julien.


Our maven config causes a NullPointerException in our test case...

2013-06-07 Thread Julien Martin
Hello,

We have the following test case:

package pack;
import java.nio.charset.Charset;import java.util.Iterator;import java.util.Set;
public class TestCase {
public static void main(String[] args) {
Set set = Charset.availableCharsets().keySet();
for (Iterator iterator = set.iterator(); iterator.hasNext();) {
String s = (String) iterator.next();
System.out.println(s);
}
}}


The above runs fine when run from a "standard" eclipse project. However, it
throws a NPE when run from our maven config...

Here is the stacktrace:

Exception in thread "main" java.lang.NullPointerException
at java.nio.charset.Charset.put(Charset.java:550)
at java.nio.charset.Charset.access$300(Charset.java:276)
at java.nio.charset.Charset$4.run(Charset.java:593)
at java.nio.charset.Charset$4.run(Charset.java:585)
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.charset.Charset.availableCharsets(Charset.java:584)
at pack.TestCase.main(TestCase.java:9)


Can anyone please help?

Regards,

Julien.

Here is the *effective pom* for our mvn project:


http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"; xmlns="
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  4.0.0
  
com.prosodie.ppptr
ppptr-services
0.0.1-SNAPSHOT
  
  com.prosodie.ppptr
  ppptr-services-impl
  0.0.1-SNAPSHOT
  PPPTR - Services - Implementation
  Implémentation de référence de la couche des services
métiers
  
3.2.3.RELEASE
UTF-8
  
  

  
org.springframework
spring-test
3.2.3.RELEASE
test
  
  
junit
junit
4.11
test
  
  
org.mockito
mockito-all
1.9.5
test
  
  
ch.qos.logback
logback-core
1.0.3
  
  
ch.qos.logback
logback-classic
1.0.3
  

  
  

  org.springframework
  spring-context
  3.2.3.RELEASE
  compile


  com.prosodie.ppptr
  ppptr-services-api
  0.0.1-SNAPSHOT
  compile


  com.prosodie.ppptr
  ppptr-dao-api
  0.0.1-SNAPSHOT
  compile


  org.hibernate
  hibernate-validator
  5.0.1.Final
  compile


  com.prosodie.ppptr
  ppptr-dao-impl
  0.0.1-SNAPSHOT
  runtime


  com.prosodie.ppptr
  ppptr-commons
  0.0.1-SNAPSHOT
  compile


  org.springframework
  spring-test
  3.2.3.RELEASE
  test


  junit
  junit
  4.11
  test


  org.mockito
  mockito-all
  1.9.5
  test

  
  

  
false
  
  central
  Central Repository
  http://repo.maven.apache.org/maven2

  
  

  
never
  
  
false
  
  central
  Central Repository
  http://repo.maven.apache.org/maven2

  
  

C:\Users\jmartin\workspace\ppptr-parent\ppptr-services\ppptr-services-impl\src\main\java

C:\Users\jmartin\workspace\ppptr-parent\ppptr-services\ppptr-services-impl\src\main\scripts

C:\Users\jmartin\workspace\ppptr-parent\ppptr-services\ppptr-services-impl\src\test\java

C:\Users\jmartin\workspace\ppptr-parent\ppptr-services\ppptr-services-impl\target\classes

C:\Users\jmartin\workspace\ppptr-parent\ppptr-services\ppptr-services-impl\target\test-classes

  

C:\Users\jmartin\workspace\ppptr-parent\ppptr-services\ppptr-services-impl\src\main\resources
  


  

C:\Users\jmartin\workspace\ppptr-parent\ppptr-services\ppptr-services-impl\src\test\resources
  


C:\Users\jmartin\workspace\ppptr-parent\ppptr-services\ppptr-services-impl\target
ppptr-services-impl-0.0.1-SNAPSHOT

  

  maven-antrun-plugin
  1.3


  maven-assembly-plugin
  2.2-beta-5


  maven-dependency-plugin
  2.1


  maven-release-plugin
  2.0


  maven-compiler-plugin
  3.0
  
1.7
1.7
  


  org.apache.tomcat.maven
  tomcat7-maven-plugin
  2.0


  maven-eclipse-plugin
  2.7
  
true

  
.settings/org.eclipse.jdt.ui.prefs
eclipse.preferences.version=1
cleanup.add_default_serial_version_id=false
cleanup.add_generated_serial_version_id=true
cleanup.add_missing_annotations=true
cleanup.add_missing_deprecated_annotations=true
cleanup.add_missing_methods=false
cleanup.add_missing_nls_tags=false
cleanup.add_missing_override_annotations=true
cleanup.add_missing_override_annotations_interface_methods=true
cleanup.add_serial_version_id=true
cleanup.always_use_blocks=true
cleanup.always_u

Re: Beginner needs help: Maven won't run my tests...

2011-07-19 Thread Julien Martin
Yes Barrie you're right. I've just realized that one of my tapestry
dependencies (tapestry-test) includes a hidden dependency to testng which
was the cause of my woes!

Have excluded the dependency as follows:
 
org.apache.tapestry
tapestry-test
5.2.6
test
   * 

testng
org.testng

*


sorted the problem!

Thank you very much to all of you!

Regards,

Julien.

2011/7/19 Barrie Treloar 

> On Tue, Jul 19, 2011 at 11:20 PM, Julien Martin  wrote:
> > Hello,
> >
> > I appreciate your help Brian!
> >
> > I changed my POM as follows:
> >
> > *
> >org.apache.maven.plugins
> >maven-surefire-plugin
> >
> >
> >org.apache.maven.surefire
> >surefire-junit4
> >2.7.2
> >
> >
> >
> >
> >**/*Test.java
> >
> >
> >  *
> >
> > It now seems "something" is being run. Here is the output now:
> > *---
> >  T E S T S
> > ---
> > Running TestSuite
> > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.769 sec
> >
> > Results :
> >
> > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0*
> >
> > Notice the "Running TestSuite". However it still fails to find my test
> > methods. I suspect it might have to do with this:
> >
> > *[DEBUG] Adding to surefire test classpath:
> >
> /home/julien/.m2/repository/org/apache/maven/surefire/surefire-testng/2.4.3/surefire-testng-2.4.3.jar
> > [DEBUG] Adding to surefire test classpath:
> >
> /home/julien/.m2/repository/org/apache/maven/maven-artifact/2.0/maven-artifact-2.0.jar
> > [DEBUG] Adding to surefire test classpath:
> >
> /home/julien/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
> > [DEBUG] Adding to surefire test classpath:
> > /home/julien/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> > [DEBUG] Adding to surefire test classpath:
> >
> /home/julien/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar
> > *
> > Notice it says it is using version 3.8.1 of Junit...
> >
> > However it goes on to say:
> > Test Classpath :
> > ...
> > *[DEBUG]   /home/julien/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar*
> > ...
> >
> > So what is the difference between the "surefire test classpath" and the
> > "Test classpath"?
> >
> > Here is how my test method is named and annotated:
> >   *@Test
> >public void test() {*
> > ...
> >
>
> If surefire thinks you are using junit 3 then it wont run your tests
> since you are using annotations instead of extending TestCase.
>
>
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/junit.html
>
> You aren't specifying a version of surefire but you are locking down
> the surefire provider (2.7.2).
> That may mean you are using version 2.9 of surefire but with an older
> provider.
> You shouldn't need to specify a provider version - the docs indicate
> it will select the correct one based upon your dependencies.
> But you can try fiddling with these values.
> There is a caveat on the docs when you manually specify a provider
> "When using this technique there is no check that the proper
> test-frameworks are present on your project's classpath. Failing to
> add the proper test-frameworks will result in a build failure."
>
> I also notice testng on the classpath.
> Perhaps one of the other dependencies is pulling things in you dont
> expect and mucking up surefire (because multiple test frameworks are
> available)
> You can try
> mvn dependency:tree
> and see whether that output gives any clues.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Beginner needs help: Maven won't run my tests...

2011-07-19 Thread Julien Martin
Hello,

I appreciate your help Brian!

I changed my POM as follows:

*
org.apache.maven.plugins
maven-surefire-plugin


org.apache.maven.surefire
surefire-junit4
2.7.2




**/*Test.java


  *

It now seems "something" is being run. Here is the output now:
*---
 T E S T S
---
Running TestSuite
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.769 sec

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0*

Notice the "Running TestSuite". However it still fails to find my test
methods. I suspect it might have to do with this:

*[DEBUG] Adding to surefire test classpath:
/home/julien/.m2/repository/org/apache/maven/surefire/surefire-testng/2.4.3/surefire-testng-2.4.3.jar
[DEBUG] Adding to surefire test classpath:
/home/julien/.m2/repository/org/apache/maven/maven-artifact/2.0/maven-artifact-2.0.jar
[DEBUG] Adding to surefire test classpath:
/home/julien/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
[DEBUG] Adding to surefire test classpath:
/home/julien/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[DEBUG] Adding to surefire test classpath:
/home/julien/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar
*
Notice it says it is using version 3.8.1 of Junit...

However it goes on to say:
Test Classpath :
...
*[DEBUG]   /home/julien/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar*
...

So what is the difference between the "surefire test classpath" and the
"Test classpath"?

Here is how my test method is named and annotated:
   *@Test
public void test() {*
...

Any idea what is wrong?
J.


2011/7/19 Brian Topping 

> Julien,
>
> Sorry I didn't notice you had responded.  Like most mailing lists, one
> thing to keep in mind is we're all doing this for free and at one time or
> another someone helped us out.  So we're just returning the favor.
>
> Anyway, your logs show the line:
>
> > [DEBUG]   (f) testSourceDirectory =
> > /home/julien/Documents/donnees/projets/Site emploi
> > finance/java/cheetah/web/src/test/java
>
> I see you made many changes like removing spaces and that would have also
> been my first suggestion.
>
> Now, please run the mvn command with -X again.  There's no need now to send
> the entire file, just search through the output for "testSourceDirectory"
> and make sure you can do "ls /home/julien/Documents/donnees/projets/Site
> emploi finance/java/cheetah/web/src/test/java" from the command line, for
> instance, but using whatever the new output from that line is.
>
> Also, take a look at the web page for the surefire plugin configuration at
> http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html.
>  Note how testSourceDirectory is documented there, along with every other
> parameter in your -X output.  Pay close attention to each one, mapping it
> back to the documentation, then ask questions about the ones you don't
> understand and think might be causing problems.
>
> In the worst case, regenerate the project using a project archetype in a
> second directory and look how it gets set up there.
>
> Cheers, Brian
>
> On Jul 19, 2011, at 2:36 AM, Julien Martin wrote:
>
> > up
> >
> > 2011/7/17 Julien Martin 
> >
> >> Hello Thomas and thank you for the reply,
> >> Yes the tests are indeed located there.
> >> I was not able to reproduce the bug unfortunately...
> >> Does anyone have any idea where else to look for a problem?
> >> Regards,
> >> Julien.
> >>
> >>
> >>
> >> 2011/7/17 Thomas Sundberg 
> >>
> >>> Hi Julien!
> >>>
> >>> You still haven't told us where your tests are locted. They should be
> >>> located in the directory
> >>>
> >>> src/test/java/com/cheetah/web/pages
> >>>
> >>> to be picked up and executed by Surefire.
> >>>
> >>> Is it possible to clone your project, remove almost everything and
> >>> keep a Hello world so you are able to locate the problem with a
> >>> minimal set of possible problems and then add the things you want,
> >>> step by step?
> >>>
> >>> HTH
> >>> Thomas
>
> 
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Beginner needs help: Maven won't run my tests...

2011-07-19 Thread Julien Martin
Sure. I am going to set one up. Which repo manager do you recommend?
Regards,
Julien.

2011/7/19 Barrie Treloar 

> On Tue, Jul 19, 2011 at 5:23 PM, Julien Martin  wrote:
> > Hello Barrie,
> >
> > Thanks for your reply!
> >
> > I removed the white spaces from the directory name.
> >
> > Yes there is a classes in the test-classes directory.
>
> I'm running out of thoughts.
> The file name ends in Test should it should be automatically included
> by surefire.
> I can see you are using junit 4 and that should work out of the box.
> You have the annotations needed.
>
> Is this project accessible on the net?
>
> > The point you make about my mvn trying to install the artefact into the
> > jboss repository is very relevant but do I really need a repository
> manager
> > even though I am the only developer on this project? Don't you think
> there
> > might be something wrong with my settings.xml instead?
> >
> settings.xml [del]
>
> No, your settings.xml is fine.
> However, I would remove activeProfiles and manually enable the profile
> with -Pjulien when you need it.
> Its a deficiency with Maven that it contacts all defined repositories
> for any SNAPSHOT artifacts even though those repositories will never
> contain those artifacts.
> (i.e. there is currently no way to inform Maven what groupIds are
> expected to be located at that repository).
> By using a repository manager you get that functionality.
>
> A lot of people install repository managers on their laptops.  It
> helps them transition between work and home without mucking around
> with settings.xml and proxy settings.
> You may not need one.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Beginner needs help: Maven won't run my tests...

2011-07-19 Thread Julien Martin
Hello Barrie,

Thanks for your reply!

I removed the white spaces from the directory name.

Yes there is a classes in the test-classes directory.

The point you make about my mvn trying to install the artefact into the
jboss repository is very relevant but do I really need a repository manager
even though I am the only developer on this project? Don't you think there
might be something wrong with my settings.xml instead?

Here it is:


http://maven.apache.org/SETTINGS/1.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd";>


julien


jboss
http://repository.jboss.org/maven2


tapestry
http://tapestry.formos.com/maven-repository





julien



I am sure I am missing something in the settings.xml file...

What do you think?

Julien.

P.S. I am still going to have a look at Nexus in the meantime.

2011/7/19 Barrie Treloar 

> On Sun, Jul 17, 2011 at 7:21 PM, Julien Martin  wrote:
>
> Julien, you need to setup a repository manager at your work.
>
> [del]
> > [INFO] snapshot com.cheetah:cheetah-domain:1.0-SNAPSHOT: checking for
> > updates from jboss
> > [DEBUG] Using Wagon implementation lightweight from default mapping for
> > protocol http
> > [DEBUG] Checking for pre-existing User-Agent configuration.
> > [DEBUG] Adding User-Agent configuration.
> > [DEBUG] Connecting to repository: 'jboss' with url: '
> > http://repository.jboss.org/maven2/'.
> > [DEBUG] Using Wagon implementation lightweight from default mapping for
> > protocol http
> > [WARNING] repository metadata for: 'snapshot
> > com.cheetah:cheetah-domain:1.0-SNAPSHOT' could not be retrieved from
> > repository: jboss due to an error: Authorization failed: Access denied
> to:
> >
> http://repository.jboss.org/maven2/com/cheetah/cheetah-domain/1.0-SNAPSHOT/maven-metadata.xml
> > [DEBUG] Exception
> > org.apache.maven.wagon.TransferFailedException: Authorization failed:
> Access
>
> Your maven build is reaching out over the internet to look for things
> it will never find (i.e. your locally installed artifacts)
>
>
> From your output:
> [DEBUG]   (f) compileSourceRoots =
> [/home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/src/test/java]
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) failOnError = true
> [DEBUG]   (f) fork = false
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory =
> /home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/target/test-classes
> [DEBUG]   (f) outputFileName = cheetah-web-1.0-SNAPSHOT
> [DEBUG]   (f) showDeprecation = false
> [DEBUG]   (f) showWarnings = false
> [DEBUG]   (f) source = 1.6
> [DEBUG]   (f) staleMillis = 0
> [DEBUG]   (f) target = 1.6
> [DEBUG]   (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories:
> [/home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/src/test/java]
> [DEBUG] Classpath: [/home/julien/Documents/donnees/projets/Site emploi
> [del]
> [DEBUG] Output directory: /home/julien/Documents/donnees/projets/Site
> emploi finance/java/cheetah/web/target/test-classes
> [INFO] Nothing to compile - all classes are up to date
>
> Either there is nothing in this
> "/home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/src/test/java" directory to compile or its
> all up to date.
> Can you confirm that there is a .class file in
> "/home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/target/test-classes" that matches
> CreateJobPostingTest?
>
> You can see from the output that no tests have been selected for running.:
> Running TestSuite
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.362 sec
>
> i dont believe spaces in folder names is an issue, but you can try
> renaming your directory structure to avoid spaces.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Aggregation vs Inheritance

2011-07-18 Thread Julien Martin
thanks Anders. that's what I am going to do.

2011/7/18 Anders Hammar 

> You most likely would like a parent project (inheritance) where you define
> and control common stuff, like plugin configuration. Then you also most
> likely want to an aggregating project to simplify build. Both could be
> combined in the same Maven project.
>
> /Anders
>
> On Mon, Jul 18, 2011 at 18:52, Julien Martin  wrote:
>
> > Hello,
> > I am not sure whether to choose inheritance or aggregation or both for my
> > maven project.
> > I have a domain module which contains entity classes. I have a service
> > module which contains spring services and daos and finally I have a web
> > module .
> > Can anyone provide guidelines please?
> > Regards,
> > Julien.
> >
>


Aggregation vs Inheritance

2011-07-18 Thread Julien Martin
Hello,
I am not sure whether to choose inheritance or aggregation or both for my
maven project.
I have a domain module which contains entity classes. I have a service
module which contains spring services and daos and finally I have a web
module .
Can anyone provide guidelines please?
Regards,
Julien.


Beginner needs help: Maven won't run my tests...

2011-07-16 Thread Julien Martin
Hello,
I would like for Maven to run my tests when I issue the following command:
"mvn test"
However, despite the presence of a test class named "CreateJobPostingTest",
maven won't run my tests.
Can anyone please help?

Here is my test class:

public class CreateJobPostingTest {

@Test
public void test1() {
String appPackage = "com.cheetah.web";
String appName = "app";
PageTester tester = new PageTester(appPackage, appName,
"src/main/webapp");
Document doc = tester.renderPage("CreateJobPosting");
Element createJobPostingForm =
doc.getElementById("createJobPostingForm");
Map fieldValues = new HashMap();
fieldValues.put("jobPostingTitle", "Développeur
java/Tapestry/Junit");
fieldValues.put("jobPostingBody", "Poste de de développeur agile/XP
qui travaillera en TDD exclusivement");
Document docFromForm = tester.submitForm(createJobPostingForm,
fieldValues);
assertTrue(docFromForm.toString().contains("TDD exclusivement"));
}

@Ignore
@Test
public void test2() {

}
}

Here is my pom.xml:
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
com.cheetah
cheetah-web
war
1.0-SNAPSHOT
cheetah-web




src/main/java

**/*.tml
**/*.properties



src/main/resources

**/*.xml
**/*.properties






org.apache.maven.plugins
maven-war-plugin
2.1.1


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

1.6
1.6



org.apache.maven.plugins
maven-surefire-plugin







com.cheetah
cheetah-domain
1.0-SNAPSHOT


com.cheetah
cheetah-service
1.0-SNAPSHOT


org.apache.tapestry
tapestry-core
5.2.6


org.apache.tapestry
tapestry-beanvalidator
5.2.6

 
org.apache.tapestry
tapestry-spring
5.2.6

  
org.apache.tapestry
tapestry-test
5.2.6


javax.servlet
servlet-api
2.5
provided


junit
junit
4.8.2
test





Re: Need help with a dependency problem...

2010-11-26 Thread Julien Martin
thanks a lot for your input Andreas and Antonio.

2010/11/26 Andreas M 

>
> Now, I'm no export on annotation processors, but don't you have to have it
> compiled before you can add it to the compiler arguments? In this, you say
> to the compiler that it should use the class it's compiling as a processor
> as well. That can't go well, can it?
> /Andreas
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Need-help-with-a-dependency-problem-tp3280645p3280922.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
>
>


Need help with a dependency problem...

2010-11-25 Thread Julien Martin
Hello,
Due to a restructuring in a maven project, I am experiencing problems with
the following POM. I have two classes in the maven project below:
com.jeanbaptistemartin.annotations.MethodLevelAnnotation (an annotation)
com.jeanbaptistemartin.annotations.TestAnnotationsProcessor (my annotation
processor)

Here is what I get when I do a build:

*Compiling 2 source files to
/home/julien/NetBeansProjects/jbm-annotation-processor/target/classes

[ERROR]BUILD FAILURE

Compilation failure
error: Annotation processor
'com.jeanbaptistemartin.annotations.TestAnnotationsProcessor' not found
*
Can anyone please help?

Thanks in advance,
J.


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
com.jeanbaptistemartin
jbm-annotation-processor
jar
1.0
jbm-annotation-processor
http://maven.apache.org


junit
junit
4.8.2
test





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

1.6
1.6


com.jeanbaptistemartin.annotations.TestAnnotationsProcessor








Re: Problem with annotations processing and maven compiler plugin

2010-11-25 Thread Julien Martin
It works very well.
Thanks to both of you!
J.

2010/11/25 Julien Martin 

> Thanks Wayne.
> I'll try that and post here according to the results.
> J.
>
> 2010/11/25 Wayne Fay 
>
> >war
>> >
>> >
>>
>> A dependency of type war means basically nothing to Javac. You're
>> basically just putting the War file on the classpath and javac doesn't
>> know how to deal with wars (only jars) so it just gets ignored.
>>
>> Try again after you package your annotation processor up in its own
>> jar, and depend on that.
>>
>> Wayne
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>


Re: Problem with annotations processing and maven compiler plugin

2010-11-25 Thread Julien Martin
Thanks Wayne.
I'll try that and post here according to the results.
J.

2010/11/25 Wayne Fay 

> >war
> >
> >
>
> A dependency of type war means basically nothing to Javac. You're
> basically just putting the War file on the classpath and javac doesn't
> know how to deal with wars (only jars) so it just gets ignored.
>
> Try again after you package your annotation processor up in its own
> jar, and depend on that.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Problem with annotations processing and maven compiler plugin

2010-11-24 Thread Julien Martin
Benson,

Here is what I have added:
 

com.jeanbaptistemartin
jeanbaptistemartin
1.3
war



Here is what I still get:
Compilation failure
error: Annotation processor
'com.jeanbaptistemartin.util.TestAnnotationsProcessor' not found

Also: when I tried to force the version of the plugin, I get a warning.

Any idea?

J.

2010/11/25 Benson Margulies 

> 
>
> 
>   
> 
>   g/a/v of where your annotation processor is
>
>   
>  
>
> On Wed, Nov 24, 2010 at 3:43 PM, Julien Martin  wrote:
> > Thanks Benson,
> > What do you mean? How do I do that?
> > J.
> >
> > 2010/11/24 Benson Margulies 
> >
> >> A guess: also add it as a dependency to the compiler plugin?
> >>
> >> On Wed, Nov 24, 2010 at 3:36 PM, Julien Martin 
> wrote:
> >> > Hello,
> >> >
> >> > I am trying for maven to process my annotation processor.
> >> > Here is what I tried:
> >> >
> >> >org.apache.maven.plugins
> >> >maven-compiler-plugin
> >> >
> >> >1.6
> >> >1.6
> >> >
> >> >
> >> >
> >>
> com.jeanbaptistemartin.util.TestAnnotationsProcessor
> >> >
> >> > ${basedir}/src/main/java
> >> >
> >> >
> >> >
> >> >
> >> > Here is what I get:
> >> > Compilation failure
> >> > error: Annotation processor
> >> > 'com.jeanbaptistemartin.util.TestAnnotationsProcessor' not found
> >> >
> >> > Can anyone please help?
> >> >
> >> > Thanks in advance,
> >> >
> >> > Julien.
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Problem with annotations processing and maven compiler plugin

2010-11-24 Thread Julien Martin
Thanks Benson,
What do you mean? How do I do that?
J.

2010/11/24 Benson Margulies 

> A guess: also add it as a dependency to the compiler plugin?
>
> On Wed, Nov 24, 2010 at 3:36 PM, Julien Martin  wrote:
> > Hello,
> >
> > I am trying for maven to process my annotation processor.
> > Here is what I tried:
> >
> >org.apache.maven.plugins
> >maven-compiler-plugin
> >
> >1.6
> >1.6
> >
> >
> >
> com.jeanbaptistemartin.util.TestAnnotationsProcessor
> >
> > ${basedir}/src/main/java
> >
> >
> >
> >
> > Here is what I get:
> > Compilation failure
> > error: Annotation processor
> > 'com.jeanbaptistemartin.util.TestAnnotationsProcessor' not found
> >
> > Can anyone please help?
> >
> > Thanks in advance,
> >
> > Julien.
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Problem with annotations processing and maven compiler plugin

2010-11-24 Thread Julien Martin
Hello,

I am trying for maven to process my annotation processor.
Here is what I tried:

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

1.6
1.6


com.jeanbaptistemartin.util.TestAnnotationsProcessor

${basedir}/src/main/java




Here is what I get:
Compilation failure
error: Annotation processor
'com.jeanbaptistemartin.util.TestAnnotationsProcessor' not found

Can anyone please help?

Thanks in advance,

Julien.


Re: [Beginner needs help] Populating a web.xml context-param from a maven variable?

2009-01-19 Thread Julien Martin
Easy:
I added the following plugin:
 
org.apache.maven.plugins
maven-war-plugin




${basedir}/src/main/webapp/WEB-INF

web.xml

WEB-INF
true





and then the following context-param:

com.mycompany.version
${pom.version}

That did the trick!
Thanks maven,
Julien.


[Beginner needs help] Populating a web.xml context-param from a maven variable?

2009-01-19 Thread Julien Martin
Hello,
I would like to achieve the following:
-retrieve the   from a properties file so that I can include it in
both the POM and my web.xml (context parameter). Is that possible? How
can I achieve this?
Thanks,
Julien.


Maven + POM + version + webapp context parameter

2009-01-19 Thread Julien Martin
Hello,
I would like to achieve the following:
-retrieve the   from a properties file so that I can include it in
both the POM and my web.xml (context parameter). Does that make sense? How
can I achieve this?
Thanks,
Julien.


Maven + POM + version + webapp context parameter

2009-01-19 Thread Julien Martin
Hello,
I would like to achieve the following:
-retrieve the   from a properties file so that I can include it in
both the POM and my web.xml (context parameter). Does that make sense? How
can I achieve this?
Thanks,
Julien.


Copying resources outside of the distribution archive

2008-01-31 Thread Julien Martin
Hello,

Say I have the following directory structure for my project:

myproject
--myresources/foo.sql (located within myproject directory)
--src/main/java/etc.

And I want to have the resulting directory structure:
myyproject
-target/executable/
--myproject.jar(located within executable directory)
--myresources/foo.sql

Is that possible? It seems the targetPath points to the classes directory.

Any clue welcome,

Julien.


The OpenJPA Enhancer tool exited with a non-null exit code.

2007-10-23 Thread Julien Martin
Hello,
I use the following goal:
openjpa:enhance
and I get this when I try to run the goal from netbeans.
The OpenJPA Enhancer tool exited with a non-null exit code.
Can anyone please help? It seems maven cannot locate the persitence.xmlfile.
This is both a netbeans and maven related problem so I post the question on
both mailing lists.
Thanks in advance,
Julien.


Big bug in maven-war-plugin??

2007-10-23 Thread Julien Martin
Hello,
Here is what I get:

[INFO] Scanning for projects...
[INFO]

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

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Assembling webapp CdR in C:\dev\calyonfinancial\CdR\target\CdR
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at org.apache.maven.plugin.war.AbstractWarMojo.copyResources(
AbstractWarMojo.java:403)
at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(
AbstractWarMojo.java:518)
at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(
AbstractWarMojo.java:347)
at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java
:164)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:130)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Oct 23 18:21:54 CEST 2007
[INFO] Final Memory: 7M/13M
[INFO]


I would be very grateful if someone could provide a workaround or tell me
whether this is a bug and how to fix it.

I have the following environment:
-java 1.6.0
-maven 2.0.7
and the following pom:


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
com.calyonfinancial
CdR
war
1.0-SNAPSHOT
CdR


org.apache.openjpa
openjpa
1.0.0



javax.persistence
persistence-api
1.0


javax.persistence
ejb
3.0


log4j
log4j
1.2.14


jdbc
as400
5.1.0.1


org.apache.myfaces.core
myfaces-api
1.1.5


org.apache.myfaces.core
myfaces-impl
1.1.5


org.apache.myfaces.tomahawk
tomahawk
1.1.6


javax.servlet
servlet-api
2.4
provided


javax.servlet
jsp-api
2.0
provided


org.ajax4jsf
ajax4jsf
1.1.1


javax.faces
jsf-api
   

Re: "targetPath" tag COMPLETELY ignored by Maven......

2007-08-28 Thread Julien Martin
Thanks! That was the problem...
Julien.

2007/8/28, Wayne Fay <[EMAIL PROTECTED]>:
>
> Try bumping your version to 2.0.2 which is apparently the latest
> available...
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/
>
> Don't know if that will do anything, just an idea.
>
> Wayne
>
> On 8/28/07, Julien Martin <[EMAIL PROTECTED]> wrote:
> >  Hello,
> >
> > Apparently the "targetPath" tag is COMPLETELY ignored by Maven... The
> > persistence.xml is copied at the root of the war...
> >
> > Can anyone please help?
> >
> > Julien.
> >
> >
> > Here is my POM:
> >
> > code:
> > --
> >
> >
> > 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";>
> > <http://maven.apache.org/maven-v4_0_0.xsd>
> >4.0.0
> >com.calyonfinancial
> >protide
> >war
> >1.0-SNAPSHOT
> >ProtideWeb
> >
> >src
> >build
> >ProtideWeb
> >
> >
> >maven-compiler-plugin
> >
> >1.5
> >1.5
> >
> >
> >
> >org.apache.maven.plugins
> >maven-war-plugin
> >2.0
> >
> >web
> >
> >
> >src/conf
> >META-INF
> >
> >persistence.xml
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >org.hibernate
> >hibernate
> >3.2.1.ga
> >
> >
> >org.hibernate
> >hibernate-annotations
> >3.2.1.ga
> >
> >
> >org.hibernate
> >hibernate-entitymanager
> >3.2.1.ga
> >
> >
> >org.hibernate
> >hibernate-commons-annotations
> >3.3.0.ga
> >
> >
> >org.hibernate
> >hibernate-validator
> >3.0.0.ga
> >
> >
> >javax.persistence
> >persistence-api
> >1.0
> >
> >
> >log4j
> >log4j
> >1.2.14
> >
> >
> >com.sun.xml.bind
> >jaxb-impl
> >2.0
> >
> >
> >com.sun.xml.bind
> >jaxb-xjc
> >2.0
> >
> >
> >javax.xml.bind
> >jaxb-api
> >2.0
> >
> >
> >
> >jdbc
> >as400
> >5.1.0.1
> >
> >
> >javax.xml.bind
> >jsr173_api
> >1.0
> >
> >
> >org.apache.myfaces.core
> >myfaces-api
> >1.1.5
> >
> >
> >org.apache.myfaces.core
> >myfaces-impl
> >1.1.5
> >
> >
> >org.apache.myfaces.tomahawk
> >tomahawk
> >1.1.6
> >
> >
> >javax.servlet
> >servlet-api
> >2.4
> >provided
> >
> >
> >javax.servlet
> >jsp-api
> >2.0
> >provided
> >
> >
> >org.ajax4jsf
> >ajax4jsf
> >1.1.1
> >
> >
> >javax.faces
> >jsf-api
> >
> >
> >javax.faces
> >jsf-impl
> >
> >
> >
> >
> >org.richfaces
> >richfaces
> >3.0.1
> >
> >
> >javax.faces
> >jsf-api
> >
> >
> >javax.faces
> >jsf-impl
> >
> >
> >
> >
> >org.apache.poi
> >poi
> >3.0.1-FINAL
> >
> >
> >
> >org.apache.myfaces.trinidad
> >trinidad-api
> >1.0.2
> >
> >
> >org.apache.myfaces.trinidad
> >trinidad-impl
> >1.0.2
> >
> >
> >
> > 
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to get Maven to include "persistence.xml" into a web app??

2007-08-28 Thread Julien Martin
Thank!!

2007/8/28, Tim Kettler <[EMAIL PROTECTED]>:
>
> Strange, it's working for me with this simple test project:
>
>
>  4.0.0
>  my-test-app
>  my-test-group
>  1.0-SNAPSHOT
>  war
>
>  
>
>  
>org.apache.maven.plugins
>maven-war-plugin
>
>  
>
>  src/conf
>  
>  META-INF
>  
>persistence.xml
>  
>
>  
>
>  
>
>  
>
>
> Additionally you have to put an empty stub in
> 'src/main/webapp/WEB-INF/web.xml' and in 'src/conf/persistence.xml'. The
> war-plugin version I use is 2.0.2.
>
> -Tim
>
> Julien Martin schrieb:
> > Thanks Tim for you suggestion. I thought I was getting there but
> apparently
> > the "targetPath" is COMPLETELY ignored by Maven... Here is where the
> > persistence.xml is copied: the root of the war...
> >
> > Here is my POM for your info. Tis almost identical to your suggestion:
> >
> > 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
> > com.calyonfinancial
> > protide
> > war
> > 1.0-SNAPSHOT
> > ProtideWeb
> > 
> > src
> > build
> > ProtideWeb
> > 
> > 
> > maven-compiler-plugin
> > 
> > 1.5
> > 1.5
> > 
> > 
> > 
> > org.apache.maven.plugins
> > maven-war-plugin
> > 2.0
> > 
> > web
> > 
> > 
> > src/conf
> > META-INF
> > 
> > persistence.xml
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > org.hibernate
> > hibernate
> > 3.2.1.ga
> > 
> > 
> > org.hibernate
> > hibernate-annotations
> > 3.2.1.ga
> > 
> > 
> > org.hibernate
> > hibernate-entitymanager
> > 3.2.1.ga
> > 
> > 
> > org.hibernate
> > hibernate-commons-annotations
> > 3.3.0.ga
> > 
> > 
> > org.hibernate
> > hibernate-validator
> > 3.0.0.ga
> > 
> > 
> > javax.persistence
> > persistence-api
> > 1.0
> > 
> > 
> > log4j
> > log4j
> > 1.2.14
> > 
> > 
> > com.sun.xml.bind
> > jaxb-impl
> > 2.0
> > 
> > 
> > com.sun.xml.bind
> > jaxb-xjc
> > 2.0
> > 
> > 
> > javax.xml.bind
> > jaxb-api
> > 2.0
> > 
> > 
> > 
> > jdbc
> > as400
> > 5.1.0.1
> > 
> > 
> > javax.xml.bind
> > jsr173_api
> > 1.0
> > 
> > 
> > org.apache.myfaces.core
> > myfaces-api
> > 1.1.5
> > 
> > 
> > org.apache.myfaces.core
> > myfaces-impl
> > 1.1.5
> > 
> > 
> > org.apache.myfaces.tomahawk
> > tomahawk
> > 1.1.6
> > 
> > 
> > javax.servlet
> > servlet-api
> > 2.4
> >   

"targetPath" tag COMPLETELY ignored by Maven......

2007-08-28 Thread Julien Martin
 Hello,

Apparently the "targetPath" tag is COMPLETELY ignored by Maven... The
persistence.xml is copied at the root of the war...

Can anyone please help?

Julien.


Here is my POM:

code:
--


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
com.calyonfinancial
protide
war
1.0-SNAPSHOT
ProtideWeb

src
build
ProtideWeb


maven-compiler-plugin

1.5
1.5



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

web


src/conf
META-INF

persistence.xml









org.hibernate
hibernate
3.2.1.ga


org.hibernate
hibernate-annotations
3.2.1.ga


org.hibernate
hibernate-entitymanager
3.2.1.ga


org.hibernate
hibernate-commons-annotations
3.3.0.ga


org.hibernate
hibernate-validator
3.0.0.ga


javax.persistence
persistence-api
1.0


log4j
log4j
1.2.14


com.sun.xml.bind
jaxb-impl
2.0


com.sun.xml.bind
jaxb-xjc
2.0


javax.xml.bind
jaxb-api
2.0



jdbc
as400
5.1.0.1


javax.xml.bind
jsr173_api
1.0


org.apache.myfaces.core
myfaces-api
1.1.5


org.apache.myfaces.core
myfaces-impl
1.1.5


org.apache.myfaces.tomahawk
tomahawk
1.1.6


javax.servlet
servlet-api
2.4
provided


javax.servlet
jsp-api
2.0
provided


org.ajax4jsf
ajax4jsf
1.1.1


javax.faces
jsf-api


javax.faces
jsf-impl




org.richfaces
richfaces
3.0.1


javax.faces
jsf-api


javax.faces
jsf-impl




org.apache.poi
poi
3.0.1-FINAL



org.apache.myfaces.trinidad
trinidad-api
1.0.2


org.apache.myfaces.trinidad
trinidad-impl
1.0.2






Re: Problem: TRINIDAD and MAVEN

2007-08-28 Thread Julien Martin
Thank you Tim!!!

As a workaround you can just download the pom from central [2] by hand
and copy in in your local repository.

This worked a charm!!


Re: How to get Maven to include "persistence.xml" into a web app??

2007-08-28 Thread Julien Martin
Thanks Tim for you suggestion. I thought I was getting there but apparently
the "targetPath" is COMPLETELY ignored by Maven... Here is where the
persistence.xml is copied: the root of the war...

Here is my POM for your info. Tis almost identical to your suggestion:

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
com.calyonfinancial
protide
war
1.0-SNAPSHOT
ProtideWeb

src
build
ProtideWeb


maven-compiler-plugin

1.5
1.5



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

web


src/conf
META-INF

persistence.xml









org.hibernate
hibernate
3.2.1.ga


org.hibernate
hibernate-annotations
3.2.1.ga


org.hibernate
hibernate-entitymanager
3.2.1.ga


org.hibernate
hibernate-commons-annotations
3.3.0.ga


org.hibernate
hibernate-validator
3.0.0.ga


javax.persistence
persistence-api
1.0


log4j
log4j
1.2.14


com.sun.xml.bind
jaxb-impl
2.0


com.sun.xml.bind
jaxb-xjc
2.0


javax.xml.bind
jaxb-api
2.0



jdbc
as400
5.1.0.1


javax.xml.bind
jsr173_api
1.0


org.apache.myfaces.core
myfaces-api
1.1.5


org.apache.myfaces.core
myfaces-impl
1.1.5


org.apache.myfaces.tomahawk
tomahawk
1.1.6


javax.servlet
servlet-api
2.4
provided


javax.servlet
jsp-api
2.0
provided


org.ajax4jsf
ajax4jsf
1.1.1


javax.faces
jsf-api


javax.faces
jsf-impl




org.richfaces
richfaces
3.0.1


javax.faces
jsf-api


javax.faces
jsf-impl




org.apache.poi
poi
3.0.1-FINAL






Re: How to get Maven to include "persistence.xml" into a web app??

2007-08-28 Thread Julien Martin
The problem is that I have to use an existing path i.e.
(MyProject\src\conf\persistence.xml) and cannot change that
Is there not a way to modify the POM in order for it to include my
persistence.xml??
Sorry I am a real beginner at Maven...
Julien.

2007/8/28, ben short <[EMAIL PROTECTED]>:
>
> I think you can just create /src/main/webapp/META-INF and put it in there.
>
> On 8/28/07, Julien Martin <[EMAIL PROTECTED]> wrote:
> > Thanks Ben,
> > Is there not a way to put it (persistence.xml) into meta-inf instead?
> > Julien.
> >
> > 2007/8/28, ben short <[EMAIL PROTECTED]>:
> > >
> > > persistence.xml needs to be on the class path doesn't it?
> > >
> > > Create a directory src/main/java/resources and put it in there. When
> > > maven packages up your war it will put all files in the resources
> > > directory into your war file under the WEB-INF/classes directory.
> > >
> > > Hope this helps.
> > >
> > > Ben
> > >
> > >
> > > On 8/28/07, Julien Martin <[EMAIL PROTECTED]> wrote:
> > > > Hello all,
> > > > How do I get Maven to include "persistence.xml" into a web app??
> > > > Any clue welcome!
> > > > Julien.
> > > >
> > > > Here is my POM:
> > > >
> > > >
> > > > 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
> > > > com.calyonfinancial
> > > > protide
> > > > war
> > > > 1.0-SNAPSHOT
> > > > ProtideWeb
> > > > 
> > > > src
> > > > build
> > > > ProtideWeb
> > > > 
> > > > 
> > > > maven-compiler-plugin
> > > > 
> > > > 1.5
> > > > 1.5
> > > > 
> > > > 
> > > > 
> > > > org.apache.maven.plugins
> > > > maven-war-plugin
> > > > 2.0
> > > > 
> > > > web
> > > > 
> > > > 
> > > > 
> > > > org.codehaus.mojo
> > > > hibernate3-maven-plugin
> > > > 2.0-alpha-2
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > org.hibernate
> > > > hibernate
> > > > 3.2.1.ga
> > > > 
> > > > 
> > > > org.hibernate
> > > > hibernate-annotations
> > > > 3.2.1.ga
> > > > 
> > > > 
> > > > org.hibernate
> > > > hibernate-entitymanager
> > > > 3.2.1.ga
> > > > 
> > > > 
> > > > org.hibernate
> > > > hibernate-commons-annotations
> > > > 3.3.0.ga
> > > > 
> > > > 
> > > > org.hibernate
> > > > hibernate-validator
> > > > 3.0.0.ga
> > > > 
> > > > 
> > > > javax.persistence
> > > > persistence-api
> > > > 1.0
> > > > 
> > > > 
> > > > log4j
> > > > log4j
> > > > 1.2.14
> > > > 
> > > > 
> > > > com.sun.xml.bind
> > > > jaxb-impl
> > > > 2.0
> > > > 
> > > > 
> > > > com.sun.xml.bind
> > > > jaxb-xjc
> > > > 2.0
> > > > 
> > > > 
> > > > javax.xml.bind
> > > > jaxb-api
> &

Problem: TRINIDAD and MAVEN

2007-08-28 Thread Julien Martin
Hello,
I am having problems with Trinidad and Maven. Can anyone please help?
Thanks in advance,
Julien.


I get this from the console:

C:\dev\calyonfinancial\ProtideWeb>mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

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

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://cvs/repository/org/apache/myfaces/trinidad/trinidad-impl/1.0.2/trinidad-impl-1.0.2.pom
[WARNING] Unable to get resource from repository calyonRepository (
http://cvs/repository)
Downloading:
http://repo1.maven.org/maven2/org/apache/myfaces/trinidad/trinidad-impl/1.0.2/trinidad-impl-1.0.2.pom
7K downloaded
Downloading:
http://cvs/repository/org/apache/myfaces/trinidad/trinidad/1.0.2/trinidad-1.0.2.pom
[WARNING] Unable to get resource from repository calyonRepository (
http://cvs/repository)
Downloading:
http://repo1.maven.org/maven2/org/apache/myfaces/trinidad/trinidad/1.0.2/trinidad-1.0.2.pom
17K downloaded
Downloading:
https://maven-repository.dev.java.net/nonav/repository//org.apache/poms/apache-4.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

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


Project ID: org.apache.myfaces.trinidad:trinidad:pom:1.0.2

Reason: Cannot find parent: org.apache:apache for project:
org.apache.myfaces.trinidad:trinidad:pom:1.0.2


[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
dependency information: Unable to read the metadata file for artifact '
org.apach
e.myfaces.trinidad:trinidad-impl:jar': Cannot find parent:
org.apache:apachefor project:
org.apache.myfaces.trinidad:trinidad:pom:1.0.2
  org.apache.myfaces.trinidad:trinidad-impl:jar:1.0.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  calyonRepository (http://cvs/repository),
  jboss repo (http://repository.jboss.com/maven2),
  maven2 repo (http://repo1.maven.org/maven2)
Path to dependency:
1) com.calyonfinancial:protide:war:1.0-SNAPSHOT


at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:551)
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:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
Unable to get dependency information: Unable to read the metadata file for
artifact 'org.apache.myfaces.trinidad:trinidad-impl:jar': Cannot find
parent: org.apache:apache for project:
org.apache.myfaces.trinidad:trinidad:pom:
1.0.2
  org.apache.myfaces.trinidad:trinidad-impl:jar:1.0.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  calyonRepository (http://cvs/repository),
  jboss repo (http://repository.jboss.com/maven2),
  maven2 repo (http://repo1.maven.org/maven2)
Path to dependency:
1) com.calyonfinancial:protide:war:1.0-SNAPSHOT


at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(
DefaultArtifactCollector.java:297)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(
DefaultArtifactCollector.java:67)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
(DefaultArtifactResolver.java:223)

Re: How to get Maven to include "persistence.xml" into a web app??

2007-08-28 Thread Julien Martin
Thanks Ben,
Is there not a way to put it (persistence.xml) into meta-inf instead?
Julien.

2007/8/28, ben short <[EMAIL PROTECTED]>:
>
> persistence.xml needs to be on the class path doesn't it?
>
> Create a directory src/main/java/resources and put it in there. When
> maven packages up your war it will put all files in the resources
> directory into your war file under the WEB-INF/classes directory.
>
> Hope this helps.
>
> Ben
>
>
> On 8/28/07, Julien Martin <[EMAIL PROTECTED]> wrote:
> > Hello all,
> > How do I get Maven to include "persistence.xml" into a web app??
> > Any clue welcome!
> > Julien.
> >
> > Here is my POM:
> >
> >
> > 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
> > com.calyonfinancial
> > protide
> > war
> > 1.0-SNAPSHOT
> > ProtideWeb
> > 
> > src
> > build
> > ProtideWeb
> > 
> > 
> > maven-compiler-plugin
> > 
> > 1.5
> > 1.5
> > 
> > 
> > 
> > org.apache.maven.plugins
> > maven-war-plugin
> > 2.0
> > 
> > web
> > 
> > 
> > 
> > org.codehaus.mojo
> > hibernate3-maven-plugin
> > 2.0-alpha-2
> > 
> > 
> > 
> > 
> > 
> > org.hibernate
> > hibernate
> > 3.2.1.ga
> > 
> > 
> > org.hibernate
> > hibernate-annotations
> > 3.2.1.ga
> > 
> > 
> > org.hibernate
> > hibernate-entitymanager
> > 3.2.1.ga
> > 
> > 
> > org.hibernate
> > hibernate-commons-annotations
> > 3.3.0.ga
> > 
> > 
> > org.hibernate
> > hibernate-validator
> > 3.0.0.ga
> > 
> > 
> > javax.persistence
> > persistence-api
> > 1.0
> > 
> > 
> > log4j
> > log4j
> > 1.2.14
> > 
> > 
> > com.sun.xml.bind
> > jaxb-impl
> > 2.0
> > 
> > 
> > com.sun.xml.bind
> > jaxb-xjc
> > 2.0
> > 
> > 
> > javax.xml.bind
> > jaxb-api
> > 2.0
> > 
> > 
> > 
> > jdbc
> > as400
> > 5.1.0.1
> > 
> > 
> > javax.xml.bind
> > jsr173_api
> > 1.0
> > 
> > 
> > org.apache.myfaces.core
> > myfaces-api
> > 1.1.5
> > 
> > 
> > org.apache.myfaces.core
> > myfaces-impl
> > 1.1.5
> > 
> > 
> > org.apache.myfaces.tomahawk
> > tomahawk
> > 1.1.6
> > 
> > 
> > javax.servlet
> > servlet-api
> > 2.4
> > provided
> > 
> > 
> > javax.servlet
> > jsp-api
> > 2.0
> > provided
> > 
> > 
> > org.ajax4jsf
> > ajax4jsf
> > 1.1.1
> > 
> > 
> > org.richfaces
> > richfaces
> > 3.0.1
> > 
> > 
> > org.apache.poi
> > poi
> > 3.0.1-FINAL
> > 
> >
> >
> >
> > 
> > 
> > 
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Failing to add a POI dependency

2007-08-28 Thread Julien Martin
merci

2007/8/28, Arnaud Jeansen <[EMAIL PROTECTED]>:
>
> Hi Julien,
>
> I made a simple test on a maven project I am working on and adding...
>
> 
> org.apache.poi
> poi
> 3.0.1-FINAL
> 
>
> ...downloaded the necessary pom and jar files to my local repository.
>
> If I were to guess I would say that:
> - You cannot connect to http://repo1.maven.org/maven2 (behind a proxy, not
> configured in MAVEN)
> - You can access your company's repository just fine but it doesn't
> contain apache.poi yet
>
> I would say that your options are:
> 1/ Configure your proxy to access http://repo1.maven.org/maven2, there
> should be enough documentation on Internet (i.e. the clean way)
> 2/ Download manually the content of
> http://repo1.maven.org/maven2/org/apache/poi/poi/3.0.1-FINAL/ and put it
> on your company's repository
> 3/ Same as (2) but simply copy the content to your local repository. This
> is a very simple way to make sure your pom.xml is correct.
>
>
> Hoping I helped a colleague :)
>
> Arnaud
>
>
>
> -Original Message-
> From: Julien Martin [mailto:[EMAIL PROTECTED]
> Sent: mardi 28 août 2007 08:19
> To: Maven Users List
> Subject: Re: Failing to add a POI dependency
>
> Hello,
> Here is what I get now that I have changed to org.apache.poi (groupId) and
> turned on the -e switch:
>
> C:\dev\calyonfinancial\ProtideWeb>mvn -e install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
>
> 
> [INFO] Building ProtideWeb
> [INFO]task-segment: [install]
> [INFO]
>
> 
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://cvs/repository/org/apache/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
> [WARNING] Unable to get resource from repository calyonRepository (
> http://cvs/repository)
> Downloading:
>
> http://repo1.maven.org/maven2/org/apache/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.apache.poi:poi
>
> Reason: Error getting POM for 'org.apache.poi:poi' from the repository:
> Error transferring file
>   org.apache.poi:poi:pom:3.0.1-FINAL
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   calyonRepository (http://cvs/repository),
>   jboss repo (http://repository.jboss.com/maven2),
>   maven2 repo (http://repo1.maven.org/maven2)
>
>
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
> dependency information: Unable to read the metadata file for artifact '
> org.apach
> e.poi:poi:jar': Error getting POM for 'org.apache.poi:poi' from the
> repository: Error transferring file
>   org.apache.poi:poi:pom:3.0.1-FINAL
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   calyonRepository (http://cvs/repository),
>   jboss repo (http://repository.jboss.com/maven2),
>   maven2 repo (http://repo1.maven.org/maven2)
>
>   org.apache.poi:poi:jar:3.0.1-FINAL
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   calyonRepository (http://cvs/repository),
>   jboss repo (http://repository.jboss.com/maven2),
>   maven2 repo (http://repo1.maven.org/maven2)
> Path to dependency:
> 1) com.calyonfinancial:protide:war:1.0-SNAPSHOT
>
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:551)
> 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.DefaultLifec

Re: Why does this POM includes the sun's jsf jars??

2007-08-28 Thread Julien Martin
Thanks Jorg,
Your advice was very useful!!!
J.

2007/8/28, Jörg Schaible <[EMAIL PROTECTED]>:
>
> Julien Martin wrote on Tuesday, August 28, 2007 10:23 AM:
>
> > Hello,
> > Why does this POM includes the sun's jsf jars whereas I never asked
> > for them?? I only want the Myfaces Jars...
> > Can anyone help? How do I know which jars are included in a
> > dependency? Thanks in advance,
> > Julien Martin.
>
> The dependency report is your friend. Or look for those artifacts in the
> console output when you build with -X option. Or use a snapshot of the
> dependency plugin calling dependency:tree.
>
> Sun's JSF jars are referenced as transitive dependency and Maven has no
> knowledge about that MyFaces contains an alternative implementation. So you
> must exclude the Sun artifacts in your deps that refer them themselves. In
> your case this it at least richfaces and ajax4j ... but theere might be
> more. Don't know all of your deps.
>
> - Jörg
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


How to get Maven to include "persistence.xml" into a web app??

2007-08-28 Thread Julien Martin
Hello all,
How do I get Maven to include "persistence.xml" into a web app??
Any clue welcome!
Julien.

Here is my POM:


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
com.calyonfinancial
protide
war
1.0-SNAPSHOT
ProtideWeb

src
build
ProtideWeb


maven-compiler-plugin

1.5
1.5



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

web



org.codehaus.mojo
hibernate3-maven-plugin
2.0-alpha-2





org.hibernate
hibernate
3.2.1.ga


org.hibernate
hibernate-annotations
3.2.1.ga


org.hibernate
hibernate-entitymanager
3.2.1.ga


org.hibernate
hibernate-commons-annotations
3.3.0.ga


org.hibernate
hibernate-validator
3.0.0.ga


javax.persistence
persistence-api
1.0


log4j
log4j
1.2.14


com.sun.xml.bind
jaxb-impl
2.0


com.sun.xml.bind
jaxb-xjc
2.0


javax.xml.bind
jaxb-api
2.0



jdbc
as400
5.1.0.1


javax.xml.bind
jsr173_api
1.0


org.apache.myfaces.core
myfaces-api
1.1.5


org.apache.myfaces.core
myfaces-impl
1.1.5


org.apache.myfaces.tomahawk
tomahawk
1.1.6


javax.servlet
servlet-api
2.4
provided


javax.servlet
jsp-api
2.0
provided


org.ajax4jsf
ajax4jsf
1.1.1


org.richfaces
richfaces
3.0.1


org.apache.poi
poi
3.0.1-FINAL









Why does this POM includes the sun's jsf jars??

2007-08-28 Thread Julien Martin
Hello,
Why does this POM includes the sun's jsf jars whereas I never asked for
them?? I only want the Myfaces Jars...
Can anyone help? How do I know which jars are included in a dependency?
Thanks in advance,
Julien Martin.


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
com.calyonfinancial
protide
war
1.0-SNAPSHOT
ProtideWeb

src
build
ProtideWeb


maven-compiler-plugin

1.5
1.5



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

web






org.hibernate
hibernate
3.2.1.ga


org.hibernate
hibernate-annotations
3.2.0.ga


javax.persistence
persistence-api
1.0


log4j
log4j
1.2.14


com.sun.xml.bind
jaxb-impl
2.0


com.sun.xml.bind
jaxb-xjc
2.0


javax.xml.bind
jaxb-api
2.0



jdbc
as400
5.1.0.1


javax.xml.bind
jsr173_api
1.0


org.apache.myfaces.core
myfaces-api
1.1.5


org.apache.myfaces.core
myfaces-impl
1.1.5


org.apache.myfaces.tomahawk
tomahawk
1.1.6


javax.servlet
servlet-api
2.4
provided


javax.servlet
jsp-api
2.0
provided


org.ajax4jsf
ajax4jsf
1.1.1


org.richfaces
richfaces
3.0.1


org.apache.poi
poi
3.0.1-FINAL






Re: Failing to add a POI dependency

2007-08-27 Thread Julien Martin
Sorry: I had forgotten to include proxy info in my maven settings.xml.
J.

2007/8/28, Julien Martin <[EMAIL PROTECTED]>:
>
> Hello,
> Here is what I get now that I have changed to org.apache.poi (groupId) and
> turned on the -e switch:
>
> C:\dev\calyonfinancial\ProtideWeb>mvn -e install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Building ProtideWeb
> [INFO]task-segment: [install]
> [INFO]
> 
>
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: 
> http://cvs/repository/org/apache/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
>
> [WARNING] Unable to get resource from repository calyonRepository (
> http://cvs/repository)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.apache.poi:poi
>
> Reason: Error getting POM for 'org.apache.poi:poi' from the repository:
> Error transferring file
>   org.apache.poi:poi:pom:3.0.1-FINAL
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   calyonRepository ( http://cvs/repository),
>   jboss repo (http://repository.jboss.com/maven2),
>   maven2 repo (http://repo1.maven.org/maven2 )
>
>
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
> dependency information: Unable to read the metadata file for artifact '
> org.apach
> e.poi:poi:jar': Error getting POM for 'org.apache.poi:poi' from the
> repository: Error transferring file
>   org.apache.poi:poi:pom:3.0.1-FINAL
>
> from the specified remote repositories:
>   central ( http://repo1.maven.org/maven2),
>   calyonRepository (http://cvs/repository),
>   jboss repo ( http://repository.jboss.com/maven2),
>   maven2 repo (http://repo1.maven.org/maven2)
>
>   org.apache.poi:poi:jar:3.0.1-FINAL
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   calyonRepository (http://cvs/repository),
>   jboss repo ( http://repository.jboss.com/maven2),
>   maven2 repo (http://repo1.maven.org/maven2)
> Path to dependency:
> 1) com.calyonfinancial:protide:war:1.0-SNAPSHOT
>
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:551)
> 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:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: 
> Unable to get dependency information: Unable to read the metadata file for
> artifact 'org.apache.poi:poi:jar': Error getting POM for '
> org.apache.poi:poi' from the repository: Error transferring file
>   org.apache.poi:poi:pom:3.0.1-FINAL
>
> from the sp

Re: Failing to add a POI dependency

2007-08-27 Thread Julien Martin
Hello,
Here is what I get now that I have changed to org.apache.poi (groupId) and
turned on the -e switch:

C:\dev\calyonfinancial\ProtideWeb>mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

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

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://cvs/repository/org/apache/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
[WARNING] Unable to get resource from repository calyonRepository (
http://cvs/repository)
Downloading:
http://repo1.maven.org/maven2/org/apache/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

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


Project ID: org.apache.poi:poi

Reason: Error getting POM for 'org.apache.poi:poi' from the repository:
Error transferring file
  org.apache.poi:poi:pom:3.0.1-FINAL

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  calyonRepository (http://cvs/repository),
  jboss repo (http://repository.jboss.com/maven2),
  maven2 repo (http://repo1.maven.org/maven2)



[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
dependency information: Unable to read the metadata file for artifact '
org.apach
e.poi:poi:jar': Error getting POM for 'org.apache.poi:poi' from the
repository: Error transferring file
  org.apache.poi:poi:pom:3.0.1-FINAL

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  calyonRepository (http://cvs/repository),
  jboss repo (http://repository.jboss.com/maven2),
  maven2 repo (http://repo1.maven.org/maven2)

  org.apache.poi:poi:jar:3.0.1-FINAL

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  calyonRepository (http://cvs/repository),
  jboss repo (http://repository.jboss.com/maven2),
  maven2 repo (http://repo1.maven.org/maven2)
Path to dependency:
1) com.calyonfinancial:protide:war:1.0-SNAPSHOT


at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:551)
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:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
Unable to get dependency information: Unable to read the metadata file for
artifact 'org.apache.poi:poi:jar': Error getting POM for 'org.apache.poi:poi'
from the repository: Error transferring file
  org.apache.poi:poi:pom:3.0.1-FINAL

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  calyonRepository (http://cvs/repository),
  jboss repo (http://repository.jboss.com/maven2),
  maven2 repo (http://repo1.maven.org/maven2)

  org.apache.poi:poi:jar:3.0.1-FINAL

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  calyonRepository (http://cvs/repository),
  jboss repo (http://repository.jboss.com/maven2),
  maven2 repo (http://repo1.maven.org/maven2)
Path to dependency:
1) com.calyonfinancial:protide:war:1.0-SNAPSHOT


at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(
DefaultArtifactCollector.java:297)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect

Re: Failing to add a POI dependency

2007-08-27 Thread Julien Martin
Thanks but it is not working either with the above groupId...
J.

2007/8/27, Dennis Lundberg <[EMAIL PROTECTED]>:
>
> Julien Martin wrote:
> > Hello,
> >
> > I am trying to add a POI (http://poi.apache.org) dependency and I am
> running
> > into the following problems:
> >
> > C:\dev\calyonfinancial\ProtideWeb>mvn install
> > [INFO] Scanning for projects...
> > [INFO]
> >
> 
> > [INFO] Building ProtideWeb
> > [INFO]task-segment: [install]
> > [INFO]
> >
> 
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [WARNING]
> > Artifact junit:junit:jar:3.8.1:test retains local scope 'test'
> > overriding broader scope 'compile'
> > given by a dependency. If this is not intended, modify or remove
> the
> > local scope.
> >
> > Downloading:
> http://cvs/repository/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
> > [WARNING] Unable to get resource from repository calyonRepository (
> > http://cvs/repository)
> > Downloading:
> > http://repo1.maven.org/maven2/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] Error building POM (may not be this project's POM).
> >
> >
> > Project ID: poi:poi
> >
> > Reason: Error getting POM for 'poi:poi' from the repository: Error
> > transferring file
> >   poi:poi:pom:3.0.1-FINAL
>
> It seems that this is a "relocation" pom. If you have a look at the pom
> in the central repo you will see that.
>
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2),
> >   calyonRepository (http://cvs/repository),
> >   jboss repo (http://repository.jboss.com/maven2),
> >   maven2 repo (http://repo1.maven.org/maven2)
> >
> >
> >
> > [INFO]
> > 
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > 
> > [INFO] Total time: 27 seconds
> > [INFO] Finished at: Mon Aug 27 18:57:25 CEST 2007
> > [INFO] Final Memory: 5M/10M
> > [INFO]
> > 
> >
> >
> > Here is the dependency I am trying to add:
> >
> >
> > 
> > poi
> > poi
> > 3.0.1-FINAL
> > 
>
> You should use
>org.apache.poi
> instead.
>
> >
> > And the settings file:
> >
> > 
> > 
> > 
> > 
> > calyonprofile
> > 
> > 
> > calyonRepository
> > calyon default repository
> > http://cvs/repository
> > 
> > 
> > maven2 repo
> > maven2 repo
> > http://repo1.maven.org/maven2
> > 
> > 
> > jboss repo
> > jboss repo
> > http://repository.jboss.com/maven2
> > 
> > 
> > 
> > 
> > 
> > calyonprofile
> > 
> > 
> >
> >
> > Can anyone help please?
> >
> > Thanks in advance,
> >
> > Julien Martin.
> >
>
>
> --
> Dennis Lundberg
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Failing to add a POI dependency

2007-08-27 Thread Julien Martin
Hello,

I am trying to add a POI (http://poi.apache.org) dependency and I am running
into the following problems:

C:\dev\calyonfinancial\ProtideWeb>mvn install
[INFO] Scanning for projects...
[INFO]

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

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING]
Artifact junit:junit:jar:3.8.1:test retains local scope 'test'
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove the
local scope.

Downloading: http://cvs/repository/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
[WARNING] Unable to get resource from repository calyonRepository (
http://cvs/repository)
Downloading:
http://repo1.maven.org/maven2/poi/poi/3.0.1-FINAL/poi-3.0.1-FINAL.pom
[INFO]

[ERROR] BUILD ERROR
[INFO]

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


Project ID: poi:poi

Reason: Error getting POM for 'poi:poi' from the repository: Error
transferring file
  poi:poi:pom:3.0.1-FINAL

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  calyonRepository (http://cvs/repository),
  jboss repo (http://repository.jboss.com/maven2),
  maven2 repo (http://repo1.maven.org/maven2)



[INFO]

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

[INFO] Total time: 27 seconds
[INFO] Finished at: Mon Aug 27 18:57:25 CEST 2007
[INFO] Final Memory: 5M/10M
[INFO]



Here is the dependency I am trying to add:



poi
poi
3.0.1-FINAL



And the settings file:





calyonprofile


calyonRepository
calyon default repository
http://cvs/repository


maven2 repo
maven2 repo
http://repo1.maven.org/maven2


jboss repo
jboss repo
http://repository.jboss.com/maven2





calyonprofile




Can anyone help please?

Thanks in advance,

Julien Martin.


You must specify at least one goal. Try 'install'

2007-01-25 Thread Julien Martin

Hello,

I have the latest version of maven installed on my machine. (2.0.4) as
well as the maven netbeans module installed.

When I run "mvn initialize" I get this:

*
C:\dev\miscenalleous\rcc-maven>mvn initialize
[INFO] Scanning for projects...
[INFO] 

[INFO] Building rcc-maven
[INFO]task-segment: [initialize]
[INFO] 

[INFO] [scm:bootstrap {execution: default}]
[INFO] Removing C:\dev\miscenalleous\rcc-maven\target\checkout
[INFO] Executing: cvs -z3 -f -d
:pserver:[EMAIL PROTECTED]:/usr/local/cvsroot -q checkout -d checkout rcc
[INFO] Working directory: C:\dev\miscenalleous\rcc-maven\target
[INFO] Scanning for projects...
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] You must specify at least one goal. Try 'install'
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Jan 25 12:26:09 CET 2007
[INFO] Final Memory: 1M/2M
[INFO] 
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Result of mvn execution is: '1'. Release failed.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 16 seconds
[INFO] Finished at: Thu Jan 25 12:26:09 CET 2007
[INFO] Final Memory: 4M/8M
[INFO] 

C:\dev\miscenalleous\rcc-maven>
*

here is my POM:

*
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
   com.calyonfinancial
   rcc-maven
   jar
   1.0
   rcc-maven
   http://maven.apache.org
   
   
   junit
   junit
   3.8.1
   test
   
   

   
   target
   target/classes
   ${artifactId}-${version}
   target/test-classes
   src/main/java
   src/test/java
   
   
   src/main/resources
   
   
   
   
   src/test/resources
   
   

   
   
   org.apache.maven.plugins
   maven-scm-plugin
   
   
   initialize
   
   bootstrap
   
   
   
   
   
   

   
   scm:cvs:pserver:jumartin:[EMAIL 
PROTECTED]:/usr/local/cvsroot:rcc
   HEAD
   
   


*

I would be grateful for some help.

Thanks in advance,

Julien.

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



Using a cvs repository for the sources

2007-01-25 Thread Julien Martin

Hello,

I am completely new to maven and would be grateful for some help. I
would like for my pom to point to a cvs repository so that:
1. Maven retrieves the sources for my app from distant cvs
2. Maven places the sources into the local repository
3. Maven compiles the sources and places the build into the local repository
Any pointer or help very welcome.
Thanks in advance,
Julien.

ps Unfortunately we cannot have a shared entreprise-wide remote repository.

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



Re: Question about the scm plugin

2007-01-25 Thread Julien Martin

by changing the environment variable "path"...

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

How can I set the CVS.exe path?
Thanks!

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 11:07 AM
To: Maven Users List
Subject: Re: Question about the scm plugin

because we don't use yet a pure java client for cvs

Emmanuel

Julien Martin a écrit :
> Hello,
> I would like to know whether the use of the scm plugin and especially
> the use of the cvs goal of the scm plugin requires the presence of the
> cvs executable on the user machine.
> Thanks in advance,
> Julien.
>
> -
> 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: Question about the scm plugin

2007-01-25 Thread Julien Martin

thanks manu.

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



Question about the scm plugin

2007-01-25 Thread Julien Martin

Hello,
I would like to know whether the use of the scm plugin and especially
the use of the cvs goal of the scm plugin requires the presence of the
cvs executable on the user machine.
Thanks in advance,
Julien.

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