Re: [mevenide-user] Mevenide, Netbeans and Problem with Custom warSourceDirectory Setting

Josh <[email protected]> Mon, 15 Sep 2008 10:19:32 -0400
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <[email protected]>
------=_Part_6709_23523814.1221488372509
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I performed the same steps you did (using the web archetype) and still had
no luck. How do I check that the bridge is installed?  If I can rule that
out, then perhaps it was something that was fixed post 3.1.4 of mevenide.

Josh

On Mon, Sep 15, 2008 at 9:44 AM, Milos Kleint <[email protected]> wrote:

> I've checked the trunk code and it should be working. I've tried on a
> sample archetype, added this configuration snippet:
>    <plugins>
>        <plugin>
>            <groupId>org.apache.maven.plugins</groupId>
>            <artifactId>maven-war-plugin</artifactId>
>            <version>2.0.2</version>
>            <configuration>
>                <warSourceDirectory>src/main/webapp2</warSourceDirectory>
>            </configuration>
>        </plugin>
>    </plugins>
>
> and it seems to behave correctly.
>
> There might be multiple reasons why it doesn't work for you.
> 1. the j2ee maven bridge didn't install (happens when you don't have
> j2ee support installed when installing maven)
> 2. it was fixed post 3.1.x version that is released for 6.1 netbeans
> 3. there's a bug somewhere which prohibits it working with your
> particular setup.
>
> Milos
>
> On Sun, Sep 14, 2008 at 5:08 PM, Josh <[email protected]> wrote:
> > Hello -
> >
> >      I've configured the maven-war-plugin to override the
> warSourceDirectory
> > to use a folder named "WebContent" rather than the default
> src/main/webapp.
> > This is because we have code checked into SVN that is oriented toward an
> > eclipse wtp-based project structure.  However - currently, we're
> evaluating
> > netbeans and the mevenide plugin and we're having problems getting the
> > plugin to recoginize this overridden setting.  The command line build
> works
> > fine.  However, meven-ide does not show the files in the "Web Files"
> section
> > of the projects view.  As a result, I can't create new source code files.
> > Any ideas?
> >
> > Here's a quick summary of our config and problem (in a less wordy
> format):
> >
> > 1. Netbean 6.1
> > 2. Meven IDE (latest version as of last week).
> > 3. Superpom that configured such that "warSourceDirectory" is a
> non-standard
> > folder.
> > 4. Maven project (with artifactType of 'war') that references the
> superpom.
> >
> > Problem:
> >
> > MevenIde will not recognize the warSourceDirectory thus disallowing us to
> > create new web files (it assume 'src/main/webapp', which won't work for
> us).
> >
> > Thanks!
> >
> > Josh
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

------=_Part_6709_23523814.1221488372509
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">I performed the same steps you did (using the web archetype) and still had no luck. How do I check that the bridge is installed?&nbsp; If I can rule that out, then perhaps it was something that was fixed post 3.1.4 of mevenide.<br>
<br>Josh<br><br><div class="gmail_quote">On Mon, Sep 15, 2008 at 9:44 AM, Milos Kleint <span dir="ltr">&lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve checked the trunk code and it should be working. I&#39;ve tried on a<br>
sample archetype, added this configuration snippet:<br>
 &nbsp; &nbsp;&lt;plugins&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;plugin&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;version&gt;2.0.2&lt;/version&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;configuration&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;warSourceDirectory&gt;src/main/webapp2&lt;/warSourceDirectory&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/configuration&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/plugin&gt;<br>
 &nbsp; &nbsp;&lt;/plugins&gt;<br>
<br>
and it seems to behave correctly.<br>
<br>
There might be multiple reasons why it doesn&#39;t work for you.<br>
1. the j2ee maven bridge didn&#39;t install (happens when you don&#39;t have<br>
j2ee support installed when installing maven)<br>
2. it was fixed post 3.1.x version that is released for 6.1 netbeans<br>
3. there&#39;s a bug somewhere which prohibits it working with your<br>
particular setup.<br>
<br>
Milos<br>
<div><div></div><div class="Wj3C7c"><br>
On Sun, Sep 14, 2008 at 5:08 PM, Josh &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br>
&gt; Hello -<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;I&#39;ve configured the maven-war-plugin to override the warSourceDirectory<br>
&gt; to use a folder named &quot;WebContent&quot; rather than the default src/main/webapp.<br>
&gt; This is because we have code checked into SVN that is oriented toward an<br>
&gt; eclipse wtp-based project structure. &nbsp;However - currently, we&#39;re evaluating<br>
&gt; netbeans and the mevenide plugin and we&#39;re having problems getting the<br>
&gt; plugin to recoginize this overridden setting. &nbsp;The command line build works<br>
&gt; fine. &nbsp;However, meven-ide does not show the files in the &quot;Web Files&quot; section<br>
&gt; of the projects view. &nbsp;As a result, I can&#39;t create new source code files.<br>
&gt; Any ideas?<br>
&gt;<br>
&gt; Here&#39;s a quick summary of our config and problem (in a less wordy format):<br>
&gt;<br>
&gt; 1. Netbean 6.1<br>
&gt; 2. Meven IDE (latest version as of last week).<br>
&gt; 3. Superpom that configured such that &quot;warSourceDirectory&quot; is a non-standard<br>
&gt; folder.<br>
&gt; 4. Maven project (with artifactType of &#39;war&#39;) that references the superpom.<br>
&gt;<br>
&gt; Problem:<br>
&gt;<br>
&gt; MevenIde will not recognize the warSourceDirectory thus disallowing us to<br>
&gt; create new web files (it assume &#39;src/main/webapp&#39;, which won&#39;t work for us).<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; Josh<br>
&gt;<br>
<br>
</div></div>---------------------------------------------------------------------<br>
To unsubscribe from this list, please visit:<br>
<br>
 &nbsp; &nbsp;<a href="http://xircles.codehaus.org/manage_email" target="_blank">http://xircles.codehaus.org/manage_email</a><br>
<br>
<br>
</blockquote></div><br></div>

------=_Part_6709_23523814.1221488372509--