Re: [onejar] Uploading the jar to nexus

106 views
Skip to first unread message

Chris Holden

unread,
Aug 9, 2012, 2:30:33 PM8/9/12
to one...@googlegroups.com
Figured it out



On Thu, Aug 9, 2012 at 12:15 PM, Chris Holden <chol...@gmail.com> wrote:
I have the plugin creating the jar with a specific name but can't seem to get it to upload to our nexus repository.

Any tips?

--
You received this message because you are subscribed to the Google Groups "onejar" group.
To view this discussion on the web visit https://groups.google.com/d/msg/onejar/-/ig2wWX0kBV4J.
To post to this group, send email to one...@googlegroups.com.
To unsubscribe from this group, send email to onejar+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/onejar?hl=en.




--
Take Care
-Chris Holden

"As for me and my house, we will serve the Lord" Joshua 24:15

Simon Tuffs

unread,
Aug 9, 2012, 3:07:20 PM8/9/12
to one...@googlegroups.com
Hi Chris: can you provide more context on what you're doing/have done here?  I'm interested in learning.

Thanks,

Simon.

Chris Holden

unread,
Aug 9, 2012, 3:45:29 PM8/9/12
to one...@googlegroups.com
Sure

The developer configrued the plugin but missed the attachtoBuild option and setting it to true.

It would create the jar but would not upload it to nexus.

Once I specified attach to build it worked as expected and the executable jar was put in our Nexus repo.



--
You received this message because you are subscribed to the Google Groups "onejar" group.
To view this discussion on the web visit https://groups.google.com/d/msg/onejar/-/tNs-igbpPL0J.

To post to this group, send email to one...@googlegroups.com.
To unsubscribe from this group, send email to onejar+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/onejar?hl=en.

zgrega

unread,
May 6, 2015, 8:58:03 AM5/6/15
to one...@googlegroups.com
I  have the following configuration:


<plugin>
                <groupId>org.dstovall</groupId>
                <artifactId>onejar-maven-plugin</artifactId>
                <version>1.4.4</version>
                <executions>
                    <execution>
                        <id>build-first</id>
                        <configuration>
                            <mainClass>XX.MainA</mainClass>
                            <attachToBuild>true</attachToBuild>
                            <classifier>onejar</classifier>
                            <filename>MainA-${project.version}.jar</filename>
                        </configuration>
                        <goals>
                            <goal>one-jar</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>build-second</id>
                        <configuration>
                            <mainClass>XX.MainB</mainClass>
                            <attachToBuild>true</attachToBuild>
                            <classifier>onejar</classifier>
                            <filename>MainB-${project.version}.jar</filename>
                        </configuration>
                        <goals>
                            <goal>one-jar</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-io</artifactId>
                        <version>1.3.2</version>
                    </dependency>
                </dependencies>

            </plugin>

both one-jars are created and copied to .m2 folder, but they are not uploaded to nexus

Any clue?

Best regards,
Grega
Reply all
Reply to author
Forward
0 new messages