Re: maven with jgoodies

2009-02-03 Thread Norbert Lazzeri

well this is where intellij put them.

im fine with this since each form-file belongs exactly to one java file. 
they are tied to each other and putting them to src clarifies that fact.

i also put hibernate-mappings into src.

all other resources i put into src/main/resources

however this had no impact on the build so why do you ask?

Dirk Olmes schrieb:

Norbert Lazzeri wrote:
  

hi,

ive used intellij to write a swing-application. i also used the jgoodies
plugin.

for each form i created, the builder created 2 files: TheClass.form
(xml-data), TheClass.java



Where do you put the .form files? In Maven philosophy they're
application resources and belong into src/main/resources, not src/main/java.

-dirk

-
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: maven with jgoodies

2009-02-03 Thread Norbert Lazzeri

awesome! didnt think it would be this easy.

you saved my day. thx a lot!


Stephen Connolly schrieb:

http://mojo.codehaus.org/ideauidesigner-maven-plugin/

2009/2/3 Norbert Lazzeri :
  

i forgoth to say that its a spring-application, so the swing container is
responsible to initialize the gui-components..

Norbert Lazzeri schrieb:


hi,

ive used intellij to write a swing-application. i also used the jgoodies
plugin.

for each form i created, the builder created 2 files: TheClass.form
(xml-data), TheClass.java

now running the application under intellij works fine (just klicking the
run button). but when i package the project with maven i get a
nullpointer-exception when it comes to initialize the gui-components.

it looks like the application isnt aware of the *.form files containing
information about the gui.

until now i allways wrote swing apps by hand putting all the code into one
java file for each form so im not sure about this: do i have to do further
configuration than just adding the jgoodie - jars to the classpath?

i just added a dependency to the pom.xml, configured the dependency plugin
to copy all jars into the target directory and set the classpath in the
jar-plugin.


ill also ask for help in the jgoodie - mailing list but i wanted also to
ask you guys if its a maven related thing like missing a setting


cheers

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

  

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





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

  


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



Re: maven with jgoodies

2009-02-03 Thread Norbert Lazzeri
i forgoth to say that its a spring-application, so the swing container 
is responsible to initialize the gui-components..


Norbert Lazzeri schrieb:

hi,

ive used intellij to write a swing-application. i also used the 
jgoodies plugin.


for each form i created, the builder created 2 files: TheClass.form 
(xml-data), TheClass.java


now running the application under intellij works fine (just klicking 
the run button). but when i package the project with maven i get a 
nullpointer-exception when it comes to initialize the gui-components.


it looks like the application isnt aware of the *.form files 
containing information about the gui.


until now i allways wrote swing apps by hand putting all the code into 
one java file for each form so im not sure about this: do i have to do 
further configuration than just adding the jgoodie - jars to the 
classpath?


i just added a dependency to the pom.xml, configured the dependency 
plugin to copy all jars into the target directory and set the 
classpath in the jar-plugin.



ill also ask for help in the jgoodie - mailing list but i wanted also 
to ask you guys if its a maven related thing like missing a setting



cheers

-
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



maven with jgoodies

2009-02-03 Thread Norbert Lazzeri

hi,

ive used intellij to write a swing-application. i also used the jgoodies 
plugin.


for each form i created, the builder created 2 files: TheClass.form 
(xml-data), TheClass.java


now running the application under intellij works fine (just klicking the 
run button). but when i package the project with maven i get a 
nullpointer-exception when it comes to initialize the gui-components.


it looks like the application isnt aware of the *.form files containing 
information about the gui.


until now i allways wrote swing apps by hand putting all the code into 
one java file for each form so im not sure about this: do i have to do 
further configuration than just adding the jgoodie - jars to the classpath?


i just added a dependency to the pom.xml, configured the dependency 
plugin to copy all jars into the target directory and set the classpath 
in the jar-plugin.



ill also ask for help in the jgoodie - mailing list but i wanted also to 
ask you guys if its a maven related thing like missing a setting



cheers

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



Re: copy libraries to classpath

2008-09-30 Thread Norbert Lazzeri

that solved the problem, thx!

now my plugin-configuration looks like
   
   org.apache.maven.plugins
   maven-dependency-plugin
   
   
${project.build.directory}/lib/

   false
   false
   true
   
   
   
   copy-dependencies
   package
   
   copy-dependencies
   
   
   
   

and everything works fine


cheers
Norbert

Brian E. Fox schrieb:

The ArtifactItem construct is only used for copy/unpack not 
copy-dependencies/unpack-dependencies.

More likely is that you are running this from the command line like mvn 
dependency:copy-dependencies and it's not configured that way. If you want it 
to work from the command line, don't put it inside an executions block. (this 
is a maven issue, there is talk about it in the plugin faq)

-Original Message-----
From: Norbert Lazzeri [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 29, 2008 9:29 AM

To: Maven Users List
Subject: Re: copy libraries to classpath

yeah i red that too. but i thought this would refer to the 
configuration-section of the plugin :-S


cheers
norbert

Nick Stolwijk schrieb:
  

I think the outputDirectory is ignored because of the ArtifactItem
(whatever that may be... ;) )

>From the documentation:

outputDirectory :

Default location used for mojo unless overridden in ArtifactItem

* Type: java.io.File
* Since: 1.0
* Required: No
* Expression: ${outputDirectory}
* Default: ${project.build.directory}/dependency

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Mon, Sep 29, 2008 at 3:01 PM, Norbert Lazzeri <[EMAIL PROTECTED]> wrote:
  


using the maven-dependency-plugin with:
 
  org.apache.maven.plugins
  maven-dependency-plugin
  

  copy-dependencies
  package
  
copy-dependencies
  
  

${project.build.directory}/lib
false
false
true
  

  


like suggested on the plugin-homepage all dependencies are copied to
targed/dependencies. why is the outputDirectory ignored?

cheers,
Norbert

Norbert Lazzeri schrieb:

  

Hi,

is it possible to let maven copy all dependencies to my classpath?

my jar-configuration looks like:
  
  org.apache.maven.plugins
  maven-jar-plugin
  
  
  
true
lib/
uboot.App
  
  
  
   

so it would be nice if maven would create a lib-directory and copy all
jars in to it since there are plenty of them and doing this by hand is
troublesome

cheers,
Norbert

-
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: copy libraries to classpath

2008-09-29 Thread Norbert Lazzeri
yeah i red that too. but i thought this would refer to the 
configuration-section of the plugin :-S


cheers
norbert

Nick Stolwijk schrieb:

I think the outputDirectory is ignored because of the ArtifactItem
(whatever that may be... ;) )

>From the documentation:

outputDirectory :

Default location used for mojo unless overridden in ArtifactItem

* Type: java.io.File
* Since: 1.0
* Required: No
* Expression: ${outputDirectory}
* Default: ${project.build.directory}/dependency

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Mon, Sep 29, 2008 at 3:01 PM, Norbert Lazzeri <[EMAIL PROTECTED]> wrote:
  

using the maven-dependency-plugin with:
 
  org.apache.maven.plugins
  maven-dependency-plugin
  

  copy-dependencies
  package
  
copy-dependencies
  
  

${project.build.directory}/lib
false
false
true
  

  


like suggested on the plugin-homepage all dependencies are copied to
targed/dependencies. why is the outputDirectory ignored?

cheers,
Norbert

Norbert Lazzeri schrieb:


Hi,

is it possible to let maven copy all dependencies to my classpath?

my jar-configuration looks like:
  
  org.apache.maven.plugins
  maven-jar-plugin
  
  
  
true
lib/
uboot.App
  
  
  
   

so it would be nice if maven would create a lib-directory and copy all
jars in to it since there are plenty of them and doing this by hand is
troublesome

cheers,
Norbert

-
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: copy libraries to classpath

2008-09-29 Thread Norbert Lazzeri

using the maven-dependency-plugin with:
  
   org.apache.maven.plugins
   maven-dependency-plugin
   
 
   copy-dependencies
   package
   
 copy-dependencies
   
   
 
${project.build.directory}/lib

 false
 false
 true
   
 
   
 

like suggested on the plugin-homepage all dependencies are copied to 
targed/dependencies. why is the outputDirectory ignored?


cheers,
Norbert

Norbert Lazzeri schrieb:

Hi,

is it possible to let maven copy all dependencies to my classpath?

my jar-configuration looks like:
   
   org.apache.maven.plugins
   maven-jar-plugin
   
   
   
 true
 
lib/   
 uboot.App

   
   
   


so it would be nice if maven would create a lib-directory and copy all 
jars in to it since there are plenty of them and doing this by hand is 
troublesome


cheers,
Norbert

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



copy libraries to classpath

2008-09-29 Thread Norbert Lazzeri

Hi,

is it possible to let maven copy all dependencies to my classpath?

my jar-configuration looks like:
   
   org.apache.maven.plugins
   maven-jar-plugin
   
   
   
 true
 
lib/   
 uboot.App

   
   
   


so it would be nice if maven would create a lib-directory and copy all 
jars in to it since there are plenty of them and doing this by hand is 
troublesome


cheers,
Norbert

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