You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mi...@swissre.com on 2004/08/18 13:46:59 UTC

Problems with maven.compile.executable attribute

With the java plugin version 1.4 the property maven.compile.executable is
available.

I want to run maven with a jdk 1.4 but to compile my code with a specific
ibm 1.3.1 compiler therefore I added the two property

maven.compile.fork=true and the
maven.compile.executable= /my/javac

now the compiler it is correctly picked but I always get the following
error  because as you could see from the stacktrace below the -source
arguments does not exist for jdk 1.3.1
is there a way to control the args that I am passing as arguments of my
executable ? If I exclude the -source attribute in the plugin everything
works as designed.

Best Regards


Michele Forte

    [javac] [DEBUG] Execute:Java13CommandLauncher: Executing 'C:
\Srdev\sdk\jdk1.3.1_07\bin\javac' with arguments:
'-d'
'\target\classes'
'-classpath'
'myclass.jar'
'-sourcepath'
'\src\java'
'-target'
'1.3'
'-g'
'-source'
'1.3'
'@D:\Data\files1821080307'

The ' characters around the executable and arguments are
not part of the command.

    [javac] javac: invalid flag: -source
    [javac] Usage: javac <options> <source files>
    [javac] where possible options include:
    [javac]   -g                        Generate all debugging info
    [javac]   -g:none                   Generate no debugging info
    [javac]   -g:{lines,vars,source}    Generate only some debugging info
    [javac]   -O                        Optimize; may hinder debugging or
enlarge class file
    [javac]   -nowarn                   Generate no warnings
    [javac]   -verbose                  Output messages about what the
compiler is doing
    [javac]   -deprecation              Output source locations where
deprecated APIs are used
    [javac]   -classpath <path>         Specify where to find user class
files
    [javac]   -sourcepath <path>        Specify where to find input source
files
    [javac]   -bootclasspath <path>     Override location of bootstrap
class files
    [javac]   -extdirs <dirs>           Override location of installed
extensions
    [javac]   -d <directory>            Specify where to place generated
class files
    [javac]   -encoding <encoding>      Specify character encoding used by
source files
    [javac]   -target <release>         Generate class files for specific
VM version
    [javac]



This e-mail, including attachments, is intended for the person(s) or
company named and may contain confidential and/or legally privileged
information. Unauthorized disclosure, copying or use of this information
may be unlawful and is prohibited. If you are not the intended recipient,
please delete this message and notify the sender




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


Re: Problems with maven.compile.executable attribute

Posted by Brett Porter <br...@gmail.com>.
I believe if you check that maven.compile.source is not set, it should work.

On Wed, 18 Aug 2004 13:46:59 +0200, michele_forte@swissre.com
<mi...@swissre.com> wrote:
> With the java plugin version 1.4 the property maven.compile.executable is
> available.
> 
> I want to run maven with a jdk 1.4 but to compile my code with a specific
> ibm 1.3.1 compiler therefore I added the two property
> 
> maven.compile.fork=true and the
> maven.compile.executable= /my/javac
> 
> now the compiler it is correctly picked but I always get the following
> error  because as you could see from the stacktrace below the -source
> arguments does not exist for jdk 1.3.1
> is there a way to control the args that I am passing as arguments of my
> executable ? If I exclude the -source attribute in the plugin everything
> works as designed.
> 
> Best Regards
> 
> Michele Forte
> 
>     [javac] [DEBUG] Execute:Java13CommandLauncher: Executing 'C:
> \Srdev\sdk\jdk1.3.1_07\bin\javac' with arguments:
> '-d'
> '\target\classes'
> '-classpath'
> 'myclass.jar'
> '-sourcepath'
> '\src\java'
> '-target'
> '1.3'
> '-g'
> '-source'
> '1.3'
> '@D:\Data\files1821080307'
> 
> The ' characters around the executable and arguments are
> not part of the command.
> 
>     [javac] javac: invalid flag: -source
>     [javac] Usage: javac <options> <source files>
>     [javac] where possible options include:
>     [javac]   -g                        Generate all debugging info
>     [javac]   -g:none                   Generate no debugging info
>     [javac]   -g:{lines,vars,source}    Generate only some debugging info
>     [javac]   -O                        Optimize; may hinder debugging or
> enlarge class file
>     [javac]   -nowarn                   Generate no warnings
>     [javac]   -verbose                  Output messages about what the
> compiler is doing
>     [javac]   -deprecation              Output source locations where
> deprecated APIs are used
>     [javac]   -classpath <path>         Specify where to find user class
> files
>     [javac]   -sourcepath <path>        Specify where to find input source
> files
>     [javac]   -bootclasspath <path>     Override location of bootstrap
> class files
>     [javac]   -extdirs <dirs>           Override location of installed
> extensions
>     [javac]   -d <directory>            Specify where to place generated
> class files
>     [javac]   -encoding <encoding>      Specify character encoding used by
> source files
>     [javac]   -target <release>         Generate class files for specific
> VM version
>     [javac]
> 
> This e-mail, including attachments, is intended for the person(s) or
> company named and may contain confidential and/or legally privileged
> information. Unauthorized disclosure, copying or use of this information
> may be unlawful and is prohibited. If you are not the intended recipient,
> please delete this message and notify the sender
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


Re: Websphere deploy code (UPDATE)

Posted by jeff mutonho <ej...@yahoo.com>.
I'm trying to generate my ejb deploy code (for websphere ) by running "maven was40:generate-ejb-code" and all seems ok until i get an error message saying something about "delete with no primary key"(see below paste).The created dorectory  was40/ejbdeploy is empty :
 
There is part of my output from "maven was40:generate-ejb-code" :

[exec] Generating deployment code
[exec]
[exec]
[exec]   Processing session bean: UniqueIDEjb
[exec]
[exec]   Processing CMP entity bean: GroupEjb
[exec]
[exec] Building: /Support_Persistence-1.1.jar.
[exec]
[exec]
[exec]   Invoking Java Builder on /Support_Persistence-1.1.jar.
[exec]
[exec]   Scrubbing output folder
[exec]
[exec]   Analyzing packages
[exec]
[exec]   Analyzing sources
[exec]
[exec]   Compiling content of ejbModule/net/msl/support/busobject
[exec]
[exec]   Copying all resources on the classpath
[exec]
[exec]   Build done.
[exec]
[exec]   Java build completed
[exec] [*Error] An unexpected exception was thrown.  Halting execution.
[exec]
[exec]
[exec] Shutting down workbench.
    [exec] Shutting down workbench.
    [exec]
    [exec] delete with no primary key
    [exec] >com.ibm.etools.ejbdeploy.EJBDeploymentException (delete with no prim
ary key)
    [exec] >com.ibm.etools.codegen.api.GenerationException (delete with no prima
ry key)
    [exec] com.ibm.ObjectQuery.QueryException: delete with no primary key
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.RdbDeleteQueryTemplate.ini
tialize(RdbDeleteQueryTemplate.java:68)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.RdbDeleteQueryTemplate.<in
it>(RdbDeleteQueryTemplate.java:21)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.RdbDeleteQueryTemplate.cre
ateFrom(RdbDeleteQueryTemplate.java:39)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QuerySubplan.createQueryTe
mplates(QuerySubplan.java:104)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QuerySubplan.initialize(Qu
erySubplan.java:182)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QuerySubplan.<init>(QueryS
ubplan.java:37)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QueryPlan.createSubplan(Qu
eryPlan.java:35)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QueryPlan.initialize(Query
Plan.java:79)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.QueryPlan.<init>(QueryPlan
.java:29)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.WriteQueryCreator.createQu
eryPlan(WriteQueryCreator.java:66)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.WriteQueryCreator.deleteQu
eryPlan(WriteQueryCreator.java:87)
    [exec]      at com.ibm.ObjectQuery.crud.queryplan.WriteQueryCreator.createDe
leteQuery(WriteQueryCreator.java:48)
    [exec]      at com.ibm.etools.ejbdeploy.generators.SqlRemoveString.initializ
e(SqlRemoveString.java:97)
    [exec]      at com.ibm.etools.ejbdeploy.generators.PersisterClass.initialize
(PersisterClass.java:111)
    [exec]      at com.ibm.etools.ejbdeploy.generators.Persister.initialize(Pers
ister.java:56)
    [exec]      at com.ibm.etools.ejbdeploy.generators.CMPBeanDeploy.initialize(
CMPBeanDeploy.java:36)
    [exec]      at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.deployCMP(
EJBDeployOperation.java:183)
    [exec]      at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.run(EJBDep
loyOperation.java:587)
    [exec]      at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doit(EJBDe
ployOperation.java:228)
    [exec]      at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.invokeDe
ployment(BatchExtension.java:744)
    [exec]      at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(Batc
hExtension.java:904)
    [exec]      at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(Batch
Deploy.java:129)
    [exec]      at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:68)
    [exec]      at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:248)
BUILD SUCCESSFUL
 
 
jeff mutonho
 
 
 

Dion Gillard <di...@gmail.com> wrote:
On Wed, 18 Aug 2004 06:39:26 -0700 (PDT), jeff mutonho
wrote:
> Hi guys.
> I've successfully build all the sub-projects that form my application.Some of the sub-projects are EJB projects that will run on a Websphere 4.0 AppServer.
> I know there's a Maven Websphere plugin for Websphere 4.0.I'm struggling to get documentation on how to generate the deploy code, how to go about building the WAR for the web project and eventually the EAR for the whole application.Any pointers , hints,etc
> Please break it down for me :)

You build the war using maven's war goal.

If you're building these things inside WSAD, you might want to set:
maven.war.src=${basedir}/webApplication
maven.war.src.excludes=WEB-INF/classes/*
maven.war.manifest=${pom.build.sourceDirectory}/META-INF/MANIFEST.MF

or something similar.

As for generating the deployment code for the ejbs, see
http://maven-plugins.sourceforge.net/maven-was40-plugin/properties.html
and in particular the maven.was40.ejb.generateCode property.
-- 
http://www.multitask.com.au/people/dion/

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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Websphere deploy code

Posted by Dion Gillard <di...@gmail.com>.
On Wed, 18 Aug 2004 06:39:26 -0700 (PDT), jeff mutonho
<ej...@yahoo.com> wrote:
> Hi guys.
> I've successfully build all the sub-projects that form my application.Some of the sub-projects are EJB projects that will run on a Websphere 4.0  AppServer.
> I know there's a Maven Websphere plugin for Websphere 4.0.I'm struggling to get documentation on how to generate the deploy code, how to go about building the WAR for the web project and eventually the EAR for the whole application.Any pointers , hints,etc
> Please break it down for me :)

You build the war using maven's war goal.

If you're building these things inside WSAD, you might want to set:
maven.war.src=${basedir}/webApplication
maven.war.src.excludes=WEB-INF/classes/*
maven.war.manifest=${pom.build.sourceDirectory}/META-INF/MANIFEST.MF

or something similar.

As for generating the deployment code for the ejbs, see
http://maven-plugins.sourceforge.net/maven-was40-plugin/properties.html
and in particular the maven.was40.ejb.generateCode property.
-- 
http://www.multitask.com.au/people/dion/

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


Websphere deploy code

Posted by jeff mutonho <ej...@yahoo.com>.
Hi guys.
I've successfully build all the sub-projects that form my application.Some of the sub-projects are EJB projects that will run on a Websphere 4.0  AppServer.
I know there's a Maven Websphere plugin for Websphere 4.0.I'm struggling to get documentation on how to generate the deploy code, how to go about building the WAR for the web project and eventually the EAR for the whole application.Any pointers , hints,etc
Please break it down for me :)
 
jeff mutonho

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Maven can't locate my jar

Posted by jeff mutonho <ej...@yahoo.com>.
Thanks.That was indeed the problem

"Jefferson K. French" <je...@frenches.org> wrote:Jeff,

Is your JAR sitting in

/.maven/repository/support

or

/.maven/repository/support/jars

It needs to be in the latter.

Jeff

On Wed, 18 Aug 2004, at 05:40:02 [GMT -0700 (PDT)] jeff mutonho wrote:

> Hi 
> One of my projects uses a jar sitting in a dir /.maven/repository/support and jar is called

> Support_Logging-1.1.jar

> The entry for this dependency in my project.xml file is

> 
> support
> Support_Logging
> 1.1
> 

> When I run "maven jar:install" for the project I get an error message saying :

> at com.werken.forehead.Forehead.main(Forehead.java:581)
> WARNING: Failed to download Support_Logging-1.1.jar.
> The build cannot continue because of the following unsatisfied dependency:
> Support_Logging-1.1.jar

> The debug option (-X) shows that Maven is tried to download 
> http://www.ibiblio.org/maven/vasc-shared/jars/Support_Logging-1.1.jar .Why is Maven failing to locate my jar even though its right there in /.maven/repository/support ? 
> What am I missing?

> jeff mutonho

-- 
mailto:jeff@frenches.org



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



		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: Maven can't locate my jar

Posted by "Jefferson K. French" <je...@frenches.org>.
Jeff,

Is your JAR sitting in

   /.maven/repository/support

or

   /.maven/repository/support/jars

It needs to be in the latter.

  Jeff
  
On Wed, 18 Aug 2004, at 05:40:02 [GMT -0700 (PDT)] jeff mutonho wrote:

> Hi 
> One of my projects uses a jar sitting in a dir  /.maven/repository/support and jar is called
 
> Support_Logging-1.1.jar
 
> The entry for this dependency in my project.xml file is
 
> <dependency>
>          <groupId>support</groupId>
>          <artifactId>Support_Logging</artifactId>
>          <version>1.1</version>
>        </dependency>
 
> When I run "maven jar:install" for the project I get an error message saying :
 
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> WARNING: Failed to download Support_Logging-1.1.jar.
> The build cannot continue because of the following unsatisfied dependency:
> Support_Logging-1.1.jar
 
> The debug option (-X) shows that Maven is tried to download 
>  http://www.ibiblio.org/maven/vasc-shared/jars/Support_Logging-1.1.jar .Why is Maven failing to locate my jar even though its right there in  /.maven/repository/support ? 
> What am I missing?
 
> jeff mutonho

-- 
mailto:jeff@frenches.org



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


Réf. : Maven can't locate my jar

Posted by fa...@mpsa.com.



Hi Jeff,

If you've placed you jar in "/.maven/repository/support", then Maven won't
find it because you're missing one folder: you have to place the jar in "
/.maven/repository/support/jars".

That should work.

Fabrice.




                                                                           
             jeff mutonho                                                  
             <ejbengine@yahoo                                              
             .com>                                                    Pour 
                                       Maven Users List                    
             18/08/2004 14:40          <us...@maven.apache.org>            
                                                                        cc 
                                                                           
                 Veuillez                                            Objet 
                répondre à             Maven can't locate my jar           
             Maven Users List                                              
             <users@maven.apa                                              
                 che.org>                                                  
                                                                           
                                                                           
                                                                           




Hi
One of my projects uses a jar sitting in a dir  /.maven/repository/support
and jar is called

Support_Logging-1.1.jar

The entry for this dependency in my project.xml file is

<dependency>
         <groupId>support</groupId>
         <artifactId>Support_Logging</artifactId>
         <version>1.1</version>
       </dependency>

When I run "maven jar:install" for the project I get an error message
saying :

        at com.werken.forehead.Forehead.main(Forehead.java:581)
WARNING: Failed to download Support_Logging-1.1.jar.
The build cannot continue because of the following unsatisfied dependency:
Support_Logging-1.1.jar

The debug option (-X) shows that Maven is tried to download
 http://www.ibiblio.org/maven/vasc-shared/jars/Support_Logging-1.1.jar .Why
is Maven failing to locate my jar even though its right there in
/.maven/repository/support ?
What am I missing?

jeff mutonho

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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


Maven can't locate my jar

Posted by jeff mutonho <ej...@yahoo.com>.
Hi 
One of my projects uses a jar sitting in a dir  /.maven/repository/support and jar is called
 
Support_Logging-1.1.jar
 
The entry for this dependency in my project.xml file is
 
<dependency>
         <groupId>support</groupId>
         <artifactId>Support_Logging</artifactId>
         <version>1.1</version>
       </dependency>
 
When I run "maven jar:install" for the project I get an error message saying :
 
        at com.werken.forehead.Forehead.main(Forehead.java:581)
WARNING: Failed to download Support_Logging-1.1.jar.
The build cannot continue because of the following unsatisfied dependency:
Support_Logging-1.1.jar
 
The debug option (-X) shows that Maven is tried to download 
 http://www.ibiblio.org/maven/vasc-shared/jars/Support_Logging-1.1.jar .Why is Maven failing to locate my jar even though its right there in  /.maven/repository/support ? 
What am I missing?
 
jeff mutonho

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com