Hi Brett,
Sorry to misspell your name in the previous emails.
> > Would you suggest that I can specify a packaging "my-rar" in my rar
> pom.xml,
> > but in my ear pom.xml, I can specify type as "rar" when I define my rar
> > project
> > as a dependency project?
>
> Yes, I think so.
I did give a try. I don't have problem to introduce new "asw-rar" package
and build rar out
of it in my rar project pom.xml as the following:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<groupId>oracle.ias.messaging.ns</groupId>
<artifactId>xmpp-adapter</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>asw-rar</packaging>
<!-- ... ... -->
<plugin>
<groupId>oracle.ias.wireless.maven2.plugins</groupId>
<artifactId>asw-rar-plugin</artifactId>
<extensions>true</extensions>
<version>1.0-SNAPSHOT</version>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But, when I specify this asw-rar project in my ear project pom.xml as:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<dependency>
<groupId>oracle.ias.messaging.ns</groupId>
<artifactId>xmpp-adapter</artifactId>
<version>1.0-SNAPSHOT</version>
<type>rar</type>
</dependency>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"mvn compile" failed with the following error messages:
================================================
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
required artifacts missing:
oracle.ias.messaging.ns:xmpp-adapter:rar:1.0-SNAPSHOT
for the artifact:
oracle.ias.messaging.ns:ns-ear:ear:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
internal-http-repository
(http://jianwu-pc2.us.oracle.com/maven2repository/rep
ositoryroot),
http-repository
(http://jianwu-pc2.us.oracle.com/maven2repository/repositoryro
ot)
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: required artifacts
missi
ng:
oracle.ias.messaging.ns:xmpp-adapter:rar:1.0-SNAPSHOT
for the artifact:
oracle.ias.messaging.ns:ns-ear:ear:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
internal-http-repository
(http://jianwu-pc2.us.oracle.com/maven2repository/rep
ositoryroot),
http-repository
(http://jianwu-pc2.us.oracle.com/maven2repository/repositoryro
ot)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:548)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:472)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:139)
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:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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:
requi
red artifacts missing:
oracle.ias.messaging.ns:xmpp-adapter:rar:1.0-SNAPSHOT
for the artifact:
oracle.ias.messaging.ns:ns-ear:ear:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
internal-http-repository
(http://jianwu-pc2.us.oracle.com/maven2repository/rep
ositoryroot),
http-repository
(http://jianwu-pc2.us.oracle.com/maven2repository/repositoryro
ot)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:251)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:211)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:182)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDepende
ncies(DefaultPluginManager.java:1120)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:369)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:531)
... 16 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Mar 29 11:57:50 PST 2006
[INFO] Final Memory: 3M/7M
[INFO]
----------------------------------------------------------------------------
================================================
Any suggestion to work around this issue?
Thanks a lot for the help!
Jian
--
View this message in context:
http://www.nabble.com/Should-all-maven--x--plugin-have-skip-parameter-like-surefire-plugin--t1358571.html#a3657576
Sent from the Maven - Dev forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]