You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jeff mutonho <ej...@yahoo.com> on 2004/08/18 14:40:02 UTC
Maven can't locate my jar
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
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