The problems have been caused by the following annotation:

@TopComponent.OpenActionRegistration(
        displayName = "#CTL_CfgEdAction",
        preferredID = "CfgEdTopComponent"
)

As it seemed to cause problems having two components in the same package using @NbBundle.Messages, I removed the annotation and moved the corresponding message into Bundle.properties. While it does not cause problems in the editor, for some unknown reason it causes problems with Maven build structure. Even worse, annotation processing stops after an exception is thrown (Bundle.properties not found), so also no generated-layer.xml file is processed.

I've tried to work around the problem using this snippet in my POM, but it failed to work for me:

            <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>pre-merge-properties</id>
                        <phase>initialize</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
<outputDirectory>target/classes</outputDirectory>
                            <resources>
                                <resource>
<directory>src/main/resources</directory>
                                    <includes>
<include>*.properties</include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Does somebody have a better idea? Or did I just miss sth.?

Kind regards

Peter



Am 28.01.19 um 16:33 schrieb Geertjan Wielenga:
Rather than putting anything into a ZIP file, please put it on GitHub and
then provide a link to it here.

Gj

On Mon, Jan 28, 2019 at 4:24 PM Peter Nabbefeld <peter.nabbef...@gmx.de>
wrote:

Hi Geertjan,

we just want to find out what's going on, otherwise I cannot tell You
how to reproduce the problems. Seems I have to do some debugging next
week-end - otherwise the only option will be to put everything into a
zip-file, so somebody will eventually be able to retrace what happens.  :-/

I'd like to be able to give some more details, currently I don't know
much more than "it doesn't work for me, but it does for Eric ...". The
real difference is still unknown.

Kind regards
Peter


Am 28.01.19 um 16:12 schrieb Geertjan Wielenga:
Steps to reproduce, environment, etc, so someone can take a look and try
to
reproduce.

Gj

On Mon, Jan 28, 2019 at 4:10 PM Peter Nabbefeld <peter.nabbef...@gmx.de>
wrote:

Same here.

Then my problems may have to do with the "bundles clash" (using
Bundle.properties and Bundle.java in the same package). First time
building I'm getting some error messages (Bundle not found), second time
works (for the bundle files). Only at the second run, the manifest file
is copied (seems the toolchain has been interrupted on the first build).

Otherwise I really don't know, currently.

Kind regards
Peter




Am 28.01.19 um 15:19 schrieb Eric Barboni:
I'm using 4.1 with release82 artefacts (and also custom release100).
I also updated the maven-jar-plugin configuration because I use version
3.0.2 here:
<configuration>
                       <archive>

<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                       </archive>
                   </configuration>

But in all case I have, generated layer is created.
Eric

-----Message d'origine-----
De : Peter Nabbefeld <peter.nabbef...@gmx.de>
Envoyé : lundi 28 janvier 2019 15:08
À : dev@netbeans.incubator.apache.org
Objet : Re: Cannot find the generated layer file


Hm, I'd file a ticket if I'd be able to find out more details -
otherwise I can only file my complete project (including binaries) so
somebody could find out what's wrong with it. Seems, there's sth.
strange with my project, so I'll see if I have some time for debugging
at the week-end. BTW, did You try using Maven? I guess, problems are
caused
by nbm-maven-plugin here, I'm using 4.x (tried 4.0.1 and 4.1).
Kind regards

Peter



Am 28.01.19 um 14:32 schrieb Eric Barboni:
Hi,
     Would you have the time fill a jira ticket with a small example ?
I
was not able to reproduce on my computer.
Regards
Eric


-----Message d'origine-----
De : Peter Nabbefeld <peter.nabbef...@gmx.de> Envoyé : lundi 28
janvier 2019 13:49 À : dev@netbeans.incubator.apache.org Objet : Re:
Cannot find the generated layer file


I've verified the generated layer should have been created as
META-INF/generated-layer.xml, but it's not there. I do have a layer.xml,
already, but this had never been a problem before. Probably some needed
modules are not active? So it's most probably not related to problems
with
bundle annotations.
Regards
P.



Am 28.01.19 um 12:57 schrieb Peter Nabbefeld:
Hello,

there may be a bug related to annotation processors:
Created a NB module project (Maven, using JDK 8, release build 382 on
Linux)

1. Usually there was a file "generated-layer.xml" when using NB
annotations - cannot find it now.
2. I'm getting problems related to bundle.properties, especially in
one folder where I've got a properties file (from a JPanel window)
and a Java file (from NbBundle.Message in a DataLoader).

AFAIK, both use annotation processors, so there might be a general
problem with those, or just different problems in different APs.

Kind regards

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail:
dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail:
dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail:
dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail:
dev-h...@netbeans.incubator.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail:
dev-h...@netbeans.incubator.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists






---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to