You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Danny Dang <da...@gmail.com> on 2006/05/01 05:40:00 UTC

[m2] org.apache.struts.actions not found after perform "mvn clean"

Hi all,

I am developing multi-module project using struts. In my top pom.xml,
I defined the struts dependency as below:

  <dependency>
    <groupId>struts</groupId>
    <artifactId>struts</artifactId>
    <version>1.2.9</version>
    <scope>install</scope>
  </dependency>

On one sub-module, I am using DispatchAction and ActionForm.
Everything is ok: I can compile, install, deploy my project by
performing "mvn install" at the top-level without any problem But if I
perform "mvn clean", I cannot compile, install anymore. Every time I
run "mvn compile", it complains that it cannot find package
"org.apache.struts.actions". I checked the local repository, the file
struts-1.2.9.jar is there.

May I know what is going on?

Danny

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


Re: [m2] org.apache.struts.actions not found after perform "mvn clean"

Posted by Wayne Fay <wa...@gmail.com>.
<scope>install</scope> is not valid. For a list of valid scopes,
please review: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

I'd suspect your issues are related to that bad scope, though it
certainly seems odd.

Wayne

On 4/30/06, Danny Dang <da...@gmail.com> wrote:
> Hi all,
>
> I am developing multi-module project using struts. In my top pom.xml,
> I defined the struts dependency as below:
>
>  <dependency>
>    <groupId>struts</groupId>
>    <artifactId>struts</artifactId>
>    <version>1.2.9</version>
>    <scope>install</scope>
>  </dependency>
>
> On one sub-module, I am using DispatchAction and ActionForm.
> Everything is ok: I can compile, install, deploy my project by
> performing "mvn install" at the top-level without any problem But if I
> perform "mvn clean", I cannot compile, install anymore. Every time I
> run "mvn compile", it complains that it cannot find package
> "org.apache.struts.actions". I checked the local repository, the file
> struts-1.2.9.jar is there.
>
> May I know what is going on?
>
> Danny
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>