Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in namespace generation with maven plugin #61

Open
altair2010 opened this issue Aug 28, 2017 · 0 comments
Open

error in namespace generation with maven plugin #61

altair2010 opened this issue Aug 28, 2017 · 0 comments

Comments

@altair2010
Copy link

this command line
java -jar "tlbimp-2.1.jar" -o "target\generated-sources\com4j\java" -p "my.test" "C:\Program Files (x86)\Microsoft Office\Office14\MSWORD.OLB"

generate java files in folder target\generated-sources\com4j\java\my\test\events using a right package definition package my.test.events;

but the maven plugin

        <plugin>
            <groupId>org.jvnet.com4j</groupId>
            <artifactId>maven-com4j-plugin</artifactId>
            <version>2.1</version>
            <executions>
                <execution>
                    <id>Word 2010 (OFFICE14/MSWORD.OLB)</id>
                    <goals>
                        <goal>gen</goal>
                    </goals>
                    <configuration>
                        <!--<libId>00020905-0000-0000-C000-000000000046</libId>-->
                        <file>C:\Program Files (x86)\Microsoft Office\Office14\MSWORD.OLB</file>
                        <package>my.test</package>
                    </configuration>
                </execution>
            </executions>
        </plugin>

generate some files in folder target\generated-sources\com4j\java\events with an invalid package package .events; like for _CommandBarButtonEvents class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant