You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Chip Childers <ch...@sungard.com> on 2012/09/10 20:16:03 UTC

Help needed with Maven

Hi all,

So I ended up deleting all of the contents of the
deps/awsapi-lib/rampart folder, but we need the previous contents to
be bundled as part of the build process.  I'm almost there, but I've
gotten myself stuck and I need help from someone who knows Maven a bit
better than I do.

We need to get the rahas-1.5.mar and rampart-1.5.mar files into
deps/awsapi-lib/modules for things like "ant deploy-server" to work.
To that end, I'm adding the following dependencies to the awsapi pom:

    <dependency>
      <groupId>com.apache.rampart</groupId>
      <artifactId>rahas</artifactId>
      <version>1.5</version>
      <type>mar</type>
    </dependency>
    <dependency>
      <groupId>com.apache.rampart</groupId>
      <artifactId>rampart</artifactId>
      <version>1.5</version>
      <type>mar</type>
    </dependency>

When I run mvn -U -P awsapi, I get this error at the end:

[ERROR] Failed to execute goal on project cloud-awsapi: Could not
resolve dependencies for project
org.apache.cloudstack:cloud-awsapi:jar:4.0.0-SNAPSHOT: The following
artifacts could not be resolved: com.apache.rampart:rahas:mar:1.5,
com.apache.rampart:rampart:mar:1.5: Could not find artifact
com.apache.rampart:rahas:mar:1.5 in central
(http://repo1.maven.org/maven2) -> [Help 1]

My confusion is that I can find the artifacts that we need on
http://search.maven.org/ with no problems!  I've tried removing the
"mar" type, but that doesn't work either.

Any advice?

-chip

Re: Help needed with Maven

Posted by Chip Childers <ch...@sungard.com>.
On Mon, Sep 10, 2012 at 3:42 PM, Chip Childers
<ch...@sungard.com> wrote:
> On Mon, Sep 10, 2012 at 2:16 PM, Chip Childers
> <ch...@sungard.com> wrote:
>> Hi all,
>>
>> So I ended up deleting all of the contents of the
>> deps/awsapi-lib/rampart folder, but we need the previous contents to
>> be bundled as part of the build process.  I'm almost there, but I've
>> gotten myself stuck and I need help from someone who knows Maven a bit
>> better than I do.
>>
>> We need to get the rahas-1.5.mar and rampart-1.5.mar files into
>> deps/awsapi-lib/modules for things like "ant deploy-server" to work.
>> To that end, I'm adding the following dependencies to the awsapi pom:
>>
>>     <dependency>
>>       <groupId>com.apache.rampart</groupId>
>>       <artifactId>rahas</artifactId>
>>       <version>1.5</version>
>>       <type>mar</type>
>>     </dependency>
>>     <dependency>
>>       <groupId>com.apache.rampart</groupId>
>>       <artifactId>rampart</artifactId>
>>       <version>1.5</version>
>>       <type>mar</type>
>>     </dependency>
>>
>> When I run mvn -U -P awsapi, I get this error at the end:
>>
>> [ERROR] Failed to execute goal on project cloud-awsapi: Could not
>> resolve dependencies for project
>> org.apache.cloudstack:cloud-awsapi:jar:4.0.0-SNAPSHOT: The following
>> artifacts could not be resolved: com.apache.rampart:rahas:mar:1.5,
>> com.apache.rampart:rampart:mar:1.5: Could not find artifact
>> com.apache.rampart:rahas:mar:1.5 in central
>> (http://repo1.maven.org/maven2) -> [Help 1]
>>
>> My confusion is that I can find the artifacts that we need on
>> http://search.maven.org/ with no problems!  I've tried removing the
>> "mar" type, but that doesn't work either.
>>
>> Any advice?
>>
>> -chip
>
> Just so everyone knows - this is why the previously stabilized jenkins
> builds are now failing.
>
> -chip

And thanks to Edison's second pair of eyes, I know realize that I was
asking for com.apache.rampart instead of org.apache.rampart as the
group ID.

Re: Help needed with Maven

Posted by Chip Childers <ch...@sungard.com>.
On Mon, Sep 10, 2012 at 2:16 PM, Chip Childers
<ch...@sungard.com> wrote:
> Hi all,
>
> So I ended up deleting all of the contents of the
> deps/awsapi-lib/rampart folder, but we need the previous contents to
> be bundled as part of the build process.  I'm almost there, but I've
> gotten myself stuck and I need help from someone who knows Maven a bit
> better than I do.
>
> We need to get the rahas-1.5.mar and rampart-1.5.mar files into
> deps/awsapi-lib/modules for things like "ant deploy-server" to work.
> To that end, I'm adding the following dependencies to the awsapi pom:
>
>     <dependency>
>       <groupId>com.apache.rampart</groupId>
>       <artifactId>rahas</artifactId>
>       <version>1.5</version>
>       <type>mar</type>
>     </dependency>
>     <dependency>
>       <groupId>com.apache.rampart</groupId>
>       <artifactId>rampart</artifactId>
>       <version>1.5</version>
>       <type>mar</type>
>     </dependency>
>
> When I run mvn -U -P awsapi, I get this error at the end:
>
> [ERROR] Failed to execute goal on project cloud-awsapi: Could not
> resolve dependencies for project
> org.apache.cloudstack:cloud-awsapi:jar:4.0.0-SNAPSHOT: The following
> artifacts could not be resolved: com.apache.rampart:rahas:mar:1.5,
> com.apache.rampart:rampart:mar:1.5: Could not find artifact
> com.apache.rampart:rahas:mar:1.5 in central
> (http://repo1.maven.org/maven2) -> [Help 1]
>
> My confusion is that I can find the artifacts that we need on
> http://search.maven.org/ with no problems!  I've tried removing the
> "mar" type, but that doesn't work either.
>
> Any advice?
>
> -chip

Just so everyone knows - this is why the previously stabilized jenkins
builds are now failing.

-chip