Mevenide, Netbeans and Problem with Custom warSourceDirectory Setting

View: New views
4 Messages — Rating Filter:   Alert me  

Mevenide, Netbeans and Problem with Custom warSourceDirectory Setting

by Josh-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Mevenide, Netbeans and Problem with Custom warSourceDirectory Setting

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <jkharness87@...> 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



Re: Mevenide, Netbeans and Problem with Custom warSourceDirectory Setting

by Josh-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <mkleint@...> 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 <jkharness87@...> 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




Re: Mevenide, Netbeans and Problem with Custom warSourceDirectory Setting

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

menu Item View/IDE log or something like that will have the print out
of all installed modules. Search for maven.j2ee (or mevenide.j2ee in
case of 6.1 I think)

Milos

On Mon, Sep 15, 2008 at 4:19 PM, Josh <jkharness87@...> wrote:

> 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 <mkleint@...> 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 <jkharness87@...> 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
>>
>>
>
>

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

    http://xircles.codehaus.org/manage_email