mvn cargo:uberwar

classic Classic list List threaded Threaded
23 messages Options
12
HKB
Reply | Threaded
Open this post in threaded view
|

mvn cargo:uberwar

HKB
I am trying to merge 2 war files and was using the cargo plugin. I am getting the following error: [INFO] artifact org.apache.maven.plugins:maven-cargo-plugin: checking for update s from central [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist o r no valid version could be found [INFO] ------------------------------------------------------------------------ I tried the following - codehaus snapshot repository http://snapshots.repository.codehaus.org/ true org.codehaus.cargo cargo-maven2-plugin 0.3 assemble/merge.xml (I tried all version 0.2, 0.3, 0.3.1) I tried deleting my repository and starting with a clean slate, but get the same error. Any help will be greatly appreciated. Thanks, H
Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

nigelm
Looks to me like it's not downloading the plugin correctly - have you set the codehaus repository as a <pluginRepository> and set the version to 0.3-SNAPSHOT ?


On 07/08/2007, HKB <[hidden email]> wrote:
I am trying to merge 2 war files and was using the cargo plugin. I am getting the following error: [INFO] artifact org.apache.maven.plugins:maven-cargo-plugin: checking for update s from central [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist o r no valid version could be found [INFO] ------------------------------------------------------------------------ I tried the following - codehaus snapshot repository <a href="http://snapshots.repository.codehaus.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://snapshots.repository.codehaus.org/ true org.codehaus.cargo cargo-maven2-plugin 0.3 assemble/merge.xml (I tried all version 0.2, 0.3, 0.3.1) I tried deleting my repository and starting with a clean slate, but get the same error. Any help will be greatly appreciated. Thanks, H

View this message in context: <a href="http://www.nabble.com/mvn-cargo%3Auberwar-tf4232616.html#a12042069" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mvn cargo:uberwar
Sent from the <a href="http://www.nabble.com/Cargo---User-f2406.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Cargo - User mailing list archive at <a href="http://Nabble.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> Nabble.com.

HKB
Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

HKB
Already having this --

  <pluginRepositories>
  <pluginRepository>
    <id>codehaus snapshot repository</id>
    <url>http://snapshots.repository.codehaus.org/</url>
    <releases>
      <enabled>true</enabled>
    </releases>
  </pluginRepository>
</pluginRepositories>

as wells as ..
<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>0.3</version>
        <configuration>
            <descriptor>assemble/merge.xml</descriptor>
        </configuration>
</plugin>

Tried versions..0.2, 0.3, 0.3.1 and 0.3-SNAPSHOT too (8-()

- H




nigelm wrote
Looks to me like it's not downloading the plugin correctly - have you set
the codehaus repository as a <pluginRepository> and set the version to
0.3-SNAPSHOT ?


On 07/08/2007, HKB <harshad@cignex.com> wrote:
>
> I am trying to merge 2 war files and was using the cargo plugin. I am
> getting the following error: [INFO] artifact
> org.apache.maven.plugins:maven-cargo-plugin: checking for update s from
> central [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not
> exist o r no valid version could be found [INFO]
> ------------------------------------------------------------------------ I
> tried the following - codehaus snapshot repository
> http://snapshots.repository.codehaus.org/ true org.codehaus.cargocargo-maven2-plugin
> 0.3 assemble/merge.xml (I tried all version 0.2, 0.3, 0.3.1) I tried
> deleting my repository and starting with a clean slate, but get the same
> error. Any help will be greatly appreciated. Thanks, H
> ------------------------------
> View this message in context: mvn cargo:uberwar<http://www.nabble.com/mvn-cargo%3Auberwar-tf4232616.html#a12042069>
> Sent from the Cargo - User mailing list archive<http://www.nabble.com/Cargo---User-f2406.html>at
> Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

nigelm
I think a combination of adding <snapshots><enabled>true</enabled></snapshots> into the pluginRepository node and using 0.3-SNAPSHOT should work.

That said, 0.3 should be in the central ibiblio repo, so I don't understand why it isn't working...

On 07/08/2007, HKB <[hidden email]> wrote:

Already having this --

  <pluginRepositories>
  <pluginRepository>
    <id>codehaus snapshot repository</id>
    <url>http://snapshots.repository.codehaus.org/ </url>
    <releases>
      <enabled>true</enabled>
    </releases>
  </pluginRepository>
</pluginRepositories>

as wells as ..
<plugin>
        <groupId> org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>0.3</version>
        <configuration>
            <descriptor>assemble/merge.xml</descriptor>
        </configuration>
</plugin>

Tried versions..0.2, 0.3, 0.3.1 and 0.3-SNAPSHOT too (8-()

- H





nigelm wrote:

>
> Looks to me like it's not downloading the plugin correctly - have you set
> the codehaus repository as a <pluginRepository> and set the version to
> 0.3-SNAPSHOT ?
>
>
> On 07/08/2007, HKB <[hidden email]> wrote:
>>
>> I am trying to merge 2 war files and was using the cargo plugin. I am
>> getting the following error: [INFO] artifact
>> org.apache.maven.plugins:maven-cargo-plugin: checking for update s from
>> central [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not
>> exist o r no valid version could be found [INFO]
>> ------------------------------------------------------------------------
>> I
>> tried the following - codehaus snapshot repository
>> http://snapshots.repository.codehaus.org/ true
>> org.codehaus.cargocargo-maven2-plugin
>> 0.3 assemble/merge.xml (I tried all version 0.2, 0.3, 0.3.1) I tried
>> deleting my repository and starting with a clean slate, but get the same
>> error. Any help will be greatly appreciated. Thanks, H
>> ------------------------------
>> View this message in context: mvn
>> cargo:uberwar<http://www.nabble.com/mvn-cargo%3Auberwar-tf4232616.html#a12042069 >
>> Sent from the Cargo - User mailing list
>> archive<http://www.nabble.com/Cargo---User-f2406.html>at
>> Nabble.com.
>>
>
>

--
View this message in context: http://www.nabble.com/mvn-cargo%3Auberwar-tf4232616.html#a12043548
Sent from the Cargo - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

davidkarlsen
In reply to this post by HKB
HKB wrote:

> Already having this --
>
>   <pluginRepositories>
>   <pluginRepository>
>     <id>codehaus snapshot repository</id>
>     <url>http://snapshots.repository.codehaus.org/</url>
>     <releases>
>       <enabled>true</enabled>
>     </releases>
>   </pluginRepository>
> </pluginRepositories>
>
> as wells as ..
> <plugin>
>         <groupId>org.codehaus.cargo</groupId>
>         <artifactId>cargo-maven2-plugin</artifactId>
>         <version>0.3</version>
>         <configuration>
>    <descriptor>assemble/merge.xml</descriptor>
>         </configuration>
> </plugin>
>
> Tried versions..0.2, 0.3, 0.3.1 and 0.3-SNAPSHOT too (8-()
>  
1: You have to enable snapshots in the snapshot repo (and very well
disable releases)
2: You might have to define a <repository> element containing the same
repository. (The plugin depends on artifacts which are not snapshots)

--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

HKB
Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

HKB
In reply to this post by HKB
Thanks for suggestions.
I tried the settings suggested by both, but still I am getting same error...(Any errors in my settings or the way I am doing things? Your help is greatly appreciated. I am giving details below.)


1. Error with stack trace (relevant part)
---------------------
C:\xgcm\bigwar>mvn cargo:uberwar -U -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-cargo-plugin: checking for update
s from central
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist o
r no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-cargo-plugin' does not exist or no valid version could be fou
nd
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1286)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1522)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy

and so on....

2) Current settings...
-------------------

pom file..

 <pluginRepositories>
  <pluginRepository>
    <id>codehaus snapshot repository</id>
    <url>http://snapshots.repository.codehaus.org/</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
  </pluginRepository>
</pluginRepositories>
<plugin>
  <groupId>org.codehaus.cargo</groupId>
   <artifactId>cargo-maven2-plugin</artifactId>
   <version>0.3-SNAPSHOT</version>
   <extensions>true</extensions>
   <executions>
     <execution>
       <phase>package</phase>
         <goals>
           <goal>uberwar</goal>
         </goals>
     </execution>
   </executions>
   <configuration>
     <descriptor>assemble/merge.xml</descriptor>
   </configuration>
</plugin>
...
settings.xml in my .m2....
-----------------------
                          <repositories>
                                <repository>
                                  <id>central</id>
                                  <name>Maven Repository Switchboard</name>
                                  <layout>default</layout>
                                 
                                                <url>http://repo1.maven.org/maven2</url>
                                  <snapshots>
                                        <enabled>false</enabled>
                                  </snapshots>
                                </repository>

                                <repository>
                                  <id>codehaus snapshot repository</id>
                                  <name>codehaus snapshot repository</name>
                                  <layout>default</layout>
                                  <url>http://snapshots.repository.codehaus.org/</url>
                                        <snapshots>
                                            <enabled>true</enabled>
                                        </snapshots>
                                        <releases>
                                          <enabled>false</enabled>
                                        </releases>
                                </repository>
                          </repositories
-----

3) One odd issue that I am observing....

In my .m2->repository folder  
  even if I remove the \.m2\repository\org folder and then rerun command...

mvn cargo:uberwar -U -e

the following is created ...

org->apache->maven->plugins->maven-cargo-plugin ...which contains

file maven-metadata-central.xml with contents...

<?xml version="1.0" encoding="UTF-8"?><metadata>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-cargo-plugin</artifactId>
</metadata>

Also another folder is created

org->codehaus->mojo ...This contains maven-metadata-central.xml ...which has a bunch of files ..but no cargo-maven2-plugin....

....no idea why this happens....and instead of getting codehaus cargo-maven2-plugin...what is downloaded is the apache maven-cargo-plugin....

- hkb



HKB wrote
Already having this --

  <pluginRepositories>
  <pluginRepository>
    <id>codehaus snapshot repository</id>
    <url>http://snapshots.repository.codehaus.org/</url>
    <releases>
      <enabled>true</enabled>
    </releases>
  </pluginRepository>
</pluginRepositories>

as wells as ..
<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>0.3</version>
        <configuration>
            <descriptor>assemble/merge.xml</descriptor>
        </configuration>
</plugin>

Tried versions..0.2, 0.3, 0.3.1 and 0.3-SNAPSHOT too (8-()

- H




nigelm wrote
Looks to me like it's not downloading the plugin correctly - have you set
the codehaus repository as a <pluginRepository> and set the version to
0.3-SNAPSHOT ?


On 07/08/2007, HKB <harshad@cignex.com> wrote:
>
> I am trying to merge 2 war files and was using the cargo plugin. I am
> getting the following error: [INFO] artifact
> org.apache.maven.plugins:maven-cargo-plugin: checking for update s from
> central [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not
> exist o r no valid version could be found [INFO]
> ------------------------------------------------------------------------ I
> tried the following - codehaus snapshot repository
> http://snapshots.repository.codehaus.org/ true org.codehaus.cargocargo-maven2-plugin
> 0.3 assemble/merge.xml (I tried all version 0.2, 0.3, 0.3.1) I tried
> deleting my repository and starting with a clean slate, but get the same
> error. Any help will be greatly appreciated. Thanks, H
> ------------------------------
> View this message in context: mvn cargo:uberwar<http://www.nabble.com/mvn-cargo%3Auberwar-tf4232616.html#a12042069>
> Sent from the Cargo - User mailing list archive<http://www.nabble.com/Cargo---User-f2406.html>at
> Nabble.com.
>
HKB
Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

HKB
In reply to this post by HKB
Just to reiterate....

The reason to use the Cargo plugin was to merge 2 wars and create a single war.

These are 2 separate web applications which I need to use. I am not building them but using the war shipped by the providers. These wars are stored in the reopsitory and just combined to form a separate war which needs to be deployed in tomcat.

Is there any other way to do this in Maven?

- H


HKB wrote
Already having this --

  <pluginRepositories>
  <pluginRepository>
    <id>codehaus snapshot repository</id>
    <url>http://snapshots.repository.codehaus.org/</url>
    <releases>
      <enabled>true</enabled>
    </releases>
  </pluginRepository>
</pluginRepositories>

as wells as ..
<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>0.3</version>
        <configuration>
            <descriptor>assemble/merge.xml</descriptor>
        </configuration>
</plugin>

Tried versions..0.2, 0.3, 0.3.1 and 0.3-SNAPSHOT too (8-()

- H




nigelm wrote
Looks to me like it's not downloading the plugin correctly - have you set
the codehaus repository as a <pluginRepository> and set the version to
0.3-SNAPSHOT ?


On 07/08/2007, HKB <harshad@cignex.com> wrote:
>
> I am trying to merge 2 war files and was using the cargo plugin. I am
> getting the following error: [INFO] artifact
> org.apache.maven.plugins:maven-cargo-plugin: checking for update s from
> central [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not
> exist o r no valid version could be found [INFO]
> ------------------------------------------------------------------------ I
> tried the following - codehaus snapshot repository
> http://snapshots.repository.codehaus.org/ true org.codehaus.cargocargo-maven2-plugin
> 0.3 assemble/merge.xml (I tried all version 0.2, 0.3, 0.3.1) I tried
> deleting my repository and starting with a clean slate, but get the same
> error. Any help will be greatly appreciated. Thanks, H
> ------------------------------
> View this message in context: mvn cargo:uberwar<http://www.nabble.com/mvn-cargo%3Auberwar-tf4232616.html#a12042069>
> Sent from the Cargo - User mailing list archive<http://www.nabble.com/Cargo---User-f2406.html>at
> Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

k1dev
In reply to this post by nigelm
Hi!

It's June 4, 2008 and the problem still exist. Anybody listening out there?

There's still no standard web application merging feature in Maven 2 so Cargo uberwar functionality is crucial for developers who need to merge multiple wars.

I've wasted hours to make Cargo work without success.

To an average Maven 2 user like me it seems something wrong with the *deployment* of files and/or *pom* on repository server. Does anyone of the developers tries out these releases on a clean machine?

Pom.xml extract (based on Cargo documentation):
...
<packaging>uberwar</packaging>
...
<pluginRepositories>
  <pluginRepository>
    <id>codehaus snapshot repository</id>
    <url>http://snapshots.repository.codehaus.org/</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
  </pluginRepository>
</pluginRepositories>
...
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>0.3-SNAPSHOT</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>uberwar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <descriptor>src/assemble/merge.xml</descriptor>
      </plugin>
    </plugins>
  </build>

See output (bottom line: "Unable to download the artifact from any repository":

[INFO] snapshot org.codehaus.cargo:cargo-maven2-plugin:0.3-SNAPSHOT: checking fo
r updates from codehaus snapshot repository
[WARNING] repository metadata for: 'snapshot org.codehaus.cargo:cargo-maven2-plu
gin:0.3-SNAPSHOT' could not be retrieved from repository: codehaus snapshot repo
sitory due to an error: Error transferring file
[INFO] Repository 'codehaus snapshot repository' will be blacklisted
[INFO] snapshot org.codehaus.cargo:cargo-maven2-plugin:0.3-SNAPSHOT: checking fo
r updates from codehaus snapshot repository
[WARNING] repository metadata for: 'snapshot org.codehaus.cargo:cargo-maven2-plu
gin:0.3-SNAPSHOT' could not be retrieved from repository: codehaus snapshot repo
sitory due to an error: Error transferring file
[INFO] Repository 'codehaus snapshot repository' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.codehaus.cargo:cargo-maven2-plugin

Reason: POM 'org.codehaus.cargo:cargo-maven2-plugin' not found in repository: Un
able to download the artifact from any repository

  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT

from the specified remote repositories:
  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2)
 for project org.codehaus.cargo:cargo-maven2-plugin


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project
for plugin 'org.codehaus.cargo:cargo-maven2-plugin': POM 'org.codehaus.cargo:car
go-maven2-plugin' not found in repository: Unable to download the artifact from
any repository

  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT

from the specified remote repositories:
  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2)
 for project org.codehaus.cargo:cargo-maven2-plugin
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.findArtifactTypeH
andlers(DefaultLifecycleExecutor.java:1193)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(De
faultLifecycleExecutor.java:177)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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:597)
        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.plugin.InvalidPluginException: Unable to build proje
ct for plugin 'org.codehaus.cargo:cargo-maven2-plugin': POM 'org.codehaus.cargo:
cargo-maven2-plugin' not found in repository: Unable to download the artifact fr
om any repository

  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT

from the specified remote repositories:
  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2)
 for project org.codehaus.cargo:cargo-maven2-plugin
        at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:281)
        at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
faultPluginManager.java:197)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:176)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1274)
        ... 14 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.codehaus.
cargo:cargo-maven2-plugin' not found in repository: Unable to download the artif
act from any repository

  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT

from the specified remote repositories:
  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2)
 for project org.codehaus.cargo:cargo-maven2-plugin
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:603)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
ry(DefaultMavenProjectBuilder.java:249)
        at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:265)
        ... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT

from the specified remote repositories:
  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:212)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:74)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:556)
        ... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
oad the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:331)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:200)
        ... 21 more

Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

nigelm
The files are there, and we use merging all the time -

http://snapshots.repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin/0.3-SNAPSHOT/

You could manually download and put in your local repository, or you
could zap your ~/.m2/repository/org/codehaus/cargo directory and retry
- perhaps your metadata has become corrupt..


On Wed, Jun 4, 2008 at 6:37 PM, k1dev <[hidden email]> wrote:

>
> Hi!
>
> It's June 4, 2008 and the problem still exist. Anybody listening out there?
>
> There's still no standard web application merging feature in Maven 2 so
> Cargo uberwar functionality is crucial for developers who need to merge
> multiple wars.
>
> I've wasted hours to make Cargo work without success.
>
> To an average Maven 2 user like me it seems something wrong with the
> *deployment* of files and/or *pom* on repository server. Does anyone of the
> developers tries out these releases on a clean machine?
>
> Pom.xml extract (based on Cargo documentation):
> ...
> <packaging>uberwar</packaging>
> ...
> <pluginRepositories>
>  <pluginRepository>
>    <id>codehaus snapshot repository</id>
>    <url>http://snapshots.repository.codehaus.org/</url>
>    <releases>
>      <enabled>false</enabled>
>    </releases>
>    <snapshots>
>        <enabled>true</enabled>
>    </snapshots>
>  </pluginRepository>
> </pluginRepositories>
> ...
>  <build>
>    <plugins>
>      <plugin>
>        <groupId>org.codehaus.cargo</groupId>
>        <artifactId>cargo-maven2-plugin</artifactId>
>        <version>0.3-SNAPSHOT</version>
>        <extensions>true</extensions>
>        <executions>
>          <execution>
>            <phase>package</phase>
>            <goals>
>              <goal>uberwar</goal>
>            </goals>
>          </execution>
>        </executions>
>        <configuration>
>          <descriptor>src/assemble/merge.xml</descriptor>
>      </plugin>
>    </plugins>
>  </build>
>
> See output (bottom line: "Unable to download the artifact from any
> repository":
>
> [INFO] snapshot org.codehaus.cargo:cargo-maven2-plugin:0.3-SNAPSHOT:
> checking fo
> r updates from codehaus snapshot repository
> [WARNING] repository metadata for: 'snapshot
> org.codehaus.cargo:cargo-maven2-plu
> gin:0.3-SNAPSHOT' could not be retrieved from repository: codehaus snapshot
> repo
> sitory due to an error: Error transferring file
> [INFO] Repository 'codehaus snapshot repository' will be blacklisted
> [INFO] snapshot org.codehaus.cargo:cargo-maven2-plugin:0.3-SNAPSHOT:
> checking fo
> r updates from codehaus snapshot repository
> [WARNING] repository metadata for: 'snapshot
> org.codehaus.cargo:cargo-maven2-plu
> gin:0.3-SNAPSHOT' could not be retrieved from repository: codehaus snapshot
> repo
> sitory due to an error: Error transferring file
> [INFO] Repository 'codehaus snapshot repository' will be blacklisted
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.codehaus.cargo:cargo-maven2-plugin
>
> Reason: POM 'org.codehaus.cargo:cargo-maven2-plugin' not found in
> repository: Un
> able to download the artifact from any repository
>
>  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT
>
> from the specified remote repositories:
>  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
>  central (http://repo1.maven.org/maven2)
>  for project org.codehaus.cargo:cargo-maven2-plugin
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
> project
> for plugin 'org.codehaus.cargo:cargo-maven2-plugin': POM
> 'org.codehaus.cargo:car
> go-maven2-plugin' not found in repository: Unable to download the artifact
> from
> any repository
>
>  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT
>
> from the specified remote repositories:
>  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
>  central (http://repo1.maven.org/maven2)
>  for project org.codehaus.cargo:cargo-maven2-plugin
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> ultLifecycleExecutor.java:1291)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.findArtifactTypeH
> andlers(DefaultLifecycleExecutor.java:1193)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(De
> faultLifecycleExecutor.java:177)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:140)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>        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:597)
>        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.plugin.InvalidPluginException: Unable to build
> proje
> ct for plugin 'org.codehaus.cargo:cargo-maven2-plugin': POM
> 'org.codehaus.cargo:
> cargo-maven2-plugin' not found in repository: Unable to download the
> artifact fr
> om any repository
>
>  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT
>
> from the specified remote repositories:
>  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
>  central (http://repo1.maven.org/maven2)
>  for project org.codehaus.cargo:cargo-maven2-plugin
>        at
> org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
> n(DefaultPluginManager.java:281)
>        at
> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
> faultPluginManager.java:197)
>        at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
> inManager.java:176)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> ultLifecycleExecutor.java:1274)
>        ... 14 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM
> 'org.codehaus.
> cargo:cargo-maven2-plugin' not found in repository: Unable to download the
> artif
> act from any repository
>
>  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT
>
> from the specified remote repositories:
>  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
>  central (http://repo1.maven.org/maven2)
>  for project org.codehaus.cargo:cargo-maven2-plugin
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:603)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
> ry(DefaultMavenProjectBuilder.java:249)
>        at
> org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
> n(DefaultPluginManager.java:265)
>        ... 17 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> Unable
> to download the artifact from any repository
>
>  org.codehaus.cargo:cargo-maven2-plugin:pom:0.3-SNAPSHOT
>
> from the specified remote repositories:
>  codehaus snapshot repository (http://snapshots.repository.codehaus.org/),
>  central (http://repo1.maven.org/maven2)
>
>        at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:212)
>        at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:74)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:556)
>        ... 19 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
> downl
> oad the artifact from any repository
>        at
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:331)
>        at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:200)
>        ... 21 more
>
>
> --
> View this message in context: http://www.nabble.com/mvn-cargo%3Auberwar-tp12042069p17652347.html
> Sent from the Cargo - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

Wendy Smoak-3
On Wed, Jun 4, 2008 at 12:34 PM, Nigel Magnay <[hidden email]> wrote:

> The files are there, and we use merging all the time -
>
> http://snapshots.repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin/0.3-SNAPSHOT/

There's no need to use a snapshot, 0.3.1 is the latest release:

http://repo1.maven.org/maven2/org/codehaus/cargo/cargo-maven2-plugin/0.3.1/

--
Wendy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

k1dev
Thanks. How can one figure out that info without hint anyway?

Unfortunately *errors* are still lurking around ...

Getting "Problem in file merge" (see output below) error because the class org.codehaus.cargo.module.webapp.DocumentMerger
mentioned in the *single* example at http://cargo.codehaus.org/Merging+WAR+files is seems to moved to org.codehaus.cargo.module.merge.DocumentMerge.
I've found it in local repository in .m2\repository\org\codehaus\cargo\cargo-core-api-module\0.9\cargo-core-api-module-0.9.jar

Also I'd expect merge.xml be better documented.

Tried to resolve cargo-core-api-module dependency with the snippet:
    <dependency>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-core-api-module</artifactId>
      <version>0.9</version>
      <type>jar</type>
    </dependency>

... without success again. Any ideas would be appreciated.

Thx

[INFO] [cargo:uberwar]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Problem in file merge

Embedded error: org.codehaus.cargo.module.merge.DocumentMerge
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Problem in file merge
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:583)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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:597)
        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.plugin.MojoExecutionException: Problem in file merge

        at org.codehaus.cargo.maven2.UberWarMojo.doMerge(UberWarMojo.java:242)
        at org.codehaus.cargo.maven2.UberWarMojo.execute(UberWarMojo.java:165)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
        ... 16 more
Caused by: java.lang.ClassNotFoundException: org.codehaus.cargo.module.merge.Doc
umentMerge
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
oader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:255)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:274)
        at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.codehaus.cargo.maven2.UberWarMojo.doMerge(UberWarMojo.java:227)
        ... 19 more


Wendy Smoak-3 wrote
On Wed, Jun 4, 2008 at 12:34 PM, Nigel Magnay <nigel.magnay@gmail.com> wrote:

> The files are there, and we use merging all the time -
>
> http://snapshots.repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin/0.3-SNAPSHOT/

There's no need to use a snapshot, 0.3.1 is the latest release:

http://repo1.maven.org/maven2/org/codehaus/cargo/cargo-maven2-plugin/0.3.1/

--
Wendy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

k1dev

My fault here, sorry. Missed the last letter ("r") from the classname.
Specifying org.codehaus.cargo.module.merge.DocumentMerger class in merge.xml seems to work. In fact leads to another error ofcourse: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat. I'm trying to figure out it myself.

I don't know which version the Cargo doc site shows now but with 0.3.1 the org.codehaus.cargo.module.merge.DocumentMerger is working instead of org.codehaus.cargo.module.webapp.DocumentMerger as stated.

Thx.
Rgds

k1dev wrote
Thanks. How can one figure out that info without hint anyway?

Unfortunately *errors* are still lurking around ...

Getting "Problem in file merge" (see output below) error because the class org.codehaus.cargo.module.webapp.DocumentMerger
mentioned in the *single* example at http://cargo.codehaus.org/Merging+WAR+files is seems to moved to org.codehaus.cargo.module.merge.DocumentMerge.
I've found it in local repository in .m2\repository\org\codehaus\cargo\cargo-core-api-module\0.9\cargo-core-api-module-0.9.jar

Also I'd expect merge.xml be better documented.

Tried to resolve cargo-core-api-module dependency with the snippet:
    <dependency>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-core-api-module</artifactId>
      <version>0.9</version>
      <type>jar</type>
    </dependency>

... without success again. Any ideas would be appreciated.

Thx

[INFO] [cargo:uberwar]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Problem in file merge

Embedded error: org.codehaus.cargo.module.merge.DocumentMerge
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Problem in file merge
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:583)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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:597)
        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.plugin.MojoExecutionException: Problem in file merge

        at org.codehaus.cargo.maven2.UberWarMojo.doMerge(UberWarMojo.java:242)
        at org.codehaus.cargo.maven2.UberWarMojo.execute(UberWarMojo.java:165)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
        ... 16 more
Caused by: java.lang.ClassNotFoundException: org.codehaus.cargo.module.merge.Doc
umentMerge
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
oader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:255)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:274)
        at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.codehaus.cargo.maven2.UberWarMojo.doMerge(UberWarMojo.java:227)
        ... 19 more


Wendy Smoak-3 wrote
On Wed, Jun 4, 2008 at 12:34 PM, Nigel Magnay <nigel.magnay@gmail.com> wrote:

> The files are there, and we use merging all the time -
>
> http://snapshots.repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin/0.3-SNAPSHOT/

There's no need to use a snapshot, 0.3.1 is the latest release:

http://repo1.maven.org/maven2/org/codehaus/cargo/cargo-maven2-plugin/0.3.1/

--
Wendy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

k1dev
In reply to this post by Wendy Smoak-3
Hi!

For the java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat exepction there's is a 420+ days old issue (incredible) with tip for solution at http://jira.codehaus.org/browse/CARGO-510.

Should I hand edit Cargo's pom.xml in local repository and add recommended dependency? Or is there a newer version that fixes this?

Thx.
Regards,
Kone

Wendy Smoak-3 wrote
On Wed, Jun 4, 2008 at 12:34 PM, Nigel Magnay <nigel.magnay@gmail.com> wrote:

> The files are there, and we use merging all the time -
>
> http://snapshots.repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin/0.3-SNAPSHOT/

There's no need to use a snapshot, 0.3.1 is the latest release:

http://repo1.maven.org/maven2/org/codehaus/cargo/cargo-maven2-plugin/0.3.1/

--
Wendy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

Matt Wringe

On Thu, 2008-06-05 at 02:51 -0700, k1dev wrote:
> Hi!
>
> For the java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/OutputFormat exepction there's is a 420+ days old
> issue (incredible)
Yes, that is unfortunate. Some bugs seem to linger in the jira for a
while until someone decides to pick it up and fix it.

>  with tip for solution at
> http://jira.codehaus.org/browse/CARGO-510.
>
> Should I hand edit Cargo's pom.xml in local repository and add recommended
> dependency? Or is there a newer version that fixes this?
Does this need to be added to the cargo pom.xml or your projects
pom.xml? I don't know why you can't just add the dependency to your own
project.

>
> Thx.
> Regards,
> Kone
>
>
> Wendy Smoak-3 wrote:
> >
> > On Wed, Jun 4, 2008 at 12:34 PM, Nigel Magnay <[hidden email]>
> > wrote:
> >
> >> The files are there, and we use merging all the time -
> >>
> >> http://snapshots.repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin/0.3-SNAPSHOT/
> >
> > There's no need to use a snapshot, 0.3.1 is the latest release:
> >
> > http://repo1.maven.org/maven2/org/codehaus/cargo/cargo-maven2-plugin/0.3.1/
> >
> > --
> > Wendy
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

k1dev
> Does this need to be added to the cargo pom.xml or your projects
> pom.xml? I don't know why you can't just add the dependency to your own
> project.

Because that does not solves the issue according to the creator of the ticket http://jira.codehaus.org/browse/CARGO-510.

Fortunately Alex Jones comment works ... i.e. adding dependency to cargo pom.xml ...


Now I'm trying to deploy the uberwar but Maven 2 has some plea against it (bottom line: it refers to "maven-cargo-plugin" which is not mentioned in any of my pom.)

Note: cargo-maven2-plugin != maven-cargo-plugin.

Maven 2 output:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist o
r no valid version could be found

pom.xml (same as creates uberwar)
...
<packaging>uberwar</packaging>
...
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>0.3.1</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>uberwar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <descriptor>src/assemble/merge.xml</descriptor>
         
          <container>
            <containerId>tomcat5x</containerId>
            <type>remote</type>
          </container>

          <configuration>
            <type>runtime</type>
            <properties>
              <cargo.remote.username>manager</cargo.remote.username>
              <cargo.remote.password>manager</cargo.remote.password>
              <cargo.tomcat.manager.url>https://test.intra/manager</cargo.tomcat.manager.url>
            </properties>
          </configuration>

          <deployer>
            <type>remote</type>
            <deployables>
              <deployable>
                <groupId>${project.groupId}</groupId>
                <artifactId>myapp-uberwar</artifactId>
                <type>uberwar</type>
                <properties>
                  <context>R1</context>
                </properties>
                <pingURL>https://test.intra/R1/</pingURL>
                <pingTimeout>20000</pingTimeout>
              </deployable>
            </deployables>
          </deployer>
        </configuration>
      </plugin>
    </plugins>
  </build>
Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

Matt Wringe

On Thu, 2008-06-05 at 06:59 -0700, k1dev wrote:

> > Does this need to be added to the cargo pom.xml or your projects
> > pom.xml? I don't know why you can't just add the dependency to your own
> > project.
>
> Because that does not solves the issue according to the creator of the
> ticket http://jira.codehaus.org/browse/CARGO-510.
>
> Fortunately Alex Jones comment works ... i.e. adding dependency to cargo
> pom.xml ...
>
>
> Now I'm trying to deploy the uberwar but Maven 2 has some plea against it
> (bottom line: it refers to "maven-cargo-plugin" which is not mentioned in
> any of my pom.)
>
> Note: cargo-maven2-plugin != maven-cargo-plugin.
yes, since there is both a maven plugin and a maven2 plugin.

Which dependency is bringing this in?

>
> Maven 2 output:
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not
> exist o
> r no valid version could be found
>
> pom.xml (same as creates uberwar)
> ...
> <packaging>uberwar</packaging>
> ...
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.codehaus.cargo</groupId>
>         <artifactId>cargo-maven2-plugin</artifactId>
>         <version>0.3.1</version>
>         <extensions>true</extensions>
>         <executions>
>           <execution>
>             <phase>package</phase>
>             <goals>
>               <goal>uberwar</goal>
>             </goals>
>           </execution>
>         </executions>
>         <configuration>
>           <descriptor>src/assemble/merge.xml</descriptor>
>          
>           <container>
>             <containerId>tomcat5x</containerId>
>             <type>remote</type>
>           </container>
>
>           <configuration>
>             <type>runtime</type>
>             <properties>
>               <cargo.remote.username>manager</cargo.remote.username>
>               <cargo.remote.password>manager</cargo.remote.password>
>              
> <cargo.tomcat.manager.url>https://test.intra/manager</cargo.tomcat.manager.url>
>             </properties>
>           </configuration>
>
>           <deployer>
>             <type>remote</type>
>             <deployables>
>               <deployable>
>                 <groupId>${project.groupId}</groupId>
>                 <artifactId>myapp-uberwar</artifactId>
>                 <type>uberwar</type>
>                 <properties>
>                   <context>R1</context>
>                 </properties>
>                 <pingURL>https://test.intra/R1/</pingURL>
>                 <pingTimeout>20000</pingTimeout>
>               </deployable>
>             </deployables>
>           </deployer>
> </configuration>
>       </plugin>
>     </plugins>
>   </build>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

k1dev
Breifly I did the following:
- ereased my local repository
- manually installed some j2ee jars (no cargo jars)
- issued an 'mvn install'
- edited Cargo pom.xml in local repository and inserted the following:
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.8.1</version>
</dependency> 

- run 'mvn -X -e cargo:deploy'

output of last command above:

...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] maven-cargo-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the latest ve
rsion

  org.apache.maven.plugins:maven-cargo-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-cargo-plug
in:pom:LATEST
[DEBUG] maven-cargo-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the release v
ersion

  org.apache.maven.plugins:maven-cargo-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-cargo-plug
in:pom:RELEASE
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist o
r no valid version could be found
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-cargo-plugin' does not exist or no valid version could be fou
nd
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1303)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1542)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:405)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:137)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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:597)
        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.plugin.version.PluginVersionNotFoundException: The p
lugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist or no valid v
ersion could be found
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:229)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:91)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:171)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1274)
        ... 14 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Jun 05 16:23:20 CEST 2008
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------

Thanks
- K
Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

Matt Wringe

On Thu, 2008-06-05 at 07:34 -0700, k1dev wrote:
> Breifly I did the following:
> - ereased my local repository
> - manually installed some j2ee jars (no cargo jars)
> - issued an 'mvn install'
> - edited Cargo pom.xml in local repository and inserted the following:
which pom.xml file did you edit? I just edited the
cargo-maven2-plugin-1.0-alpha-2.pom and addded the xerces dependency.

When I went to restart cargo with maven it did bring in the xerces
dependency and didn't give me the error you have below.

> <dependency>
> <groupId>xerces</groupId>
> <artifactId>xercesImpl</artifactId>
> <version>2.8.1</version>
> </dependency>
>
> - run 'mvn -X -e cargo:deploy'
>
> output of last command above:
>
> ...
> [INFO] Searching repository for plugin with prefix: 'cargo'.
> [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
> [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
> [DEBUG] maven-cargo-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine the
> latest ve
> rsion
>
>   org.apache.maven.plugins:maven-cargo-plugin:pom:LATEST
>
>
> [DEBUG] Using defaults for missing POM
> org.apache.maven.plugins:maven-cargo-plug
> in:pom:LATEST
> [DEBUG] maven-cargo-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine the
> release v
> ersion
>
>   org.apache.maven.plugins:maven-cargo-plugin:pom:RELEASE
>
>
> [DEBUG] Using defaults for missing POM
> org.apache.maven.plugins:maven-cargo-plug
> in:pom:RELEASE
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not
> exist o
> r no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.m
> aven.plugins:maven-cargo-plugin' does not exist or no valid version could be
> fou
> nd
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> ultLifecycleExecutor.java:1303)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
> (DefaultLifecycleExecutor.java:1542)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
> AggregationNeeds(DefaultLifecycleExecutor.java:405)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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:597)
>         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.plugin.version.PluginVersionNotFoundException:
> The p
> lugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist or no
> valid v
> ersion could be found
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
> uginVersion(DefaultPluginVersionManager.java:229)
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
> uginVersion(DefaultPluginVersionManager.java:91)
>         at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
> inManager.java:171)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> ultLifecycleExecutor.java:1274)
>         ... 14 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Jun 05 16:23:20 CEST 2008
> [INFO] Final Memory: 1M/4M
> [INFO]
> ------------------------------------------------------------------------
>
> Thanks
> - K
>
> --
> View this message in context: http://www.nabble.com/mvn-cargo%3Auberwar-tp12042069p17671296.html
> Sent from the Cargo - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

k1dev

Matt Wringe wrote
which pom.xml file did you edit? I just edited the
cargo-maven2-plugin-1.0-alpha-2.pom and addded the xerces dependency.

When I went to restart cargo with maven it did bring in the xerces
dependency and didn't give me the error you have below.
Well, I'm rookie Maven 2 user so I have nothing special to add. Just copy-pasting from Cargo docs and trying to make it work...

I've edited this file
.m2\repository\org\codehaus\cargo\cargo-maven2-plugin\0.3.1\cargo-maven2-plugin-0.3.1.pom
in line 60 (added the mentioned snippet).

Also searched for the "maven-cargo-plugin" text in local repository and found in a single file:

.m2\repository\org\apache\maven\plugins\maven-cargo-plugin\maven-metadata-central.xml
Its content:
<?xml version="1.0" encoding="UTF-8"?><metadata>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-cargo-plugin</artifactId>
</metadata>

Thanks
K.


Reply | Threaded
Open this post in threaded view
|

Re: mvn cargo:uberwar

k1dev
In reply to this post by Matt Wringe

Matt Wringe wrote
which pom.xml file did you edit? I just edited the
cargo-maven2-plugin-1.0-alpha-2.pom and addded the xerces dependency.

When I went to restart cargo with maven it did bring in the xerces
dependency and didn't give me the error you have below.
I would be happy if you'd provide me a zipped project where uberwar (war and web.xml merging) and remote deployment of uberwar works I don't care about on which version of cargo etc.

Rgds,
Kone
12