Re: Company-wide settings

2010-10-04 Thread Nathan Sowatskey (nsowatsk)
In our project we have a project wide settings.xml in Subversion, and we ask 
all developers to put that into their ~/.m2 directory.

Regards

Nathan

Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, ScanSafe - 
+34-638-083-675

On 4 Oct 2010, at 12:30, "Anders Hammar"  wrote:

> One issue with this approach is that m2eclipse will not use this
> settings.xml file (by default, as it has it's own embedded Maven). I guess
> this could be solved by configuring the standalone Maven installation in
> m2eclipse.
> 
> Anyone that has actually tried the approach of having a "corporate"
> settings.xml bundled with a custom Maven distro?
> 
> /Anders
> 
> On Mon, Oct 4, 2010 at 11:46, Wendy Smoak  wrote:
> 
>> On Sun, Oct 3, 2010 at 5:34 PM, Phillip Hellewell 
>> wrote:
>>> The idea is to have a shared "company-level" settings.xml with
>>> settings like profiles that most developers will want, and to have
>>> them automatically available.  The alternative is for everyone to
>>> manually append it to their global or user-level settings.xml.
>> 
>> One way is to make a custom Maven distribution for your organization,
>> with a modified settings.xml.
>> 
>> This also has the advantage of having all developers use the same
>> version, which makes support easier.
>> 
>> Many organizations don't allow developers to download and install
>> random stuff off the internet anyway, so this becomes your
>> corporate/approved/official Maven distro.
>> 
>> --
>> Wendy
>> 
>> -
>> 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: Just shoot me now and get it over with

2009-06-06 Thread Nathan Sowatskey (nsowatsk)
An example is that the Maven site build did not pick up the contents of the 
index.apt.

My colleagues may have other examples.

Regards

Nathan

--
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG, XMP 
Architecture - +34-638-083-675 

 -Original Message-
From:   Matt Brown [mailto:matt.br...@citrixonline.com]
Sent:   Saturday, June 06, 2009 02:33 PM Central Europe Standard Time
To: Maven Users List
Subject:RE: Just shoot me now and get it over with

Can you provide some details on why you need to use an external install with 
m2eclipse and not the embedded one?


From: Nathan Sowatskey (nsowatsk) [nsowa...@cisco.com]
Sent: Saturday, June 06, 2009 6:18 AM
To: Maven Users List; Maven Users List
Subject: Re: Just shoot me now and get it over with

The m2eclipse plugin works well. But you need to configure it to use an 
external Maven install *not* the embedded one.

Regards

Nathan

--
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG, XMP 
Architecture - +34-638-083-675

 -Original Message-
From:   Sebastian Hoß [mailto:m...@shoss.de]
Sent:   Saturday, June 06, 2009 11:51 AM Central Europe Standard Time
To: Maven Users List
Subject:Re: Just shoot me now and get it over with

Steve Cohen wrote:
> I am working in a sort of bastardized Eclipse-maven world for months now.
> I have had for months a M2_REPO variable in Eclipse pointing to a local
> Maven repository.  I know this is not the approved Maven way, but it has
> worked for me for months without difficulty.

As i'm doing the same here ever since - what is the approved Maven way?

-
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: Just shoot me now and get it over with

2009-06-06 Thread Nathan Sowatskey (nsowatsk)
The m2eclipse plugin works well. But you need to configure it to use an 
external Maven install *not* the embedded one.

Regards

Nathan

--
Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG, XMP 
Architecture - +34-638-083-675 

 -Original Message-
From:   Sebastian Hoß [mailto:m...@shoss.de]
Sent:   Saturday, June 06, 2009 11:51 AM Central Europe Standard Time
To: Maven Users List
Subject:Re: Just shoot me now and get it over with

Steve Cohen wrote:
> I am working in a sort of bastardized Eclipse-maven world for months now.
> I have had for months a M2_REPO variable in Eclipse pointing to a local
> Maven repository.  I know this is not the approved Maven way, but it has
> worked for me for months without difficulty.

As i'm doing the same here ever since - what is the approved Maven way?

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



Problem with Tables, Doxia, APT Maven site and PDF/RTF generation

2009-06-04 Thread Nathan Sowatskey (nsowatsk)
Hi all

I have a Maven site based on .apt files. I have also created a book descriptor 
for the same site.

When I process the site, I get the error below.

I have tried the latest Doxia 1.1.1-SNAPSHOT out of the svn repo today.

I have also looked at the iText code. The latest is 2.1.5. Doxia seems to be 
using 1.4, and won't compile with iText 2.1.5.  

The intermediate xml seems to generated without problems. It is the 
xml->pdf/rtf stage that seems to have problems.

Any ideas anyone please?

Thanks

Nathan



task-segment: [site]
[INFO] 
[INFO] [doxia:render-books {execution: default}]
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] com.lowagie.text.Table
[INFO] 
[INFO] Trace
java.lang.ClassCastException: com.lowagie.text.Table
at com.lowagie.text.xml.SAXiTextHandler.handleEndingTags(Unknown Source)
at com.lowagie.text.xml.SAXiTextHandler.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at com.lowagie.text.xml.XmlParser.go(Unknown Source)
at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
at com.lowagie.text.xml.XmlToXXX.parse(Unknown Source)
at 
org.apache.maven.doxia.module.itext.ITextUtil.writePdf(ITextUtil.java:118)
at 
org.apache.maven.doxia.book.services.renderer.PdfBookRenderer.renderXML(PdfBookRenderer.java:50)
at 
org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.renderBook(AbstractITextBookRenderer.java:163)
at 
org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.java:142)
at 
org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksMojo.java:265)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
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: 6 seconds
[INFO] Finished at: Thu Jun 04 22:10:19 CEST 2009
[INFO] Final Memory: 9M/17M
[INFO] 
bash-3.2$ 


[m2] Using xdoclet to generate EJB artefacts

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
Hi all

Plodding progress. Now that I get the code compiled (see passim), I need to
use xdoclet to generate my interfaces and deployment descriptors.

A similar subject on the list referred to:

http://maven.apache.org/maven2/plugins/maven-ejb-plugin/ejb-mojo.html

But there seems to be a checksum mismatch on all of the versions of that
plugin.

And I have also found:

http://www.ibiblio.org/maven2/maven-xdoclet2-plugin/maven-xdoclet2-plugin/

But I can't see any examples of usage or guidance.

Has anyone got any ideas here please?

Many thanks

Nathan

--
Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk 
+44-208-824-4259 - Mobile +44-7740-449794 - AIM id
NathanCisco - [EMAIL PROTECTED] 

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



[m2] FYI - CHECKSUM MISMATCH for maven-ejb-plugin-1.5/4/3/2.jar

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.5/maven-ejb-
plugin-1.5.jar
9K downloaded
Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.5/maven-ejb-
plugin-1.5.jar.md5
0K downloaded
[WARNING] *** CHECKSUM MISMATCH - currently disabled fail due to bad
repository
checksums ***
---

Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.4/maven-ejb-
plugin-1.4.jar.md5
0K downloaded
[WARNING] *** CHECKSUM MISMATCH - currently disabled fail due to bad
repository
checksums ***

Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.3/maven-ejb-
plugin-1.3.jar.md5
0K downloaded
[WARNING] *** CHECKSUM MISMATCH - currently disabled fail due to bad
repository
checksums ***

Downloading:
http://repo1.maven.org/maven2/maven/maven-ejb-plugin/1.3/maven-ejb-
plugin-1.3.jar.md5
0K downloaded
[WARNING] *** CHECKSUM MISMATCH - currently disabled fail due to bad
repository
checksums ***

--
Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk 
+44-208-824-4259 - Mobile +44-7740-449794 - AIM id
NathanCisco - [EMAIL PROTECTED] 

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



RE: M2 EJB basics

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
Many thanks for the pointers. This is what worked:

  
  geronimo-spec
  geronimo-spec-j2ee
  1.4-rc4


I was not sure what to do with the point about using a reference
implementation from Sun. What changes would I make to my pom.xml for that?

Regards

Nathan 

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 12:25 PM
To: Maven Users List; [EMAIL PROTECTED]
Cc: Nicolas Chalumeau
Subject: Re: M2 EJB basics

On 6/9/05, Nathan Sowatskey (nsowatsk) <[EMAIL PROTECTED]> wrote:
> 1 - I would normally (I think) wanted to have been able to refer to 
> the file called jboss-j2ee.jar in the $JBOSS_HOME/server/all/lib dir. 
> Of course I can copy and rename as I have below, but that doesn't seem 
> right. What do other people do here?

You have a few options:
- install in the local repo, as you have
- use a reference implementation - j2ee from sun for compilation
- use geronimo-spec for compilation (it is available in the repo already)

> 2 - It seems as though the relationship between a dependency and a jar 
> is 1:1. If I wanted to just add all of the jars in a given directory, 
> how would I do that?

Create another dependency with packaging = pom, say j2ee-all, that declared
dependencies on all the others, then refer to that from your projects.

> [INFO]
> G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\Invento
> ry ession.java:[125,15]  InventoryQueryResponse(java.util.Collection) 
> in com.cisco nm.poc.inventory.util.InventoryQueryResponse cannot be 
> applied to ()

This appears to me to be a compile error in your code.

Cheers,
Brett

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



RE: M2 EJB basics

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
Thanks :-)

I have shown below what worked for me. A few questions though:

1 - I would normally (I think) wanted to have been able to refer to the file
called jboss-j2ee.jar in the $JBOSS_HOME/server/all/lib dir. Of course I can
copy and rename as I have below, but that doesn't seem right. What do other
people do here?

2 - It seems as though the relationship between a dependency and a jar is
1:1. If I wanted to just add all of the jars in a given directory, how would
I do that?

So, this is what did work for me.

In my pom.xml:

  
  jboss
  j2ee
  2.1


And, in my repository I copy the jboss-j2ee.jar to j2ee-2.1.jar and create a
pom, like this:

G:\nm_poc\ejb\jar>ls "D:\Documents and
Settings\nsowatsk\.m2\repository\jboss\j2
ee\2.1"
j2ee-2.1.jar j2ee-2.1.pom   

G:\nm_poc\ejb\jar>more "D:\Documents and
Settings\nsowatsk\.m2\repository\jboss\
j2ee\2.1/j2ee-2.1.pom"


  4.0.0
  jboss
  j2ee
  2.1


So now I have:

G:\nm_poc\ejb\jar>m2 install
[INFO] inventory-service-pom: using locally installed snapshot
[INFO]

---
[INFO] Building Inventory Service
[INFO]

---
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local
repos
tory
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local
reposi
ory
[INFO] maven-surefire-plugin: resolved to version 2.0-alpha-2 from local
reposi
ory
[INFO] maven-install-plugin: resolved to version 2.0-alpha-2 from local
reposit
ry
[INFO] [resources:resources]
[INFO] [compiler:compile]
Compiling 17 source files to G:\nm_poc\ejb\jar\target\classes
[INFO]

---
[INFO] BUILD FAILURE
[INFO]

---
[INFO] Reason: Compilation failure
[INFO]

---
[INFO]
G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\Inventory
ession.java:[125,15]  InventoryQueryResponse(java.util.Collection) in
com.cisco
nm.poc.inventory.util.InventoryQueryResponse cannot be applied to ()

[INFO]

---
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Jun 09 12:05:42 CEST 2005
[INFO] Final Memory: 1M/7M
[INFO]

---

G:\nm_poc\ejb\jar>

-Original Message-
From: Nicolas Chalumeau [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 11:41 AM
To: Maven Users List; [EMAIL PROTECTED]
Subject: Re: M2 EJB basics

Hi Nathan

2005/6/9, Nathan Sowatskey (nsowatsk) <[EMAIL PROTECTED]>:
> Hi
> 
> It may be that I too much of a newbie to Maven to be considering M2, 
> but I am trying anyway :-)
> 
> In the example below I have some EJB code that won't compile as it 
> can't find the EJB jars.
> 
> What I can't see is how to set the location of the EJB jars though. If 
> this were Maven 1.x I would use properties as part of the solution, 
> but for M2 I just don't know where to start.
> 
> I half suspect that I need to create a dependency, but to what and 
> where and how I don't know.

You have the solution here : you need to add a j2ee-XX.jar dependency in
your pom for this project. But as it will not be on ibiblio you need to
download and install it in your m2 repository manually.

> 
> If someone wants to tell me that M2 is not ready for newbies, that's 
> fine and I will go look at 1.x. If someone can help me get this to 
> work though, then I will persevere and maybe help make M2 a better thing.

We all are newbies in M2 ;-) (only the great dev team is not...)

Nicolas,

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



M2 EJB basics

2005-06-09 Thread Nathan Sowatskey \(nsowatsk\)
Hi

It may be that I too much of a newbie to Maven to be considering M2, but I
am trying anyway :-)

In the example below I have some EJB code that won't compile as it can't
find the EJB jars.

What I can't see is how to set the location of the EJB jars though. If this
were Maven 1.x I would use properties as part of the solution, but for M2 I
just don't know where to start.

I half suspect that I need to create a dependency, but to what and where and
how I don't know.

If someone wants to tell me that M2 is not ready for newbies, that's fine
and I will go look at 1.x. If someone can help me get this to work though,
then I will persevere and maybe help make M2 a better thing.

Thanks

Nathan


G:\nm_poc\ejb\jar>m2 install
[INFO] inventory-service-pom: using locally installed snapshot
[INFO]
-
---
[INFO] Building Inventory Service
[INFO]
-
---
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local
reposi
tory
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local
reposit
ory
[INFO] maven-surefire-plugin: resolved to version 2.0-alpha-2 from local
reposit
ory
[INFO] maven-install-plugin: resolved to version 2.0-alpha-2 from local
reposito
ry
[INFO] [resources:resources]
[INFO] [compiler:compile]
Compiling 17 source files to G:\nm_poc\ejb\jar\target\classes
[INFO]
-
---
[INFO] BUILD FAILURE
[INFO]
-
---
[INFO] Reason: Compilation failure
[INFO]
-
---
[INFO]
G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\InventoryS
ession.java:[12,17]  package javax.ejb does not exist
G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\InventorySess
ion.
java:[13,17]  package javax.ejb does not exist
...
]  package javax.ejb does not exist
G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\InventorySess
ion.
java:[125,15]  InventoryQueryResponse(java.util.Collection) in
com.cisco.nm.poc.
inventory.util.InventoryQueryResponse cannot be applied to ()

[INFO]
-
---
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Jun 09 11:24:30 CEST 2005
[INFO] Final Memory: 1M/7M

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



Maven 2.0 - compile - "No sources to compile"

2005-06-07 Thread Nathan Sowatskey \(nsowatsk\)
Hi

I am trying out Maven 2.0 for the first time. At this stage it doesn't see
any code to compile.

This is the trace:

G:\nm_poc\ejb\jar>m2 -e compile
+ Error stacktraces are turned on.
[INFO] inventory-service-pom: using locally installed snapshot
[INFO]
-
---
[INFO] Building Inventory Service
[INFO]
-
---
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local
repository
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local
reposi
tory
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local
reposit
ory
[INFO] [resources:resources]
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO]
-
---
[INFO] BUILD SUCCESSFUL
[INFO]
-
---
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Jun 07 21:26:32 CEST 2005
[INFO] Final Memory: 1M/2M
[INFO]
-
---

G:\nm_poc\ejb\jar>

This is what I have in my pom.xml for the compiler plugin.

>From pom.xml:

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



I have tried various paths in the place where javax appears, but the results
seem to be the same.

And there is code in the directrory.

G:\nm_poc\ejb\jar>ls src/main/javax/oss
ApplicationContext.java QueryValue.java
AttributeAccess.javaSerializer.java
IllegalArgumentException.java   SerializerFactory.java
ManagedEntityKey.java   UnsupportedAttributeException.java
ManagedEntityValue.java XmlSerializer.java
ManagedEntityValueIterator.java XmlSerializerEncodingStyles.java

G:\nm_poc\ejb\jar>

G:\nm_poc\ejb\jar>ls
pom.xml  src

Does anyone have a clue here please? I know that it must be obvious, but ...

Many thanks

Nathan

--
Nathan Sowatskey - Technical Leader, NMTG CTO Engineering - Desk 
+44-208-824-4259 - Mobile +44-7740-449794 - AIM id
NathanCisco - [EMAIL PROTECTED] 

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